@remit/web-client-dist 0.0.678 → 0.0.679

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/assets/{BriefPane-DZbE8ZNv.js → BriefPane-IZ_xj1Lk.js} +1 -1
  2. package/assets/{CalendarEventEditor-LUplTbrz.js → CalendarEventEditor-DUg5gUNR.js} +1 -1
  3. package/assets/{CalendarEventPopup-CQaPJg2s.js → CalendarEventPopup-BbBoaCKG.js} +1 -1
  4. package/assets/{CalendarLoadFailed-DGqiWK7A.js → CalendarLoadFailed-DL8u-JFQ.js} +1 -1
  5. package/assets/{CalendarQuickCreate-DqIwACsh.js → CalendarQuickCreate-DVjhHPuJ.js} +1 -1
  6. package/assets/{CalendarSession-DGGQfwLi.js → CalendarSession-BMeYMexj.js} +1 -1
  7. package/assets/{DesktopChrome-Dl4YzJrV.js → DesktopChrome-CKI3QDy9.js} +1 -1
  8. package/assets/{DropdownMenu-CowSyQUa.js → DropdownMenu-pEN-d7K3.js} +1 -1
  9. package/assets/{EmptyState-DcHnaG2R.js → EmptyState-CP5Vn2LS.js} +1 -1
  10. package/assets/{ErrorState-DcP5ZTMN.js → ErrorState-BmfRU6e6.js} +1 -1
  11. package/assets/{FlaggedPane-CuevlxSV.js → FlaggedPane-CGZ_AxBh.js} +1 -1
  12. package/assets/{FullCompose-BdpPcB8J.js → FullCompose-YhsG0MQv.js} +1 -1
  13. package/assets/{LabelApplyTrigger-c7ugtEyT.js → LabelApplyTrigger-19lK6vLg.js} +1 -1
  14. package/assets/{MailShell-C7RoeX76.js → MailShell-C3h8o0Po.js} +1 -1
  15. package/assets/{MailViewChrome-CQnNS9Dt.js → MailViewChrome-bMtbpNoZ.js} +1 -1
  16. package/assets/{MailboxPane-GqjbzfQ9.js → MailboxPane-BO_DmR1T.js} +1 -1
  17. package/assets/{MessageBody-B3Z3zu18.js → MessageBody-Dw2SMxor.js} +1 -1
  18. package/assets/{MessageToolbar-DpBF7XWc.js → MessageToolbar-C4ylsZ_k.js} +1 -1
  19. package/assets/{NavMenuButton-d1WErbNE.js → NavMenuButton-BLH-0IxV.js} +1 -1
  20. package/assets/{OnboardingWizard-CPxEO5Gn.js → OnboardingWizard-DADGyMEc.js} +1 -1
  21. package/assets/{OutboxPane-CnWjm3Kz.js → OutboxPane-DuQ45_dm.js} +1 -1
  22. package/assets/_calendarObjectId-Bu1gEdx4.js +1 -0
  23. package/assets/_mailboxId-DfmkdvY1.js +1 -0
  24. package/assets/_messageId-C16gKcH0.js +1 -0
  25. package/assets/_messageId-_anK-ruA.js +1 -0
  26. package/assets/_messageId-uhJG8cXc.js +1 -0
  27. package/assets/_outboxMessageId-CaSX9ZOS.js +1 -0
  28. package/assets/_recurrenceId-C3Qcwwvr.js +1 -0
  29. package/assets/_threadId-CstWlugv.js +1 -0
  30. package/assets/_threadId-DXKO9oGh.js +1 -0
  31. package/assets/_threadId-DwOOZ66z.js +1 -0
  32. package/assets/{_view._date-DLGnjbKh.js → _view._date-Cp0fmpb2.js} +1 -1
  33. package/assets/{account-service-status-BrL78Bwl.js → account-service-status-DbTLkFuz.js} +1 -1
  34. package/assets/{accounts-DKPcRgRU.js → accounts-gJO9pQry.js} +1 -1
  35. package/assets/{advanced-BjXiUDtl.js → advanced-UrNGfD9P.js} +1 -1
  36. package/assets/{appearance-MzTWiLTR.js → appearance-BbURt4Vo.js} +1 -1
  37. package/assets/{avatar-B4KRzyzS.js → avatar-CxJjt5__.js} +1 -1
  38. package/assets/{bottom-sheet-B5OEKAh2.js → bottom-sheet-BX4KSkk6.js} +1 -1
  39. package/assets/{brief-ChnlqLdX.js → brief-BudFNiO7.js} +1 -1
  40. package/assets/brief-D2JSdiJk.js +1 -0
  41. package/assets/{calendar-mwWH-7s8.js → calendar-BlTUf0bx.js} +1 -1
  42. package/assets/{calendar-miAZmlW9.js → calendar-D6a4XfwP.js} +1 -1
  43. package/assets/{calendar-event-popup-Dbcz3Zb_.js → calendar-event-popup-BuR0xhCL.js} +1 -1
  44. package/assets/{calendar-event-sidebar-D_7uvmvT.js → calendar-event-sidebar-DhwwreFW.js} +1 -1
  45. package/assets/{calendar-failure-note-BJCyTf1U.js → calendar-failure-note-CJWF9Bm9.js} +1 -1
  46. package/assets/{calendar-guests-BCC1uGzd.js → calendar-guests-D5tYwBA8.js} +1 -1
  47. package/assets/{calendar-suggestion-BppH-3oL.js → calendar-suggestion-DRPyaTm4.js} +1 -1
  48. package/assets/{calendars-D9ZEiowB.js → calendars-tQGYwNBq.js} +1 -1
  49. package/assets/{card-WB75jB_w.js → card-BsZT3k9v.js} +1 -1
  50. package/assets/{checkbox-BXzuviQP.js → checkbox-C3Yttn2a.js} +1 -1
  51. package/assets/{circle-check-Bifl6wEJ.js → circle-check-Doz35Q_M.js} +1 -1
  52. package/assets/{circle-check-big-BrmrabN6.js → circle-check-big-D9Wjhdx-.js} +1 -1
  53. package/assets/{circle-help-Cyj92MDS.js → circle-help-B5DNH9Yv.js} +1 -1
  54. package/assets/{clock-A6ewTncv.js → clock-D8iwoylV.js} +1 -1
  55. package/assets/{cloud-off-CsGOr1Gn.js → cloud-off-B3IezOXr.js} +1 -1
  56. package/assets/compose._-_outboxMessageId_-BPU3iogA.js +1 -0
  57. package/assets/compose._-_outboxMessageId_-BgVnlkG4.js +1 -0
  58. package/assets/compose._-_outboxMessageId_-BnsIRMLA.js +1 -0
  59. package/assets/compose._-_outboxMessageId_-CpaquYol.js +1 -0
  60. package/assets/{config-import-DTjV5c_Y.js → config-import-CwIr-NJ5.js} +1 -1
  61. package/assets/{confirm-dialog-9Q6aXOb5.js → confirm-dialog-DhdN2rki.js} +1 -1
  62. package/assets/{copy-DjyWdtW5.js → copy-CtEwcw6R.js} +1 -1
  63. package/assets/{credential-steps-BoiX5zy2.js → credential-steps-dUNvV52R.js} +1 -1
  64. package/assets/{download-CtoLQ9Ox.js → download-vcht0JNA.js} +1 -1
  65. package/assets/{draft-CdiiJR8n.js → draft-Cn-cGLa8.js} +1 -1
  66. package/assets/edit-B-28N5ki.js +1 -0
  67. package/assets/edit-OALDWD3A.js +1 -0
  68. package/assets/{external-link-Dn2gWGrg.js → external-link-D5RMYJCY.js} +1 -1
  69. package/assets/{file-json-B4YU26EQ.js → file-json-d4ZS8Wws.js} +1 -1
  70. package/assets/{filters--HZZoQYr.js → filters-DrX3DsrZ.js} +1 -1
  71. package/assets/{flagged-CjfnRBYq.js → flagged-BfctmA4r.js} +1 -1
  72. package/assets/flagged-CU6IaMWI.js +1 -0
  73. package/assets/{folders-BEv1OKE6.js → folders-0XOIE3da.js} +1 -1
  74. package/assets/{help-copy-CQIBCXJf.js → help-copy-PBpM2Nt-.js} +1 -1
  75. package/assets/{import-DhvqQyGM.js → import-BTQvBLt4.js} +1 -1
  76. package/assets/index-BHtOQW8x.js +1 -0
  77. package/assets/index-BoRZwOaB.js +1 -0
  78. package/assets/index-C0jxJ9rz.js +1 -0
  79. package/assets/index-C15-ASoN.js +1 -0
  80. package/assets/index-C16gKcH0.js +1 -0
  81. package/assets/{index-BNUBjW43.js → index-D9rVZImU.js} +4 -4
  82. package/assets/index-DefW0u5m.js +1 -0
  83. package/assets/index-Dg1Qx5Zn.js +1 -0
  84. package/assets/index-IUjWbCxV.js +1 -0
  85. package/assets/{index-4XPoPWhu.js → index-JcHkcLZl.js} +4 -4
  86. package/assets/index-fTiw_j5r.js +1 -0
  87. package/assets/index-uhJG8cXc.js +1 -0
  88. package/assets/{kbd-D0eWE7Kp.js → kbd-Ba8uOP5b.js} +1 -1
  89. package/assets/{labels-DlSg6Q8z.js → labels-7qLNnQ4p.js} +1 -1
  90. package/assets/{mail-CmiK10Kq.js → mail-DfXdcXsx.js} +1 -1
  91. package/assets/{menu-D06KWsdQ.js → menu-B9EpNfSt.js} +1 -1
  92. package/assets/new-CQLfecpu.js +1 -0
  93. package/assets/{onboarding-completion-DnXMA7VE.js → onboarding-completion-epwWc7r3.js} +1 -1
  94. package/assets/onboarding-u4F7mHOL.js +1 -0
  95. package/assets/outbox-CQ-KfDPo.js +1 -0
  96. package/assets/{pencil-CA6DIP59.js → pencil-CnNCN6P1.js} +1 -1
  97. package/assets/{people-BAjwQQiz.js → people-Bp5zi0j-.js} +1 -1
  98. package/assets/{popover-menu-BT-fkOr5.js → popover-menu-2YIsUsHr.js} +1 -1
  99. package/assets/{refresh-cw-BERt5E10.js → refresh-cw-Cr0O1tfh.js} +1 -1
  100. package/assets/{reply-FoVQqDdv.js → reply-Dh35Hqag.js} +1 -1
  101. package/assets/{rich-text-C9TR28N2.js → rich-text-BlVMVJea.js} +1 -1
  102. package/assets/{rich-text-spellcheck-worker-provider-DjdTU9LK.js → rich-text-spellcheck-worker-provider-Bh7g2S3c.js} +1 -1
  103. package/assets/{rotate-ccw-C-agNTCI.js → rotate-ccw-fZQtnzhi.js} +1 -1
  104. package/assets/{roving-focus-Cj3j6dFs.js → roving-focus-Di2-_Bi5.js} +1 -1
  105. package/assets/{row-actions-C7JJUiqN.js → row-actions-FzEmQlCI.js} +1 -1
  106. package/assets/{search-mirror-B5Imt12Z.js → search-mirror-Rg0rkpEY.js} +1 -1
  107. package/assets/{search-token-index-C7o7PQIx.js → search-token-index-DKhKuetV.js} +1 -1
  108. package/assets/{sections-DiFHIPo4.js → sections-DPhyxq2e.js} +1 -1
  109. package/assets/{senders-BpChah6o.js → senders-iDSnpdnW.js} +1 -1
  110. package/assets/settings-C4JJ05jn.js +1 -0
  111. package/assets/{settings-screen-ZYutaKzZ.js → settings-screen-B4Stef9n.js} +1 -1
  112. package/assets/{shield-check-DDrlOAO3.js → shield-check-DPCURbcU.js} +1 -1
  113. package/assets/{sparkles-MrqvyWps.js → sparkles-CKGM5ogH.js} +1 -1
  114. package/assets/{suggested-vips-ODDnv-D2.js → suggested-vips-CEDSSHCK.js} +1 -1
  115. package/assets/{suggestion._suggestionId-DZhG3YlZ.js → suggestion._suggestionId-B9utmB_0.js} +1 -1
  116. package/assets/{task._calendarTaskId-BfaZmOEn.js → task._calendarTaskId-COR3DmT4.js} +1 -1
  117. package/assets/{undo-2-C6aYHE3s.js → undo-2-91d41Gxr.js} +1 -1
  118. package/assets/{useCalendarData-C3WbLJaC.js → useCalendarData-D4cVUO0c.js} +1 -1
  119. package/assets/{useCalendarScheduling-CjI7T1o-.js → useCalendarScheduling-BjOsYgtF.js} +1 -1
  120. package/assets/{useCalendarSuggestions-D6k1REyo.js → useCalendarSuggestions-DVLnDR0Q.js} +1 -1
  121. package/assets/{useCalendarTasks-DNBYBsvN.js → useCalendarTasks-vU39_Pqu.js} +1 -1
  122. package/assets/{useDebouncedValue-B0BMCu3v.js → useDebouncedValue-CCQodc3r.js} +1 -1
  123. package/assets/{useFilters-C_nA08Aa.js → useFilters-bWTIYb6Z.js} +1 -1
  124. package/assets/{useLabels-Dn9qgr5w.js → useLabels-ymrfdmw5.js} +1 -1
  125. package/assets/useLayoutTier-BUzxktUV.js +1 -0
  126. package/assets/{useMediaQuery-a7SamL-l.js → useMediaQuery-eKKtffrD.js} +1 -1
  127. package/assets/{useMessageBodyContent-ClVl7CBj.js → useMessageBodyContent-BwiAK6tQ.js} +1 -1
  128. package/assets/{useQueries-XPiXhlQX.js → useQueries-eyXujaLS.js} +1 -1
  129. package/assets/{useRefreshControl-C9tPndY1.js → useRefreshControl-DMEs8u4b.js} +1 -1
  130. package/assets/{useResultFolderIndex-koSvRw-H.js → useResultFolderIndex-Cn4PEyDR.js} +1 -1
  131. package/assets/{useSignature-rM5axmpY.js → useSignature-bFJVFu89.js} +1 -1
  132. package/assets/{warnings-De2eUHBy.js → warnings-D0W4PYa1.js} +1 -1
  133. package/index.html +1 -1
  134. package/package.json +1 -1
  135. package/assets/_calendarObjectId-BNxfdsFq.js +0 -1
  136. package/assets/_mailboxId-5uzJGGTA.js +0 -1
  137. package/assets/_messageId-CtUY7QaK.js +0 -1
  138. package/assets/_messageId-CyMtXqvK.js +0 -1
  139. package/assets/_messageId-jb0nvtAH.js +0 -1
  140. package/assets/_outboxMessageId-CRuHx4Az.js +0 -1
  141. package/assets/_recurrenceId-Dcdvy3HK.js +0 -1
  142. package/assets/_threadId-B17WzUu-.js +0 -1
  143. package/assets/_threadId-Djcejxjj.js +0 -1
  144. package/assets/_threadId-TLGn2UeF.js +0 -1
  145. package/assets/brief-C-5GXXj6.js +0 -1
  146. package/assets/compose._-_outboxMessageId_-C6-fUwE2.js +0 -1
  147. package/assets/compose._-_outboxMessageId_-CSKV8YnZ.js +0 -1
  148. package/assets/compose._-_outboxMessageId_-Djp_aqSn.js +0 -1
  149. package/assets/compose._-_outboxMessageId_-DspXe17c.js +0 -1
  150. package/assets/edit-D9g3EW1R.js +0 -1
  151. package/assets/edit-DkOWaaHs.js +0 -1
  152. package/assets/flagged-CVmpEd-z.js +0 -1
  153. package/assets/index-B4YQCeZ5.js +0 -1
  154. package/assets/index-B8TxM1Ri.js +0 -1
  155. package/assets/index-BqN9osrB.js +0 -1
  156. package/assets/index-CA4e3svh.js +0 -1
  157. package/assets/index-ChXNLMBw.js +0 -1
  158. package/assets/index-Cm4__-V6.js +0 -1
  159. package/assets/index-CtUY7QaK.js +0 -1
  160. package/assets/index-CyMtXqvK.js +0 -1
  161. package/assets/index-DDMaQQcI.js +0 -1
  162. package/assets/index-aTwfTj57.js +0 -1
  163. package/assets/new-B_n0KCot.js +0 -1
  164. package/assets/onboarding-DVJYsyGv.js +0 -1
  165. package/assets/outbox-_8AzSWX1.js +0 -1
  166. package/assets/settings-kL8Y1zKC.js +0 -1
  167. package/assets/useLayoutTier-DtUqYCCh.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/calendar-mwWH-7s8.js","assets/ErrorState-DcP5ZTMN.js","assets/DesktopChrome-Dl4YzJrV.js","assets/useLayoutTier-DtUqYCCh.js","assets/useMediaQuery-a7SamL-l.js","assets/reply-FoVQqDdv.js","assets/avatar-B4KRzyzS.js","assets/popover-menu-BT-fkOr5.js","assets/shield-check-DDrlOAO3.js","assets/roving-focus-Cj3j6dFs.js","assets/sections-DiFHIPo4.js","assets/calendar-miAZmlW9.js","assets/import-DhvqQyGM.js","assets/credential-steps-BoiX5zy2.js","assets/card-WB75jB_w.js","assets/config-import-DTjV5c_Y.js","assets/file-json-B4YU26EQ.js","assets/onboarding-completion-DnXMA7VE.js","assets/mail-CmiK10Kq.js","assets/search-token-index-C7o7PQIx.js","assets/search-scope-UI1H6AzA.js","assets/useQueries-XPiXhlQX.js","assets/kbd-D0eWE7Kp.js","assets/pencil-CA6DIP59.js","assets/useMessageBodyContent-ClVl7CBj.js","assets/MailShell-C7RoeX76.js","assets/FullCompose-BdpPcB8J.js","assets/index-BNUBjW43.js","assets/useSignature-rM5axmpY.js","assets/account-form-helpers-DhckT_PN.js","assets/useDebouncedValue-B0BMCu3v.js","assets/confirm-dialog-9Q6aXOb5.js","assets/useRefreshControl-C9tPndY1.js","assets/circle-check-big-BrmrabN6.js","assets/refresh-cw-BERt5E10.js","assets/menu-D06KWsdQ.js","assets/useResultFolderIndex-koSvRw-H.js","assets/account-service-status-BrL78Bwl.js","assets/sparkles-MrqvyWps.js","assets/folder-failure-CqkVSsrb.js","assets/outbox-status-BlKn6P0x.js","assets/onboarding-DVJYsyGv.js","assets/OnboardingWizard-CPxEO5Gn.js","assets/checkbox-BXzuviQP.js","assets/_mailboxId-5uzJGGTA.js","assets/MailboxPane-GqjbzfQ9.js","assets/MessageBody-B3Z3zu18.js","assets/MessageToolbar-DpBF7XWc.js","assets/EmptyState-DcHnaG2R.js","assets/undo-2-C6aYHE3s.js","assets/DropdownMenu-CowSyQUa.js","assets/download-CtoLQ9Ox.js","assets/calendar-suggestion-BppH-3oL.js","assets/useCalendarSuggestions-D6k1REyo.js","assets/calendar-format-BwCpz-JZ.js","assets/calendar-failure-note-BJCyTf1U.js","assets/clock-A6ewTncv.js","assets/useFilters-C_nA08Aa.js","assets/cloud-off-CsGOr1Gn.js","assets/MailViewChrome-CQnNS9Dt.js","assets/LabelApplyTrigger-c7ugtEyT.js","assets/useLabels-Dn9qgr5w.js","assets/NavMenuButton-d1WErbNE.js","assets/bottom-sheet-B5OEKAh2.js","assets/circle-help-Cyj92MDS.js","assets/circle-check-Bifl6wEJ.js","assets/search-mirror-B5Imt12Z.js","assets/brief-ChnlqLdX.js","assets/brief-C-5GXXj6.js","assets/BriefPane-DZbE8ZNv.js","assets/wizard-selection-zWa1qc6-.js","assets/flagged-CjfnRBYq.js","assets/flagged-CVmpEd-z.js","assets/FlaggedPane-CuevlxSV.js","assets/outbox-_8AzSWX1.js","assets/OutboxPane-CnWjm3Kz.js","assets/row-actions-C7JJUiqN.js","assets/rotate-ccw-C-agNTCI.js","assets/accounts-DKPcRgRU.js","assets/settings-screen-ZYutaKzZ.js","assets/help-copy-CQIBCXJf.js","assets/advanced-BjXiUDtl.js","assets/external-link-Dn2gWGrg.js","assets/appearance-MzTWiLTR.js","assets/calendars-D9ZEiowB.js","assets/calendar-guests-BCC1uGzd.js","assets/calendar-event-popup-Dbcz3Zb_.js","assets/useCalendarScheduling-CjI7T1o-.js","assets/copy-DjyWdtW5.js","assets/filters--HZZoQYr.js","assets/folders-BEv1OKE6.js","assets/labels-DlSg6Q8z.js","assets/people-BAjwQQiz.js","assets/senders-BpChah6o.js","assets/warnings-De2eUHBy.js","assets/_view._date-DLGnjbKh.js","assets/useCalendarTasks-DNBYBsvN.js","assets/useCalendarData-C3WbLJaC.js","assets/CalendarLoadFailed-DGqiWK7A.js","assets/CalendarQuickCreate-DqIwACsh.js","assets/draft-CdiiJR8n.js","assets/CalendarSession-DGGQfwLi.js","assets/index-B4YQCeZ5.js","assets/index-BqN9osrB.js","assets/index-aTwfTj57.js","assets/index-ChXNLMBw.js","assets/new-B_n0KCot.js","assets/CalendarEventEditor-LUplTbrz.js","assets/calendar-event-sidebar-D_7uvmvT.js","assets/index-CtUY7QaK.js","assets/_messageId-CtUY7QaK.js","assets/compose._-_outboxMessageId_-C6-fUwE2.js","assets/index-CyMtXqvK.js","assets/_messageId-CyMtXqvK.js","assets/compose._-_outboxMessageId_-Djp_aqSn.js","assets/index-B8TxM1Ri.js","assets/_messageId-jb0nvtAH.js","assets/compose._-_outboxMessageId_-DspXe17c.js","assets/compose._-_outboxMessageId_-CSKV8YnZ.js","assets/_outboxMessageId-CRuHx4Az.js","assets/index-CA4e3svh.js","assets/CalendarEventPopup-CQaPJg2s.js","assets/edit-D9g3EW1R.js","assets/suggestion._suggestionId-DZhG3YlZ.js","assets/task._calendarTaskId-BfaZmOEn.js","assets/index-Cm4__-V6.js","assets/edit-DkOWaaHs.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/calendar-BlTUf0bx.js","assets/ErrorState-BmfRU6e6.js","assets/DesktopChrome-CKI3QDy9.js","assets/useLayoutTier-BUzxktUV.js","assets/useMediaQuery-eKKtffrD.js","assets/reply-Dh35Hqag.js","assets/avatar-CxJjt5__.js","assets/popover-menu-2YIsUsHr.js","assets/shield-check-DPCURbcU.js","assets/roving-focus-Di2-_Bi5.js","assets/sections-DPhyxq2e.js","assets/calendar-D6a4XfwP.js","assets/import-BTQvBLt4.js","assets/credential-steps-dUNvV52R.js","assets/card-BsZT3k9v.js","assets/config-import-CwIr-NJ5.js","assets/file-json-d4ZS8Wws.js","assets/onboarding-completion-epwWc7r3.js","assets/mail-DfXdcXsx.js","assets/search-token-index-DKhKuetV.js","assets/search-scope-UI1H6AzA.js","assets/useQueries-eyXujaLS.js","assets/kbd-Ba8uOP5b.js","assets/pencil-CnNCN6P1.js","assets/useMessageBodyContent-BwiAK6tQ.js","assets/MailShell-C3h8o0Po.js","assets/FullCompose-YhsG0MQv.js","assets/index-D9rVZImU.js","assets/useSignature-bFJVFu89.js","assets/account-form-helpers-DhckT_PN.js","assets/useDebouncedValue-CCQodc3r.js","assets/confirm-dialog-DhdN2rki.js","assets/useRefreshControl-DMEs8u4b.js","assets/circle-check-big-D9Wjhdx-.js","assets/refresh-cw-Cr0O1tfh.js","assets/menu-B9EpNfSt.js","assets/useResultFolderIndex-Cn4PEyDR.js","assets/account-service-status-DbTLkFuz.js","assets/sparkles-CKGM5ogH.js","assets/folder-failure-CqkVSsrb.js","assets/outbox-status-BlKn6P0x.js","assets/onboarding-u4F7mHOL.js","assets/OnboardingWizard-DADGyMEc.js","assets/checkbox-C3Yttn2a.js","assets/_mailboxId-DfmkdvY1.js","assets/MailboxPane-BO_DmR1T.js","assets/MessageBody-Dw2SMxor.js","assets/MessageToolbar-C4ylsZ_k.js","assets/EmptyState-CP5Vn2LS.js","assets/undo-2-91d41Gxr.js","assets/DropdownMenu-pEN-d7K3.js","assets/download-vcht0JNA.js","assets/calendar-suggestion-DRPyaTm4.js","assets/useCalendarSuggestions-DVLnDR0Q.js","assets/calendar-format-BwCpz-JZ.js","assets/calendar-failure-note-CJWF9Bm9.js","assets/clock-D8iwoylV.js","assets/useFilters-bWTIYb6Z.js","assets/cloud-off-B3IezOXr.js","assets/MailViewChrome-bMtbpNoZ.js","assets/LabelApplyTrigger-19lK6vLg.js","assets/useLabels-ymrfdmw5.js","assets/NavMenuButton-BLH-0IxV.js","assets/bottom-sheet-BX4KSkk6.js","assets/circle-help-B5DNH9Yv.js","assets/circle-check-Doz35Q_M.js","assets/search-mirror-Rg0rkpEY.js","assets/brief-BudFNiO7.js","assets/brief-D2JSdiJk.js","assets/BriefPane-IZ_xj1Lk.js","assets/wizard-selection-zWa1qc6-.js","assets/flagged-BfctmA4r.js","assets/flagged-CU6IaMWI.js","assets/FlaggedPane-CGZ_AxBh.js","assets/outbox-CQ-KfDPo.js","assets/OutboxPane-DuQ45_dm.js","assets/row-actions-FzEmQlCI.js","assets/rotate-ccw-fZQtnzhi.js","assets/accounts-gJO9pQry.js","assets/settings-screen-B4Stef9n.js","assets/help-copy-PBpM2Nt-.js","assets/advanced-UrNGfD9P.js","assets/external-link-D5RMYJCY.js","assets/appearance-BbURt4Vo.js","assets/calendars-tQGYwNBq.js","assets/calendar-guests-D5tYwBA8.js","assets/calendar-event-popup-BuR0xhCL.js","assets/useCalendarScheduling-BjOsYgtF.js","assets/copy-CtEwcw6R.js","assets/filters-DrX3DsrZ.js","assets/folders-0XOIE3da.js","assets/labels-7qLNnQ4p.js","assets/people-Bp5zi0j-.js","assets/senders-iDSnpdnW.js","assets/warnings-D0W4PYa1.js","assets/_view._date-Cp0fmpb2.js","assets/useCalendarTasks-vU39_Pqu.js","assets/useCalendarData-D4cVUO0c.js","assets/CalendarLoadFailed-DL8u-JFQ.js","assets/CalendarQuickCreate-DVjhHPuJ.js","assets/draft-Cn-cGLa8.js","assets/CalendarSession-BMeYMexj.js","assets/index-IUjWbCxV.js","assets/index-DefW0u5m.js","assets/index-BHtOQW8x.js","assets/index-C0jxJ9rz.js","assets/new-CQLfecpu.js","assets/CalendarEventEditor-DUg5gUNR.js","assets/calendar-event-sidebar-DhwwreFW.js","assets/index-C16gKcH0.js","assets/_messageId-C16gKcH0.js","assets/compose._-_outboxMessageId_-BgVnlkG4.js","assets/index-uhJG8cXc.js","assets/_messageId-uhJG8cXc.js","assets/compose._-_outboxMessageId_-BPU3iogA.js","assets/index-C15-ASoN.js","assets/_messageId-_anK-ruA.js","assets/compose._-_outboxMessageId_-BnsIRMLA.js","assets/compose._-_outboxMessageId_-CpaquYol.js","assets/_outboxMessageId-CaSX9ZOS.js","assets/index-fTiw_j5r.js","assets/CalendarEventPopup-BbBoaCKG.js","assets/edit-OALDWD3A.js","assets/suggestion._suggestionId-B9utmB_0.js","assets/task._calendarTaskId-COR3DmT4.js","assets/index-BoRZwOaB.js","assets/edit-B-28N5ki.js"])))=>i.map(i=>d[i]);
2
2
  function hj(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Zg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yw={exports:{}},Ch={};var I6;function UX(){if(I6)return Ch;I6=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return Ch.Fragment=t,Ch.jsx=n,Ch.jsxs=n,Ch}var R6;function jX(){return R6||(R6=1,Yw.exports=UX()),Yw.exports}var x=jX();const FX="Logging",$X="x-amz-user-agent",BX="NoHubcallbackProvidedException";var ko;(function(e){e.DEBUG="DEBUG",e.ERROR="ERROR",e.INFO="INFO",e.WARN="WARN",e.VERBOSE="VERBOSE",e.NONE="NONE"})(ko||(ko={}));const O6={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class _r{constructor(t,n=ko.WARN){this.name=t,this.level=n,this._pluggables=[]}_padding(t){return t<10?"0"+t:""+t}_ts(){const t=new Date;return[this._padding(t.getMinutes()),this._padding(t.getSeconds())].join(":")+"."+t.getMilliseconds()}configure(t){return t?(this._config=t,this._config):this._config}_log(t,...n){let r=this.level;_r.LOG_LEVEL&&(r=_r.LOG_LEVEL),typeof window<"u"&&window.LOG_LEVEL&&(r=window.LOG_LEVEL);const o=O6[r];if(!(O6[t]>=o))return;let i=console.log.bind(console);t===ko.ERROR&&console.error&&(i=console.error.bind(console)),t===ko.WARN&&console.warn&&(i=console.warn.bind(console)),_r.BIND_ALL_LOG_LEVELS&&(t===ko.INFO&&console.info&&(i=console.info.bind(console)),t===ko.DEBUG&&console.debug&&(i=console.debug.bind(console)));const c=`[${t}] ${this._ts()} ${this.name}`;let u="";if(n.length===1&&typeof n[0]=="string")u=`${c} - ${n[0]}`,i(u);else if(n.length===1)u=`${c} ${n[0]}`,i(c,n[0]);else if(typeof n[0]=="string"){let d=n.slice(1);d.length===1&&(d=d[0]),u=`${c} - ${n[0]} ${d}`,i(`${c} - ${n[0]}`,d)}else u=`${c} ${n}`,i(c,n);for(const d of this._pluggables){const h={message:u,timestamp:Date.now()};d.pushLogs([h])}}log(...t){this._log(ko.INFO,...t)}info(...t){this._log(ko.INFO,...t)}warn(...t){this._log(ko.WARN,...t)}error(...t){this._log(ko.ERROR,...t)}debug(...t){this._log(ko.DEBUG,...t)}verbose(...t){this._log(ko.VERBOSE,...t)}addPluggable(t){t&&t.getCategoryName()===FX&&(this._pluggables.push(t),t.configure(this._config))}listPluggables(){return this._pluggables}}_r.LOG_LEVEL=null;_r.BIND_ALL_LOG_LEVELS=!1;class io extends Error{constructor({message:t,name:n,recoverySuggestion:r,underlyingError:o,metadata:s}){if(super(t),this.name=n,this.underlyingError=o,this.recoverySuggestion=r,s){const{extendedRequestId:i,httpStatusCode:c,requestId:u}=s;this.metadata={extendedRequestId:i,httpStatusCode:c,requestId:u}}this.constructor=io,Object.setPrototypeOf(this,io.prototype)}}var yl;(function(e){e.NoEndpointId="NoEndpointId",e.PlatformNotSupported="PlatformNotSupported",e.Unknown="Unknown",e.NetworkError="NetworkError"})(yl||(yl={}));const cy=(e,t=io)=>(n,r,o)=>{const{message:s,recoverySuggestion:i}=e[r];if(!n)throw new t({name:r,message:o?`${s} ${o}`:s,recoverySuggestion:i})},ta=typeof Symbol<"u"?Symbol("amplify_default"):"@@amplify_default",Eh=new _r("Hub");class pj{constructor(t){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=t}_remove(t,n){const r=this.listeners.get(t);if(!r){Eh.warn(`No listeners for ${t}`);return}this.listeners.set(t,[...r.filter(({callback:o})=>o!==n)])}dispatch(t,n,r,o){typeof t=="string"&&this.protectedChannels.indexOf(t)>-1&&(o===ta||Eh.warn(`WARNING: ${t} is protected and dispatching on it can have unintended consequences`));const s={channel:t,payload:{...n},source:r,patternInfo:[]};try{this._toListeners(s)}catch(i){Eh.error(i)}}listen(t,n,r="noname"){let o;if(typeof n!="function")throw new io({name:BX,message:"No callback supplied to Hub"});o=n;let s=this.listeners.get(t);return s||(s=[],this.listeners.set(t,s)),s.push({name:r,callback:o}),()=>{this._remove(t,o)}}_toListeners(t){const{channel:n,payload:r}=t,o=this.listeners.get(n);o&&o.forEach(s=>{Eh.debug(`Dispatching to ${n} with `,r);try{s.callback(t)}catch(i){Eh.error(i)}})}}const na=new pj("__default__"),V1=new pj("internal-hub"),jA=()=>{if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto;if(typeof crypto=="object")return crypto;throw new io({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},HX=()=>{if(typeof window<"u"&&typeof window.btoa=="function")return window.btoa;if(typeof btoa=="function")return btoa;throw new io({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})},qX=()=>{if(typeof window<"u"&&typeof window.atob=="function")return window.atob;if(typeof atob=="function")return atob;throw new io({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})},FA={convert(e,t){let n=e;return t?.urlSafe&&(n=n.replace(/-/g,"+").replace(/_/g,"/")),qX()(n)}};var Qs;(function(e){e.AuthTokenConfigException="AuthTokenConfigException",e.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",e.AuthUserPoolException="AuthUserPoolException",e.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",e.OAuthNotConfigureException="OAuthNotConfigureException"})(Qs||(Qs={}));const WX={[Qs.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[Qs.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[Qs.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[Qs.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[Qs.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}},$A=cy(WX);function pt(e){let t=!0;e?t=!!e.userPoolId&&!!e.userPoolClientId:t=!1,$A(t,Qs.AuthUserPoolException)}function uy(e){const t=!!e?.loginWith?.oauth?.domain&&!!e?.loginWith?.oauth?.redirectSignOut&&!!e?.loginWith?.oauth?.redirectSignIn&&!!e?.loginWith?.oauth?.responseType;$A(t,Qs.OAuthNotConfigureException)}function d1(e){const t=!!e?.identityPoolId;$A(t,Qs.InvalidIdentityPoolIdException)}function ei(e){const t=e.split(".");if(t.length!==3)throw new Error("Invalid token");try{const r=t[1].replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(FA.convert(r).split("").map(i=>`%${`00${i.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),s=JSON.parse(o);return{toString:()=>e,payload:s}}catch{throw new Error("Invalid token payload")}}const mj=e=>{const t=Reflect.ownKeys(e);for(const n of t){const r=e[n];(r&&typeof r=="object"||typeof r=="function")&&mj(r)}return Object.freeze(e)},VX=new _r("parseAWSExports"),GX={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},KX=(e={})=>{if(!Object.prototype.hasOwnProperty.call(e,"aws_project_region"))throw new io({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from `amplifyconfiguration.json`."});const{aws_appsync_apiKey:t,aws_appsync_authenticationType:n,aws_appsync_graphqlEndpoint:r,aws_appsync_region:o,aws_bots_config:s,aws_cognito_identity_pool_id:i,aws_cognito_sign_up_verification_method:c,aws_cognito_mfa_configuration:u,aws_cognito_mfa_types:d,aws_cognito_password_protection_settings:h,aws_cognito_verification_mechanisms:m,aws_cognito_signup_attributes:g,aws_cognito_social_providers:v,aws_cognito_username_attributes:S,aws_mandatory_sign_in:b,aws_mobile_analytics_app_id:C,aws_mobile_analytics_app_region:E,aws_user_files_s3_bucket:k,aws_user_files_s3_bucket_region:A,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:R,aws_user_pools_id:N,aws_user_pools_web_client_id:O,geo:I,oauth:M,predictions:z,aws_cloud_logic_custom:q,Notifications:U,modelIntrospection:L}=e,B={};C&&(B.Analytics={Pinpoint:{appId:C,region:E}});const{InAppMessaging:K,Push:le}=U??{};if(K?.AWSPinpoint||le?.AWSPinpoint){if(K?.AWSPinpoint){const{appId:J,region:ie}=K.AWSPinpoint;B.Notifications={InAppMessaging:{Pinpoint:{appId:J,region:ie}}}}if(le?.AWSPinpoint){const{appId:J,region:ie}=le.AWSPinpoint;B.Notifications={...B.Notifications,PushNotification:{Pinpoint:{appId:J,region:ie}}}}}if(Array.isArray(s)&&(B.Interactions={LexV1:Object.fromEntries(s.map(J=>[J.name,J]))}),r){const J=GX[n];J||VX.debug(`Invalid authentication type ${n}. Falling back to IAM.`),B.API={GraphQL:{endpoint:r,apiKey:t,region:o,defaultAuthMode:J??"iam"}},L&&(B.API.GraphQL.modelIntrospection=L)}const $=u?{status:u&&u.toLowerCase(),totpEnabled:d?.includes("TOTP")??!1,smsEnabled:d?.includes("SMS")??!1}:void 0,Q=h?{minLength:h.passwordPolicyMinLength,requireLowercase:h.passwordPolicyCharacters?.includes("REQUIRES_LOWERCASE")??!1,requireUppercase:h.passwordPolicyCharacters?.includes("REQUIRES_UPPERCASE")??!1,requireNumbers:h.passwordPolicyCharacters?.includes("REQUIRES_NUMBERS")??!1,requireSpecialCharacters:h.passwordPolicyCharacters?.includes("REQUIRES_SYMBOLS")??!1}:void 0,de=Array.from(new Set([...m??[],...g??[]])).reduce((J,ie)=>({...J,[ie.toLowerCase()]:{required:!0}}),{}),_e=S?.includes("EMAIL")??!1,j=S?.includes("PHONE_NUMBER")??!1;(i||N)&&(B.Auth={Cognito:{identityPoolId:i,allowGuestAccess:b!=="enable",signUpVerificationMethod:c,userAttributes:de,userPoolClientId:O,userPoolId:N,mfa:$,passwordFormat:Q,loginWith:{username:!(_e||j),email:_e,phone:j}}});const Y=M?Object.keys(M).length>0:!1,X=v?v.length>0:!1;if(B.Auth&&Y&&(B.Auth.Cognito.loginWith={...B.Auth.Cognito.loginWith,oauth:{...YX(M),...X&&{providers:ZX(v)}}}),k&&(B.Storage={S3:{bucket:k,region:A,dangerouslyConnectToHttpEndpointForTesting:R}}),I){const{amazon_location_service:J}=I;B.Geo={LocationService:{maps:J.maps,geofenceCollections:J.geofenceCollections,searchIndices:J.search_indices,region:J.region}}}if(q&&(B.API={...B.API,REST:q.reduce((J,ie)=>{const{name:ue,endpoint:ge,region:ee,service:Se}=ie;return{...J,[ue]:{endpoint:ge,...Se?{service:Se}:void 0,...ee?{region:ee}:void 0}}},{})}),z){const{VoiceId:J}=z?.convert?.speechGenerator?.defaults??{};B.Predictions=J?{...z,convert:{...z.convert,speechGenerator:{...z.convert.speechGenerator,defaults:{voiceId:J}}}}:z}return B},N6=e=>e?.split(",")??[],YX=({domain:e,scope:t,redirectSignIn:n,redirectSignOut:r,responseType:o})=>({domain:e,scopes:t,redirectSignIn:N6(n),redirectSignOut:N6(r),responseType:o}),ZX=e=>e.map(t=>{const n=t.toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}),gj=Symbol("oauth-listener"),xr=[];for(let e=0;e<256;++e)xr.push((e+256).toString(16).slice(1));function XX(e,t=0){return(xr[e[t+0]]+xr[e[t+1]]+xr[e[t+2]]+xr[e[t+3]]+"-"+xr[e[t+4]]+xr[e[t+5]]+"-"+xr[e[t+6]]+xr[e[t+7]]+"-"+xr[e[t+8]]+xr[e[t+9]]+"-"+xr[e[t+10]]+xr[e[t+11]]+xr[e[t+12]]+xr[e[t+13]]+xr[e[t+14]]+xr[e[t+15]]).toLowerCase()}let Zw;const QX=new Uint8Array(16);function JX(){if(!Zw){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Zw=crypto.getRandomValues.bind(crypto)}return Zw(QX)}const eQ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),M6={randomUUID:eQ};function tQ(e,t,n){e=e||{};const r=e.random??e.rng?.()??JX();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let o=0;o<16;++o)t[n+o]=r[o];return t}return XX(r)}function Rd(e,t,n){return M6.randomUUID&&!t&&!e?M6.randomUUID():tQ(e,t,n)}function nQ(e){const{version:t}=e;return t?t.startsWith("1"):!1}function rQ(e){if(!e)return;const{bucket_name:t,aws_region:n,buckets:r}=e;return{S3:{bucket:t,region:n,buckets:r&&pQ(r)}}}function oQ(e){if(!e)return;const{user_pool_id:t,user_pool_client_id:n,identity_pool_id:r,password_policy:o,mfa_configuration:s,mfa_methods:i,unauthenticated_identities_enabled:c,oauth:u,username_attributes:d,standard_required_attributes:h,groups:m,passwordless:g}=e,v={Cognito:{userPoolId:t,userPoolClientId:n,groups:m}};return r&&(v.Cognito={...v.Cognito,identityPoolId:r}),o&&(v.Cognito.passwordFormat={requireLowercase:o.require_lowercase,requireNumbers:o.require_numbers,requireUppercase:o.require_uppercase,requireSpecialCharacters:o.require_symbols,minLength:o.min_length??6}),s&&(v.Cognito.mfa={status:hQ(s),smsEnabled:i?.includes("SMS"),totpEnabled:i?.includes("TOTP")}),c&&(v.Cognito.allowGuestAccess=c),u&&(v.Cognito.loginWith={oauth:{domain:u.domain,redirectSignIn:u.redirect_sign_in_uri,redirectSignOut:u.redirect_sign_out_uri,responseType:u.response_type==="token"?"token":"code",scopes:u.scopes,providers:fQ(u.identity_providers)}}),d&&(v.Cognito.loginWith={...v.Cognito.loginWith,email:d.includes("email"),phone:d.includes("phone_number"),username:d.includes("username")}),h&&(v.Cognito.userAttributes=h.reduce((S,b)=>({...S,[b]:{required:!0}}),{})),g&&(v.Cognito.passwordless={emailOtpEnabled:g.email_otp_enabled,smsOtpEnabled:g.sms_otp_enabled,webAuthn:g.web_authn?{relyingPartyId:g.web_authn.relying_party_id,userVerification:g.web_authn.user_verification}:void 0,preferredChallenge:g.preferred_challenge}),v}function sQ(e){if(!e?.amazon_pinpoint)return;const{amazon_pinpoint:t}=e;return{Pinpoint:{appId:t.app_id,region:t.aws_region}}}function aQ(e){if(!e)return;const{aws_region:t,geofence_collections:n,maps:r,search_indices:o}=e;return{LocationService:{region:t,searchIndices:o,geofenceCollections:n,maps:r}}}function iQ(e){if(!e)return;const{aws_region:t,default_authorization_type:n,url:r,api_key:o,model_introspection:s}=e;return{GraphQL:{endpoint:r,defaultAuthMode:vj(n),region:t,apiKey:o,modelIntrospection:s}}}function lQ(e){if(!e?.events)return;const{url:t,aws_region:n,api_key:r,default_authorization_type:o}=e.events;return{Events:{endpoint:t,defaultAuthMode:vj(o),region:n,apiKey:r}}}function cQ(e){if(!e)return;const{aws_region:t,channels:n,amazon_pinpoint_app_id:r}=e,o=n.includes("IN_APP_MESSAGING"),s=n.includes("APNS")||n.includes("FCM");if(!(o||s))return;const i={};return o&&(i.InAppMessaging={Pinpoint:{appId:r,region:t}}),s&&(i.PushNotification={Pinpoint:{appId:r,region:t}}),i}function uQ(e){const t={};if(e.storage&&(t.Storage=rQ(e.storage)),e.auth&&(t.Auth=oQ(e.auth)),e.analytics&&(t.Analytics=sQ(e.analytics)),e.geo&&(t.Geo=aQ(e.geo)),e.data&&(t.API=iQ(e.data)),e.custom){const n=lQ(e.custom);n&&"Events"in n&&(t.API={...t.API,...n})}return e.notifications&&(t.Notifications=cQ(e.notifications)),t}const dQ={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"};function vj(e){return dQ[e]}const P6={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"};function fQ(e=[]){return e.reduce((t,n)=>(P6[n]!==void 0&&t.push(P6[n]),t),[])}function hQ(e){return e==="OPTIONAL"?"optional":e==="REQUIRED"?"on":"off"}function pQ(e){const t={};return e.forEach(({name:n,bucket_name:r,aws_region:o,paths:s})=>{if(n in t)throw new Error(`Duplicate friendly name found: ${n}. Name must be unique.`);const i=s?Object.entries(s).reduce((c,[u,d])=>(d!==void 0&&(c[u]=d),c),{}):void 0;t[n]={bucketName:r,region:o,paths:i}}),t}const yj=e=>Object.keys(e).some(t=>t.startsWith("aws_"))?KX(e):nQ(e)?uQ(e):e;var D6=function(){return D6=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},D6.apply(this,arguments)};function d$e(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function mQ(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function c(h){try{d(r.next(h))}catch(m){i(m)}}function u(h){try{d(r.throw(h))}catch(m){i(m)}}function d(h){h.done?s(h.value):o(h.value).then(c,u)}d((r=r.apply(e,t||[])).next())})}function gQ(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(d){return function(h){return u([d,h])}}function u(d){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,d[0]&&(n=0)),n;)try{if(r=1,o&&(s=d[0]&2?o.return:d[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,d[1])).done)return s;switch(o=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,o=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){n.label=d[1];break}if(d[0]===6&&n.label<s[1]){n.label=s[1],s=d;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(d);break}s[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(h){d=[6,h],o=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function f$e(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Zo=64,vQ=32,yQ=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),bQ=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],SQ=Math.pow(2,53)-1,f1=(function(){function e(){this.state=Int32Array.from(bQ),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>SQ)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===Zo&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%Zo>=Zo-8){for(var o=this.bufferLength;o<Zo;o++)n.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(var o=this.bufferLength;o<Zo-8;o++)n.setUint8(o,0);n.setUint32(Zo-8,Math.floor(t/4294967296),!0),n.setUint32(Zo-4,t),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(vQ),o=0;o<8;o++)s[o*4]=this.state[o]>>>24&255,s[o*4+1]=this.state[o]>>>16&255,s[o*4+2]=this.state[o]>>>8&255,s[o*4+3]=this.state[o]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,o=r[0],s=r[1],i=r[2],c=r[3],u=r[4],d=r[5],h=r[6],m=r[7],g=0;g<Zo;g++){if(g<16)this.temp[g]=(n[g*4]&255)<<24|(n[g*4+1]&255)<<16|(n[g*4+2]&255)<<8|n[g*4+3]&255;else{var v=this.temp[g-2],S=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10;v=this.temp[g-15];var b=(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3;this.temp[g]=(S+this.temp[g-7]|0)+(b+this.temp[g-16]|0)}var C=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&d^~u&h)|0)+(m+(yQ[g]+this.temp[g]|0)|0)|0,E=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&s^o&i^s&i)|0;m=h,h=d,d=u,u=c+C|0,c=i,i=s,s=o,o=C+E|0}r[0]+=o,r[1]+=s,r[2]+=i,r[3]+=c,r[4]+=u,r[5]+=d,r[6]+=h,r[7]+=m},e})();const wQ=e=>new TextEncoder().encode(e);var xQ=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:wQ;function bj(e){return e instanceof Uint8Array?e:typeof e=="string"?xQ(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function CQ(e){return typeof e=="string"?e.length===0:e.byteLength===0}var Dc=(function(){function e(t){this.secret=t,this.hash=new f1,this.reset()}return e.prototype.update=function(t){if(!(CQ(t)||this.error))try{this.hash.update(bj(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return mQ(this,void 0,void 0,function(){return gQ(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new f1,this.secret){this.outer=new f1;var t=EQ(this.secret),n=new Uint8Array(Zo);n.set(t);for(var r=0;r<Zo;r++)t[r]^=54,n[r]^=92;this.hash.update(t),this.outer.update(n);for(var r=0;r<t.byteLength;r++)t[r]=0}},e})();function EQ(e){var t=bj(e);if(t.byteLength>Zo){var n=new f1;n.update(t),t=n.digest()}var r=new Uint8Array(Zo);return r.set(t),r}for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`)}var Gn;(function(e){e.WebUnknown="0",e.React="1",e.NextJs="2",e.Angular="3",e.VueJs="4",e.Nuxt="5",e.Svelte="6",e.ServerSideUnknown="100",e.ReactSSR="101",e.NextJsSSR="102",e.AngularSSR="103",e.VueJsSSR="104",e.NuxtSSR="105",e.SvelteSSR="106",e.ReactNative="201",e.Expo="202"})(Gn||(Gn={}));var ns;(function(e){e.AI="ai",e.API="api",e.Auth="auth",e.Analytics="analytics",e.DataStore="datastore",e.Geo="geo",e.InAppMessaging="inappmessaging",e.Interactions="interactions",e.Predictions="predictions",e.PubSub="pubsub",e.PushNotification="pushnotification",e.Storage="storage"})(ns||(ns={}));var Ba;(function(e){e.CreateConversation="1",e.GetConversation="2",e.ListConversations="3",e.DeleteConversation="4",e.SendMessage="5",e.ListMessages="6",e.OnMessage="7",e.Generation="8",e.UpdateConversation="9"})(Ba||(Ba={}));var L6;(function(e){e.Record="1",e.IdentifyUser="2"})(L6||(L6={}));var z6;(function(e){e.GraphQl="1",e.Get="2",e.Post="3",e.Put="4",e.Patch="5",e.Del="6",e.Head="7"})(z6||(z6={}));var nt;(function(e){e.SignUp="1",e.ConfirmSignUp="2",e.ResendSignUpCode="3",e.SignIn="4",e.FetchMFAPreference="6",e.UpdateMFAPreference="7",e.SetUpTOTP="10",e.VerifyTOTPSetup="11",e.ConfirmSignIn="12",e.DeleteUserAttributes="15",e.DeleteUser="16",e.UpdateUserAttributes="17",e.FetchUserAttributes="18",e.ConfirmUserAttribute="22",e.SignOut="26",e.UpdatePassword="27",e.ResetPassword="28",e.ConfirmResetPassword="29",e.FederatedSignIn="30",e.RememberDevice="32",e.ForgetDevice="33",e.FetchDevices="34",e.SendUserAttributeVerificationCode="35",e.SignInWithRedirect="36",e.StartWebAuthnRegistration="37",e.CompleteWebAuthnRegistration="38",e.ListWebAuthnCredentials="39",e.DeleteWebAuthnCredential="40"})(nt||(nt={}));var U6;(function(e){e.Subscribe="1",e.GraphQl="2"})(U6||(U6={}));var hp;(function(e){e.SearchByText="0",e.SearchByCoordinates="1",e.SearchForSuggestions="2",e.SearchByPlaceId="3",e.SaveGeofences="4",e.GetGeofence="5",e.ListGeofences="6",e.DeleteGeofences="7"})(hp||(hp={}));var i3;(function(e){e.SyncMessages="1",e.IdentifyUser="2",e.NotifyMessageInteraction="3"})(i3||(i3={}));var j6;(function(e){e.None="0"})(j6||(j6={}));var F6;(function(e){e.Convert="1",e.Identify="2",e.Interpret="3"})(F6||(F6={}));var $6;(function(e){e.Subscribe="1"})($6||($6={}));var B6;(function(e){e.InitializePushNotifications="1",e.IdentifyUser="2"})(B6||(B6={}));var vs;(function(e){e.UploadData="1",e.DownloadData="2",e.List="3",e.Copy="4",e.Remove="5",e.GetProperties="6",e.GetUrl="7",e.GetDataAccess="8",e.ListCallerAccessGrants="9"})(vs||(vs={}));const _Q="6.18.0",dy=()=>typeof global<"u",df=()=>typeof window<"u",Sj=()=>typeof document<"u",BA=()=>typeof process<"u",Ip=(e,t)=>!!Object.keys(e).find(n=>n.startsWith(t));var H6={};function kQ(){const e=r=>r.startsWith("_react")||r.startsWith("__react"),t=r=>Object.keys(r).find(e),n=()=>Array.from(document.querySelectorAll("[id]"));return Sj()&&n().some(t)}function AQ(){return BA()&&typeof H6<"u"&&!!Object.keys(H6).find(e=>e.includes("react"))}function TQ(){return df()&&Ip(window,"__VUE")}function IQ(){return dy()&&Ip(global,"__VUE")}var q6={};function RQ(){return df()&&Ip(window,"__SVELTE")}function OQ(){return BA()&&typeof q6<"u"&&!!Object.keys(q6).find(e=>e.includes("svelte"))}function NQ(){return df()&&window.next&&typeof window.next=="object"}function MQ(){return dy()&&(Ip(global,"__next")||Ip(global,"__NEXT"))}function PQ(){return df()&&(window.__NUXT__!==void 0||window.$nuxt!==void 0)}function DQ(){return dy()&&typeof global.__NUXT_PATHS__<"u"}var W6={};function LQ(){const e=!!(Sj()&&document.querySelector("[ng-version]")),t=!!(df()&&typeof window.ng<"u");return e||t}function zQ(){return BA()&&typeof W6=="object"&&W6.npm_lifecycle_script?.startsWith("ng ")||!1}function UQ(){return typeof navigator<"u"&&typeof navigator.product<"u"&&navigator.product==="ReactNative"}function jQ(){return dy()&&typeof global.expo<"u"}function FQ(){return df()}const $Q=[{platform:Gn.Expo,detectionMethod:jQ},{platform:Gn.ReactNative,detectionMethod:UQ},{platform:Gn.NextJs,detectionMethod:NQ},{platform:Gn.Nuxt,detectionMethod:PQ},{platform:Gn.Angular,detectionMethod:LQ},{platform:Gn.React,detectionMethod:kQ},{platform:Gn.VueJs,detectionMethod:TQ},{platform:Gn.Svelte,detectionMethod:RQ},{platform:Gn.WebUnknown,detectionMethod:FQ},{platform:Gn.NextJsSSR,detectionMethod:MQ},{platform:Gn.NuxtSSR,detectionMethod:DQ},{platform:Gn.ReactSSR,detectionMethod:AQ},{platform:Gn.VueJsSSR,detectionMethod:IQ},{platform:Gn.AngularSSR,detectionMethod:zQ},{platform:Gn.SvelteSSR,detectionMethod:OQ}];function BQ(){return $Q.find(e=>e.detectionMethod())?.platform||Gn.ServerSideUnknown}let pp;const Xw=[];let l3=!1;const HQ=10,qQ=10,WQ=1e3,wj=()=>{if(!pp){if(pp=BQ(),l3)for(;Xw.length;)Xw.pop()?.();else Xw.forEach(e=>{e()});V6(Gn.ServerSideUnknown,HQ),V6(Gn.WebUnknown,qQ)}return pp};function VQ(){pp=void 0}function V6(e,t){pp===e&&!l3&&setTimeout(()=>{VQ(),l3=!0,setTimeout(wj,WQ)},t)}const Ji={},Pa=e=>{Ji[e.category]=e.apis.reduce((r,o)=>({...r,[o]:{refCount:r[o]?.refCount?r[o].refCount+1:1,additionalDetails:e.additionalDetails}}),Ji[e.category]??{});let t=!1;return()=>{t||(t=!0,e.apis.forEach(r=>{const o=Ji[e.category][r].refCount;o>1?Ji[e.category][r].refCount=o-1:(delete Ji[e.category][r],Object.keys(Ji[e.category]).length||delete Ji[e.category])}))}},GQ=(e,t)=>Ji[e]?.[t]?.additionalDetails,KQ="aws-amplify",YQ=e=>e.replace(/\+.*/,""),ZQ=({category:e,action:t}={})=>{const n=[[KQ,YQ(_Q)]];if(e&&n.push([e,t]),n.push(["framework",wj()]),e&&t){const r=GQ(e,t);r&&r.forEach(o=>{n.push(o)})}return n},fy=e=>ZQ(e).map(([r,o])=>r&&o?`${r}/${o}`:r).join(" "),hy=()=>typeof window<"u"&&typeof window.document<"u",G6=new _r("Auth");class XQ{configure(t,n){this.authConfig=t,this.authOptions=n,t&&t.Cognito?.userPoolEndpoint&&G6.warn(K6("Amazon Cognito User Pool")),t&&t.Cognito?.identityPoolEndpoint&&G6.warn(K6("Amazon Cognito Identity Pool"))}async fetchAuthSession(t={}){let n,r;const o=await this.getTokens(t);return o?(r=o.accessToken?.payload?.sub,n=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:o,authenticated:!0,forceRefresh:t.forceRefresh})):n=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:t.forceRefresh}),{tokens:o,credentials:n?.credentials,identityId:n?.identityId,userSub:r}}async clearCredentials(){await this.authOptions?.credentialsProvider?.clearCredentialsAndIdentityId()}async getTokens(t){return await this.authOptions?.tokenProvider?.getTokens(t)??void 0}}const K6=e=>`You are using a custom Amazon ${e} endpoint, ensure the endpoint is correct.`;class QQ{constructor(){this.oAuthListener=void 0,this.isConfigured=!1,this.resourcesConfig={},this.libraryOptions={},this.Auth=new XQ}configure(t,n){const r=yj(t);this.resourcesConfig=r,n&&(this.libraryOptions=n),this.resourcesConfig=mj(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),(this.resourcesConfig.Analytics?.Pinpoint||this.resourcesConfig.Notifications?.InAppMessaging?.Pinpoint||this.resourcesConfig.Notifications?.PushNotification?.Pinpoint)&&console.warn("AWS will end support for Amazon Pinpoint on October 30, 2026. The guidance is to use AWS End User Messaging for push notifications and SMS, Amazon Simple Email Service for sending emails, Amazon Connect for campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesis for event collection and mobile analytics."),na.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",ta),this.notifyOAuthListener(),this.isConfigured=!0}getConfig(){return this.isConfigured||console.warn("Amplify has not been configured. Please call Amplify.configure() before using this service."),this.resourcesConfig}[gj](t){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth?t(this.resourcesConfig.Auth?.Cognito):this.oAuthListener=t}notifyOAuthListener(){!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth||!this.oAuthListener||(this.oAuthListener(this.resourcesConfig.Auth?.Cognito),this.oAuthListener=void 0)}}const Xt=new QQ,xj=(e,t)=>e.Auth.fetchAuthSession(t),py=e=>xj(Xt,e);function Cj(){return Xt.Auth.clearCredentials()}const my=e=>{const{headers:t,statusCode:n}=e;return{...JQ(e)?e.$metadata:{},httpStatusCode:n,requestId:t["x-amzn-requestid"]??t["x-amzn-request-id"]??t["x-amz-request-id"],extendedRequestId:t["x-amz-id-2"],cfId:t["x-amz-cf-id"]}},JQ=e=>typeof e?.$metadata=="object",ff=async e=>{if(!e||e.statusCode<300)return;const t=await fm(e),r=(i=>{const[c]=i.toString().split(/[,:]+/);return c.includes("#")?c.split("#")[1]:c})(e.headers["x-amzn-errortype"]??t.code??t.__type??"UnknownError"),o=t.message??t.Message??"Unknown error",s=new Error(o);return Object.assign(s,{name:r,$metadata:my(e)})},fm=async e=>{if(!e.body)throw new Error("Missing response payload");const t=await e.body.json();return Object.assign(t,{$metadata:my(e)})},Xn=(e,t,n,r)=>async(o,s)=>{const i={...r,...o},c=await i.endpointResolver(i,s),u=await t(s,c),d=await e(u,{...i});return n(d)},eJ=300*1e3;function tJ(e=eJ){return r=>{const o=2**r*100+100*Math.random();return o>e?!1:o}}const Ej=3,Y6="amz-sdk-invocation-id",nJ="amz-sdk-request",Z6=300*1e3,_j=e=>{const n=tJ(Z6)(e);return n===!1?Z6:n},rJ=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],oJ=e=>!!e&&rJ.includes(e),kj=e=>async(t,n)=>{const r=n??await e(t)??void 0,o=r?.code||r?.name,s=t?.statusCode;return{retryable:lJ(n)||iJ(s,o)||oJ(o)||cJ(s,o)}},sJ=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],aJ=["TimeoutError","RequestTimeout","RequestTimeoutException"],iJ=(e,t)=>e===429||!!t&&sJ.includes(t),lJ=e=>[yl.NetworkError,"ERR_NETWORK"].includes(e?.name),cJ=(e,t)=>!!e&&[500,502,503,504].includes(e)||!!t&&aJ.includes(t),Aj="cognito-identity",Tj={service:Aj,retryDecider:kj(ff),computeDelay:_j,cache:"no-store"},uJ=({maxAttempts:e=Ej,retryDecider:t,computeDelay:n,abortSignal:r})=>{if(e<1)throw new Error("maxAttempts must be greater than 0");return(o,s)=>async function(c){let u,d=s.attemptsCount??0,h;const m=()=>{if(h)return X6(h,d),h;throw X6(u,d),u};for(;!r?.aborted&&d<e;){try{h=await o(c),u=void 0}catch(S){u=S,h=void 0}d=(s.attemptsCount??0)>d?s.attemptsCount??0:d+1,s.attemptsCount=d;const{isCredentialsExpiredError:g,retryable:v}=await t(h,u,s);if(v){if(s.isCredentialsExpired=!!g,!r?.aborted&&d<e){const S=n(d);await dJ(S,r)}continue}else return m()}if(r?.aborted)throw new Error("Request aborted.");return m()}},dJ=(e,t)=>{if(t?.aborted)return Promise.resolve();let n,r;const o=new Promise(s=>{r=s,n=setTimeout(s,e)});return t?.addEventListener("abort",function s(i){clearTimeout(n),t?.removeEventListener("abort",s),r()}),o},X6=(e,t)=>{Object.prototype.toString.call(e)==="[object Object]"&&(e.$metadata={...e.$metadata??{},attempts:t})},fJ=Rd,hJ=()=>e=>async function(n){return n.headers[Y6]||(n.headers[Y6]=fJ()),e(n)},pJ=({maxAttempts:e=Ej})=>(t,n)=>async function(o){const s=n.attemptsCount??0;return o.headers[nJ]=`attempt=${s+1}; max=${e}`,t(o)},mJ=({userAgentHeader:e="x-amz-user-agent",userAgentValue:t=""})=>n=>async function(o){if(t.trim().length===0)return await n(o);{const s=e.toLowerCase();return o.headers[s]=o.headers[s]?`${o.headers[s]} ${t}`:t,await n(o)}},HA=(e,t)=>(n,r)=>{const o={};let s=i=>e(i,r);for(let i=t.length-1;i>=0;i--){const c=t[i];s=c(r)(s,o)}return s(n)},Qw=e=>{let t;return()=>(t||(t=e()),t)},gJ=e=>!["HEAD","GET"].includes(e.toUpperCase()),vJ=async({url:e,method:t,headers:n,body:r},{abortSignal:o,cache:s,withCrossDomainCredentials:i})=>{let c;try{c=await fetch(e,{method:t,headers:n,body:gJ(t)?r:void 0,signal:o,cache:s,credentials:i?"include":"same-origin"})}catch(m){throw m instanceof TypeError?new io({name:yl.NetworkError,message:"A network error has occurred.",underlyingError:m}):m}const u={};c.headers?.forEach((m,g)=>{u[g.toLowerCase()]=m});const d={statusCode:c.status,headers:u,body:null},h=Object.assign(c.body??{},{text:Qw(()=>c.text()),blob:Qw(()=>c.blob()),json:Qw(()=>c.json())});return{...d,body:h}},Ij=HA(vJ,[mJ,hJ,uJ,pJ]),yJ=()=>e=>async function(n){return n.headers["cache-control"]="no-store",e(n)},Rj=HA(Ij,[yJ]),Oj=e=>(t,n)=>{const r=bJ(e),o=JSON.stringify(t);return SJ(n,r,o)},bJ=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}),SJ=({url:e},t,n)=>({headers:t,url:e,body:n,method:"POST"}),Q6=e=>Xn(Rj,Oj("GetCredentialsForIdentity"),wJ,{...Tj,...e,userAgentValue:fy()}),wJ=async e=>{if(e.statusCode>=300)throw await ff(e);const t=await fm(e);return{IdentityId:t.IdentityId,Credentials:xJ(t.Credentials),$metadata:my(e)}},xJ=({Expiration:e,...t}={})=>({...t,Expiration:e&&new Date(e*1e3)}),CJ=e=>Xn(Rj,Oj("GetId"),EJ,{...Tj,...e,userAgentValue:fy()}),EJ=async e=>{if(e.statusCode>=300)throw await ff(e);return{IdentityId:(await fm(e)).IdentityId,$metadata:my(e)}},Nj={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},_J={partitions:[Nj,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},Mj=e=>{const{partitions:t}=_J;for(const{regions:n,outputs:r,regionRegex:o}of t){const s=new RegExp(o);if(n.includes(e)||s.test(e))return r.dnsSuffix}return Nj.outputs.dnsSuffix},Rl=URL,kJ=({region:e})=>({url:new Rl(`https://${Aj}.${e}.${Mj(e)}`)});class Qh extends io{constructor(){super({name:yl.PlatformNotSupported,message:"Function not supported on current platform"})}}class Pj{constructor(t){this.storage=t}async setItem(t,n){if(!this.storage)throw new Qh;this.storage.setItem(t,n)}async getItem(t){if(!this.storage)throw new Qh;return this.storage.getItem(t)}async removeItem(t){if(!this.storage)throw new Qh;this.storage.removeItem(t)}async clear(){if(!this.storage)throw new Qh;this.storage.clear()}}class Dj{constructor(){this.storage=new Map}get length(){return this.storage.size}key(t){return t>this.length-1?null:Array.from(this.storage.keys())[t]}setItem(t,n){this.storage.set(t,n)}getItem(t){return this.storage.get(t)??null}removeItem(t){this.storage.delete(t)}clear(){this.storage.clear()}}const Lj=new _r("CoreStorageUtils"),AJ=()=>{try{if(typeof window<"u"&&window.localStorage)return window.localStorage}catch{Lj.info("localStorage not found. InMemoryStorage is used as a fallback.")}return new Dj},zj=()=>{try{if(typeof window<"u"&&window.sessionStorage)return window.sessionStorage.getItem("test"),window.sessionStorage;throw new Error("sessionStorage is not defined")}catch{return Lj.info("sessionStorage not found. InMemoryStorage is used as a fallback."),new Dj}};class TJ extends Pj{constructor(){super(AJ())}}class IJ extends Pj{constructor(){super(zj())}}class RJ{constructor(t){this._storage=t}get storage(){if(!this._storage)throw new Qh;return this._storage}setItem(t,n){this.storage.setItem(t,n)}getItem(t){return this.storage.getItem(t)}removeItem(t){this.storage.removeItem(t)}clear(){this.storage.clear()}}class OJ extends RJ{constructor(){super(zj())}}function Xg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)r!=="__proto__"&&(e[r]=n[r])}return e}var NJ={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function c3(e,t){function n(o,s,i){if(!(typeof document>"u")){i=Xg({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,i[u]!==!0&&(c+="="+i[u].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+c}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},c=0;c<s.length;c++){var u=s[c].split("="),d=u.slice(1).join("=");try{var h=decodeURIComponent(u[0]);if(h in i||(i[h]=e.read(d,h)),o===h)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",Xg({},s,{expires:-1}))},withAttributes:function(o){return c3(this.converter,Xg({},this.attributes,o))},withConverter:function(o){return c3(Xg({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Qg=c3(NJ,{path:"/"});class MJ{constructor(t={}){const{path:n,domain:r,expires:o,sameSite:s,secure:i}=t;if(this.domain=r,this.path=n||"/",this.expires=Object.prototype.hasOwnProperty.call(t,"expires")?o:365,this.secure=Object.prototype.hasOwnProperty.call(t,"secure")?i:!0,Object.prototype.hasOwnProperty.call(t,"sameSite")){if(!s||!["strict","lax","none"].includes(s))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(s==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=s}}async setItem(t,n){Qg.set(t,n,this.getData())}async getItem(t){return Qg.get(t)??null}async removeItem(t){Qg.remove(t,this.getData())}async clear(){const t=Qg.get(),n=Object.keys(t).map(r=>this.removeItem(r));await Promise.all(n)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}const hm=new TJ;new IJ;const Ka=new OJ,PJ=new _r("I18n");let DJ=class{constructor(){this._options=null,this._lang=null,this._dict={}}setDefaultLanguage(){!this._lang&&typeof window<"u"&&window&&window.navigator&&(this._lang=window.navigator.language),PJ.debug(this._lang)}setLanguage(t){this._lang=t}get(t,n=void 0){if(this.setDefaultLanguage(),!this._lang)return typeof n<"u"?n:t;const r=this._lang;let o=this.getByLanguage(t,r);return o||(r.indexOf("-")>0&&(o=this.getByLanguage(t,r.split("-")[0])),o)?o:typeof n<"u"?n:t}getByLanguage(t,n,r=null){if(!n)return r;const o=this._dict[n];return o?o[t]:r}putVocabulariesForLanguage(t,n){let r=this._dict[t];r||(r=this._dict[t]={}),this._dict[t]={...r,...n}}putVocabularies(t){Object.keys(t).forEach(n=>{this.putVocabulariesForLanguage(n,t[n])})}};var pc;(function(e){e.NotConfigured="NotConfigured"})(pc||(pc={}));const LJ={[pc.NotConfigured]:{message:"i18n is not configured."}},Jg=cy(LJ),J6=new _r("I18n");let e0={language:null},hs=null,Uj=class uc{static configure(t){return J6.debug("configure I18n"),t&&(e0=Object.assign({},e0,t.I18n||t),uc.createInstance()),e0}static getModuleName(){return"I18n"}static createInstance(){J6.debug("create I18n instance"),!hs&&(hs=new DJ)}static setLanguage(t){uc.checkConfig(),Jg(!!hs,pc.NotConfigured),hs.setLanguage(t)}static get(t,n){return uc.checkConfig(),Jg(!!hs,pc.NotConfigured),hs.get(t,n)}static putVocabulariesForLanguage(t,n){uc.checkConfig(),Jg(!!hs,pc.NotConfigured),hs.putVocabulariesForLanguage(t,n)}static putVocabularies(t){uc.checkConfig(),Jg(!!hs,pc.NotConfigured),hs.putVocabularies(t)}static checkConfig(){return hs||uc.createInstance(),!0}};Uj.createInstance();const zJ=e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=new Uint8Array(e);jA().getRandomValues(r);for(const o of r)n.push(t[o%t.length]);return n.join("")};function UJ(e){return(e.match(/.{2}/g)||[]).map(n=>String.fromCharCode(parseInt(n,16))).join("")}function jJ(e){return e.split("").map(t=>t.charCodeAt(0).toString(16).padStart(2,"0")).join("")}const FJ=e=>{let t;return async(...n)=>t||(t=new Promise((r,o)=>{e(...n).then(s=>{r(s)}).catch(s=>{o(s)}).finally(()=>{t=void 0})}),t)};function eN({expiresAt:e,clockDrift:t,tolerance:n=5e3}){return Date.now()+t+n>e}const $J=async()=>{const{userAgentData:e}=navigator;if(!e)return navigator.userAgent;const{platform:t="",platformVersion:n="",model:r="",architecture:o="",fullVersionList:s=[]}=await e.getHighEntropyValues(["platform","platformVersion","architecture","model","fullVersionList"]),i=s.map(u=>`${u.brand}/${u.version}`).join(";");return[t,n,o,r,t,i].filter(u=>u).join(" ")||navigator.userAgent};function BJ(e){return Array.from(e,t=>String.fromCodePoint(t)).join("")}const Fd={convert(e,t={urlSafe:!1,skipPadding:!1}){const n=typeof e=="string"?e:BJ(e);let r=HX()(n);return t.urlSafe&&(r=r.replace(/\+/g,"-").replace(/\//g,"_")),t.skipPadding&&(r=r.replace(/=/g,"")),r}};function HJ(){return jA().getRandomValues(new Uint32Array(1))[0]}function qJ(e){const{words:t}=e,{sigBytes:n}=e,r=[];for(let o=0;o<n;o++){const s=t[o>>>2]>>>24-o%4*8&255;r.push((s>>>4).toString(16)),r.push((s&15).toString(16))}return r.join("")}class qA{constructor(t,n){this.words=[];let r=t;r=this.words=r||[],n!==void 0?this.sigBytes=n:this.sigBytes=r.length*4}random(t){const n=[];for(let r=0;r<t;r+=4)n.push(HJ());return new qA(n,t)}toString(){return qJ(this)}}var tt;(function(e){e.EmptySignInUsername="EmptySignInUsername",e.EmptySignInPassword="EmptySignInPassword",e.CustomAuthSignInPassword="CustomAuthSignInPassword",e.EmptySignUpUsername="EmptySignUpUsername",e.EmptySignUpPassword="EmptySignUpPassword",e.EmptyConfirmSignUpUsername="EmptyConfirmSignUpUsername",e.EmptyConfirmSignUpCode="EmptyConfirmSignUpCode",e.EmptyResendSignUpCodeUsername="EmptyresendSignUpCodeUsername",e.EmptyChallengeResponse="EmptyChallengeResponse",e.EmptyConfirmResetPasswordUsername="EmptyConfirmResetPasswordUsername",e.EmptyConfirmResetPasswordNewPassword="EmptyConfirmResetPasswordNewPassword",e.EmptyConfirmResetPasswordConfirmationCode="EmptyConfirmResetPasswordConfirmationCode",e.EmptyResetPasswordUsername="EmptyResetPasswordUsername",e.EmptyVerifyTOTPSetupCode="EmptyVerifyTOTPSetupCode",e.EmptyConfirmUserAttributeCode="EmptyConfirmUserAttributeCode",e.IncorrectMFAMethod="IncorrectMFAMethod",e.EmptyUpdatePassword="EmptyUpdatePassword",e.InvalidPreferredChallenge="InvalidPreferredChallenge"})(tt||(tt={}));const jj={[tt.EmptyChallengeResponse]:{message:"challengeResponse is required to confirmSignIn"},[tt.EmptyConfirmResetPasswordUsername]:{message:"username is required to confirmResetPassword"},[tt.EmptyConfirmSignUpCode]:{message:"code is required to confirmSignUp"},[tt.EmptyConfirmSignUpUsername]:{message:"username is required to confirmSignUp"},[tt.EmptyConfirmResetPasswordConfirmationCode]:{message:"confirmationCode is required to confirmResetPassword"},[tt.EmptyConfirmResetPasswordNewPassword]:{message:"newPassword is required to confirmResetPassword"},[tt.EmptyResendSignUpCodeUsername]:{message:"username is required to confirmSignUp"},[tt.EmptyResetPasswordUsername]:{message:"username is required to resetPassword"},[tt.EmptySignInPassword]:{message:"password is required to signIn"},[tt.EmptySignInUsername]:{message:"username is required to signIn"},[tt.EmptySignUpPassword]:{message:"password is required to signUp"},[tt.EmptySignUpUsername]:{message:"username is required to signUp"},[tt.CustomAuthSignInPassword]:{message:"A password is not needed when signing in with CUSTOM_WITHOUT_SRP",recoverySuggestion:"Do not include a password in your signIn call."},[tt.IncorrectMFAMethod]:{message:"Incorrect MFA method was chosen. It should be either SMS, TOTP, or EMAIL",recoverySuggestion:"Try to pass SMS, TOTP, or EMAIL as the challengeResponse"},[tt.EmptyVerifyTOTPSetupCode]:{message:"code is required to verifyTotpSetup"},[tt.EmptyUpdatePassword]:{message:"oldPassword and newPassword are required to changePassword"},[tt.EmptyConfirmUserAttributeCode]:{message:"confirmation code is required to confirmUserAttribute"},[tt.InvalidPreferredChallenge]:{message:"The preferred challenge is not enabled in your backend configuration",recoverySuggestion:"Ensure the authentication method is enabled in your Amplify backend configuration"}};var ur;(function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_EMAIL="Email cannot be empty",e.EMPTY_PHONE="Phone number cannot be empty",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty",e.NETWORK_ERROR="Network Error",e.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",e.AUTOSIGNIN_ERROR="Please use your credentials to sign in",e.OAUTH_ERROR="Couldn't finish OAuth flow, check your User Pool HostedUI settings"})(ur||(ur={}));var ra;(function(e){e.SignInException="SignInException",e.OAuthSignInError="OAuthSignInException"})(ra||(ra={}));class Ye extends io{constructor(t){super(t),this.constructor=Ye,Object.setPrototypeOf(this,Ye.prototype)}}function xn(e,t){const{message:n,recoverySuggestion:r}=jj[t];if(!e)throw new Ye({name:t,message:n,recoverySuggestion:r})}function Et(e){const t=e?.split("_")[0];if(!e||e.indexOf("_")<0||!t||typeof t!="string")throw new Ye({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return t}function u3(e){if(!e||!e.includes(":"))throw new Ye({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return e.split(":")[0]}function tN(e){return Object.entries(e).map(([t,n])=>({Name:t,Value:n}))}function WJ(e){const t={};return e?.forEach(n=>{n.Name&&(t[n.Name]=n.Value)}),t}var nN;(function(e){e.ConcurrentModificationException="ConcurrentModificationException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException"})(nN||(nN={}));var rN;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(rN||(rN={}));var oN;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UsernameExistsException="UsernameExistsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(oN||(oN={}));var sN;(function(e){e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyFailedAttemptsException="TooManyFailedAttemptsException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(sN||(sN={}));var aN;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyFailedAttemptsException="TooManyFailedAttemptsException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(aN||(aN={}));var iN;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(iN||(iN={}));var lN;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(lN||(lN={}));var cN;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(cN||(cN={}));var uN;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(uN||(uN={}));var dN;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(dN||(dN={}));var fN;(function(e){e.ExternalServiceException="ExternalServiceException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceConflictException="ResourceConflictException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException"})(fN||(fN={}));var hN;(function(e){e.ExternalServiceException="ExternalServiceException",e.InternalErrorException="InternalErrorException",e.InvalidIdentityPoolConfigurationException="InvalidIdentityPoolConfigurationException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceConflictException="ResourceConflictException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException"})(hN||(hN={}));var pN;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(pN||(pN={}));var mN;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException"})(mN||(mN={}));var G1;(function(e){e.PasswordResetRequiredException="PasswordResetRequiredException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(G1||(G1={}));var gN;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(gN||(gN={}));var vN;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.MFAMethodNotFoundException="MFAMethodNotFoundException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(vN||(vN={}));var yN;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(yN||(yN={}));var d3;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UsernameExistsException="UsernameExistsException"})(d3||(d3={}));var bN;(function(e){e.AliasExistsException="AliasExistsException",e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(bN||(bN={}));var SN;(function(e){e.CodeMismatchException="CodeMismatchException",e.EnableSoftwareTokenMFAException="EnableSoftwareTokenMFAException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(SN||(SN={}));var wN;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(wN||(wN={}));var xN;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(xN||(xN={}));var CN;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(CN||(CN={}));const gy="UserUnAuthenticatedException",VJ="UserAlreadyAuthenticatedException",GJ="DeviceMetadataNotFoundException",Fj="AutoSignInException",KJ="InvalidRedirectException",YJ="InvalidAppSchemeException",ZJ="InvalidPreferredRedirectUrlException",XJ=new Ye({name:KJ,message:"signInRedirect or signOutRedirect had an invalid format or was not found.",recoverySuggestion:"Please make sure the signIn/Out redirect in your oauth config is valid."});new Ye({name:YJ,message:"A valid non-http app scheme was not found in the config.",recoverySuggestion:"Please make sure a valid custom app scheme is present in the config."});new Ye({name:ZJ,message:"The given preferredRedirectUrl does not match any items in the redirectSignOutUrls array from the config.",recoverySuggestion:"Please make sure a matching preferredRedirectUrl is provided."});const QJ="InvalidOriginException",JJ=new Ye({name:QJ,message:"redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin",recoverySuggestion:"Please call signInWithRedirect from the same origin."}),eee="OAuthSignOutException",tee="TokenRefreshException",nee="UnexpectedSignInInterruptionException";function hf(e){if(!e||!e.accessToken)throw new Ye({name:gy,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}function ree(e){if(!e||!e.idToken)throw new Ye({name:gy,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}const oee=new Ye({name:tee,message:`Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow.
3
3
  Please change your oauth configuration to use 'code grant' flow.`,recoverySuggestion:`Please logout and change your Amplify configuration to use "code grant" flow.
4
4
  E.g { responseType: 'code' }`}),see=new Ye({name:gy,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function $j(e){if(lee(e))throw oee;if(!iee(e))throw see}function Bj(e){if(!e||!e.deviceKey||!e.deviceGroupKey||!e.randomPassword)throw new Ye({name:GJ,message:"Either deviceKey, deviceGroupKey or secretPassword were not found during the sign-in process.",recoverySuggestion:"Make sure to not clear storage after calling the signIn API."})}const aee={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function Hj(e){return e?.accessToken||e?.idToken}function iee(e){return Hj(e)&&e?.refreshToken}function lee(e){return Hj(e)&&!e?.refreshToken}const cee=async e=>{const t=e.getConfig().Auth?.Cognito;pt(t);const n=await e.Auth.getTokens({forceRefresh:!1});hf(n);const{"cognito:username":r,sub:o}=n.idToken?.payload??{},s={username:r,userId:o},i=uee(n);return i&&(s.signInDetails=i),s};function uee(e){return e?.signInDetails}const vy=async()=>cee(Xt),jt=(e,t)=>fy({category:ns.Auth,action:e,...t}),fr=e=>(t,n)=>{const r=dee(e),o=JSON.stringify(t);return fee(n,r,o)},dee=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${e}`}),fee=({url:e},t,n)=>({headers:t,url:e,body:n,method:"POST"});function rs(e){if(!e||e.name==="Error"||e instanceof TypeError)throw new Ye({name:yl.Unknown,message:"An unknown error has occurred.",underlyingError:e})}const Ar=()=>async e=>{if(e.statusCode>=300){const t=await ff(e);throw rs(t),new Ye({name:t.name,message:t.message,metadata:t.$metadata})}return fm(e)},hee=()=>(e,t)=>async function(r){return r.headers={...r.headers,"cache-control":"no-store",...await Xt.libraryOptions?.Auth?.headers?.()},e(r)},hr=HA(Ij,[hee]),qj="cognito-idp",pr={service:qj,retryDecider:kj(ff),computeDelay:_j,get userAgentValue(){return fy()},cache:"no-store"},pm=e=>Xn(hr,fr("InitiateAuth"),Ar(),{...pr,...e}),No=e=>Xn(hr,fr("RespondToAuthChallenge"),Ar(),{...pr,...e}),pee=e=>Xn(hr,fr("VerifySoftwareToken"),Ar(),{...pr,...e}),mee=e=>Xn(hr,fr("AssociateSoftwareToken"),Ar(),{...pr,...e}),gee=({region:e})=>({url:new Rl(`https://${qj}.${e}.${Mj(e)}`)}),_t=({endpointOverride:e})=>t=>e?{url:new Rl(e)}:gee(t),vee=e=>Xn(hr,fr("GetTokensFromRefreshToken"),Ar(),{...pr,...e}),yee=async({tokens:e,authConfig:t,username:n,clientMetadata:r})=>{pt(t?.Cognito);const{userPoolId:o,userPoolClientId:s,userPoolEndpoint:i}=t.Cognito,c=Et(o);$j(e);const u=vee({endpointResolver:_t({endpointOverride:i})}),{AuthenticationResult:d}=await u({region:c},{ClientId:s,RefreshToken:e.refreshToken,DeviceKey:e.deviceMetadata?.deviceKey,ClientMetadata:r}),h=ei(d?.AccessToken??""),m=d?.IdToken?ei(d.IdToken):void 0,{iat:g}=h.payload;if(!g)throw new Ye({name:"iatNotFoundException",message:"iat not found in access token"});const v=g*1e3-new Date().getTime();return{accessToken:h,idToken:m,clockDrift:v,refreshToken:d?.RefreshToken??e.refreshToken,username:n}},bee=FJ(yee),See={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetails:"signInDetails",oauthMetadata:"oauthMetadata"};var K1;(function(e){e.InvalidAuthTokens="InvalidAuthTokens"})(K1||(K1={}));const wee={[K1.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}},xee=cy(wee),EN="CognitoIdentityServiceProvider";class Cee{getKeyValueStorage(){if(!this.keyValueStorage)throw new Ye({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(t){this.keyValueStorage=t}setAuthConfig(t){this.authConfig=t}async loadTokens(){try{const t=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(t.accessToken);if(!n)throw new Ye({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});const r=ei(n),o=await this.getKeyValueStorage().getItem(t.idToken),s=o?ei(o):void 0,i=await this.getKeyValueStorage().getItem(t.refreshToken)??void 0,c=await this.getKeyValueStorage().getItem(t.clockDrift)??"0",u=Number.parseInt(c),d=await this.getKeyValueStorage().getItem(t.signInDetails),h={accessToken:r,idToken:s,refreshToken:i,deviceMetadata:await this.getDeviceMetadata()??void 0,clockDrift:u,username:await this.getLastAuthUser()};return d&&(h.signInDetails=JSON.parse(d)),h}catch{return null}}async storeTokens(t){xee(t!==void 0,K1.InvalidAuthTokens);const n=t.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),n);const r=await this.getAuthKeys();await this.getKeyValueStorage().setItem(r.accessToken,t.accessToken.toString()),t.idToken?await this.getKeyValueStorage().setItem(r.idToken,t.idToken.toString()):await this.getKeyValueStorage().removeItem(r.idToken),t.refreshToken?await this.getKeyValueStorage().setItem(r.refreshToken,t.refreshToken):await this.getKeyValueStorage().removeItem(r.refreshToken),t.deviceMetadata&&(t.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(r.deviceKey,t.deviceMetadata.deviceKey),t.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(r.deviceGroupKey,t.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(r.randomPasswordKey,t.deviceMetadata.randomPassword)),t.signInDetails?await this.getKeyValueStorage().setItem(r.signInDetails,JSON.stringify(t.signInDetails)):await this.getKeyValueStorage().removeItem(r.signInDetails),await this.getKeyValueStorage().setItem(r.clockDrift,`${t.clockDrift}`)}async clearTokens(){const t=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(t.accessToken),this.getKeyValueStorage().removeItem(t.idToken),this.getKeyValueStorage().removeItem(t.clockDrift),this.getKeyValueStorage().removeItem(t.refreshToken),this.getKeyValueStorage().removeItem(t.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey()),this.getKeyValueStorage().removeItem(t.oauthMetadata)])}async getDeviceMetadata(t){const n=await this.getAuthKeys(t),r=await this.getKeyValueStorage().getItem(n.deviceKey),o=await this.getKeyValueStorage().getItem(n.deviceGroupKey),s=await this.getKeyValueStorage().getItem(n.randomPasswordKey);return s&&o&&r?{deviceKey:r,deviceGroupKey:o,randomPassword:s}:null}async clearDeviceMetadata(t){const n=await this.getAuthKeys(t);await Promise.all([this.getKeyValueStorage().removeItem(n.deviceKey),this.getKeyValueStorage().removeItem(n.deviceGroupKey),this.getKeyValueStorage().removeItem(n.randomPasswordKey)])}async getAuthKeys(t){pt(this.authConfig?.Cognito);const n=t??await this.getLastAuthUser();return Eee(EN,`${this.authConfig.Cognito.userPoolClientId}.${n}`)}getLastAuthUserKey(){pt(this.authConfig?.Cognito);const t=this.authConfig.Cognito.userPoolClientId;return`${EN}.${t}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??"username"}async setOAuthMetadata(t){const{oauthMetadata:n}=await this.getAuthKeys();await this.getKeyValueStorage().setItem(n,JSON.stringify(t))}async getOAuthMetadata(){const{oauthMetadata:t}=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(t);return n&&JSON.parse(n)}}const Eee=(e,t)=>WA(See)(`${e}`,t);function WA(e){const t=Object.values({...e});return(n,r)=>t.reduce((o,s)=>({...o,[s]:`${n}.${r}.${s}`}),{})}const _N="amplify-signin-with-hostedUI",Hs="CognitoIdentityServiceProvider";class Wj{constructor(t){this.keyValueStorage=t}async clearOAuthInflightData(){pt(this.cognitoConfig);const t=qs(Hs,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(t.inflightOAuth),this.keyValueStorage.removeItem(t.oauthPKCE),this.keyValueStorage.removeItem(t.oauthState)])}async clearOAuthData(){pt(this.cognitoConfig);const t=qs(Hs,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(_N),this.keyValueStorage.removeItem(t.oauthSignIn)}loadOAuthState(){pt(this.cognitoConfig);const t=qs(Hs,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(t.oauthState)}storeOAuthState(t){pt(this.cognitoConfig);const n=qs(Hs,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthState,t)}loadPKCE(){pt(this.cognitoConfig);const t=qs(Hs,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(t.oauthPKCE)}storePKCE(t){pt(this.cognitoConfig);const n=qs(Hs,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthPKCE,t)}setAuthConfig(t){this.cognitoConfig=t}async loadOAuthInFlight(){pt(this.cognitoConfig);const t=qs(Hs,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(t.inflightOAuth)==="true"}async storeOAuthInFlight(t){pt(this.cognitoConfig);const n=qs(Hs,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(n.inflightOAuth,`${t}`)}async loadOAuthSignIn(){pt(this.cognitoConfig);const t=qs(Hs,this.cognitoConfig.userPoolClientId),n=await this.keyValueStorage.getItem(_N),[r,o]=(await this.keyValueStorage.getItem(t.oauthSignIn))?.split(",")??[];return{isOAuthSignIn:r==="true"||n==="true",preferPrivateSession:o==="true"}}async storeOAuthSignIn(t,n=!1){pt(this.cognitoConfig);const r=qs(Hs,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(r.oauthSignIn,`${t},${n}`)}}const qs=(e,t)=>WA(aee)(e,t),ro=new Wj(hm),f3=[],_ee=e=>{f3.push(e)},Vj=()=>{for(;f3.length;)f3.pop()?.()};class kee{constructor(){this.waitForInflightOAuth=hy()?async()=>{if(await ro.loadOAuthInFlight())return this.inflightPromise?this.inflightPromise:(this.inflightPromise=new Promise((t,n)=>{_ee(t)}),this.inflightPromise)}:async()=>{}}setAuthConfig(t){ro.setAuthConfig(t.Cognito),this.authConfig=t}setTokenRefresher(t){this.tokenRefresher=t}setAuthTokenStore(t){this.tokenStore=t}getTokenStore(){if(!this.tokenStore)throw new Ye({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new Ye({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}setClientMetadataProvider(t){this.clientMetadataProvider=t}async getTokens(t){let n;try{pt(this.authConfig?.Cognito)}catch{return null}await this.waitForInflightOAuth(),this.inflightPromise=void 0,n=await this.getTokenStore().loadTokens();const r=await this.getTokenStore().getLastAuthUser();if(n===null)return null;const o=!!n?.idToken&&eN({expiresAt:(n.idToken?.payload?.exp??0)*1e3,clockDrift:n.clockDrift??0}),s=eN({expiresAt:(n.accessToken?.payload?.exp??0)*1e3,clockDrift:n.clockDrift??0});return(t?.forceRefresh||o||s)&&(n=await this.refreshTokens({tokens:n,username:r,clientMetadata:t?.clientMetadata??await this.clientMetadataProvider?.()}),n===null)?null:{accessToken:n?.accessToken,idToken:n?.idToken,signInDetails:n?.signInDetails}}async refreshTokens({tokens:t,username:n,clientMetadata:r}){try{const{signInDetails:o}=t,s=await this.getTokenRefresher()({tokens:t,authConfig:this.authConfig,username:n,clientMetadata:r});return s.signInDetails=o,await this.setTokens({tokens:s}),na.dispatch("auth",{event:"tokenRefresh"},"Auth",ta),s}catch(o){return this.handleErrors(o)}}handleErrors(t){if(rs(t),this.isAuthenticationError(t)&&this.clearTokens(),na.dispatch("auth",{event:"tokenRefresh_failure",data:{error:t}},"Auth",ta),t.name.startsWith("NotAuthorizedException"))return null;throw t}isAuthenticationError(t){return["NotAuthorizedException","TokenRevokedException","UserNotFoundException","PasswordResetRequiredException","UserNotConfirmedException","RefreshTokenReuseException"].some(r=>t?.name?.startsWith?.(r))}async setTokens({tokens:t}){return this.getTokenStore().storeTokens(t)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(t){return this.getTokenStore().getDeviceMetadata(t)}clearDeviceMetadata(t){return this.getTokenStore().clearDeviceMetadata(t)}setOAuthMetadata(t){return this.getTokenStore().setOAuthMetadata(t)}getOAuthMetadata(){return this.getTokenStore().getOAuthMetadata()}}class Aee{constructor(){this.authTokenStore=new Cee,this.authTokenStore.setKeyValueStorage(hm),this.tokenOrchestrator=new kee,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(bee)}getTokens(t={}){return this.tokenOrchestrator.getTokens(t)}setKeyValueStorage(t){this.authTokenStore.setKeyValueStorage(t)}setClientMetadataProvider(t){this.tokenOrchestrator.setClientMetadataProvider(t)}setAuthConfig(t){this.authTokenStore.setAuthConfig(t),this.tokenOrchestrator.setAuthConfig(t)}}const h1=new Aee,{tokenOrchestrator:lo}=h1;async function di(e){if(e.AccessToken){const t=ei(e.AccessToken),n=(t.payload.iat||0)*1e3,r=new Date().getTime(),o=n>0?n-r:0;let s,i,c;e.RefreshToken&&(i=e.RefreshToken),e.IdToken&&(s=ei(e.IdToken)),e?.NewDeviceMetadata&&(c=e.NewDeviceMetadata);const u={accessToken:t,idToken:s,refreshToken:i,clockDrift:o,deviceMetadata:c,username:e.username};e?.signInDetails&&(u.signInDetails=e.signInDetails),await lo.setTokens({tokens:u})}else throw new io({message:"Invalid tokens",name:"InvalidTokens",recoverySuggestion:"Check Cognito UserPool settings"})}const Tee="Unable to get user session following successful sign-in.",Ol=async()=>{try{na.dispatch("auth",{event:"signedIn",data:await vy()},"Auth",ta)}catch(e){throw e.name===gy?new Ye({name:nee,message:Tee,recoverySuggestion:"This most likely is due to auth tokens not being persisted. If you are using cookie store, please ensure cookies can be correctly set from your server."}):e}};function Gj(){return{active:!1}}const Iee=(e,t)=>{switch(t.type){case"SET_USERNAME":return{...e,username:t.value};case"SET_SESSION":return{...e,session:t.value};case"START":return{...e,active:!0};case"RESET":return Gj();default:return e}},Ree=e=>{let t=e(Gj(),{type:"RESET"});return{getState:()=>t,dispatch:n=>{t=e(t,n)}}},ul=Ree(Iee),Oee=180*1e3,t0="CognitoSignInState",Ya={username:`${t0}.username`,challengeName:`${t0}.challengeName`,signInSession:`${t0}.signInSession`,expiry:`${t0}.expiry`},Nee=(e,t)=>{switch(t.type){case"SET_SIGN_IN_SESSION":return n0({signInSession:t.value}),{...e,signInSession:t.value};case"SET_SIGN_IN_STATE":return n0(t.value),{...t.value};case"SET_CHALLENGE_NAME":return n0({challengeName:t.value}),{...e,challengeName:t.value};case"SET_USERNAME":return n0({username:t.value}),{...e,username:t.value};case"SET_INITIAL_STATE":return Pee();case"RESET_STATE":return Kj(),VA();default:return e}},Mee=e=>{const t=Number(e),n=Date.now();return t<=n},_s=()=>{oa.dispatch({type:"RESET_STATE"})},Kj=()=>{for(const e of Object.values(Ya))Ka.removeItem(e)},VA=()=>({username:void 0,challengeName:void 0,signInSession:void 0}),Pee=()=>{const e=Ka.getItem(Ya.expiry);if(!e||Mee(e))return Kj(),VA();const t=Ka.getItem(Ya.username)??void 0,n=Ka.getItem(Ya.challengeName)??void 0,r=Ka.getItem(Ya.signInSession)??void 0;return{username:t,challengeName:n,signInSession:r}},Dee=e=>{let t=e(VA(),{type:"SET_INITIAL_STATE"});return{getState:()=>t,dispatch:n=>{t=e(t,n)}}},oa=Dee(Nee);function Kc(e){oa.dispatch({type:"SET_SIGN_IN_STATE",value:e})}const n0=({challengeName:e,signInSession:t,username:n})=>{n&&Ka.setItem(Ya.username,n),e&&Ka.setItem(Ya.challengeName,e),t&&(Ka.setItem(Ya.signInSession,t),Ka.setItem(Ya.expiry,String(Date.now()+Oee)))},kN="Passkeys may not be supported on this device. Ensure your application is running in a secure context (HTTPS) and Web Authentication API is supported.";class ts extends io{constructor(t){super(t),this.constructor=ts,Object.setPrototypeOf(this,ts.prototype)}}var Yt;(function(e){e.PasskeyNotSupported="PasskeyNotSupported",e.PasskeyAlreadyExists="PasskeyAlreadyExists",e.InvalidPasskeyRegistrationOptions="InvalidPasskeyRegistrationOptions",e.InvalidPasskeyAuthenticationOptions="InvalidPasskeyAuthenticationOptions",e.RelyingPartyMismatch="RelyingPartyMismatch",e.PasskeyRegistrationFailed="PasskeyRegistrationFailed",e.PasskeyRetrievalFailed="PasskeyRetrievalFailed",e.PasskeyRegistrationCanceled="PasskeyRegistrationCanceled",e.PasskeyAuthenticationCanceled="PasskeyAuthenticationCanceled",e.PasskeyOperationAborted="PasskeyOperationAborted"})(Yt||(Yt={}));const Jw="User may have canceled the ceremony or another interruption has occurred. Check underlying error for details.",AN="Ensure your user pool is configured to support the WEB_AUTHN as an authentication factor.",$d={[Yt.PasskeyNotSupported]:{message:"Passkeys may not be supported on this device.",recoverySuggestion:kN},[Yt.InvalidPasskeyRegistrationOptions]:{message:"Invalid passkey registration options.",recoverySuggestion:AN},[Yt.InvalidPasskeyAuthenticationOptions]:{message:"Invalid passkey authentication options.",recoverySuggestion:AN},[Yt.PasskeyRegistrationFailed]:{message:"Device failed to create passkey.",recoverySuggestion:kN},[Yt.PasskeyRetrievalFailed]:{message:"Device failed to retrieve passkey.",recoverySuggestion:"Passkeys may not be available on this device. Try an alternative authentication factor like PASSWORD, EMAIL_OTP, or SMS_OTP."},[Yt.PasskeyAlreadyExists]:{message:"Passkey already exists in authenticator.",recoverySuggestion:"Proceed with existing passkey or try again after deleting the credential."},[Yt.PasskeyRegistrationCanceled]:{message:"Passkey registration ceremony has been canceled.",recoverySuggestion:Jw},[Yt.PasskeyAuthenticationCanceled]:{message:"Passkey authentication ceremony has been canceled.",recoverySuggestion:Jw},[Yt.PasskeyOperationAborted]:{message:"Passkey operation has been aborted.",recoverySuggestion:Jw},[Yt.RelyingPartyMismatch]:{message:"Relying party does not match current domain.",recoverySuggestion:"Ensure relying party identifier matches current domain."}},pf=cy($d,ts),Yj=e=>{if(e instanceof Error){if(e.name==="AbortError"){const{message:t,recoverySuggestion:n}=$d[Yt.PasskeyOperationAborted];return new ts({name:Yt.PasskeyOperationAborted,message:t,recoverySuggestion:n,underlyingError:e})}if(e.name==="SecurityError"){const{message:t,recoverySuggestion:n}=$d[Yt.RelyingPartyMismatch];return new ts({name:Yt.RelyingPartyMismatch,message:t,recoverySuggestion:n,underlyingError:e})}}return new ts({name:yl.Unknown,message:"An unknown error has occurred.",underlyingError:e})},Lee=e=>{if(e instanceof ts)return e;if(e instanceof Error&&e.name==="NotAllowedError"){const{message:t,recoverySuggestion:n}=$d[Yt.PasskeyAuthenticationCanceled];return new ts({name:Yt.PasskeyAuthenticationCanceled,message:t,recoverySuggestion:n,underlyingError:e})}return Yj(e)},Zj=()=>hy()&&window.isSecureContext&&"credentials"in navigator&&typeof window.PublicKeyCredential=="function",Js=e=>Fd.convert(new Uint8Array(e),{urlSafe:!0,skipPadding:!0}),mp=e=>Uint8Array.from(FA.convert(e,{urlSafe:!0}),t=>t.charCodeAt(0)).buffer,zee=e=>{const t=mp(e.user.id),n=mp(e.challenge),r=(e.excludeCredentials||[]).map(o=>({...o,id:mp(o.id)}));return{...e,excludeCredentials:r,challenge:n,user:{...e.user,id:t}}},Uee=e=>{const t={clientDataJSON:Js(e.response.clientDataJSON),attestationObject:Js(e.response.attestationObject),transports:e.response.getTransports(),publicKeyAlgorithm:e.response.getPublicKeyAlgorithm(),authenticatorData:Js(e.response.getAuthenticatorData())},n=e.response.getPublicKey();n&&(t.publicKey=Js(n));const r={type:e.type,id:e.id,rawId:Js(e.rawId),clientExtensionResults:e.getClientExtensionResults(),response:t};return e.authenticatorAttachment&&(r.authenticatorAttachment=e.authenticatorAttachment),r},jee=e=>{const t=mp(e.challenge),n=(e.allowCredentials||[]).map(r=>({...r,id:mp(r.id)}));return{...e,challenge:t,allowCredentials:n}},Fee=e=>{const t={clientDataJSON:Js(e.response.clientDataJSON),authenticatorData:Js(e.response.authenticatorData),signature:Js(e.response.signature)};e.response.userHandle&&(t.userHandle=Js(e.response.userHandle));const n={id:e.id,rawId:Js(e.rawId),type:e.type,clientExtensionResults:e.getClientExtensionResults(),response:t};return e.authenticatorAttachment&&(n.authenticatorAttachment=e.authenticatorAttachment),n};function $ee(e){pf([!!e,!!e?.challenge,!!e?.user,!!e?.rp,!!e?.pubKeyCredParams].every(Boolean),Yt.InvalidPasskeyRegistrationOptions)}function Bee(e){pf(e&&e instanceof PublicKeyCredential&&e.response instanceof AuthenticatorAttestationResponse,Yt.PasskeyRegistrationFailed)}function Hee(e){pf(e&&e instanceof PublicKeyCredential&&e.response instanceof AuthenticatorAssertionResponse,Yt.PasskeyRetrievalFailed)}const qee=async e=>{try{const t=Zj();pf(t,Yt.PasskeyNotSupported);const n=jee(e),r=await navigator.credentials.get({publicKey:n});return Hee(r),Fee(r)}catch(t){throw Lee(t)}},Wee=e=>Xn(hr,fr("ConfirmDevice"),Ar(),{...pr,...e}),p1={convert(e){return new TextEncoder().encode(e)}};function Me(e,t){e!=null&&this.fromString(e,t)}function Wr(){return new Me(null,null)}let ml;const Vee=0xdeadbeefcafe,TN=(Vee&16777215)===15715070;function Gee(e,t,n,r,o,s){for(;--s>=0;){const i=t*this[e++]+n[r]+o;o=Math.floor(i/67108864),n[r++]=i&67108863}return o}function Kee(e,t,n,r,o,s){const i=t&32767,c=t>>15;for(;--s>=0;){let u=this[e]&32767;const d=this[e++]>>15,h=c*u+d*i;u=i*u+((h&32767)<<15)+n[r]+(o&1073741823),o=(u>>>30)+(h>>>15)+c*d+(o>>>30),n[r++]=u&1073741823}return o}function Yee(e,t,n,r,o,s){const i=t&16383,c=t>>14;for(;--s>=0;){let u=this[e]&16383;const d=this[e++]>>14,h=c*u+d*i;u=i*u+((h&16383)<<14)+n[r]+o,o=(u>>28)+(h>>14)+c*d,n[r++]=u&268435455}return o}const IN=typeof navigator<"u";IN&&TN&&navigator.appName==="Microsoft Internet Explorer"?(Me.prototype.am=Kee,ml=30):IN&&TN&&navigator.appName!=="Netscape"?(Me.prototype.am=Gee,ml=26):(Me.prototype.am=Yee,ml=28);Me.prototype.DB=ml;Me.prototype.DM=(1<<ml)-1;Me.prototype.DV=1<<ml;const GA=52;Me.prototype.FV=Math.pow(2,GA);Me.prototype.F1=GA-ml;Me.prototype.F2=2*ml-GA;const Zee="0123456789abcdefghijklmnopqrstuvwxyz",yy=[];let mf,Qo;mf=48;for(Qo=0;Qo<=9;++Qo)yy[mf++]=Qo;mf=97;for(Qo=10;Qo<36;++Qo)yy[mf++]=Qo;mf=65;for(Qo=10;Qo<36;++Qo)yy[mf++]=Qo;function RN(e){return Zee.charAt(e)}function Xee(e,t){const n=yy[e.charCodeAt(t)];return n??-1}function Qee(e){for(let t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function Jee(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function KA(e){const t=Wr();return t.fromInt(e),t}function ete(e,t){let n;if(t===16)n=4;else if(t===8)n=3;else if(t===2)n=1;else if(t===32)n=5;else if(t===4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;let r=e.length,o=!1,s=0;for(;--r>=0;){const i=Xee(e,r);if(i<0){e.charAt(r)==="-"&&(o=!0);continue}o=!1,s===0?this[this.t++]=i:s+n>this.DB?(this[this.t-1]|=(i&(1<<this.DB-s)-1)<<s,this[this.t++]=i>>this.DB-s):this[this.t-1]|=i<<s,s+=n,s>=this.DB&&(s-=this.DB)}this.clamp(),o&&Me.ZERO.subTo(this,this)}function tte(){const e=this.s&this.DM;for(;this.t>0&&this[this.t-1]==e;)--this.t}function nte(e){if(this.s<0)return"-"+this.negate().toString(e);let t;if(e==16)t=4;else if(e===8)t=3;else if(e===2)t=1;else if(e===32)t=5;else if(e===4)t=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");const n=(1<<t)-1;let r,o=!1,s="",i=this.t,c=this.DB-i*this.DB%t;if(i-- >0)for(c<this.DB&&(r=this[i]>>c)>0&&(o=!0,s=RN(r));i>=0;)c<t?(r=(this[i]&(1<<c)-1)<<t-c,r|=this[--i]>>(c+=this.DB-t)):(r=this[i]>>(c-=t)&n,c<=0&&(c+=this.DB,--i)),r>0&&(o=!0),o&&(s+=RN(r));return o?s:"0"}function rte(){const e=Wr();return Me.ZERO.subTo(this,e),e}function ote(){return this.s<0?this.negate():this}function ste(e){let t=this.s-e.s;if(t!=0)return t;let n=this.t;if(t=n-e.t,t!=0)return this.s<0?-t:t;for(;--n>=0;)if((t=this[n]-e[n])!=0)return t;return 0}function YA(e){let t=1,n;return(n=e>>>16)!==0&&(e=n,t+=16),(n=e>>8)!==0&&(e=n,t+=8),(n=e>>4)!==0&&(e=n,t+=4),(n=e>>2)!==0&&(e=n,t+=2),(n=e>>1)!==0&&(e=n,t+=1),t}function ate(){return this.t<=0?0:this.DB*(this.t-1)+YA(this[this.t-1]^this.s&this.DM)}function ite(e,t){let n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}function lte(e,t){for(let n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}function cte(e,t){const n=e%this.DB,r=this.DB-n,o=(1<<r)-1,s=Math.floor(e/this.DB);let i=this.s<<n&this.DM,c;for(c=this.t-1;c>=0;--c)t[c+s+1]=this[c]>>r|i,i=(this[c]&o)<<n;for(c=s-1;c>=0;--c)t[c]=0;t[s]=i,t.t=this.t+s+1,t.s=this.s,t.clamp()}function ute(e,t){t.s=this.s;const n=Math.floor(e/this.DB);if(n>=this.t){t.t=0;return}const r=e%this.DB,o=this.DB-r,s=(1<<r)-1;t[0]=this[n]>>r;for(let i=n+1;i<this.t;++i)t[i-n-1]|=(this[i]&s)<<o,t[i-n]=this[i]>>r;r>0&&(t[this.t-n-1]|=(this.s&s)<<o),t.t=this.t-n,t.clamp()}function dte(e,t){let n=0,r=0;const o=Math.min(e.t,this.t);for(;n<o;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}function fte(e,t){const n=this.abs(),r=e.abs();let o=n.t;for(t.t=o+r.t;--o>=0;)t[o]=0;for(o=0;o<r.t;++o)t[o+n.t]=n.am(0,r[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!==e.s&&Me.ZERO.subTo(t,t)}function hte(e){const t=this.abs();let n=e.t=2*t.t;for(;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){const r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}function pte(e,t,n){const r=e.abs();if(r.t<=0)return;const o=this.abs();if(o.t<r.t){t?.fromInt(0),n!=null&&this.copyTo(n);return}n===null&&(n=Wr());const s=Wr(),i=this.s,c=e.s,u=this.DB-YA(r[r.t-1]);u>0?(r.lShiftTo(u,s),o.lShiftTo(u,n)):(r.copyTo(s),o.copyTo(n));const d=s.t,h=s[d-1];if(h===0)return;const m=h*(1<<this.F1)+(d>1?s[d-2]>>this.F2:0),g=this.FV/m,v=(1<<this.F1)/m,S=1<<this.F2;let b=n.t,C=b-d;const E=t===null?Wr():t;for(s.dlShiftTo(C,E),n.compareTo(E)>=0&&(n[n.t++]=1,n.subTo(E,n)),Me.ONE.dlShiftTo(d,E),E.subTo(s,s);s.t<d;)s[s.t++]=0;for(;--C>=0;){let k=n[--b]===h?this.DM:Math.floor(n[b]*g+(n[b-1]+S)*v);if((n[b]+=s.am(0,k,n,C,0,d))<k)for(s.dlShiftTo(C,E),n.subTo(E,n);n[b]<--k;)n.subTo(E,n)}t!==null&&(n.drShiftTo(d,t),i!==c&&Me.ZERO.subTo(t,t)),n.t=d,n.clamp(),u>0&&n.rShiftTo(u,n),i<0&&Me.ZERO.subTo(n,n)}function mte(e){const t=Wr();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(Me.ZERO)>0&&e.subTo(t,t),t}function gte(){if(this.t<1)return 0;const e=this[0];if((e&1)===0)return 0;let t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function vte(e){return this.compareTo(e)===0}function yte(e,t){let n=0,r=0;const o=Math.min(e.t,this.t);for(;n<o;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()}function bte(e){const t=Wr();return this.addTo(e,t),t}function Ste(e){const t=Wr();return this.subTo(e,t),t}function wte(e){const t=Wr();return this.multiplyTo(e,t),t}function xte(e){const t=Wr();return this.divRemTo(e,t,null),t}function gf(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function Cte(e){const t=Wr();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Me.ZERO)>0&&this.m.subTo(t,t),t}function Ete(e){const t=Wr();return e.copyTo(t),this.reduce(t),t}function _te(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(let t=0;t<this.m.t;++t){let n=e[t]&32767;const r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function kte(e,t){e.squareTo(t),this.reduce(t)}function Ate(e,t,n){e.multiplyTo(t,n),this.reduce(n)}gf.prototype.convert=Cte;gf.prototype.revert=Ete;gf.prototype.reduce=_te;gf.prototype.mulTo=Ate;gf.prototype.sqrTo=kte;function Tte(e,t,n){let r=e.bitLength(),o,s=KA(1);const i=new gf(t);if(r<=0)return s;r<18?o=1:r<48?o=3:r<144?o=4:r<768?o=5:o=6;const c=[];let u=3;const d=o-1,h=(1<<o)-1;if(c[1]=i.convert(this),o>1){const E=Wr();for(i.sqrTo(c[1],E);u<=h;)c[u]=Wr(),i.mulTo(E,c[u-2],c[u]),u+=2}let m=e.t-1,g,v=!0,S=Wr(),b;for(r=YA(e[m])-1;m>=0;){for(r>=d?g=e[m]>>r-d&h:(g=(e[m]&(1<<r+1)-1)<<d-r,m>0&&(g|=e[m-1]>>this.DB+r-d)),u=o;(g&1)===0;)g>>=1,--u;if((r-=u)<0&&(r+=this.DB,--m),v)c[g].copyTo(s),v=!1;else{for(;u>1;)i.sqrTo(s,S),i.sqrTo(S,s),u-=2;u>0?i.sqrTo(s,S):(b=s,s=S,S=b),i.mulTo(S,c[g],s)}for(;m>=0&&(e[m]&1<<r)===0;)i.sqrTo(s,S),b=s,s=S,S=b,--r<0&&(r=this.DB-1,--m)}const C=i.revert(s);return n(null,C),C}Me.prototype.copyTo=Qee;Me.prototype.fromInt=Jee;Me.prototype.fromString=ete;Me.prototype.clamp=tte;Me.prototype.dlShiftTo=ite;Me.prototype.drShiftTo=lte;Me.prototype.lShiftTo=cte;Me.prototype.rShiftTo=ute;Me.prototype.subTo=dte;Me.prototype.multiplyTo=fte;Me.prototype.squareTo=hte;Me.prototype.divRemTo=pte;Me.prototype.invDigit=gte;Me.prototype.addTo=yte;Me.prototype.toString=nte;Me.prototype.negate=rte;Me.prototype.abs=ote;Me.prototype.compareTo=ste;Me.prototype.bitLength=ate;Me.prototype.mod=mte;Me.prototype.equals=vte;Me.prototype.add=bte;Me.prototype.subtract=Ste;Me.prototype.multiply=wte;Me.prototype.divide=xte;Me.prototype.modPow=Tte;Me.ZERO=KA(0);Me.ONE=KA(1);const Ite=async({a:e,g:t,k:n,x:r,B:o,N:s,U:i})=>new Promise((c,u)=>{t.modPow(r,s,(d,h)=>{if(d){u(d);return}o.subtract(n.multiply(h)).modPow(e.add(i.multiply(r)),s,(m,g)=>{if(m){u(m);return}c(g.mod(s))})})}),Rte="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",Xj={},h3={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),Xj[e]=t,h3[t]=e}const Bd=e=>{if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(r in h3)t[n/2]=h3[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t},ZA=e=>{let t="";for(let n=0;n<e.byteLength;n++)t+=Xj[e[n]];return t},p3=e=>{const t=new Dc;t.update(e);const n=t.digestSync(),r=ZA(n);return new Array(64-r.length).join("0")+r},m1=e=>p3(Bd(e)),Ote=/^[89a-f]/i,Ha=e=>{if(!(e instanceof Me))throw new Error("Not a BigInteger");const t=e.compareTo(Me.ZERO)<0;let n=e.abs().toString(16);if(n=n.length%2!==0?`0${n}`:n,n=Ote.test(n)?`00${n}`:n,t){const r=n.split("").map(s=>{const i=~parseInt(s,16)&15;return"0123456789ABCDEF".charAt(i)}).join("");n=new Me(r,16).add(Me.ONE).toString(16),n.toUpperCase().startsWith("FF8")&&(n=n.substring(2))}return n},Nte=({A:e,B:t})=>{const n=new Me(m1(Ha(e)+Ha(t)),16);if(n.equals(Me.ZERO))throw new Error("U cannot be zero.");return n},Mte=(e,t,n)=>{const r=new Dc(t);r.update(e);const o=r.digestSync(),s=new Dc(o);return s.update(n),s.digestSync().slice(0,16)},XA=e=>{const t=new qA().random(e).toString();return Bd(t)},Pte=()=>Fd.convert(XA(40));class Dte{constructor({userPoolName:t,a:n,g:r,A:o,N:s}){this.encoder=p1,this.userPoolName=t,this.a=n,this.g=r,this.A=o,this.N=s,this.k=new Me(m1(`${Ha(s)}${Ha(r)}`),16)}getRandomPassword(){if(!this.randomPassword)throw new Ye({name:"EmptyBigIntegerRandomPassword",message:"random password is empty"});return this.randomPassword}getSaltToHashDevices(){if(!this.saltToHashDevices)throw new Ye({name:"EmptyBigIntegersaltToHashDevices",message:"saltToHashDevices is empty"});return this.saltToHashDevices}getVerifierDevices(){if(!this.verifierDevices)throw new Ye({name:"EmptyBigIntegerVerifierDevices",message:"verifyDevices is empty"});return this.verifierDevices}async generateHashDevice(t,n){this.randomPassword=Pte();const r=`${t}${n}:${this.randomPassword}`,o=p3(r),s=ZA(XA(16));return this.saltToHashDevices=Ha(new Me(s,16)),new Promise((i,c)=>{this.g.modPow(new Me(m1(this.saltToHashDevices+o),16),this.N,(u,d)=>{if(u){c(u);return}this.verifierDevices=Ha(d),i()})})}async getPasswordAuthenticationKey({username:t,password:n,serverBValue:r,salt:o}){if(r.mod(this.N).equals(Me.ZERO))throw new Error("B cannot be zero.");const s=Nte({A:this.A,B:r}),i=`${this.userPoolName}${t}:${n}`,c=p3(i),u=new Me(m1(Ha(o)+c),16),d=await Ite({a:this.a,g:this.g,k:this.k,x:u,B:r,N:this.N,U:s}),h=this.encoder.convert("Caldera Derived Key"),m=this.encoder.convert(""),g=new Uint8Array(h.byteLength+m.byteLength);return g.set(h,0),g.set(m,h.byteLength),Mte(Bd(Ha(d)),Bd(Ha(s)),g)}}const Lte=async({a:e,g:t,N:n})=>new Promise((r,o)=>{t.modPow(e,n,(s,i)=>{if(s){o(s);return}if(i.mod(n).equals(Me.ZERO)){o(new Error("Illegal parameter. A mod N cannot be 0."));return}r(i)})}),mm=async e=>{const t=new Me(Rte,16),n=new Me("2",16),r=zte(),o=await Lte({a:r,g:n,N:t});return new Dte({userPoolName:e,a:r,g:n,A:o,N:t})},zte=()=>{const e=ZA(XA(128));return new Me(e,16)};async function Yc({userPoolId:e,userPoolEndpoint:t,newDeviceMetadata:n,accessToken:r}){if(!n)return;const o=e.split("_")[1]||"",s=await mm(o),i=n?.DeviceKey,c=n?.DeviceGroupKey;try{await s.generateHashDevice(c??"",i??"")}catch{return}const u={Salt:Fd.convert(Bd(s.getSaltToHashDevices())),PasswordVerifier:Fd.convert(Bd(s.getVerifierDevices()))},d=s.getRandomPassword();try{return await Wee({endpointResolver:_t({endpointOverride:t})})({region:Et(e)},{AccessToken:r,DeviceName:await $J(),DeviceKey:n?.DeviceKey,DeviceSecretVerifierConfig:u}),{deviceKey:i,deviceGroupKey:c,randomPassword:d}}catch{return}}async function Ute(e){const t=Xt.getConfig().Auth?.Cognito;pt(t);const{username:n,signInSession:r,signInDetails:o,challengeName:s}=oa.getState();if(s!=="WEB_AUTHN"||!n)throw new Ye({name:ra.SignInException,message:"Unable to proceed due to invalid sign in state."});const{CREDENTIAL_REQUEST_OPTIONS:i}=e;pf(!!i,Yt.InvalidPasskeyAuthenticationOptions);const c=await qee(JSON.parse(i)),u=No({endpointResolver:_t({endpointOverride:t.userPoolEndpoint})}),{ChallengeName:d,ChallengeParameters:h,AuthenticationResult:m,Session:g}=await u({region:Et(t.userPoolId),userAgentValue:jt(nt.ConfirmSignIn)},{ChallengeName:"WEB_AUTHN",ChallengeResponses:{USERNAME:n,CREDENTIAL:JSON.stringify(c)},ClientId:t.userPoolClientId,Session:r});if(Kc({signInSession:g,username:n,challengeName:d,signInDetails:o}),m)return await di({...m,username:n,NewDeviceMetadata:await Yc({userPoolId:t.userPoolId,userPoolEndpoint:t.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:o}),oa.dispatch({type:"RESET_STATE"}),await Ol(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};if(d==="WEB_AUTHN")throw new Ye({name:ra.SignInException,message:"Sequential WEB_AUTHN challenges returned from underlying service cannot be handled."});return{challengeName:d,challengeParameters:h}}function mr({username:e,userPoolId:t,userPoolClientId:n}){if(typeof window>"u")return;const r=window.AmazonCognitoAdvancedSecurityData;if(typeof r>"u")return;const o=r.getData(e,t,n);return o?{EncodedData:o}:{}}const jte=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Fte=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Qj=()=>{const e=new Date,t=Fte[e.getUTCDay()],n=jte[e.getUTCMonth()],r=e.getUTCDate();let o=e.getUTCHours();o<10&&(o=`0${o}`);let s=e.getUTCMinutes();s<10&&(s=`0${s}`);let i=e.getUTCSeconds();i<10&&(i=`0${i}`);const c=e.getUTCFullYear();return`${t} ${n} ${r} ${o}:${s}:${i} UTC ${c}`},Jj=({userPoolName:e,username:t,challengeParameters:n,dateNow:r,hkdf:o})=>{const s=p1.convert(e),i=p1.convert(t),c=$te(n.SECRET_BLOCK),u=p1.convert(r),d=new Uint8Array(s.byteLength+i.byteLength+c.byteLength+u.byteLength);d.set(s,0),d.set(i,s.byteLength),d.set(c,s.byteLength+i.byteLength),d.set(u,s.byteLength+i.byteLength+c.byteLength);const h=new Dc(o);h.update(d);const m=h.digestSync();return Fd.convert(m)},$te=e=>{const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=FA.convert(n),o=new Uint8Array(r.length);for(let s=0;s<r.length;++s)o[s]=r.charCodeAt(s);return o};async function gm({username:e,config:t,clientMetadata:n,session:r,tokenOrchestrator:o}){const{userPoolId:s,userPoolEndpoint:i}=t,c=t.userPoolClientId,u=await o?.getDeviceMetadata(e);Bj(u);const d=await mm(u.deviceGroupKey),h={USERNAME:e,SRP_A:d.A.toString(16),DEVICE_KEY:u.deviceKey},m={ChallengeName:"DEVICE_SRP_AUTH",ClientId:c,ChallengeResponses:h,ClientMetadata:n,Session:r},g=No({endpointResolver:_t({endpointOverride:i})}),{ChallengeParameters:v,Session:S}=await g({region:Et(s)},m);return Bte(e,v,n,S,d,t,o)}async function Bte(e,t,n,r,o,{userPoolId:s,userPoolClientId:i,userPoolEndpoint:c},u){const d=await u?.getDeviceMetadata(e);Bj(d);const h=new Me(t?.SRP_B,16),m=new Me(t?.SALT,16),{deviceKey:g}=d,{deviceGroupKey:v}=d,S=await o.getPasswordAuthenticationKey({username:d.deviceKey,password:d.randomPassword,serverBValue:h,salt:m}),b=Qj(),C={USERNAME:t?.USERNAME??e,PASSWORD_CLAIM_SECRET_BLOCK:t?.SECRET_BLOCK,TIMESTAMP:b,PASSWORD_CLAIM_SIGNATURE:Jj({username:g,userPoolName:v,challengeParameters:t,dateNow:b,hkdf:S}),DEVICE_KEY:g},E=mr({username:e,userPoolId:s,userPoolClientId:i}),k={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:i,ChallengeResponses:C,Session:r,ClientMetadata:n,UserContextData:E};return No({endpointResolver:_t({endpointOverride:c})})({region:Et(s)},k)}async function QA(e,t,n,r,o,s,i){const{userPoolId:c,userPoolClientId:u,userPoolEndpoint:d}=s,h=c?.split("_")[1]||"",m=new Me(t?.SRP_B,16),g=new Me(t?.SALT,16),v=t?.USER_ID_FOR_SRP;if(!v)throw new Ye({name:"EmptyUserIdForSRPException",message:"USER_ID_FOR_SRP was not found in challengeParameters"});const S=await o.getPasswordAuthenticationKey({username:v,password:e,serverBValue:m,salt:g}),b=Qj(),C={USERNAME:v,PASSWORD_CLAIM_SECRET_BLOCK:t?.SECRET_BLOCK,TIMESTAMP:b,PASSWORD_CLAIM_SIGNATURE:Jj({username:v,userPoolName:h,challengeParameters:t,dateNow:b,hkdf:S})},E=await i.getDeviceMetadata(v);E&&E.deviceKey&&(C.DEVICE_KEY=E.deviceKey);const k=mr({username:v,userPoolId:c,userPoolClientId:u}),A={ChallengeName:"PASSWORD_VERIFIER",ChallengeResponses:C,ClientMetadata:n,Session:r,ClientId:u,UserContextData:k},N=await No({endpointResolver:_t({endpointOverride:d})})({region:Et(c)},A);return N.ChallengeName==="DEVICE_SRP_AUTH"?gm({username:v,config:s,clientMetadata:n,session:N.Session,tokenOrchestrator:i}):N}async function vf(e,t,n,r){try{return await e(...t)}catch(o){if(o instanceof Ye&&o.name==="ResourceNotFoundException"&&o.message.includes("Device does not exist."))return await r.clearDeviceMetadata(n),e(...t);throw o}}function Zc(e){const{dispatch:t}=oa;t({type:"SET_USERNAME",value:e})}async function eF({username:e,password:t,clientMetadata:n,config:r,tokenOrchestrator:o,authFlow:s,preferredChallenge:i}){const{userPoolId:c,userPoolClientId:u,userPoolEndpoint:d}=r,h=c?.split("_")[1]||"",m=await mm(h),g={USERNAME:e,SRP_A:m.A.toString(16)};s==="USER_AUTH"&&i&&(g.PREFERRED_CHALLENGE=i);const v=mr({username:e,userPoolId:c,userPoolClientId:u}),S={AuthFlow:s,AuthParameters:g,ClientMetadata:n,ClientId:u,UserContextData:v},C=await pm({endpointResolver:_t({endpointOverride:d})})({region:Et(c),userAgentValue:jt(nt.SignIn)},S),{ChallengeParameters:E,Session:k}=C,A=E?.USERNAME??e;return Zc(A),C.ChallengeName==="PASSWORD_VERIFIER"?vf(QA,[t,E,n,k,m,r,o],A,o):C}async function Hte({username:e,session:t,selectedChallenge:n,config:r,clientMetadata:o}){return No({endpointResolver:_t({endpointOverride:r.userPoolEndpoint})})({region:Et(r.userPoolId),userAgentValue:jt(nt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:{USERNAME:e,ANSWER:n},ClientId:r.userPoolClientId,Session:t,ClientMetadata:o})}async function qte(e,t,n,r,o){const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:c}=r,u={ANSWER:"PASSWORD",USERNAME:e,PASSWORD:t},d=mr({username:e,userPoolId:s,userPoolClientId:i}),m=await No({endpointResolver:_t({endpointOverride:c})})({region:Et(s),userAgentValue:jt(nt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:u,ClientId:i,ClientMetadata:n,Session:o,UserContextData:d}),g=m.ChallengeParameters?.USERNAME??e;return Zc(g),m}async function Wte(e,t,n,r,o,s){const{userPoolId:i,userPoolClientId:c,userPoolEndpoint:u}=r,d=i.split("_")[1]||"",h=await mm(d),m={ANSWER:"PASSWORD_SRP",USERNAME:e,SRP_A:h.A.toString(16)},g=mr({username:e,userPoolId:i,userPoolClientId:c}),S=await No({endpointResolver:_t({endpointOverride:u})})({region:Et(i),userAgentValue:jt(nt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:m,ClientId:c,ClientMetadata:n,Session:o,UserContextData:g}),b=S.ChallengeParameters?.USERNAME??e;return Zc(b),S.ChallengeName==="PASSWORD_VERIFIER"?vf(QA,[t,S.ChallengeParameters,n,S.Session,h,r,s],b,s):S}const m3="userAttributes.";function Vte(e){return"isSignedIn"in e&&"nextStep"in e}async function Gte({challengeResponse:e,clientMetadata:t,session:n,username:r,config:o,tokenOrchestrator:s}){const{userPoolId:i,userPoolClientId:c,userPoolEndpoint:u}=o,d={USERNAME:r,ANSWER:e},h=await s?.getDeviceMetadata(r);h&&h.deviceKey&&(d.DEVICE_KEY=h.deviceKey);const m=mr({username:r,userPoolId:i,userPoolClientId:c}),g={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:d,Session:n,ClientMetadata:t,ClientId:c,UserContextData:m},S=await No({endpointResolver:_t({endpointOverride:u})})({region:Et(i),userAgentValue:jt(nt.ConfirmSignIn)},g);return S.ChallengeName==="DEVICE_SRP_AUTH"?gm({username:r,config:o,clientMetadata:t,session:S.Session,tokenOrchestrator:s}):S}async function Kte({challengeResponse:e,username:t,clientMetadata:n,session:r,deviceName:o,config:s}){const{userPoolId:i,userPoolClientId:c,userPoolEndpoint:u}=s;if(e==="EMAIL")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["EMAIL_OTP"]'},$metadata:{}};if(e==="TOTP")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["SOFTWARE_TOKEN_MFA"]'},$metadata:{}};const d={USERNAME:t};if(/^\d+$/.test(e)){const g=pee({endpointResolver:_t({endpointOverride:u})}),{Session:v}=await g({region:Et(i),userAgentValue:jt(nt.ConfirmSignIn)},{UserCode:e,Session:r,FriendlyDeviceName:o});oa.dispatch({type:"SET_SIGN_IN_SESSION",value:v});const S={ChallengeName:"MFA_SETUP",ChallengeResponses:d,Session:v,ClientMetadata:n,ClientId:c};return No({endpointResolver:_t({endpointOverride:u})})({region:Et(i),userAgentValue:jt(nt.ConfirmSignIn)},S)}if(e.includes("@")){d.EMAIL=e;const g={ChallengeName:"MFA_SETUP",ChallengeResponses:d,Session:r,ClientMetadata:n,ClientId:c};return No({endpointResolver:_t({endpointOverride:u})})({region:Et(i),userAgentValue:jt(nt.ConfirmSignIn)},g)}throw new Ye({name:ra.SignInException,message:`Cannot proceed with MFA setup using challengeResponse: ${e}`,recoverySuggestion:'Try passing "EMAIL", "TOTP", a valid email, or OTP code as the challengeResponse.'})}async function Yte({challengeResponse:e,username:t,clientMetadata:n,session:r,config:o}){const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:c}=o;xn(e==="TOTP"||e==="SMS"||e==="EMAIL",tt.IncorrectMFAMethod);const u={USERNAME:t,ANSWER:sne(e)},d=mr({username:t,userPoolId:s,userPoolClientId:i}),h={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:u,Session:r,ClientMetadata:n,ClientId:i,UserContextData:d};return No({endpointResolver:_t({endpointOverride:c})})({region:Et(s),userAgentValue:jt(nt.ConfirmSignIn)},h)}async function Zte({challengeResponse:e,clientMetadata:t,session:n,username:r,requiredAttributes:o,config:s}){const{userPoolId:i,userPoolClientId:c,userPoolEndpoint:u}=s,d={...rne(o),NEW_PASSWORD:e,USERNAME:r},h=mr({username:r,userPoolId:i,userPoolClientId:c}),m={ChallengeName:"NEW_PASSWORD_REQUIRED",ChallengeResponses:d,ClientMetadata:t,Session:n,ClientId:c,UserContextData:h};return No({endpointResolver:_t({endpointOverride:u})})({region:Et(i),userAgentValue:jt(nt.ConfirmSignIn)},m)}async function Xte(e,t,n,r,o){const{userPoolClientId:s,userPoolId:i,userPoolEndpoint:c}=r,u={USERNAME:e,PASSWORD:t},d=await o.getDeviceMetadata(e);d&&d.deviceKey&&(u.DEVICE_KEY=d.deviceKey);const h=mr({username:e,userPoolId:i,userPoolClientId:s}),m={AuthFlow:"USER_PASSWORD_AUTH",AuthParameters:u,ClientMetadata:n,ClientId:s,UserContextData:h},v=await pm({endpointResolver:_t({endpointOverride:c})})({region:Et(i),userAgentValue:jt(nt.SignIn)},m),S=v.ChallengeParameters?.USERNAME??v.ChallengeParameters?.USER_ID_FOR_SRP??e;return Zc(S),v.ChallengeName==="DEVICE_SRP_AUTH"?gm({username:S,config:r,clientMetadata:n,session:v.Session,tokenOrchestrator:o}):v}async function Qte(e,t,n,r,o){return eF({username:e,password:t,clientMetadata:n,config:r,tokenOrchestrator:o,authFlow:"USER_SRP_AUTH"})}async function Jte(e,t,n,r){const{userPoolClientId:o,userPoolId:s,userPoolEndpoint:i}=n,c={USERNAME:e},u=await r.getDeviceMetadata(e);u&&u.deviceKey&&(c.DEVICE_KEY=u.deviceKey);const d=mr({username:e,userPoolId:s,userPoolClientId:o}),h={AuthFlow:"CUSTOM_AUTH",AuthParameters:c,ClientMetadata:t,ClientId:o,UserContextData:d},g=await pm({endpointResolver:_t({endpointOverride:i})})({region:Et(s),userAgentValue:jt(nt.SignIn)},h),v=g.ChallengeParameters?.USERNAME??e;return Zc(v),g.ChallengeName==="DEVICE_SRP_AUTH"?gm({username:v,config:n,clientMetadata:t,session:g.Session,tokenOrchestrator:r}):g}async function ene(e,t,n,r,o){pt(r);const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:c}=r,u=s?.split("_")[1]||"",d=await mm(u),h={USERNAME:e,SRP_A:d.A.toString(16),CHALLENGE_NAME:"SRP_A"},m=mr({username:e,userPoolId:s,userPoolClientId:i}),g={AuthFlow:"CUSTOM_AUTH",AuthParameters:h,ClientMetadata:n,ClientId:i,UserContextData:m},v=pm({endpointResolver:_t({endpointOverride:c})}),{ChallengeParameters:S,Session:b}=await v({region:Et(s),userAgentValue:jt(nt.SignIn)},g),C=S?.USERNAME??e;return Zc(C),vf(QA,[t,S,n,b,d,r,o],C,o)}async function Xc(e){const{challengeName:t,challengeParameters:n,availableChallenges:r}=e,o=Xt.getConfig().Auth?.Cognito;switch(pt(o),t){case"CUSTOM_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",additionalInfo:n}};case"MFA_SETUP":{const{signInSession:s,username:i}=oa.getState(),c=ON(NN(n.MFAS_CAN_SETUP))||[],u=ine(c),d=u.includes("TOTP"),h=u.includes("EMAIL");if(d&&h)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION",allowedMFATypes:u}};if(h)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"}};if(d){const m=mee({endpointResolver:_t({endpointOverride:o.userPoolEndpoint})}),{Session:g,SecretCode:v}=await m({region:Et(o.userPoolId)},{Session:s});return oa.dispatch({type:"SET_SIGN_IN_SESSION",value:g}),{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_TOTP_SETUP",totpSetupDetails:tne(v,i)}}}throw new Ye({name:ra.SignInException,message:`Cannot initiate MFA setup from available types: ${c}`})}case"NEW_PASSWORD_REQUIRED":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",missingAttributes:nne(n.requiredAttributes)}};case"SELECT_MFA_TYPE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION",allowedMFATypes:ON(NN(n.MFAS_CAN_CHOOSE))}};case"SMS_OTP":case"SMS_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_SMS_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"SOFTWARE_TOKEN_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_TOTP_CODE"}};case"EMAIL_OTP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_EMAIL_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"WEB_AUTHN":{const s=await Ute(n);return Vte(s)?s:Xc(s)}case"PASSWORD":case"PASSWORD_SRP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_PASSWORD"}};case"SELECT_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_FIRST_FACTOR_SELECTION",availableChallenges:r}}}throw new Ye({name:ra.SignInException,message:`An error occurred during the sign in process. ${t} challengeName returned by the underlying service was not addressed.`})}function tne(e,t){return{sharedSecret:e,getSetupUri:(n,r)=>{const o=`otpauth://totp/${n}:${r??t}?secret=${e}&issuer=${n}`;return new Rl(o)}}}function yf(e){if(e===G1.PasswordResetRequiredException)return{isSignedIn:!1,nextStep:{signInStep:"RESET_PASSWORD"}};if(e===G1.UserNotConfirmedException)return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_UP"}}}function nne(e){return e?JSON.parse(e).map(n=>n.includes(m3)?n.replace(m3,""):n):[]}function rne(e){if(!e)return{};const t={};return Object.entries(e).forEach(([n,r])=>{r&&(t[`${m3}${n}`]=r)}),t}async function one(e,t,n,r,o,s,i,c){const u=c?.userAttributes,d=c?.friendlyDeviceName;switch(t){case"WEB_AUTHN":case"SELECT_CHALLENGE":return r==="PASSWORD_SRP"||r==="PASSWORD"?{ChallengeName:r,Session:n,$metadata:{}}:Hte({username:e,session:n,selectedChallenge:r,config:o,clientMetadata:i});case"SELECT_MFA_TYPE":return Yte({challengeResponse:r,clientMetadata:i,session:n,username:e,config:o});case"MFA_SETUP":return Kte({challengeResponse:r,clientMetadata:i,session:n,username:e,deviceName:d,config:o});case"NEW_PASSWORD_REQUIRED":return Zte({challengeResponse:r,clientMetadata:i,session:n,username:e,requiredAttributes:u,config:o});case"CUSTOM_CHALLENGE":return vf(Gte,[{challengeResponse:r,clientMetadata:i,session:n,username:e,config:o,tokenOrchestrator:s}],e,s);case"SMS_MFA":case"SOFTWARE_TOKEN_MFA":case"SMS_OTP":case"EMAIL_OTP":return lne({challengeName:t,challengeResponse:r,clientMetadata:i,session:n,username:e,config:o,tokenOrchestrator:s});case"PASSWORD":return qte(e,r,i,o,n);case"PASSWORD_SRP":return Wte(e,r,i,o,n,s)}throw new Ye({name:ra.SignInException,message:`An error occurred during the sign in process.
@@ -9,7 +9,7 @@ function hj(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
9
9
  1. signIn was not called before confirmSignIn.
10
10
  2. signIn threw an exception.
11
11
  3. page was refreshed during the sign in flow and session has expired.
12
- `,recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the session has not expired."});try{const{Session:d,ChallengeName:h,AuthenticationResult:m,ChallengeParameters:g}=await one(r,o,s,t,c,lo,u,n);return Kc({signInSession:d,username:r,challengeName:h,signInDetails:i}),m?(await di({username:r,...m,NewDeviceMetadata:await Yc({userPoolId:c.userPoolId,userPoolEndpoint:c.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:i}),_s(),await Ol(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):Xc({challengeName:h,challengeParameters:g})}catch(d){rs(d);const h=yf(d.name);if(h)return h;throw d}}const Rne=e=>Xn(hr,fr("GetUser"),Ar(),{...pr,...e}),One=e=>Xn(hr,fr("VerifyUserAttribute"),Ar(),{...pr,...e});async function Nne(e){const t=Xt.getConfig().Auth?.Cognito;pt(t);const{userPoolEndpoint:n,userPoolId:r}=t,{confirmationCode:o,userAttributeKey:s}=e;xn(!!o,tt.EmptyConfirmUserAttributeCode);const{tokens:i}=await py({forceRefresh:!1});hf(i),await One({endpointResolver:_t({endpointOverride:n})})({region:Et(r),userAgentValue:jt(nt.ConfirmUserAttribute)},{AccessToken:i.accessToken.toString(),AttributeName:s,Code:o})}new _r("AuthError");const Mne={oauthSignInError:{message:ur.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:ur.DEFAULT_MSG},missingAuthConfig:{message:ur.DEFAULT_MSG},emptyUsername:{message:ur.EMPTY_USERNAME},invalidUsername:{message:ur.INVALID_USERNAME},emptyPassword:{message:ur.EMPTY_PASSWORD},emptyCode:{message:ur.EMPTY_CODE},signUpError:{message:ur.SIGN_UP_ERROR},noMFA:{message:ur.NO_MFA},invalidMFA:{message:ur.INVALID_MFA},emptyChallengeResponse:{message:ur.EMPTY_CHALLENGE},noUserSession:{message:ur.NO_USER_SESSION},deviceConfig:{message:ur.DEVICE_CONFIG},networkError:{message:ur.NETWORK_ERROR},autoSignInError:{message:ur.AUTOSIGNIN_ERROR},default:{message:ur.DEFAULT_MSG}},bl=(e,t)=>new Ye({message:e??"An error has occurred during the oauth process.",name:ra.OAuthSignInError,recoverySuggestion:Mne.oauthSignInError.log});var v3;(function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkError",e.AutoSignInError="autoSignInError",e.OAuthSignInError="oauthSignInError"})(v3||(v3={}));const Pne="`signInWithRedirect` has been canceled.",Dne="An error occurred while validating the state.",Lne="Try to initiate an OAuth flow from Amplify",cF=async e=>{const t=await ro.loadOAuthState(),n=e===t?t:void 0;if(!n)throw new Ye({name:v3.OAuthSignInError,message:e===null?Pne:Dne,recoverySuggestion:e===null?void 0:Lne});return n},uF=async({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,responseType:o,domain:s,preferPrivateSession:i})=>{const c=new Rl(e),u=c.searchParams.get("error"),d=c.searchParams.get("error_description");if(u)throw bl(d??u);return o==="code"?zne({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,domain:s,preferPrivateSession:i}):Une({currentUrl:e,redirectUri:r,preferPrivateSession:i})},zne=async({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,domain:o,preferPrivateSession:s})=>{const i=new Rl(e),c=i.searchParams.get("code"),u=i.searchParams.get("state");if(!c||!u)throw bl("User cancelled OAuth flow.");const d=await cF(u),h="https://"+o+"/oauth2/token",m=await ro.loadPKCE(),g={grant_type:"authorization_code",code:c,client_id:n,redirect_uri:r,...m?{code_verifier:m}:{}},v=Object.entries(g).map(([O,I])=>`${encodeURIComponent(O)}=${encodeURIComponent(I)}`).join("&"),{access_token:S,refresh_token:b,id_token:C,error:E,error_message:k,token_type:A,expires_in:R}=await(await fetch(h,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[$X]:t},body:v})).json();if(E)throw bl(k??E);const N=(S&&ei(S).payload.username)??"username";return await di({username:N,AccessToken:S,IdToken:C,RefreshToken:b}),dF({redirectUri:r,state:d,preferPrivateSession:s})},Une=async({currentUrl:e,redirectUri:t,preferPrivateSession:n})=>{const r=new Rl(e),{id_token:o,access_token:s,state:i,token_type:c,expires_in:u,error_description:d,error:h}=(r.hash??"#").substring(1).split("&").map(v=>v.split("=")).reduce((v,[S,b])=>({...v,[S]:b}),{id_token:void 0,access_token:void 0,state:void 0,token_type:void 0,expires_in:void 0,error_description:void 0,error:void 0});if(h)throw bl(d??h);if(!s)throw bl("No access token returned from OAuth flow.");const m=await cF(i),g=(s&&ei(s).payload.username)??"username";return await di({username:g,AccessToken:s,IdToken:o}),dF({redirectUri:t,state:m,preferPrivateSession:n})},dF=async({redirectUri:e,state:t,preferPrivateSession:n})=>{await lo.setOAuthMetadata({oauthSignIn:!0}),await ro.clearOAuthData(),await ro.storeOAuthSignIn(!0,n),Vj(),$ne(e),jne(t)&&na.dispatch("auth",{event:"customOAuthState",data:UJ(Fne(t))},"Auth",ta),na.dispatch("auth",{event:"signInWithRedirect"},"Auth",ta),await Ol()},jne=e=>/-/.test(e),Fne=e=>e.split("-").splice(1).join("-"),$ne=e=>{typeof window<"u"&&typeof window.history<"u"&&window.history.replaceState(window.history.state,"",e)};function tT(e,t){{const n=e?.find(Bne)??e?.find(Hne),r=e?.find(Wne)??e?.find(qne);if(n)return n;throw r?JJ:XJ}}const Bne=e=>e.startsWith(String(window.location.origin+(window.location.pathname||"/"))),Hne=e=>e.includes(String(window.location.hostname)),qne=e=>e.startsWith("http://"),Wne=e=>e.startsWith("https://"),nT=async e=>{Vj(),await ro.clearOAuthInflightData(),na.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:e}},"Auth",ta)},Vne=async e=>{try{pt(e),uy(e),ro.setAuthConfig(e)}catch{return}if(await ro.loadOAuthInFlight())try{const t=window.location.href,{loginWith:n,userPoolClientId:r}=e,{domain:o,redirectSignIn:s,responseType:i}=n.oauth,c=tT(s);await uF({currentUrl:t,clientId:r,domain:o,redirectUri:c,responseType:i,userAgentValue:jt(nt.SignInWithRedirect)})}catch(t){await nT(t)}};hy()&&Xt[gj](Vne);const Gne={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"SignInWithApple"},fF=async e=>{window?.location&&(window.location.href=e.replace("http://","https://"))},PN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Kne=e=>{const t=new Uint8Array(e);jA().getRandomValues(t);let n="",r;for(const o of t)n+=PN.charAt(o%PN.length);return{value:n,method:"S256",toCodeChallenge(){return r||(r=Yne(n),r)}}};function Yne(e){const t=new Dc;return t.update(e),Zne(Fd.convert(t.digestSync(),{urlSafe:!0}))}function Zne(e){return e.replace(/=/g,"")}const Xne=()=>zJ(32),Qne=e=>{async function t(n){if(n.persisted&&await e.loadOAuthInFlight()){const o=bl("User cancelled OAuth flow.");await nT(o)}window.removeEventListener("pageshow",t)}window.addEventListener("pageshow",t)};async function hF(e){const t=Xt.getConfig().Auth?.Cognito;pt(t),uy(t),ro.setAuthConfig(t),e?.options?.prompt||await tF();let n="COGNITO",r;return typeof e?.provider=="string"?n=Gne[e.provider]:e?.provider?.custom?n=e.provider.custom:e?.provider?.idpIdentifier&&({idpIdentifier:r}=e.provider),Jne({oauthConfig:t.loginWith.oauth,clientId:t.userPoolClientId,provider:n,idpIdentifier:r,customState:e?.customState,preferPrivateSession:e?.options?.preferPrivateSession,options:{loginHint:e?.options?.loginHint,lang:e?.options?.lang,nonce:e?.options?.nonce,prompt:e?.options?.prompt},authSessionOpener:e?.options?.authSessionOpener})}const Jne=async({oauthConfig:e,provider:t,idpIdentifier:n,clientId:r,customState:o,preferPrivateSession:s,options:i,authSessionOpener:c})=>{const{domain:u,redirectSignIn:d,responseType:h,scopes:m}=e,{loginHint:g,lang:v,nonce:S,prompt:b}=i??{},C=Xne(),E=c||fF,k=o?`${C}-${jJ(o)}`:C,{value:A,method:R,toCodeChallenge:N}=Kne(128),O=tT(e.redirectSignIn);hy()&&ro.storeOAuthInFlight(!0),ro.storeOAuthState(k),ro.storePKCE(A);const I=new URLSearchParams;I.append("redirect_uri",O),I.append("response_type",h),I.append("client_id",r),n?I.append("idp_identifier",n):I.append("identity_provider",t),I.append("scope",m.join(" ")),g&&I.append("login_hint",g),v&&I.append("lang",v),S&&I.append("nonce",S),b&&I.append("prompt",b.toLowerCase()),I.append("state",k),h==="code"&&(I.append("code_challenge",N()),I.append("code_challenge_method",R));const M=`https://${u}/oauth2/authorize?${I.toString()}`;Qne(ro);const{type:z,error:q,url:U}=await E(M,d,s)??{};try{if(z==="error")throw bl(String(q));if(z==="canceled")throw bl(String(z));z==="success"&&U&&await uF({currentUrl:U,clientId:r,domain:u,redirectUri:O,responseType:h,userAgentValue:jt(nt.SignInWithRedirect),preferPrivateSession:s})}catch(L){throw await nT(L),L}},ere=async e=>{const t=e.getConfig().Auth?.Cognito;pt(t);const{userPoolEndpoint:n,userPoolId:r}=t,{tokens:o}=await xj(e,{forceRefresh:!1});hf(o);const s=Rne({endpointResolver:_t({endpointOverride:n})}),{UserAttributes:i}=await s({region:Et(r),userAgentValue:jt(nt.FetchUserAttributes)},{AccessToken:o.accessToken.toString()});return WJ(i)},pF=()=>ere(Xt),tre=async e=>{await e.clearOAuthData(),lo.clearTokens(),await Cj(),na.dispatch("auth",{event:"signedOut"},"Auth",ta)},nre=async(e,t=!1,n)=>{uy(e);const{loginWith:r,userPoolClientId:o}=e,{domain:s,redirectSignOut:i}=r.oauth,c=tT(i),u=`https://${s}/logout?${Object.entries({client_id:o,logout_uri:encodeURIComponent(c)}).map(([d,h])=>`${d}=${h}`).join("&")}`;return fF(u)},rre=async(e,t,n,r)=>{const{isOAuthSignIn:o}=await t.loadOAuthSignIn(),s=await n.getOAuthMetadata();if(await tre(t),o||s?.oauthSignIn)return nre(e,!1)},ore=e=>Xn(hr,fr("RevokeToken"),Ar(),{...pr,...e}),sre=new _r("Auth");async function are(e){const t=Xt.getConfig().Auth?.Cognito;pt(t),await ire(t);let n;try{uy(t),n=!0}catch{n=!1}if(n){const r=new Wj(hm);r.setAuthConfig(t);const{type:o}=await rre(t,r,lo)??{};if(o==="error")throw new Ye({name:eee,message:"An error occurred when attempting to log out from OAuth provider."})}else lo.clearTokens(),await Cj(),na.dispatch("auth",{event:"signedOut"},"Auth",ta)}async function ire(e){try{const{userPoolEndpoint:t,userPoolId:n,userPoolClientId:r}=e,o=await lo.getTokenStore().loadTokens();$j(o),lre(o.accessToken)&&await ore({endpointResolver:_t({endpointOverride:t})})({region:Et(n),userAgentValue:jt(nt.SignOut)},{ClientId:r,Token:o.refreshToken})}catch{sre.debug("Client signOut error caught but will proceed with token removal")}}const lre=e=>!!e?.payload?.origin_jti,cre=e=>Xn(hr,fr("GetUserAttributeVerificationCode"),Ar(),{...pr,...e}),ure=async e=>{const{userAttributeKey:t,options:n}=e,r=Xt.getConfig().Auth?.Cognito,o=n?.clientMetadata;pt(r);const{userPoolEndpoint:s,userPoolId:i}=r,{tokens:c}=await py({forceRefresh:!1});hf(c);const u=cre({endpointResolver:_t({endpointOverride:s})}),{CodeDeliveryDetails:d}=await u({region:Et(i),userAgentValue:jt(nt.SendUserAttributeVerificationCode)},{AccessToken:c.accessToken.toString(),ClientMetadata:o,AttributeName:t}),{DeliveryMedium:h,AttributeName:m,Destination:g}={...d};return{destination:g,deliveryMedium:h,attributeName:m}},dre={identityId:"identityId"},fre=new _r("DefaultIdentityIdStore");class mF{setAuthConfig(t){d1(t.Cognito),this.authConfig=t,this._authKeys=hre("Cognito",t.Cognito.identityPoolId)}constructor(t){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=t}async loadIdentityId(){d1(this.authConfig?.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const t=await this.keyValueStorage.getItem(this._authKeys.identityId);return t?(this._hasGuestIdentityId=!0,{id:t,type:"guest"}):null}}catch(t){return fre.log("Error getting stored IdentityId.",t),null}}async storeIdentityId(t){d1(this.authConfig?.Cognito),t.type==="guest"?(this.keyValueStorage.setItem(this._authKeys.identityId,t.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=t.id,this._hasGuestIdentityId&&(this.keyValueStorage.removeItem(this._authKeys.identityId),this._hasGuestIdentityId=!1))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}const hre=(e,t)=>WA(dre)(`com.amplify.${e}`,t),y3=({endpointOverride:e})=>t=>e?{url:new Rl(e)}:kJ(t);function gF(e){const t=ei(e).payload.iss,n={};if(!t)throw new Ye({name:"InvalidIdTokenException",message:"Invalid Idtoken."});const r=t.replace(/(^\w+:|^)\/\//,"");return n[r]=e,n}async function pre({tokens:e,authConfig:t,identityIdStore:n}){n.setAuthConfig({Cognito:t});const r=await n.loadIdentityId();if(r)return r.id;const o=e?.idToken?gF(e.idToken.toString()):{},s=await mre(o,t);return n.storeIdentityId({id:s,type:e?"primary":"guest"}),s}async function mre(e,t){const n=t?.identityPoolId,r=u3(n),o=CJ({endpointResolver:y3({endpointOverride:t.identityPoolEndpoint})});let s;try{s=(await o({region:r},{IdentityPoolId:n,Logins:e})).IdentityId}catch(i){throw rs(i),new Ye(i)}if(!s)throw new Ye({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return s}const r0=new _r("CognitoCredentialsProvider"),DN=3e3*1e3;class vF{constructor(t){this._nextCredentialsRefresh=0,this._identityIdStore=t}async clearCredentialsAndIdentityId(){r0.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){r0.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(t){const n=t.authenticated,{tokens:r}=t,{authConfig:o}=t;try{d1(o?.Cognito)}catch{return}if(!n&&!o.Cognito.allowGuestAccess)return;const{forceRefresh:s}=t,i=this.hasTokenChanged(r),c=await pre({tokens:r,authConfig:o.Cognito,identityIdStore:this._identityIdStore});return(s||i)&&this.clearCredentials(),n?(ree(r),this.credsForOIDCTokens(o.Cognito,r,c)):this.getGuestCredentials(c,o.Cognito)}async getGuestCredentials(t,n){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!1)return r0.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const r=u3(n.identityPoolId),o=Q6({endpointResolver:y3({endpointOverride:n.identityPoolEndpoint})});let s;try{s=await o({region:r},{IdentityId:t})}catch(i){throw rs(i),new Ye(i)}if(s?.Credentials?.AccessKeyId&&s?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+DN;const i={credentials:{accessKeyId:s.Credentials.AccessKeyId,secretAccessKey:s.Credentials.SecretKey,sessionToken:s.Credentials.SessionToken,expiration:s.Credentials.Expiration},identityId:t};return s.IdentityId&&(i.identityId=s.IdentityId,this._identityIdStore.storeIdentityId({id:s.IdentityId,type:"guest"})),this._credentialsAndIdentityId={...i,isAuthenticatedCreds:!1},i}else throw new Ye({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(t,n,r){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!0)return r0.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const o=n.idToken?gF(n.idToken.toString()):{},s=u3(t.identityPoolId),i=Q6({endpointResolver:y3({endpointOverride:t.identityPoolEndpoint})});let c;try{c=await i({region:s},{IdentityId:r,Logins:o})}catch(u){throw rs(u),new Ye(u)}if(c?.Credentials?.AccessKeyId&&c?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+DN;const u={credentials:{accessKeyId:c.Credentials.AccessKeyId,secretAccessKey:c.Credentials.SecretKey,sessionToken:c.Credentials.SessionToken,expiration:c.Credentials.Expiration},identityId:r};return c.IdentityId&&(u.identityId=c.IdentityId,this._identityIdStore.storeIdentityId({id:c.IdentityId,type:"primary"})),this._credentialsAndIdentityId={...u,isAuthenticatedCreds:!0,associatedIdToken:n.idToken?.toString()},u}else throw new Ye({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return this._nextCredentialsRefresh===void 0?!0:this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(t){return!!t&&!!this._credentialsAndIdentityId?.associatedIdToken&&t.idToken?.toString()!==this._credentialsAndIdentityId.associatedIdToken}}const gre=new vF(new mF(hm)),yF={configure(e,t){const n=yj(e),r=new MJ({sameSite:"lax"}),o=t?.ssr?r:hm,s=t?.ssr?new vF(new mF(r)):gre;if(!n.Auth||t?.Auth){Xt.configure(n,t);return}h1.setAuthConfig(n.Auth),h1.setKeyValueStorage(o),Xt.configure(n,{...t,Auth:{tokenProvider:h1,credentialsProvider:s}})},getConfig(){return Xt.getConfig()}},vre="https://github.com/remit-mail/reader/issues/new",yre=["internal","acme","tailscale","off"],bre=["self","managed"],LN=(e,t,n)=>e.find(r=>r===t)??n,bf=()=>{const e=globalThis.__REMIT_CONFIG__??{};return{apiUrl:e.apiUrl??"/api",appOrigin:e.appOrigin??"",betterAuthEnabled:e.betterAuthEnabled??!1,cognito:{userPoolId:e.cognito?.userPoolId??"",clientId:e.cognito?.clientId??"",domain:e.cognito?.domain??"",region:e.cognito?.region??""},rum:{appMonitorId:e.rum?.appMonitorId??"",identityPoolId:e.rum?.identityPoolId??"",region:e.rum?.region??"eu-west-1"},mailboxPollIntervalSeconds:e.mailboxPollIntervalSeconds!=null?String(e.mailboxPollIntervalSeconds):void 0,disableDevtools:e.disableDevtools??!1,tlsMode:LN(yre,e.tlsMode,"off"),issuesUrl:e.issuesUrl??vre,updateMode:LN(bre,e.updateMode,"self")}},bF=()=>{const e=bf(),{userPoolId:t,clientId:n,domain:r,region:o}=e.cognito;return!t||!n?null:{userPoolId:t,userPoolClientId:n,domain:r,region:o,appOrigin:e.appOrigin}},by=()=>bF()!==null,SF=()=>{const e=bF();if(!e){console.warn("[auth] Cognito user pool is not configured. Running in local dev mode without Cognito auth.");return}const{userPoolId:t,userPoolClientId:n,domain:r,appOrigin:o}=e;yF.configure({Auth:{Cognito:{userPoolId:t,userPoolClientId:n,loginWith:r?{oauth:{domain:r,scopes:["openid","email","profile"],redirectSignIn:o?[o]:[],redirectSignOut:o?[o]:[],responseType:"code"}}:void 0}}})};var Sre={};const g1=Object.create(null),_h=e=>Sre||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?g1:globalThis),el=new Proxy(g1,{get(e,t){return _h()[t]??g1[t]},has(e,t){return t in _h()||t in g1},set(e,t,n){const r=_h(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=_h(!0);return delete n[t],!0},ownKeys(){const e=_h(!0);return Object.keys(e)}});el.NODE_ENV;var v1=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};const wre=47;function wF(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===wre;)t--;return t===e.length?e:e.slice(0,t)}function xre(e){try{return(wF(new URL(e).pathname)||"/")!=="/"}catch{throw new v1(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function Cre(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new v1(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof v1?t:new v1(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function zN(e,t="/api/auth"){if(Cre(e),xre(e))return e;const n=wF(e);return!t||t==="/"?n:(t=t.startsWith("/")?t:`/${t}`,`${n}${t}`)}function Ere(e,t,n,r,o){{const s=el.BETTER_AUTH_URL||el.NEXT_PUBLIC_BETTER_AUTH_URL||el.PUBLIC_BETTER_AUTH_URL||el.NUXT_PUBLIC_BETTER_AUTH_URL||el.NUXT_PUBLIC_AUTH_URL||(el.BASE_URL!=="/"?el.BASE_URL:void 0);if(s)return zN(s,t)}if(typeof window<"u"&&window.location)return zN(window.location.origin,t)}const _re={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},kre=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,UN={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},Are=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function Tre(e){return e instanceof Date&&!isNaN(e.getTime())}function Ire(e){const t=Are.exec(e);if(!t)return null;const[,n,r,o,s,i,c,u,d,h,m]=t,g=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(o,10),parseInt(s,10),parseInt(i,10),parseInt(c,10),u?parseInt(u.padEnd(3,"0"),10):0));if(d){const v=(parseInt(h,10)*60+parseInt(m,10))*(d==="+"?-1:1);g.setUTCMinutes(g.getUTCMinutes()+v)}return Tre(g)?g:null}function Rre(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:o,parseDates:s=!0}=t;if(typeof e!="string")return e;const i=e.trim(),c=i.toLowerCase();if(c.length<=9&&c in UN)return UN[c];if(!kre.test(i)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(_re).some(([u,d])=>{const h=d.test(i);return h&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${u} pattern`),h})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(d,h)=>{if(d==="__proto__"||d==="constructor"&&h&&typeof h=="object"&&"prototype"in h){r&&console.warn(`[better-json] Dropping "${d}" key to prevent prototype pollution`);return}if(s&&typeof h=="string"){const m=Ire(h);if(m)return m}return o?o(d,h):h})}catch(u){if(n)throw u;return e}}function Ore(e,t={strict:!0}){return Rre(e,t)}const Nre=["javascript:","data:","vbscript:"];function Mre(e){let t;try{t=new URL(e)}catch{return!0}return!Nre.includes(t.protocol)}const Pre={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&Mre(e.data.url)&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};let bs=[],tl=0;const y1=4,Dre=globalThis.nanostoresGlobal||={epoch:0};let Lre=()=>{for(tl=0;tl<bs.length;tl+=y1)bs[tl](bs[tl+1].value,bs[tl+2],bs[tl+3]);bs.length=0};const xF=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(r){return n.lc=t.push(r),()=>{for(let s=tl+y1;s<bs.length;)bs[s]===r?bs.splice(s,y1):s+=y1;let o=t.indexOf(r);~o&&(t.splice(o,1),--n.lc||n.off())}},notify(r,o){Dre.epoch++;let s=!bs.length&&!0;for(let i of t)bs.push(i,n,r,o);s&&Lre()},off(){},set(r){let o=n.value;o!==r&&(n.value=r,n.notify(o))},subscribe(r){let o=n.listen(r);return r(n.value),o},value:e};return n},zre=2,Ure=5,o0=6,s0=10;let CF=(e,t,n,r)=>(e.events=e.events||{},e.events[n+s0]||(e.events[n+s0]=r(o=>{e.events[n].reduceRight((s,i)=>(i(s),s),{shared:{},...o})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let o=e.events[n],s=o.indexOf(t);o.splice(s,1),o.length||(delete e.events[n],e.events[n+s0](),delete e.events[n+s0])}),jre=(e,t)=>CF(e,t,zre,n=>{let r=e.set,o=e.setKey;return e.setKey&&(e.setKey=(s,i)=>{let c;if(n({abort:()=>{c=!0},changed:s,newValue:{...e.value,[s]:i}}),!c)return o(s,i)}),e.set=s=>{let i;if(n({abort:()=>{i=!0},newValue:s}),!i)return r(s)},()=>{e.set=r,e.setKey=o}});const EF=1e3;let Fre=(e,t)=>CF(e,r=>{let o=t(r);o&&e.events[o0].push(o)},Ure,r=>{let o=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,r()),o(...i));let s=e.off;return e.events[o0]=[],e.off=()=>{s(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[o0])i();e.events[o0]=[]}},EF)},()=>{e.listen=o,e.off=s}});function $re(e,t,n){let r=new Set(t);return e.listen((o,s,i)=>{(i===void 0?t.some(c=>o[c]!==s[c]):r.has(i)||r.has(i.split(/\.|\[/)[0]))&&n(o,s,i)})}function jN(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Y1(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Y1(e[n],t[n]))return!1;return!0}if(jN(e)&&jN(t)){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!(o in t)||!Y1(e[o],t[o]))return!1;return!0}return!1}function Bre(e,t){return jre(e,({newValue:n,abort:r})=>{t(e.value,n)&&r()})}const b3=Symbol.for("better-auth:auth-query");function Hre(e){return b3 in e&&e[b3]===!0}function qre(e){const t=xF(e);return Object.defineProperty(t,b3,{value:!0}),t}const ex=Symbol.for("better-auth:broadcast-channel"),Wre=()=>Math.floor(Date.now()/1e3);var Vre=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:Wre()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const n=JSON.parse(t.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function tx(e="better-auth.message"){return globalThis[ex]||(globalThis[ex]=new Vre(e)),globalThis[ex]}const nx=Symbol.for("better-auth:focus-manager");var Gre=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function FN(){return globalThis[nx]||(globalThis[nx]=new Gre),globalThis[nx]}const rx=Symbol.for("better-auth:online-manager");var Kre=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function ox(){return globalThis[rx]||(globalThis[rx]=new Kre),globalThis[rx]}const sx=()=>Math.floor(Date.now()/1e3),Yre=5;function Zre(e){const{fetchSession:t,shouldPollSession:n=()=>!0,sessionSignal:r,options:o={}}=e,s=o.sessionOptions?.refetchInterval??0,i=o.sessionOptions?.refetchOnWindowFocus??!0,c=o.sessionOptions?.refetchWhenOffline??!1,u={isInitialized:!1,lastSessionRequest:0},d=()=>c||ox().isOnline,h=A=>{if(d()){if(A?.event==="storage"){t();return}if(A?.event==="poll"){u.lastSessionRequest=sx(),t();return}if(A?.event==="visibilitychange"){if(sx()-u.lastSessionRequest<Yre)return;u.lastSessionRequest=sx(),t();return}t()}},m=A=>{tx().post({event:"session",data:{trigger:A},clientId:Math.random().toString(36).substring(7)})},g=()=>{s&&s>0&&(u.pollInterval=setInterval(()=>{n()&&h({event:"poll"})},s*1e3))},v=()=>{u.unsubscribeBroadcast=tx().subscribe(()=>{h({event:"storage"})})},S=()=>{i&&(u.unsubscribeFocus=FN().subscribe(()=>{h({event:"visibilitychange"})}))},b=()=>{u.unsubscribeOnline=ox().subscribe(A=>{A&&h({event:"visibilitychange"})})},C=()=>{u.unsubscribeSignal=r.listen(()=>{t()})};return{init:()=>{u.isInitialized||(u.isInitialized=!0,g(),v(),S(),b(),C(),u.cleanupBroadcastSetup=tx().setup(),u.cleanupFocusSetup=FN().setup(),u.cleanupOnlineSetup=ox().setup())},cleanup:()=>{u.isInitialized&&(u.pollInterval&&(clearInterval(u.pollInterval),u.pollInterval=void 0),u.unsubscribeBroadcast&&(u.unsubscribeBroadcast(),u.unsubscribeBroadcast=void 0),u.unsubscribeFocus&&(u.unsubscribeFocus(),u.unsubscribeFocus=void 0),u.unsubscribeOnline&&(u.unsubscribeOnline(),u.unsubscribeOnline=void 0),u.unsubscribeSignal&&(u.unsubscribeSignal(),u.unsubscribeSignal=void 0),u.cleanupBroadcastSetup&&(u.cleanupBroadcastSetup(),u.cleanupBroadcastSetup=void 0),u.cleanupFocusSetup&&(u.cleanupFocusSetup(),u.cleanupFocusSetup=void 0),u.cleanupOnlineSetup&&(u.cleanupOnlineSetup(),u.cleanupOnlineSetup=void 0),u.isInitialized=!1,u.lastSessionRequest=0)},triggerRefetch:h,broadcastSessionUpdate:m}}const Xre=()=>typeof window>"u",Qre=EF;function Jre(e,t){if(typeof window>"u")return;const n=e.get();n.data!==null||t===null||e.set({...n,data:t,error:null,isPending:!1})}function $N(e){return typeof e=="object"&&e!==null&&"data"in e&&"error"in e?e:{data:e,error:null}}function eoe(e){return!e||e.session===null&&e.user===null?null:e}function toe(e,t){return Y1(e.data,t.data)&&e.error===t.error&&e.isPending===t.isPending&&e.isRefetching===t.isRefetching&&e.refetch===t.refetch}function noe(e,t){const n=xF(!1);let r,o=0,s=0;n.listen(()=>{s++,o=0});const i=v=>h(v),c=qre({data:null,error:null,isPending:!0,isRefetching:!1,refetch:i});Bre(c,toe);const u=async(v,S)=>{const b=c.value;if(c.set({...b,isPending:b.data===null,isRefetching:!0,error:null,refetch:i}),v.aborted)return"aborted";try{const C=await e("/get-session",{method:"GET",query:S?.query,signal:v});if(v.aborted)return"aborted";let{data:E,error:k}=$N(C),A="fresh";if(E?.needsRefresh)try{const I=await e("/get-session",{method:"POST",signal:v});if(v.aborted)return"aborted";({data:E,error:k}=$N(I))}catch{if(v.aborted)return"aborted";A="stale"}if(k){const I=c.value,M=k?.status===401;return c.set({data:M?null:I.data,error:k,isPending:!1,isRefetching:!1,refetch:i}),"failed"}const R=eoe(E),N=c.value,O=N.data!=null&&R!=null&&Y1(N.data,R)?N.data:R;return c.set({data:O,error:null,isPending:!1,isRefetching:!1,refetch:i}),A}catch(C){if(v.aborted)return"aborted";const E=c.value;return c.set({data:E.data,error:C,isPending:!1,isRefetching:!1,refetch:i}),"failed"}},d=()=>{const v=c.value.data?.session?.expiresAt,S=v instanceof Date?v.getTime():Number.POSITIVE_INFINITY;return Math.min(Date.now()+Qre,S)},h=v=>{o=0,r?.cancel();const S=new AbortController,b={cancel:()=>S.abort(),promise:Promise.resolve().then(()=>S.signal.aborted?"aborted":u(S.signal,v)),revision:s};r=b;const C=E=>{r===b&&(r=void 0,E==="fresh"&&b.revision===s&&(o=d()))};return b.promise.then(C,()=>C("failed")),b.promise.then(()=>{})},m=()=>r?.revision===s?r.promise.then(()=>{}):Date.now()<o?Promise.resolve():h();let g=()=>{};return Fre(c,()=>{let v;Xre()||(v=setTimeout(()=>{m()},0));const S=Zre({fetchSession:h,shouldPollSession:()=>c.value.data!=null,sessionSignal:n,options:t});return S.init(),g=S.broadcastSessionUpdate,()=>{v&&clearTimeout(v),S.cleanup()}}),{session:c,$sessionSignal:n,broadcastSessionUpdate:v=>g(v)}}function ax(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function S3(e,t,n=".",r){if(!ax(t))return S3(e,{},n,r);const o={...t};for(const s of Object.keys(e)){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:ax(i)&&ax(o[s])?o[s]=S3(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function roe(e){return(...t)=>t.reduce((n,r)=>S3(n,r,"",e),{})}const ooe=roe();var soe=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor)}};const aoe=async(e,t)=>{let n=t||{};const r={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:n,hooks:r};for(const h of t?.plugins||[]){var o,s,i,c,u;if(h.init){var d;const m=await((d=h.init)===null||d===void 0?void 0:d.call(h,e.toString(),n));n=m.options||n,e=m.url}r.onRequest.push((o=h.hooks)===null||o===void 0?void 0:o.onRequest),r.onResponse.push((s=h.hooks)===null||s===void 0?void 0:s.onResponse),r.onSuccess.push((i=h.hooks)===null||i===void 0?void 0:i.onSuccess),r.onError.push((c=h.hooks)===null||c===void 0?void 0:c.onError),r.onRetry.push((u=h.hooks)===null||u===void 0?void 0:u.onRetry)}return{url:e,options:n,hooks:r}};var BN=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},ioe=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function loe(e){if(typeof e=="number")return new BN({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new BN(e);case"exponential":return new ioe(e);default:throw new Error("Invalid retry strategy")}}const coe=["get","post","put","patch","delete"];function rT(e){if(!e.startsWith("@"))return{method:void 0,path:e};const t=e.indexOf("/"),n=e.slice(1,t===-1?void 0:t);return coe.includes(n)?{method:n,path:t===-1?e:e.slice(t+1)}:{method:void 0,path:e}}const uoe=e=>e==="."||e==="..",doe=e=>e.split(":").map(t=>encodeURIComponent(t)).join(":");function foe(e,t){const n=t.get(e);if(n===void 0)return doe(e);if(uoe(n))throw new TypeError("Path parameters cannot be reserved path segments");return encodeURIComponent(n)}function hoe(e,t){const{baseURL:n,params:r,query:o}=t||{query:{},params:{},baseURL:""};let s=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";const{path:i}=rT(e);i!==e&&(e=`/${i}`),s.endsWith("/")||(s+="/");let[c,u]=e.replace(s,"").split("?");const d=new URLSearchParams(u);for(const[g,v]of Object.entries(o||{})){if(v==null)continue;let S;if(typeof v=="string")S=v;else if(Array.isArray(v)){for(const b of v)d.append(g,b);continue}else S=JSON.stringify(v);d.set(g,S)}const h=new Map;if(r)if(Array.isArray(r)){const g=c.split("/").filter(v=>v.startsWith(":"));for(const[v,S]of g.entries()){const b=r[v];h.set(S,String(b))}}else for(const[g,v]of Object.entries(r))h.set(`:${g}`,String(v));c=c.split("/").map(g=>foe(g,h)).join("/"),c=c.replace(/^\/+/,"");let m=d.toString();return m=m.length>0?`?${m}`.replace(/\+/g,"%20"):"",s.startsWith("http")?new URL(`${c}${m}`,s):`${s}${c}${m}`}const poe=async e=>{const t={},n=async r=>typeof r=="function"?await r():r;if(e?.auth){if(e.auth.type==="Bearer"){const r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type==="Basic"){const[r,o]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!r||!o)return t;t.authorization=`Basic ${btoa(`${r}:${o}`)}`}else if(e.auth.type==="Custom"){const[r,o]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!o)return t;t.authorization=`${r??""} ${o}`}}return t},moe=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function goe(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const r=t.split(";").shift()||"";return moe.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function voe(e){try{return JSON.parse(e),!0}catch{return!1}}function _F(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function HN(e){try{return JSON.parse(e)}catch{return e}}function qN(e){return typeof e=="function"}function yoe(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&qN(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&qN(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}function kF(...e){const t={};for(const n of e)if(n)if(n instanceof Headers)n.forEach((r,o)=>{t[o]=r});else{const r=Array.isArray(n)?n:Object.entries(n);for(const[o,s]of r)s!=null&&(t[o]=s)}return t}async function boe(e){const t=new Headers(kF(e?.headers,await poe(e)));if(!t.has("content-type")){const n=Soe(e?.body);n&&t.set("content-type",n)}return t}function Soe(e){return _F(e)?"application/json":null}function woe(e){const t=e.get("content-type");return t?t.split(";")[0].trim().toLowerCase():null}function xoe(e,t){const{body:n}=e;return n?!_F(n)||typeof n=="string"?n:woe(t)==="application/x-www-form-urlencoded"?new URLSearchParams(n).toString():JSON.stringify(n):null}function Coe(e,t){if(t?.method)return t.method.toUpperCase();const{method:n}=rT(e);return n?n.toUpperCase():t?.body?"POST":"GET"}function Eoe(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var _oe=class AF extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,AF.prototype)}};async function Jh(e,t){const n=await e["~standard"].validate(t);if(n.issues)throw new _oe(n.issues);return n.value}function Rp(e){"@babel/helpers - typeof";return Rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rp(e)}function koe(e,t){if(Rp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aoe(e){var t=koe(e,"string");return Rp(t)=="symbol"?t:t+""}function Toe(e,t,n){return(t=Aoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WN(Object(n),!0).forEach(function(r){Toe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const w3=async(e,t)=>{var n,r,o;const{hooks:s,url:i,options:c}=await aoe(e,t),u=yoe(c),d=new AbortController,h=(n=c.signal)!==null&&n!==void 0?n:d.signal,m=hoe(i,c),g=await boe(c),v=xoe(c,g),S=Coe(i,c),b=Pt(Pt({},c),{},{url:m,headers:g,body:v,method:S,signal:h});for(const B of s.onRequest)if(B){const K=await B(b);typeof K=="object"&&K!==null&&Object.assign(b,K)}("pipeTo"in b&&typeof b.pipeTo=="function"||typeof(t==null||(r=t.body)===null||r===void 0?void 0:r.pipe)=="function")&&("duplex"in b||(b.duplex="half"));const{clearTimeout:C}=Eoe(c,d);let E=await u(b.url,b);C();const k={response:E,request:b};for(const B of s.onResponse)if(B){var A;const K=await B(Pt(Pt({},k),{},{response:!(t==null||(A=t.hookOptions)===null||A===void 0)&&A.cloneResponse?E.clone():E}));K instanceof Response?E=K:typeof K=="object"&&K!==null&&(E=K.response)}if(E.ok){if(b.method==="HEAD")return{data:"",error:null};const B=goe(E),K={data:null,response:E,request:b};if(B==="json"||B==="text"){var R;const le=await E.text();K.data=await((R=b.jsonParser)!==null&&R!==void 0?R:HN)(le)}else K.data=await E[B]();b?.output&&b.output&&!b.disableValidation&&(K.data=await Jh(b.output,K.data));for(const le of s.onSuccess)if(le){var N;await le(Pt(Pt({},K),{},{response:!(t==null||(N=t.hookOptions)===null||N===void 0)&&N.cloneResponse?E.clone():E}))}return t?.throw?K.data:{data:K.data,error:null}}const O=(o=t?.jsonParser)!==null&&o!==void 0?o:HN,I=await E.text(),M=voe(I),z=M?await O(I):null,q={response:E,responseText:I,request:b,error:Pt(Pt({},z),{},{status:E.status,statusText:E.statusText})};for(const B of s.onError)if(B){var U;await B(Pt(Pt({},q),{},{response:!(t==null||(U=t.hookOptions)===null||U===void 0)&&U.cloneResponse?E.clone():E}))}if(t?.retry){var L;const B=loe(t.retry),K=(L=t.retryAttempt)!==null&&L!==void 0?L:0;if(await B.shouldAttemptRetry(K,E)){for(const $ of s.onRetry)$&&await $(k);const le=B.getDelay(K);return await new Promise($=>setTimeout($,le)),await w3(e,Pt(Pt({},t),{},{retryAttempt:K+1}))}}if(t?.throw)throw new soe(E.status,E.statusText,M?z:I);return{data:null,error:Pt(Pt({},z),{},{status:E.status,statusText:E.statusText})}},Ioe=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r;let o=Pt(Pt({},n),e.query!==void 0&&{query:Pt(Pt({},e.query),n?.query)});const s=((r=e.plugins)===null||r===void 0||(r=r.find(d=>{var h;return!((h=d.schema)===null||h===void 0)&&h.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))===null||r===void 0?void 0:r.schema)||e.schema;if(s){var i,c;let d=t;!((i=s.config)===null||i===void 0)&&i.prefix&&d.startsWith(s.config.prefix)&&(d=d.replace(s.config.prefix,""),s.config.baseURL&&(t=t.replace(s.config.prefix,s.config.baseURL))),!((c=s.config)===null||c===void 0)&&c.baseURL&&d.startsWith(s.config.baseURL)&&(d=d.replace(s.config.baseURL,"")),d.startsWith("/")&&d.charAt(1)==="@"&&(d=d.substring(1));const h=s.schema[d];if(h){var u;const{method:m,path:g}=rT(d);m&&(t=t.slice(0,t.length-d.length)+g);let v=n?.headers;if(h.headers&&!n?.disableValidation){const b={};if(n?.headers){if(n.headers instanceof Headers)n.headers.forEach((k,A)=>{b[A.toLowerCase()]=k});else if(typeof n.headers=="object")for(const[k,A]of Object.entries(n.headers))A!=null&&(b[k.toLowerCase()]=A)}const C=await Jh(h.headers,b),E={};for(const[k,A]of Object.entries(C))E[k.toLowerCase()]=A;v=E}const S=(u=h.method)!==null&&u!==void 0?u:m;if(o=Pt(Pt(Pt(Pt({},o),S!==void 0&&{method:S}),h.output!==void 0&&{output:h.output}),v!==void 0&&{headers:v}),!n?.disableValidation){if(h.query&&(o.query=await Jh(h.query,n?.query),o.query!==null&&typeof o.query=="object")){const b=Pt({},e.query);for(const C of Object.keys(b))n?.query&&Object.prototype.hasOwnProperty.call(n.query,C)&&(b[C]=n.query[C]);o.query=Pt(Pt({},b),o.query)}o=Pt(Pt({},o),{},{body:h.input?await Jh(h.input,n?.body):n?.body,params:h.params?await Jh(h.params,n?.params):n?.params})}return{url:t,options:o}}}return Pt({url:t},(n!==void 0||e.query!==void 0)&&{options:o})}}),Roe=e=>{async function t(n,r){const o=Pt(Pt(Pt({},e),r),{},{headers:kF(e?.headers,r?.headers),plugins:[...e?.plugins||[],Ioe(e||{}),...r?.plugins||[]]});if(e?.catchAllError)try{return await w3(n,o)}catch(s){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:s}}}return await w3(n,o)}return t};var ic={};const Ooe=e=>{if(typeof process>"u")return;const t="/api/auth";if(ic.NEXT_PUBLIC_AUTH_URL)return ic.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(ic.NEXTAUTH_URL)try{return ic.NEXTAUTH_URL}catch{}if(ic.VERCEL_URL)try{const n=ic.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${n}${ic.VERCEL_URL}`).origin}${t}`}catch{}}},Noe=e=>e==="/sign-out"||e==="/update-user"||e==="/update-session"||e==="/sign-up/email"||e==="/sign-in/email"||e==="/delete-user"||e==="/verify-email"||e==="/revoke-sessions"||e==="/revoke-session"||e==="/revoke-other-sessions"||e==="/change-email"||e==="/change-password",Moe=(e,t)=>{const n="credentials"in Request.prototype,r=Ere(e?.baseURL,e?.basePath)??Ooe()??"/api/auth",o=[],s={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:u,onResponse:d,...h}={},m=Roe({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(I){return I?Ore(I,{strict:!1}):null},customFetchImpl:fetch,...h,plugins:[s,...h.plugins||[],Pre,...o]}),{$sessionSignal:g,session:v,broadcastSessionUpdate:S}=noe(m,e);let b=!1;const C=I=>{b||I===null||(b=!0,Jre(v,I))},E=[];let k={};const A={$sessionSignal:g,session:v},R={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},N=[{signal:"$sessionSignal",matcher:Noe,callback(I){I==="/sign-out"?S("signout"):(I==="/update-user"||I==="/update-session")&&S("updateUser")}}];for(const I of E)I.getAtoms&&Object.assign(A,I.getAtoms?.(m)),I.pathMethods&&Object.assign(R,I.pathMethods),I.atomListeners&&N.push(...I.atomListeners);const O={notify:I=>{A[I].set(!A[I].get())},listen:(I,M)=>{A[I].subscribe(M)},atoms:A};for(const I of E)I.getActions&&(k=ooe(I.getActions?.(m,O,e)??{},k));return{get baseURL(){return r},pluginsActions:k,pluginsAtoms:A,pluginPathMethods:R,atomListeners:N,hydrateSession:C,$sessionSignal:g,$fetch:m,$store:O}};function Poe(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function Doe(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Loe=new RegExp("[\\p{Ll}\\d]+|\\p{Lu}+(?!\\p{Ll})|\\p{Lu}[\\p{Ll}\\d]+|\\p{Lo}+","gu"),zoe=/['\u2019]/g;function Uoe(e){return e.replace(zoe,"").match(Loe)??[]}function joe(e){return Uoe(e).map(t=>t.toLowerCase()).join("-")}function Foe(e,t,n){const r=t[e],{fetchOptions:o,query:s,...i}=n||{};return r||(o?.method?o.method:i&&Object.keys(i).length>0?"POST":"GET")}function $oe(e,t,n,r,o){function s(i=[]){return new Proxy(function(){},{get(c,u){if(typeof u!="string"||u==="then"||u==="catch"||u==="finally")return;const d=[...i,u];let h=e;for(const m of d)if(h&&typeof h=="object"&&m in h)h=h[m];else{h=void 0;break}return typeof h=="function"||Poe(h)?h:s(d)},apply:async(c,u,d)=>{const h="/"+i.map(joe).join("/"),m=d[0]||{},g=d[1]||{},{query:v,fetchOptions:S,...b}=m,C={...g,...S},E=Foe(h,n,m);return await t(h,{...C,body:E==="GET"?void 0:{...b,...C?.body||{}},query:v||C?.query,method:E,async onSuccess(k){if(await C?.onSuccess?.(k),!o||C.disableSignal)return;const A=o.filter(N=>N.matcher(h));if(!A.length)return;const R=new Set;for(const N of A){const O=r[N.signal];if(!O)return;if(R.has(N.signal))continue;R.add(N.signal);const I=O.get();setTimeout(()=>{O.set(!I)},10),N.callback?.(h)}}})}})}return s()}var ix={exports:{}},et={};var VN;function Boe(){if(VN)return et;VN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),g=Symbol.iterator;function v(j){return j===null||typeof j!="object"?null:(j=g&&j[g]||j["@@iterator"],typeof j=="function"?j:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,C={};function E(j,Y,X){this.props=j,this.context=Y,this.refs=C,this.updater=X||S}E.prototype.isReactComponent={},E.prototype.setState=function(j,Y){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,Y,"setState")},E.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function k(){}k.prototype=E.prototype;function A(j,Y,X){this.props=j,this.context=Y,this.refs=C,this.updater=X||S}var R=A.prototype=new k;R.constructor=A,b(R,E.prototype),R.isPureReactComponent=!0;var N=Array.isArray;function O(){}var I={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function z(j,Y,X){var J=X.ref;return{$$typeof:e,type:j,key:Y,ref:J!==void 0?J:null,props:X}}function q(j,Y){return z(j.type,Y,j.props)}function U(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function L(j){var Y={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(X){return Y[X]})}var B=/\/+/g;function K(j,Y){return typeof j=="object"&&j!==null&&j.key!=null?L(""+j.key):Y.toString(36)}function le(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(O,O):(j.status="pending",j.then(function(Y){j.status==="pending"&&(j.status="fulfilled",j.value=Y)},function(Y){j.status==="pending"&&(j.status="rejected",j.reason=Y)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function $(j,Y,X,J,ie){var ue=typeof j;(ue==="undefined"||ue==="boolean")&&(j=null);var ge=!1;if(j===null)ge=!0;else switch(ue){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(j.$$typeof){case e:case t:ge=!0;break;case h:return ge=j._init,$(ge(j._payload),Y,X,J,ie)}}if(ge)return ie=ie(j),ge=J===""?"."+K(j,0):J,N(ie)?(X="",ge!=null&&(X=ge.replace(B,"$&/")+"/"),$(ie,Y,X,"",function(Pe){return Pe})):ie!=null&&(U(ie)&&(ie=q(ie,X+(ie.key==null||j&&j.key===ie.key?"":(""+ie.key).replace(B,"$&/")+"/")+ge)),Y.push(ie)),1;ge=0;var ee=J===""?".":J+":";if(N(j))for(var Se=0;Se<j.length;Se++)J=j[Se],ue=ee+K(J,Se),ge+=$(J,Y,X,ue,ie);else if(Se=v(j),typeof Se=="function")for(j=Se.call(j),Se=0;!(J=j.next()).done;)J=J.value,ue=ee+K(J,Se++),ge+=$(J,Y,X,ue,ie);else if(ue==="object"){if(typeof j.then=="function")return $(le(j),Y,X,J,ie);throw Y=String(j),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ge}function Q(j,Y,X){if(j==null)return j;var J=[],ie=0;return $(j,J,"","",function(ue){return Y.call(X,ue,ie++)}),J}function se(j){if(j._status===-1){var Y=j._result;Y=Y(),Y.then(function(X){(j._status===0||j._status===-1)&&(j._status=1,j._result=X)},function(X){(j._status===0||j._status===-1)&&(j._status=2,j._result=X)}),j._status===-1&&(j._status=0,j._result=Y)}if(j._status===1)return j._result.default;throw j._result}var de=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},_e={map:Q,forEach:function(j,Y,X){Q(j,function(){Y.apply(this,arguments)},X)},count:function(j){var Y=0;return Q(j,function(){Y++}),Y},toArray:function(j){return Q(j,function(Y){return Y})||[]},only:function(j){if(!U(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return et.Activity=m,et.Children=_e,et.Component=E,et.Fragment=n,et.Profiler=o,et.PureComponent=A,et.StrictMode=r,et.Suspense=u,et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,et.__COMPILER_RUNTIME={__proto__:null,c:function(j){return I.H.useMemoCache(j)}},et.cache=function(j){return function(){return j.apply(null,arguments)}},et.cacheSignal=function(){return null},et.cloneElement=function(j,Y,X){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var J=b({},j.props),ie=j.key;if(Y!=null)for(ue in Y.key!==void 0&&(ie=""+Y.key),Y)!M.call(Y,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Y.ref===void 0||(J[ue]=Y[ue]);var ue=arguments.length-2;if(ue===1)J.children=X;else if(1<ue){for(var ge=Array(ue),ee=0;ee<ue;ee++)ge[ee]=arguments[ee+2];J.children=ge}return z(j.type,ie,J)},et.createContext=function(j){return j={$$typeof:i,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:s,_context:j},j},et.createElement=function(j,Y,X){var J,ie={},ue=null;if(Y!=null)for(J in Y.key!==void 0&&(ue=""+Y.key),Y)M.call(Y,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ie[J]=Y[J]);var ge=arguments.length-2;if(ge===1)ie.children=X;else if(1<ge){for(var ee=Array(ge),Se=0;Se<ge;Se++)ee[Se]=arguments[Se+2];ie.children=ee}if(j&&j.defaultProps)for(J in ge=j.defaultProps,ge)ie[J]===void 0&&(ie[J]=ge[J]);return z(j,ue,ie)},et.createRef=function(){return{current:null}},et.forwardRef=function(j){return{$$typeof:c,render:j}},et.isValidElement=U,et.lazy=function(j){return{$$typeof:h,_payload:{_status:-1,_result:j},_init:se}},et.memo=function(j,Y){return{$$typeof:d,type:j,compare:Y===void 0?null:Y}},et.startTransition=function(j){var Y=I.T,X={};I.T=X;try{var J=j(),ie=I.S;ie!==null&&ie(X,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(O,de)}catch(ue){de(ue)}finally{Y!==null&&X.types!==null&&(Y.types=X.types),I.T=Y}},et.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},et.use=function(j){return I.H.use(j)},et.useActionState=function(j,Y,X){return I.H.useActionState(j,Y,X)},et.useCallback=function(j,Y){return I.H.useCallback(j,Y)},et.useContext=function(j){return I.H.useContext(j)},et.useDebugValue=function(){},et.useDeferredValue=function(j,Y){return I.H.useDeferredValue(j,Y)},et.useEffect=function(j,Y){return I.H.useEffect(j,Y)},et.useEffectEvent=function(j){return I.H.useEffectEvent(j)},et.useId=function(){return I.H.useId()},et.useImperativeHandle=function(j,Y,X){return I.H.useImperativeHandle(j,Y,X)},et.useInsertionEffect=function(j,Y){return I.H.useInsertionEffect(j,Y)},et.useLayoutEffect=function(j,Y){return I.H.useLayoutEffect(j,Y)},et.useMemo=function(j,Y){return I.H.useMemo(j,Y)},et.useOptimistic=function(j,Y){return I.H.useOptimistic(j,Y)},et.useReducer=function(j,Y,X){return I.H.useReducer(j,Y,X)},et.useRef=function(j){return I.H.useRef(j)},et.useState=function(j){return I.H.useState(j)},et.useSyncExternalStore=function(j,Y,X){return I.H.useSyncExternalStore(j,Y,X)},et.useTransition=function(){return I.H.useTransition()},et.version="19.2.7",et}var GN;function ym(){return GN||(GN=1,ix.exports=Boe()),ix.exports}var _=ym();const F=uf(_),TF=hj({__proto__:null,default:F},[_]);function Hoe(e,t={}){const n=_.useRef(e.get()),{keys:r,deps:o=[e,r]}=t,s=_.useCallback(c=>{const u=d=>{n.current!==d&&(n.current=d,c())};return u(e.value),r?.length?$re(e,r,u):e.listen(u)},o),i=()=>n.current;return _.useSyncExternalStore(s,i,Hre(e)?()=>e.init:i)}function qoe(e){return`use${Doe(e)}`}function Woe(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,hydrateSession:o,$fetch:s,$store:i,atomListeners:c}=Moe(e),u={};for(const[d,h]of Object.entries(r))u[qoe(d)]=()=>Hoe(h);return $oe({...n,...u,hydrateSession:o,$fetch:s,$store:i},s,t,r,c)}const Voe=10,Od=[],Goe=["x-correlation-id","x-request-id","x-amzn-requestid","x-amzn-trace-id","apigw-requestid","x-trace-id"];function Koe(e){const t=typeof e=="string"?e:e instanceof URL?e.href:e.url;try{return new URL(t,window.location.origin).pathname}catch{return t.split(/[?#]/)[0]}}function Yoe(e,t){return t?.method?t.method.toUpperCase():typeof e!="string"&&!(e instanceof URL)&&e.method?e.method.toUpperCase():"GET"}function Zoe(e){for(const t of Goe){const n=e.headers.get(t);if(n)return n}}function Xoe(e){Od.push(e),Od.length>Voe&&Od.shift()}function KN(e){const{input:t,init:n,response:r,durationMs:o}=e;Xoe({method:Yoe(t,n),path:Koe(t),status:r?.status??0,durationMs:Math.round(o),correlationId:r?Zoe(r):void 0,timestamp:new Date().toISOString()})}function Qoe(){return Od.slice()}function Joe(){for(let e=Od.length-1;e>=0;e--){const t=Od[e];if(t.status===0||t.status>=400)return t}}class oT extends Error{constructor(t){super(t instanceof Error&&t.message?t.message:"The request could not be completed.",{cause:t}),this.name="NetworkError"}}const ese=e=>typeof e=="object"&&e!==null&&"name"in e&&e.name==="AbortError",IF=async(e,t)=>{const n=performance.now();try{const r=await fetch(e,t);return KN({input:e,init:t,response:r,durationMs:performance.now()-n}),r}catch(r){throw ese(r)?r:(KN({input:e,init:t,durationMs:performance.now()-n}),new oT(r))}},sT=()=>{try{return globalThis.sessionStorage??null}catch{return null}},Sy=()=>bf().betterAuthEnabled,tse="EMAIL_PASSWORD_SIGN_UP_DISABLED",nse=e=>typeof e=="object"&&e!==null&&e.code===tse,Lc=Woe(),rse=60,ose=30,x3="remit.better-auth.token",sse=()=>{const e=sT()?.getItem(x3);if(!e)return null;try{const t=JSON.parse(e);if(t&&typeof t=="object"&&typeof t.value=="string"&&typeof t.expiresAt=="number")return{value:t.value,expiresAt:t.expiresAt}}catch{}return null},RF=e=>{const t=sT();if(t)try{if(!e){t.removeItem(x3);return}t.setItem(x3,JSON.stringify(e))}catch{}};let mc=null,Z1=0;const ase=()=>mc||(mc=sse(),mc),xc=()=>Math.floor(Date.now()/1e3),ise=e=>{const[,t]=e.split(".");if(!t)return xc();try{const n=JSON.parse(atob(t.replace(/-/g,"+").replace(/_/g,"/")));return typeof n.exp=="number"?n.exp:xc()}catch{return xc()}};class X1 extends Error{status;constructor(t,n){super(t),this.name="AuthTokenError",this.status=n}}const lse=async()=>{const e=await IF("/api/auth/token",{credentials:"include"});if(!e.ok)throw new X1(`Could not mint a session token: ${e.status} ${e.statusText}`,e.status);const t=await e.json();if(t&&typeof t=="object"&&"token"in t&&typeof t.token=="string")return t.token;throw new X1("The token endpoint returned no token")};let kh=null;const cse=()=>kh||(kh=lse().then(e=>(mc={value:e,expiresAt:ise(e)},RF(mc),Z1=0,e)).finally(()=>{kh=null}),kh),use=e=>e.expiresAt-rse>xc(),YN=e=>e.expiresAt>xc(),dse=e=>e instanceof oT?!0:e instanceof X1?e.status===408||e.status===429||(e.status??0)>=500:!1,fse=e=>e instanceof X1&&(e.status===401||e.status===403),hse=async()=>{const e=ase();if(e&&use(e)||e&&YN(e)&&xc()<Z1)return e.value;try{return await cse()}catch(t){if(fse(t))throw aT(),t.status===403&&Lc.$store.notify("$sessionSignal"),t;if(e&&YN(e)&&dse(t))return Z1=xc()+ose,e.value;throw t}},aT=()=>{Z1=0,RF(null),mc=null};function OF(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=OF(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pse(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=OF(e))&&(r&&(r+=" "),r+=t);return r}var lx={exports:{}},Or={};var ZN;function mse(){if(ZN)return Or;ZN=1;var e=ym();function t(u){var d="https://react.dev/errors/"+u;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)d+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+u+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(u,d,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:u,containerInfo:d,implementation:h}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Or.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Or.createPortal=function(u,d){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(u,d,null,h)},Or.flushSync=function(u){var d=i.T,h=r.p;try{if(i.T=null,r.p=2,u)return u()}finally{i.T=d,r.p=h,r.d.f()}},Or.preconnect=function(u,d){typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(u,d))},Or.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Or.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var h=d.as,m=c(h,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;h==="style"?r.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:v}):h==="script"&&r.d.X(u,{crossOrigin:m,integrity:g,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Or.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var h=c(d.as,d.crossOrigin);r.d.M(u,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(u)},Or.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var h=d.as,m=c(h,d.crossOrigin);r.d.L(u,h,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Or.preloadModule=function(u,d){if(typeof u=="string")if(d){var h=c(d.as,d.crossOrigin);r.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(u)},Or.requestFormReset=function(u){r.d.r(u)},Or.unstable_batchedUpdates=function(u,d){return u(d)},Or.useFormState=function(u,d,h){return i.H.useFormState(u,d,h)},Or.useFormStatus=function(){return i.H.useHostTransitionStatus()},Or.version="19.2.7",Or}var XN;function NF(){if(XN)return lx.exports;XN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),lx.exports=mse(),lx.exports}var gse=NF(),cx={exports:{}},ux={};var QN;function vse(){if(QN)return ux;QN=1;var e=ym();function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function c(m,g){var v=g(),S=r({inst:{value:v,getSnapshot:g}}),b=S[0].inst,C=S[1];return s(function(){b.value=v,b.getSnapshot=g,u(b)&&C({inst:b})},[m,v,g]),o(function(){return u(b)&&C({inst:b}),m(function(){u(b)&&C({inst:b})})},[m]),i(v),v}function u(m){var g=m.getSnapshot;m=m.value;try{var v=g();return!n(m,v)}catch{return!0}}function d(m,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return ux.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,ux}var JN;function yse(){return JN||(JN=1,cx.exports=vse()),cx.exports}const iT=[{category:"personal",label:"Personal",tone:"accent",section:1},{category:"uncategorized",label:"Unclassified",tone:"neutral",section:7},{category:"transactional",label:"Transactional",tone:"positive",section:2},{category:"newsletter",label:"Newsletter",tone:"neutral",section:3},{category:"marketing",label:"Marketing",tone:"neutral",section:4},{category:"social",label:"Social",tone:"warning",section:5},{category:"automated",label:"Automated",tone:"neutral",section:6}],p$e=[...iT].sort((e,t)=>e.section-t.section).map(e=>e.category),MF=e=>Object.fromEntries(iT.map(t=>[t.category,e(t)])),bse=MF(e=>e.label),Sse=MF(e=>e.tone),m$e=e=>!e||e==="personal"?null:bse[e];function wse(e){return Object.hasOwn(Sse,e)}function g$e(e){return e==="all"||wse(e)}const v$e=[{id:"all",label:"All",tone:"neutral"},...iT.map(e=>({id:e.category,label:e.label,tone:e.tone}))];const xse=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),PF=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();var Cse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ese=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...c},u)=>_.createElement("svg",{ref:u,...Cse,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:PF("lucide",o),...c},[...i.map(([d,h])=>_.createElement(d,h)),...Array.isArray(s)?s:[s]]));const ut=(e,t)=>{const n=_.forwardRef(({className:r,...o},s)=>_.createElement(Ese,{ref:s,iconNode:t,className:PF(`lucide-${xse(e)}`,r),...o}));return n.displayName=`${e}`,n};const _se=ut("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);const DF=ut("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const kse=ut("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const Ase=ut("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);const wy=ut("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Tse=ut("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Ise=ut("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const LF=ut("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const zF=ut("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const Rse=ut("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const Ose=ut("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Nse=ut("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const Mse=ut("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);const Pse=ut("FolderInput",[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]]);const Dse=ut("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const Lse=ut("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);const zse=ut("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const Use=ut("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const UF=ut("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);const jF=ut("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);const Op=ut("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const eM=ut("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);const jse=ut("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);const Fse=ut("Mails",[["rect",{width:"16",height:"13",x:"6",y:"4",rx:"2",key:"1drq3f"}],["path",{d:"m22 7-7.1 3.78c-.57.3-1.23.3-1.8 0L6 7",key:"xn252p"}],["path",{d:"M2 8v11c0 1.1.9 2 2 2h14",key:"n13cji"}]]);const lT=ut("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const $se=ut("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);const Bse=ut("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Hse=ut("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);const qse=ut("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const Wse=ut("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const Vse=ut("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);const Gse=ut("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const Kse=ut("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const Sl=ut("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const Yse=ut("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]);const Zse=ut("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);const Xse=ut("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);const ti=ut("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),cT="-",Qse=e=>{const t=eae(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const c=i.split(cT);return c[0]===""&&c.length!==1&&c.shift(),FF(c,t)||Jse(i)},getConflictingClassGroupIds:(i,c)=>{const u=n[i]||[];return c&&r[i]?[...u,...r[i]]:u}}},FF=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?FF(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(cT);return t.validators.find(({validator:i})=>i(s))?.classGroupId},tM=/^\[(.+)\]$/,Jse=e=>{if(tM.test(e)){const t=tM.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},eae=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return nae(Object.entries(e.classGroups),n).forEach(([s,i])=>{C3(i,r,s,t)}),r},C3=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:nM(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(tae(o)){C3(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{C3(i,nM(t,s),n,r)})})},nM=(e,t)=>{let n=e;return t.split(cT).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},tae=e=>e.isThemeGetter,nae=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,c])=>[t+i,c])):s);return[n,o]}):e,rae=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},$F="!",oae=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=c=>{const u=[];let d=0,h=0,m;for(let C=0;C<c.length;C++){let E=c[C];if(d===0){if(E===o&&(r||c.slice(C,C+s)===t)){u.push(c.slice(h,C)),h=C+s;continue}if(E==="/"){m=C;continue}}E==="["?d++:E==="]"&&d--}const g=u.length===0?c:c.substring(h),v=g.startsWith($F),S=v?g.substring(1):g,b=m&&m>h?m-h:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:b}};return n?c=>n({className:c,parseClassName:i}):i},sae=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},aae=e=>({cache:rae(e.cacheSize),parseClassName:oae(e),...Qse(e)}),iae=/\s+/,lae=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(iae);let c="";for(let u=i.length-1;u>=0;u-=1){const d=i[u],{modifiers:h,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:v}=n(d);let S=!!v,b=r(S?g.substring(0,v):g);if(!b){if(!S){c=d+(c.length>0?" "+c:c);continue}if(b=r(g),!b){c=d+(c.length>0?" "+c:c);continue}S=!1}const C=sae(h).join(":"),E=m?C+$F:C,k=E+b;if(s.includes(k))continue;s.push(k);const A=o(b,S);for(let R=0;R<A.length;++R){const N=A[R];s.push(E+N)}c=d+(c.length>0?" "+c:c)}return c};function cae(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=BF(t))&&(r&&(r+=" "),r+=n);return r}const BF=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=BF(e[r]))&&(n&&(n+=" "),n+=t);return n};function uae(e,...t){let n,r,o,s=i;function i(u){const d=t.reduce((h,m)=>m(h),e());return n=aae(d),r=n.cache.get,o=n.cache.set,s=c,c(u)}function c(u){const d=r(u);if(d)return d;const h=lae(u,n);return o(u,h),h}return function(){return s(cae.apply(null,arguments))}}const sn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},HF=/^\[(?:([a-z-]+):)?(.+)\]$/i,dae=/^\d+\/\d+$/,fae=new Set(["px","full","screen"]),hae=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pae=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mae=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vae=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Da=e=>Nd(e)||fae.has(e)||dae.test(e),Ki=e=>Sf(e,"length",_ae),Nd=e=>!!e&&!Number.isNaN(Number(e)),dx=e=>Sf(e,"number",Nd),Ah=e=>!!e&&Number.isInteger(Number(e)),yae=e=>e.endsWith("%")&&Nd(e.slice(0,-1)),it=e=>HF.test(e),Yi=e=>hae.test(e),bae=new Set(["length","size","percentage"]),Sae=e=>Sf(e,bae,qF),wae=e=>Sf(e,"position",qF),xae=new Set(["image","url"]),Cae=e=>Sf(e,xae,Aae),Eae=e=>Sf(e,"",kae),Th=()=>!0,Sf=(e,t,n)=>{const r=HF.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},_ae=e=>pae.test(e)&&!mae.test(e),qF=()=>!1,kae=e=>gae.test(e),Aae=e=>vae.test(e),Tae=()=>{const e=sn("colors"),t=sn("spacing"),n=sn("blur"),r=sn("brightness"),o=sn("borderColor"),s=sn("borderRadius"),i=sn("borderSpacing"),c=sn("borderWidth"),u=sn("contrast"),d=sn("grayscale"),h=sn("hueRotate"),m=sn("invert"),g=sn("gap"),v=sn("gradientColorStops"),S=sn("gradientColorStopPositions"),b=sn("inset"),C=sn("margin"),E=sn("opacity"),k=sn("padding"),A=sn("saturate"),R=sn("scale"),N=sn("sepia"),O=sn("skew"),I=sn("space"),M=sn("translate"),z=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",it,t],L=()=>[it,t],B=()=>["",Da,Ki],K=()=>["auto",Nd,it],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",it],_e=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[Nd,it];return{cacheSize:500,separator:":",theme:{colors:[Th],spacing:[Da,Ki],blur:["none","",Yi,it],brightness:j(),borderColor:[e],borderRadius:["none","","full",Yi,it],borderSpacing:L(),borderWidth:B(),contrast:j(),grayscale:de(),hueRotate:j(),invert:de(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[yae,Ki],inset:U(),margin:U(),opacity:j(),padding:L(),saturate:j(),scale:j(),sepia:de(),skew:j(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",it]}],container:["container"],columns:[{columns:[Yi]}],"break-after":[{"break-after":_e()}],"break-before":[{"break-before":_e()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...le(),it]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ah,it]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",it]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",Ah,it]}],"grid-cols":[{"grid-cols":[Th]}],"col-start-end":[{col:["auto",{span:["full",Ah,it]},it]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[Th]}],"row-start-end":[{row:["auto",{span:[Ah,it]},it]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",it]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",it]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",it,t]}],"min-w":[{"min-w":[it,t,"min","max","fit"]}],"max-w":[{"max-w":[it,t,"none","full","min","max","fit","prose",{screen:[Yi]},Yi]}],h:[{h:[it,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[it,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[it,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[it,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Yi,Ki]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",dx]}],"font-family":[{font:[Th]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",it]}],"line-clamp":[{"line-clamp":["none",Nd,dx]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Da,it]}],"list-image":[{"list-image":["none",it]}],"list-style-type":[{list:["none","disc","decimal",it]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Da,Ki]}],"underline-offset":[{"underline-offset":["auto",Da,it]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",it]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",it]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),wae]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Sae]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cae]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Da,it]}],"outline-w":[{outline:[Da,Ki]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[Da,Ki]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Yi,Eae]}],"shadow-color":[{shadow:[Th]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Yi,it]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[A]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",it]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",it]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",it]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[Ah,it]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",it]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",it]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",it]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Da,Ki,dx]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Iae=uae(Tae);function ke(...e){return Iae(pse(e))}const Ih={action:null,nextPrefix:null,preventDefault:!1},Rae={b:"goBrief",i:"goInbox",s:"goSent",f:"goFlagged",",":"goSettings"},Oae={j:{action:"focusNext"},k:{action:"focusPrevious"},arrowdown:{action:"focusNext"},arrowup:{action:"focusPrevious"},home:{action:"focusFirst"},end:{action:"focusLast"},enter:{action:"openFocused"}," ":{action:"toggleSelect"},delete:{action:"delete"},backspace:{action:"delete"},u:{action:"toggleRead"},x:{action:"toggleSelect"},r:{action:"reply"},a:{action:"replyAll"},f:{action:"forward"},"#":{action:"delete"},s:{action:"toggleStar"},m:{action:"muteSender"},b:{action:"blockSender"},v:{action:"vipSender"},"!":{action:"markJunk"},i:{action:"toggleIntelligence"},d:{action:"toggleDensity"},"/":{action:"focusSearch"},c:{action:"compose"},"?":{action:"help"}};function Nae(e,t){const n=e.key.toLowerCase(),r=e.metaKey||e.ctrlKey;if(e.inEditable)return{...Ih,nextPrefix:t==="g"?null:t};if(e.onControl&&(n==="enter"||n===" "))return{...Ih,nextPrefix:t==="g"?null:t};if(r&&n==="n")return{action:"compose",nextPrefix:null,preventDefault:!0};if(r&&n==="a")return{action:"selectAll",nextPrefix:null,preventDefault:!0};if(r)return{...Ih,nextPrefix:t==="g"?null:t};if(n==="escape")return{action:"back",nextPrefix:null,preventDefault:!1};if(t==="g"){const i=Rae[n===","?",":n]??null;return{action:i,nextPrefix:null,preventDefault:i!==null}}if(n==="g"&&!e.shiftKey)return{action:null,nextPrefix:"g",preventDefault:!0};if(e.shiftKey){const s=n==="j"||n==="arrowdown";if(s||(n==="k"||n==="arrowup"))return{action:s?"extendSelectDown":"extendSelectUp",nextPrefix:null,preventDefault:!0}}const o=Oae[n];if(o){const s=o.requireShift===!0,i=n.length===1&&!/[a-z0-9]/.test(n);return!s&&e.shiftKey&&!i?Ih:{action:o.action,nextPrefix:null,preventDefault:!0}}return Ih}function Mae(e){if(!(e instanceof HTMLElement))return!1;const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"||e.isContentEditable}const Pae="data-message-row",Dae='button, a[href], summary, [role="button"], [role="menuitem"], [role="tab"], [role="switch"], [role="checkbox"]';function Lae(e){if(!(e instanceof HTMLElement))return!1;const t=e.closest(Dae);return t?!t.hasAttribute(Pae):!1}const zae=["reply","replyAll","forward","delete","toggleStar","toggleRead","muteSender","blockSender","vipSender","markJunk"],Uae=["focusNext","focusPrevious","focusFirst","focusLast","openFocused","toggleSelect","extendSelectDown","extendSelectUp","selectAll","toggleDensity"],cr=(e,...t)=>({action:e,requires:t});cr("help"),cr("goBrief",{listIsNot:"brief"}),cr("goFlagged",{listIsNot:"flagged"}),cr("goInbox",{listIsNot:"inbox"}),cr("goSent",{listIsNot:"sent"}),cr("goSettings"),cr("compose"),cr("focusSearch"),cr("toggleIntelligence"),[...Uae.map(e=>cr(e,"listVisible")),...zae.map(e=>cr(e,"aimed")),cr("back","selection")],cr("focusNext","threadOpen",{not:"listVisible"}),cr("focusPrevious","threadOpen",{not:"listVisible"}),cr("reply","threadOpen"),cr("replyAll","threadOpen"),cr("forward","threadOpen"),cr("back");function jae(e,t){const n=t.at(-1);return n?n.handles.includes(e)?{outcome:"act",target:{kind:"overlay",frame:n}}:{outcome:"contained",by:{kind:"overlay",frame:n}}:null}const Fae="[data-escape-owner]";let Hd=[],$ae=0;const Bae=()=>++$ae;function WF(){const[e]=_.useState(Bae);return e}const Hae=(e,t)=>e.depth-t.depth;function qae(){return[...Hd].sort(Hae).map(e=>({id:e.id,handles:Object.entries(e.run()).filter(([,t])=>t).map(([t])=>t)}))}function Wae(){let e;for(const t of Hd)(!e||t.depth>e.depth)&&(e=t);return e}function y$e(e){return jae(e,qae())}function Vae(e){if(e.key==="Escape"){const t=document.activeElement;return t instanceof Element&&t.closest(Fae)?null:"back"}return Nae({key:e.key,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,inEditable:Mae(e.target),onControl:Lae(e.target)},null).action}function rM(e){const t=Wae();if(!t)return;const n=Vae(e);if(!n)return;const r=t.run()[n];r&&(e.preventDefault(),e.stopImmediatePropagation(),r())}function oM(e){const t=Hd.length===0;if(Hd=e,t!==(e.length===0)){if(e.length>0){window.addEventListener("keydown",rM,!0);return}window.removeEventListener("keydown",rM,!0)}}function xy({id:e,open:t,answers:n={}}){const r=_.useRef(n);r.current=n;const o=WF();_.useEffect(()=>{if(!t)return;const s={id:e,depth:o,run:()=>r.current};return oM([...Hd,s]),()=>{oM(Hd.filter(i=>i!==s))}},[e,t,o])}const VF="inline-flex items-center justify-center gap-2 rounded-md font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface disabled:opacity-50 disabled:pointer-events-none",GF={primary:"bg-accent text-accent-fg hover:bg-accent-hover",secondary:"bg-surface text-fg border border-line hover:bg-surface-sunken hover:border-line-strong",ghost:"text-fg-muted hover:bg-surface-sunken hover:text-fg",danger:"bg-danger text-accent-fg hover:opacity-90"},KF={sm:"h-7 px-2.5 text-xs",md:"h-9 px-3.5 text-sm",touch:"h-11 w-11 text-sm"};function Bt({variant:e="primary",size:t="md",icon:n,className:r,children:o,ref:s,...i}){return x.jsxs("button",{type:"button",ref:s,className:ke(VF,GF[e],KF[t],r),...i,children:[n,o]})}function b$e({variant:e="primary",size:t="md",icon:n,external:r,className:o,children:s,...i}){return x.jsxs("a",{className:ke(VF,GF[e],KF[t],o),...r?{target:"_blank",rel:"noopener noreferrer"}:{},...i,children:[n,s]})}const Gae='a[href], button, input, select, textarea, iframe, [tabindex], [contenteditable]:not([contenteditable="false"])';function Kae(e){if(Number(e.getAttribute("tabindex")??0)<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"||e.closest("[inert], [hidden], [aria-hidden='true']"))return!1;const t=getComputedStyle(e);return t.display!=="none"&&t.visibility!=="hidden"}function sM(e){const t=e.querySelectorAll('[role="dialog"][aria-modal="true"]');return[...(t[t.length-1]??e).querySelectorAll(Gae)].filter(Kae)}const E3=new Set;function Yae(e){for(const t of E3)if(t>e)return!1;return!0}function Zae(e,t){return!(t instanceof HTMLElement)||t===document.body||t===document.documentElement?!1:!e.contains(t)}function bm(e,t){const n=WF();_.useEffect(()=>{if(t)return E3.add(n),()=>{E3.delete(n)}},[t,n]),_.useEffect(()=>{if(!t)return;const r=document.activeElement instanceof HTMLElement?document.activeElement:null,o=e.current;return o&&(sM(o)[0]??o).focus(),()=>{r?.isConnected&&r.focus()}},[t,e]),_.useEffect(()=>{if(!t)return;const r=o=>{if(o.key!=="Tab"||o.defaultPrevented||!Yae(n))return;const s=e.current;if(!s)return;const i=document.activeElement;if(Zae(s,i))return;const c=sM(s),u=c[0],d=c.at(-1);if(!u||!d){o.preventDefault(),s.focus();return}const h=i instanceof HTMLElement&&c.includes(i);if(o.shiftKey){(!h||i===u)&&(o.preventDefault(),d.focus());return}(!h||i===d)&&(o.preventDefault(),u.focus())};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t,e,n])}const Xae=({label:e,onDismiss:t,className:n})=>x.jsx("button",{type:"button","aria-label":e,tabIndex:-1,onClick:t,className:ke("absolute inset-0 bg-canvas/80",n)}),Qae={info:"bg-accent-2/15 text-accent-2 border-accent-2/40",success:"bg-positive/15 text-positive border-positive/40",warning:"bg-warning/15 text-warning border-warning/40",danger:"bg-danger/15 text-danger border-danger/40"},Jae={info:"bg-surface-sunken text-fg-muted",success:"bg-positive/10 text-positive",warning:"bg-warning/10 text-warning",danger:"bg-danger-soft text-danger"},eie={info:"status",success:"status",warning:"alert",danger:"alert"};function Jo({tone:e="info",variant:t="framed",onDismiss:n,role:r,className:o,children:s,...i}){const c=t==="soft";return x.jsxs("div",{role:r??eie[e],className:ke("flex gap-2 px-3 py-2 text-sm",c?ke("items-start rounded-md",Jae[e]):ke("items-center border",Qae[e]),o),...i,children:[x.jsx("div",{className:"flex-1 min-w-0",children:s}),n&&(c?x.jsx(Bt,{variant:"ghost",size:"sm",icon:x.jsx(ti,{className:"size-3.5"}),onClick:n,"aria-label":"Dismiss",className:"-mr-1 shrink-0"}):x.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"shrink-0 rounded-md p-1 hover:bg-fg/10 transition-colors",children:x.jsx(ti,{className:"size-4","aria-hidden":"true"})}))]})}const tie={neutral:"bg-surface-sunken text-fg-muted",accent:"bg-accent-2-soft text-accent-2",positive:"bg-surface-sunken text-positive",warning:"bg-surface-sunken text-warning",danger:"bg-danger-soft text-danger"},nie={neutral:"bg-fg-subtle",accent:"bg-accent-2",positive:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function _3({tone:e="neutral",dot:t,className:n,children:r,...o}){return x.jsxs("span",{className:ke("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-2xs font-medium",tie[e],n),...o,children:[t&&x.jsx("span",{className:ke("size-1.5 rounded-full",nie[e])}),r]})}const b1=480,cd=1320,uT=90;function k3(e){return Number(e.slice(11,13))*60+Number(e.slice(14,16))}function S$e(e){const t=Math.max(0,Math.min(1440,Math.round(e)));return`${String(Math.floor(t/60)).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`}function w$e(e){const t=Math.round(e);if(t<60)return`${t}m`;const n=Math.floor(t/60),r=t%60;return r===0?`${n}h`:`${n}h ${r}m`}function ks(e,t){const n=new Date(`${e}T00:00:00Z`);return n.setUTCDate(n.getUTCDate()+t),n.toISOString().slice(0,10)}function x$e(e,t){return Math.round((Date.parse(`${t}T00:00:00Z`)-Date.parse(`${e}T00:00:00Z`))/864e5)}function C$e(e){const t=e.start.slice(0,10),n=e.end.slice(0,10);if(!e.allDay)return n;const r=ks(n,-1);return r<t?t:r}function E$e(e,t){const n=[];for(let r=e;r<=t;r=ks(r,1))n.push(r);return n}function _$e(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r).toLocaleDateString("en-GB",{month:"long",year:"numeric"})}function k$e(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r).toLocaleDateString("en-GB",{weekday:"short",day:"numeric",month:"short"})}function A$e(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r).toLocaleDateString("en-GB",{weekday:"long"})}function T$e(e,t){const[n,r,o]=e.split("-").map(Number),[s,i,c]=t.split("-").map(Number),u=new Date(n,r-1,o),d=new Date(s,i-1,c),h=u.toLocaleDateString("en-GB",{weekday:"short",day:"numeric",...r===i?{}:{month:"short"}}),m=d.toLocaleDateString("en-GB",{weekday:"short",day:"numeric",month:"short"});return`${h} – ${m}`}function rie(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r).toLocaleDateString("en-GB",{weekday:"short"})}function dl(e){return new Date(e).getTime()}function oie(e,t){return e.allDay?t>=e.start.slice(0,10)&&t<e.end.slice(0,10):e.start.slice(0,10)===t}function sie(e,t){return dl(e.start)<dl(t.end)&&dl(t.start)<dl(e.end)}function aie(e){const t=e.map(s=>[dl(s.start),dl(s.end)]).sort((s,i)=>s[0]-i[0]);let n=0,r=0,o=0;for(const[s,i]of t){if(s>o){n+=o-r,r=s,o=i;continue}o=Math.max(o,i)}return n+=o-r,Math.round(n/6e4)}function iie(e){const t=[];for(const n of e){const r=e.filter(s=>s.id===n.id||sie(n,s)).map(s=>s.id).sort();if(r.length<2)continue;const o=r.join("|");t.some(s=>s.join("|")===o)||t.push(r)}return t.filter(n=>!t.some(r=>r!==n&&n.every(o=>r.includes(o))))}function I$e(e,t,n){const r=t.filter(s=>oie(s,e)),o=r.filter(s=>!s.allDay).sort((s,i)=>dl(s.start)-dl(i.start));return{date:e,weekdayLabel:rie(e),dayNumber:Number(e.slice(8)),isToday:e===n,timed:o,allDay:r.filter(s=>s.allDay),busyMinutes:aie(o),conflicts:iie(o)}}function lie(e){return e.timed.length===0&&e.allDay.length===0}function cie(e){return YF(e.timed.map(t=>({from:k3(t.start),to:k3(t.end)})))}function YF(e){const t=[...e].sort((r,o)=>r.from-o.from),n=[];for(const r of t){const o=n[n.length-1];if(o&&r.from<=o.to){o.to=Math.max(o.to,r.to);continue}n.push({...r})}return n}function aM(e){return Math.min(Math.max(e,b1),cd)}function uie(e,t,n=uT){const r=YF(t);if(r.length===0)return[{date:e,startMinute:b1,endMinute:cd,minutes:cd-b1,wholeDay:!0}];const o=[];let s=b1;for(const i of r){const c=aM(i.from),u=aM(i.to);c-s>=n&&o.push({date:e,startMinute:s,endMinute:c,minutes:c-s,wholeDay:!1}),s=Math.max(s,c,u)}return cd-s>=n&&o.push({date:e,startMinute:s,endMinute:cd,minutes:cd-s,wholeDay:!1}),o}function die(e,t=uT){return uie(e.date,cie(e),t)}function R$e(e,t,{ignoreIds:n=[]}={}){const r=Date.parse(e.start),o=Date.parse(e.end);return t.filter(s=>s.allDay||s.myRsvp==="declined"||n.includes(s.id)?!1:Date.parse(s.start)<o&&r<Date.parse(s.end))}function O$e(e,t){const n=[];let r=[];const o=()=>{r.length!==0&&(r.length===1?n.push({kind:"day",key:r[0].date,day:r[0]}):n.push({kind:"run",key:`run_${r[0].date}`,from:r[0].date,to:r[r.length-1].date,days:r.length}),r=[])};for(const s of e){if(lie(s)&&!t.includes(s.date)){r.push(s);continue}o(),n.push({kind:"day",key:s.date,day:s})}return o(),n}function N$e(e){const t=[];for(const n of e){const r=t[t.length-1],o=r?Math.max(...r.map(s=>Date.parse(s.end))):0;if(r&&Date.parse(n.start)<o){r.push(n);continue}t.push([n])}return t}function M$e(e,t){const n=Date.parse(t),r=t.slice(0,10),o=e.flatMap(d=>d.timed).sort((d,h)=>Date.parse(d.start)-Date.parse(h.start)),s=o.filter(d=>Date.parse(d.start)<=n&&Date.parse(d.end)>n),i=o.filter(d=>Date.parse(d.start)>n),c=i[0],u=s.filter(d=>d.start.slice(0,10)===r).length+i.filter(d=>d.start.slice(0,10)===r).length;return{running:s,next:c,minutesUntilNext:c?Math.round((Date.parse(c.start)-n)/6e4):0,after:i[1],restOfDay:u,free:fie(e,t,1)[0]}}function fie(e,t,n){const r=t.slice(0,10),o=k3(t),s=[];for(const i of e)if(!(i.date<r))for(const c of die(i)){if(i.date>r)s.push(c);else{const u=Math.max(c.startMinute,o);if(c.endMinute-u<uT)continue;s.push({...c,startMinute:u,minutes:c.endMinute-u,wholeDay:c.wholeDay&&u===c.startMinute})}if(s.length===n)return s}return s}const hie={"cal-1":{solid:"bg-cal-1",soft:"bg-cal-1-soft",text:"text-cal-1",border:"border-cal-1",rail:"border-l-cal-1"},"cal-2":{solid:"bg-cal-2",soft:"bg-cal-2-soft",text:"text-cal-2",border:"border-cal-2",rail:"border-l-cal-2"},"cal-3":{solid:"bg-cal-3",soft:"bg-cal-3-soft",text:"text-cal-3",border:"border-cal-3",rail:"border-l-cal-3"},"cal-4":{solid:"bg-cal-4",soft:"bg-cal-4-soft",text:"text-cal-4",border:"border-cal-4",rail:"border-l-cal-4"},"cal-5":{solid:"bg-cal-5",soft:"bg-cal-5-soft",text:"text-cal-5",border:"border-cal-5",rail:"border-l-cal-5"},"cal-6":{solid:"bg-cal-6",soft:"bg-cal-6-soft",text:"text-cal-6",border:"border-cal-6",rail:"border-l-cal-6"}};function ZF(e){return hie[e]}function iM(e){const t=ZF(e.color),n=e.rsvp==="tentative"||e.status==="tentative";return ke("flex min-w-0 overflow-hidden rounded-sm border-l-2 px-1.5 py-0.5",t.soft,t.text,t.rail,e.layout==="column"||e.stacked?"flex-col":"items-center gap-1.5",n&&"border-y border-r border-dashed",n&&t.border,e.rsvp==="declined"&&"opacity-60",e.selected&&"ring-2 ring-ring",e.density==="compact"?"text-2xs":"text-xs")}function pie({title:e,timeText:t,layout:n,rsvp:r,hasThread:o,isRecurring:s,zoneCertainty:i,trailing:c,detail:u}){const d=n==="column",h=i==="ambiguous",m=!d&&u!==void 0,g=x.jsxs("span",{className:ke("flex min-w-0 items-center gap-1",d&&"w-full",r==="declined"&&"line-through"),children:[t!==""&&x.jsx("span",{className:"shrink-0 tabular-nums opacity-80",children:t}),x.jsx("span",{className:"truncate font-medium",children:e})]}),v=(s||o||h)&&x.jsxs("span",{className:ke("flex shrink-0 items-center gap-1",d&&"mt-0.5",!d&&c===void 0&&"ml-auto"),children:[s&&x.jsx(Hse,{className:"size-2.5","aria-label":"Repeats"}),o&&x.jsx(jse,{className:"size-2.5","aria-label":"From mail"}),h&&x.jsx(Use,{className:"size-2.5 text-warning","aria-label":"Unclear zone"})]}),S=c!==void 0&&x.jsx("span",{className:ke("shrink-0 opacity-80",!d&&"ml-auto"),children:c});return x.jsxs(x.Fragment,{children:[m?x.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[g,v,S]}):x.jsxs(x.Fragment,{children:[g,v,S]}),u]})}function mie({topBar:e,appBar:t,children:n}){return x.jsxs(x.Fragment,{children:[e,x.jsxs("div",{className:"flex min-h-0 flex-1",children:[t,x.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:n})]})]})}const gie=1024,vie=1280;function yie(e,t=gie,n=vie){const r=e>=t;return{nav:r,reading:r,intelligence:e>=n}}function P$e(e){return e===void 0?!1:e.handlers.focusNext!==void 0&&e.handlers.focusPrevious!==void 0}function bie(e){const t=_.useRef(null),[n,r]=_.useState(e??null);return _.useEffect(()=>{const o=t.current;if(!o||typeof ResizeObserver>"u")return;const s=new ResizeObserver(u=>{const d=u[0];d&&r(d.contentRect.width)});s.observe(o);const i=getComputedStyle(o),c=Number.parseFloat(i.paddingLeft)+Number.parseFloat(i.paddingRight);return r(o.clientWidth-c),()=>s.disconnect()},[]),[t,n]}function A3({open:e,onClose:t,title:n,children:r,className:o,anchor:s="center"}){const i=_.useRef(null);if(xy({id:"dialog",open:e,answers:{back:t}}),bm(i,e),!e)return null;const c=s==="left",u=s==="right";return x.jsxs("div",{className:ke("fixed inset-0 z-50 flex",c?"items-stretch justify-start":u?"items-stretch justify-end":"items-center justify-center px-4"),children:[x.jsx(Xae,{label:"Dismiss dialog",onDismiss:t}),x.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title",tabIndex:-1,className:ke("relative z-10 overflow-hidden border-line bg-surface shadow-xl",c?"safe-area-frame h-full w-72 max-w-[85vw] border-r":u?"safe-area-frame h-full w-[80vw] max-w-[320px] border-l":"w-full max-w-lg rounded-md border",o),children:[x.jsx("h2",{id:"dialog-title",className:"sr-only",children:n}),r]})]})}const Cy=_.createContext(null);Cy.displayName="PanelGroupContext";const Nn={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},dT=10,Cc=_.useLayoutEffect,lM=TF.useId,Sie=typeof lM=="function"?lM:()=>null;let wie=0;function fT(e=null){const t=Sie(),n=_.useRef(e||t||null);return n.current===null&&(n.current=""+wie++),e??n.current}function XF({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:s,id:i,maxSize:c,minSize:u,onCollapse:d,onExpand:h,onResize:m,order:g,style:v,tagName:S="div",...b}){const C=_.useContext(Cy);if(C===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:E,expandPanel:k,getPanelSize:A,getPanelStyle:R,groupId:N,isPanelCollapsed:O,reevaluatePanelConstraints:I,registerPanel:M,resizePanel:z,unregisterPanel:q}=C,U=fT(i),L=_.useRef({callbacks:{onCollapse:d,onExpand:h,onResize:m},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:c,minSize:u},id:U,idIsFromProps:i!==void 0,order:g});_.useRef({didLogMissingDefaultSizeWarning:!1}),Cc(()=>{const{callbacks:K,constraints:le}=L.current,$={...le};L.current.id=U,L.current.idIsFromProps=i!==void 0,L.current.order=g,K.onCollapse=d,K.onExpand=h,K.onResize=m,le.collapsedSize=n,le.collapsible=r,le.defaultSize=o,le.maxSize=c,le.minSize=u,($.collapsedSize!==le.collapsedSize||$.collapsible!==le.collapsible||$.maxSize!==le.maxSize||$.minSize!==le.minSize)&&I(L.current,$)}),Cc(()=>{const K=L.current;return M(K),()=>{q(K)}},[g,U,M,q]),_.useImperativeHandle(s,()=>({collapse:()=>{E(L.current)},expand:K=>{k(L.current,K)},getId(){return U},getSize(){return A(L.current)},isCollapsed(){return O(L.current)},isExpanded(){return!O(L.current)},resize:K=>{z(L.current,K)}}),[E,k,A,O,U,z]);const B=R(L.current,o);return _.createElement(S,{...b,children:e,className:t,id:U,style:{...B,...v},[Nn.groupId]:N,[Nn.panel]:"",[Nn.panelCollapsible]:r||void 0,[Nn.panelId]:U,[Nn.panelSize]:parseFloat(""+B.flexGrow).toFixed(1)})}const QF=_.forwardRef((e,t)=>_.createElement(XF,{...e,forwardedRef:t}));XF.displayName="Panel";QF.displayName="forwardRef(Panel)";let T3=null,S1=-1,al=null;function xie(e,t){if(t){const n=(t&r$)!==0,r=(t&o$)!==0,o=(t&s$)!==0,s=(t&a$)!==0;if(n)return o?"se-resize":s?"ne-resize":"e-resize";if(r)return o?"sw-resize":s?"nw-resize":"w-resize";if(o)return"s-resize";if(s)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Cie(){al!==null&&(document.head.removeChild(al),T3=null,al=null,S1=-1)}function fx(e,t){var n,r;const o=xie(e,t);if(T3!==o){if(T3=o,al===null&&(al=document.createElement("style"),document.head.appendChild(al)),S1>=0){var s;(s=al.sheet)===null||s===void 0||s.removeRule(S1)}S1=(n=(r=al.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${o} !important;}`))!==null&&n!==void 0?n:-1}}function JF(e){return e.type==="keydown"}function e$(e){return e.type.startsWith("pointer")}function t$(e){return e.type.startsWith("mouse")}function Ey(e){if(e$(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(t$(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Eie(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function _ie(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function kie(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:dM(e),b:dM(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;lt(r,"Stacking order can only be calculated for elements with a common ancestor");const o={a:uM(cM(n.a)),b:uM(cM(n.b))};if(o.a===o.b){const s=r.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let c=s.length;for(;c--;){const u=s[c];if(u===i.a)return 1;if(u===i.b)return-1}}return Math.sign(o.a-o.b)}const Aie=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Tie(e){var t;const n=getComputedStyle((t=n$(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function Iie(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Tie(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Aie.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function cM(e){let t=e.length;for(;t--;){const n=e[t];if(lt(n,"Missing node"),Iie(n))return n}return null}function uM(e){return e&&Number(getComputedStyle(e).zIndex)||0}function dM(e){const t=[];for(;e;)t.push(e),e=n$(e);return t}function n$(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const r$=1,o$=2,s$=4,a$=8,Rie=Eie()==="coarse";let xs=[],Md=!1,hc=new Map,_y=new Map;const Np=new Set;function Oie(e,t,n,r,o){var s;const{ownerDocument:i}=t,c={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},u=(s=hc.get(i))!==null&&s!==void 0?s:0;return hc.set(i,u+1),Np.add(c),Q1(),function(){var h;_y.delete(e),Np.delete(c);const m=(h=hc.get(i))!==null&&h!==void 0?h:1;if(hc.set(i,m-1),Q1(),m===1&&hc.delete(i),xs.includes(c)){const g=xs.indexOf(c);g>=0&&xs.splice(g,1),pT(),o("up",!0,null)}}}function Nie(e){const{target:t}=e,{x:n,y:r}=Ey(e);Md=!0,hT({target:t,x:n,y:r}),Q1(),xs.length>0&&(J1("down",e),e.preventDefault(),i$(t)||e.stopImmediatePropagation())}function hx(e){const{x:t,y:n}=Ey(e);if(Md&&e.buttons===0&&(Md=!1,J1("up",e)),!Md){const{target:r}=e;hT({target:r,x:t,y:n})}J1("move",e),pT(),xs.length>0&&e.preventDefault()}function px(e){const{target:t}=e,{x:n,y:r}=Ey(e);_y.clear(),Md=!1,xs.length>0&&(e.preventDefault(),i$(t)||e.stopImmediatePropagation()),J1("up",e),hT({target:t,x:n,y:r}),pT(),Q1()}function i$(e){let t=e;for(;t;){if(t.hasAttribute(Nn.resizeHandle))return!0;t=t.parentElement}return!1}function hT({target:e,x:t,y:n}){xs.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),Np.forEach(o=>{const{element:s,hitAreaMargins:i}=o,c=s.getBoundingClientRect(),{bottom:u,left:d,right:h,top:m}=c,g=Rie?i.coarse:i.fine;if(t>=d-g&&t<=h+g&&n>=m-g&&n<=u+g){if(r!==null&&document.contains(r)&&s!==r&&!s.contains(r)&&!r.contains(s)&&kie(r,s)>0){let S=r,b=!1;for(;S&&!S.contains(s);){if(_ie(S.getBoundingClientRect(),c)){b=!0;break}S=S.parentElement}if(b)return}xs.push(o)}})}function mx(e,t){_y.set(e,t)}function pT(){let e=!1,t=!1;xs.forEach(r=>{const{direction:o}=r;o==="horizontal"?e=!0:t=!0});let n=0;_y.forEach(r=>{n|=r}),e&&t?fx("intersection",n):e?fx("horizontal",n):t?fx("vertical",n):Cie()}let gx=new AbortController;function Q1(){gx.abort(),gx=new AbortController;const e={capture:!0,signal:gx.signal};Np.size&&(Md?(xs.length>0&&hc.forEach((t,n)=>{const{body:r}=n;t>0&&(r.addEventListener("contextmenu",px,e),r.addEventListener("pointerleave",hx,e),r.addEventListener("pointermove",hx,e))}),window.addEventListener("pointerup",px,e),window.addEventListener("pointercancel",px,e)):hc.forEach((t,n)=>{const{body:r}=n;t>0&&(r.addEventListener("pointerdown",Nie,e),r.addEventListener("pointermove",hx,e))}))}function J1(e,t){Np.forEach(n=>{const{setResizeHandlerState:r}=n,o=xs.includes(n);r(e,o,t)})}function Mie(){const[e,t]=_.useState(0);return _.useCallback(()=>t(n=>n+1),[])}function lt(e,t){if(!e)throw console.error(t),Error(t)}function zc(e,t,n=dT){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Wa(e,t,n=dT){return zc(e,t,n)===0}function To(e,t,n){return zc(e,t,n)===0}function Pie(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const o=e[r],s=t[r];if(!To(o,s,n))return!1}return!0}function yd({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];lt(r!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:s,maxSize:i=100,minSize:c=0}=r;if(zc(n,c)<0)if(s){const u=(o+c)/2;zc(n,u)<0?n=o:n=c}else n=c;return n=Math.min(i,n),n=parseFloat(n.toFixed(dT)),n}function ep({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:s}){if(To(e,0))return t;const i=[...t],[c,u]=r;lt(c!=null,"Invalid first pivot index"),lt(u!=null,"Invalid second pivot index");let d=0;if(s==="keyboard"){{const m=e<0?u:c,g=n[m];lt(g,`Panel constraints not found for index ${m}`);const{collapsedSize:v=0,collapsible:S,minSize:b=0}=g;if(S){const C=t[m];if(lt(C!=null,`Previous layout not found for panel index ${m}`),To(C,v)){const E=b-C;zc(E,Math.abs(e))>0&&(e=e<0?0-E:E)}}}{const m=e<0?c:u,g=n[m];lt(g,`No panel constraints found for index ${m}`);const{collapsedSize:v=0,collapsible:S,minSize:b=0}=g;if(S){const C=t[m];if(lt(C!=null,`Previous layout not found for panel index ${m}`),To(C,b)){const E=C-v;zc(E,Math.abs(e))>0&&(e=e<0?0-E:E)}}}}{const m=e<0?1:-1;let g=e<0?u:c,v=0;for(;;){const b=t[g];lt(b!=null,`Previous layout not found for panel index ${g}`);const E=yd({panelConstraints:n,panelIndex:g,size:100})-b;if(v+=E,g+=m,g<0||g>=n.length)break}const S=Math.min(Math.abs(e),Math.abs(v));e=e<0?0-S:S}{let g=e<0?c:u;for(;g>=0&&g<n.length;){const v=Math.abs(e)-Math.abs(d),S=t[g];lt(S!=null,`Previous layout not found for panel index ${g}`);const b=S-v,C=yd({panelConstraints:n,panelIndex:g,size:b});if(!To(S,C)&&(d+=S-C,i[g]=C,d.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(Pie(o,i))return o;{const m=e<0?u:c,g=t[m];lt(g!=null,`Previous layout not found for panel index ${m}`);const v=g+d,S=yd({panelConstraints:n,panelIndex:m,size:v});if(i[m]=S,!To(S,v)){let b=v-S,E=e<0?u:c;for(;E>=0&&E<n.length;){const k=i[E];lt(k!=null,`Previous layout not found for panel index ${E}`);const A=k+b,R=yd({panelConstraints:n,panelIndex:E,size:A});if(To(k,R)||(b-=R-k,i[E]=R),To(b,0))break;e>0?E--:E++}}}const h=i.reduce((m,g)=>g+m,0);return To(h,100)?i:o}function Die({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,s=0,i=0;const c=n[0];lt(c!=null,"No pivot index found"),t.forEach((m,g)=>{const{constraints:v}=m,{maxSize:S=100,minSize:b=0}=v;g===c?(r=b,o=S):(s+=b,i+=S)});const u=Math.min(o,100-s),d=Math.max(r,100-i),h=e[c];return{valueMax:u,valueMin:d,valueNow:h}}function Mp(e,t=document){return Array.from(t.querySelectorAll(`[${Nn.resizeHandleId}][data-panel-group-id="${e}"]`))}function l$(e,t,n=document){const o=Mp(e,n).findIndex(s=>s.getAttribute(Nn.resizeHandleId)===t);return o??null}function c$(e,t,n){const r=l$(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function u$(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function ky(e,t=document){const n=t.querySelector(`[${Nn.resizeHandleId}="${e}"]`);return n||null}function Lie(e,t,n,r=document){var o,s,i,c;const u=ky(t,r),d=Mp(e,r),h=u?d.indexOf(u):-1,m=(o=(s=n[h])===null||s===void 0?void 0:s.id)!==null&&o!==void 0?o:null,g=(i=(c=n[h+1])===null||c===void 0?void 0:c.id)!==null&&i!==void 0?i:null;return[m,g]}function zie({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:s,setLayout:i}){_.useRef({didWarnAboutMissingResizeHandle:!1}),Cc(()=>{if(!s)return;const c=Mp(n,s);for(let u=0;u<o.length-1;u++){const{valueMax:d,valueMin:h,valueNow:m}=Die({layout:r,panelsArray:o,pivotIndices:[u,u+1]}),g=c[u];if(g!=null){const v=o[u];lt(v,`No panel data found for index "${u}"`),g.setAttribute("aria-controls",v.id),g.setAttribute("aria-valuemax",""+Math.round(d)),g.setAttribute("aria-valuemin",""+Math.round(h)),g.setAttribute("aria-valuenow",m!=null?""+Math.round(m):"")}}return()=>{c.forEach((u,d)=>{u.removeAttribute("aria-controls"),u.removeAttribute("aria-valuemax"),u.removeAttribute("aria-valuemin"),u.removeAttribute("aria-valuenow")})}},[n,r,o,s]),_.useEffect(()=>{if(!s)return;const c=t.current;lt(c,"Eager values not found");const{panelDataArray:u}=c,d=u$(n,s);lt(d!=null,`No group found for id "${n}"`);const h=Mp(n,s);lt(h,`No resize handles found for group id "${n}"`);const m=h.map(g=>{const v=g.getAttribute(Nn.resizeHandleId);lt(v,"Resize handle element has no handle id attribute");const[S,b]=Lie(n,v,u,s);if(S==null||b==null)return()=>{};const C=E=>{if(!E.defaultPrevented)switch(E.key){case"Enter":{E.preventDefault();const k=u.findIndex(A=>A.id===S);if(k>=0){const A=u[k];lt(A,`No panel data found for index ${k}`);const R=r[k],{collapsedSize:N=0,collapsible:O,minSize:I=0}=A.constraints;if(R!=null&&O){const M=ep({delta:To(R,N)?I-N:N-R,initialLayout:r,panelConstraints:u.map(z=>z.constraints),pivotIndices:c$(n,v,s),prevLayout:r,trigger:"keyboard"});r!==M&&i(M)}}break}}};return g.addEventListener("keydown",C),()=>{g.removeEventListener("keydown",C)}});return()=>{m.forEach(g=>g())}},[s,e,t,n,r,o,i])}function fM(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function d$(e,t){const n=e==="horizontal",{x:r,y:o}=Ey(t);return n?r:o}function Uie(e,t,n,r,o){const s=n==="horizontal",i=ky(t,o);lt(i,`No resize handle element found for id "${t}"`);const c=i.getAttribute(Nn.groupId);lt(c,"Resize handle element has no group id attribute");let{initialCursorPosition:u}=r;const d=d$(n,e),h=u$(c,o);lt(h,`No group element found for id "${c}"`);const m=h.getBoundingClientRect(),g=s?m.width:m.height;return(d-u)/g*100}function jie(e,t,n,r,o,s){if(JF(e)){const i=n==="horizontal";let c=0;e.shiftKey?c=100:o!=null?c=o:c=10;let u=0;switch(e.key){case"ArrowDown":u=i?0:c;break;case"ArrowLeft":u=i?-c:0;break;case"ArrowRight":u=i?c:0;break;case"ArrowUp":u=i?0:-c;break;case"End":u=100;break;case"Home":u=-100;break}return u}else return r==null?0:Uie(e,t,n,r,s)}function Fie({panelDataArray:e}){const t=Array(e.length),n=e.map(s=>s.constraints);let r=0,o=100;for(let s=0;s<e.length;s++){const i=n[s];lt(i,`Panel constraints not found for index ${s}`);const{defaultSize:c}=i;c!=null&&(r++,t[s]=c,o-=c)}for(let s=0;s<e.length;s++){const i=n[s];lt(i,`Panel constraints not found for index ${s}`);const{defaultSize:c}=i;if(c!=null)continue;const u=e.length-r,d=o/u;r++,t[s]=d,o-=d}return t}function Vu(e,t,n){t.forEach((r,o)=>{const s=e[o];lt(s,`Panel data not found for index ${o}`);const{callbacks:i,constraints:c,id:u}=s,{collapsedSize:d=0,collapsible:h}=c,m=n[u];if(m==null||r!==m){n[u]=r;const{onCollapse:g,onExpand:v,onResize:S}=i;S&&S(r,m),h&&(g||v)&&(v&&(m==null||Wa(m,d))&&!Wa(r,d)&&v(),g&&(m==null||!Wa(m,d))&&Wa(r,d)&&g())}})}function a0(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function $ie({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:s=3}){const i=n[o];let c;return i==null?c=e!=null?e.toPrecision(s):"1":r.length===1?c="1":c=i.toPrecision(s),{flexBasis:0,flexGrow:c,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function Bie(e,t=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}function hM(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function f$(e){return`react-resizable-panels:${e}`}function h$(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:o,order:s}=t;return o?r:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function p$(e,t){try{const n=f$(e),r=t.getItem(n);if(r){const o=JSON.parse(r);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function Hie(e,t,n){var r,o;const s=(r=p$(e,n))!==null&&r!==void 0?r:{},i=h$(t);return(o=s[i])!==null&&o!==void 0?o:null}function qie(e,t,n,r,o){var s;const i=f$(e),c=h$(t),u=(s=p$(e,o))!==null&&s!==void 0?s:{};u[c]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(i,JSON.stringify(u))}catch(d){console.error(d)}}function pM({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((s,i)=>s+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(s=>`${s}%`).join(", ")}`);if(!To(r,100)&&n.length>0)for(let s=0;s<t.length;s++){const i=n[s];lt(i!=null,`No layout data found for index ${s}`);const c=100/r*i;n[s]=c}let o=0;for(let s=0;s<t.length;s++){const i=n[s];lt(i!=null,`No layout data found for index ${s}`);const c=yd({panelConstraints:t,panelIndex:s,size:i});i!=c&&(o+=i-c,n[s]=c)}if(!To(o,0))for(let s=0;s<t.length;s++){const i=n[s];lt(i!=null,`No layout data found for index ${s}`);const c=i+o,u=yd({panelConstraints:t,panelIndex:s,size:c});if(i!==u&&(o-=u-i,n[s]=u,To(o,0)))break}return n}const Wie=100,tp={getItem:e=>(hM(tp),tp.getItem(e)),setItem:(e,t)=>{hM(tp),tp.setItem(e,t)}},mM={};function m$({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:s=null,onLayout:i=null,keyboardResizeBy:c=null,storage:u=tp,style:d,tagName:h="div",...m}){const g=fT(s),v=_.useRef(null),[S,b]=_.useState(null),[C,E]=_.useState([]),k=Mie(),A=_.useRef({}),R=_.useRef(new Map),N=_.useRef(0),O=_.useRef({autoSaveId:e,direction:r,dragState:S,id:g,keyboardResizeBy:c,onLayout:i,storage:u}),I=_.useRef({layout:C,panelDataArray:[],panelDataArrayChanged:!1});_.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),_.useImperativeHandle(o,()=>({getId:()=>O.current.id,getLayout:()=>{const{layout:X}=I.current;return X},setLayout:X=>{const{onLayout:J}=O.current,{layout:ie,panelDataArray:ue}=I.current,ge=pM({layout:X,panelConstraints:ue.map(ee=>ee.constraints)});fM(ie,ge)||(E(ge),I.current.layout=ge,J&&J(ge),Vu(ue,ge,A.current))}}),[]),Cc(()=>{O.current.autoSaveId=e,O.current.direction=r,O.current.dragState=S,O.current.id=g,O.current.onLayout=i,O.current.storage=u}),zie({committedValuesRef:O,eagerValuesRef:I,groupId:g,layout:C,panelDataArray:I.current.panelDataArray,setLayout:E,panelGroupElement:v.current}),_.useEffect(()=>{const{panelDataArray:X}=I.current;if(e){if(C.length===0||C.length!==X.length)return;let J=mM[e];J==null&&(J=Bie(qie,Wie),mM[e]=J);const ie=[...X],ue=new Map(R.current);J(e,ie,ue,C,u)}},[e,C,u]),_.useEffect(()=>{});const M=_.useCallback(X=>{const{onLayout:J}=O.current,{layout:ie,panelDataArray:ue}=I.current;if(X.constraints.collapsible){const ge=ue.map(xe=>xe.constraints),{collapsedSize:ee=0,panelSize:Se,pivotIndices:Pe}=lc(ue,X,ie);if(lt(Se!=null,`Panel size not found for panel "${X.id}"`),!Wa(Se,ee)){R.current.set(X.id,Se);const Ge=ud(ue,X)===ue.length-1?Se-ee:ee-Se,ze=ep({delta:Ge,initialLayout:ie,panelConstraints:ge,pivotIndices:Pe,prevLayout:ie,trigger:"imperative-api"});a0(ie,ze)||(E(ze),I.current.layout=ze,J&&J(ze),Vu(ue,ze,A.current))}}},[]),z=_.useCallback((X,J)=>{const{onLayout:ie}=O.current,{layout:ue,panelDataArray:ge}=I.current;if(X.constraints.collapsible){const ee=ge.map(He=>He.constraints),{collapsedSize:Se=0,panelSize:Pe=0,minSize:xe=0,pivotIndices:Ge}=lc(ge,X,ue),ze=J??xe;if(Wa(Pe,Se)){const He=R.current.get(X.id),ot=He!=null&&He>=ze?He:ze,yn=ud(ge,X)===ge.length-1?Pe-ot:ot-Pe,Fe=ep({delta:yn,initialLayout:ue,panelConstraints:ee,pivotIndices:Ge,prevLayout:ue,trigger:"imperative-api"});a0(ue,Fe)||(E(Fe),I.current.layout=Fe,ie&&ie(Fe),Vu(ge,Fe,A.current))}}},[]),q=_.useCallback(X=>{const{layout:J,panelDataArray:ie}=I.current,{panelSize:ue}=lc(ie,X,J);return lt(ue!=null,`Panel size not found for panel "${X.id}"`),ue},[]),U=_.useCallback((X,J)=>{const{panelDataArray:ie}=I.current,ue=ud(ie,X);return $ie({defaultSize:J,dragState:S,layout:C,panelData:ie,panelIndex:ue})},[S,C]),L=_.useCallback(X=>{const{layout:J,panelDataArray:ie}=I.current,{collapsedSize:ue=0,collapsible:ge,panelSize:ee}=lc(ie,X,J);return lt(ee!=null,`Panel size not found for panel "${X.id}"`),ge===!0&&Wa(ee,ue)},[]),B=_.useCallback(X=>{const{layout:J,panelDataArray:ie}=I.current,{collapsedSize:ue=0,collapsible:ge,panelSize:ee}=lc(ie,X,J);return lt(ee!=null,`Panel size not found for panel "${X.id}"`),!ge||zc(ee,ue)>0},[]),K=_.useCallback(X=>{const{panelDataArray:J}=I.current;J.push(X),J.sort((ie,ue)=>{const ge=ie.order,ee=ue.order;return ge==null&&ee==null?0:ge==null?-1:ee==null?1:ge-ee}),I.current.panelDataArrayChanged=!0,k()},[k]);Cc(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:X,onLayout:J,storage:ie}=O.current,{layout:ue,panelDataArray:ge}=I.current;let ee=null;if(X){const Pe=Hie(X,ge,ie);Pe&&(R.current=new Map(Object.entries(Pe.expandToSizes)),ee=Pe.layout)}ee==null&&(ee=Fie({panelDataArray:ge}));const Se=pM({layout:ee,panelConstraints:ge.map(Pe=>Pe.constraints)});fM(ue,Se)||(E(Se),I.current.layout=Se,J&&J(Se),Vu(ge,Se,A.current))}}),Cc(()=>{const X=I.current;return()=>{X.layout=[]}},[]);const le=_.useCallback(X=>{let J=!1;const ie=v.current;return ie&&window.getComputedStyle(ie,null).getPropertyValue("direction")==="rtl"&&(J=!0),function(ge){ge.preventDefault();const ee=v.current;if(!ee)return()=>null;const{direction:Se,dragState:Pe,id:xe,keyboardResizeBy:Ge,onLayout:ze}=O.current,{layout:He,panelDataArray:ot}=I.current,{initialLayout:Oe}=Pe??{},yn=c$(xe,X,ee);let Fe=jie(ge,X,Se,Pe,Ge,ee);const zn=Se==="horizontal";zn&&J&&(Fe=-Fe);const Jt=ot.map(gr=>gr.constraints),dn=ep({delta:Fe,initialLayout:Oe??He,panelConstraints:Jt,pivotIndices:yn,prevLayout:He,trigger:JF(ge)?"keyboard":"mouse-or-touch"}),mo=!a0(He,dn);(e$(ge)||t$(ge))&&N.current!=Fe&&(N.current=Fe,!mo&&Fe!==0?zn?mx(X,Fe<0?r$:o$):mx(X,Fe<0?s$:a$):mx(X,0)),mo&&(E(dn),I.current.layout=dn,ze&&ze(dn),Vu(ot,dn,A.current))}},[]),$=_.useCallback((X,J)=>{const{onLayout:ie}=O.current,{layout:ue,panelDataArray:ge}=I.current,ee=ge.map(He=>He.constraints),{panelSize:Se,pivotIndices:Pe}=lc(ge,X,ue);lt(Se!=null,`Panel size not found for panel "${X.id}"`);const Ge=ud(ge,X)===ge.length-1?Se-J:J-Se,ze=ep({delta:Ge,initialLayout:ue,panelConstraints:ee,pivotIndices:Pe,prevLayout:ue,trigger:"imperative-api"});a0(ue,ze)||(E(ze),I.current.layout=ze,ie&&ie(ze),Vu(ge,ze,A.current))},[]),Q=_.useCallback((X,J)=>{const{layout:ie,panelDataArray:ue}=I.current,{collapsedSize:ge=0,collapsible:ee}=J,{collapsedSize:Se=0,collapsible:Pe,maxSize:xe=100,minSize:Ge=0}=X.constraints,{panelSize:ze}=lc(ue,X,ie);ze!=null&&(ee&&Pe&&Wa(ze,ge)?Wa(ge,Se)||$(X,Se):ze<Ge?$(X,Ge):ze>xe&&$(X,xe))},[$]),se=_.useCallback((X,J)=>{const{direction:ie}=O.current,{layout:ue}=I.current;if(!v.current)return;const ge=ky(X,v.current);lt(ge,`Drag handle element not found for id "${X}"`);const ee=d$(ie,J);b({dragHandleId:X,dragHandleRect:ge.getBoundingClientRect(),initialCursorPosition:ee,initialLayout:ue})},[]),de=_.useCallback(()=>{b(null)},[]),_e=_.useCallback(X=>{const{panelDataArray:J}=I.current,ie=ud(J,X);ie>=0&&(J.splice(ie,1),delete A.current[X.id],I.current.panelDataArrayChanged=!0,k())},[k]),j=_.useMemo(()=>({collapsePanel:M,direction:r,dragState:S,expandPanel:z,getPanelSize:q,getPanelStyle:U,groupId:g,isPanelCollapsed:L,isPanelExpanded:B,reevaluatePanelConstraints:Q,registerPanel:K,registerResizeHandle:le,resizePanel:$,startDragging:se,stopDragging:de,unregisterPanel:_e,panelGroupElement:v.current}),[M,S,r,z,q,U,g,L,B,Q,K,le,$,se,de,_e]),Y={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return _.createElement(Cy.Provider,{value:j},_.createElement(h,{...m,children:t,className:n,id:s,ref:v,style:{...Y,...d},[Nn.group]:"",[Nn.groupDirection]:r,[Nn.groupId]:g}))}const g$=_.forwardRef((e,t)=>_.createElement(m$,{...e,forwardedRef:t}));m$.displayName="PanelGroup";g$.displayName="forwardRef(PanelGroup)";function ud(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function lc(e,t,n){const r=ud(e,t),s=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:s}}function Vie({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){_.useEffect(()=>{if(e||n==null||r==null)return;const o=ky(t,r);if(o==null)return;const s=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const c=o.getAttribute(Nn.groupId);lt(c,`No group element found for id "${c}"`);const u=Mp(c,r),d=l$(c,t,r);lt(d!==null,`No resize element found for id "${t}"`);const h=i.shiftKey?d>0?d-1:u.length-1:d+1<u.length?d+1:0;u[h].focus();break}}};return o.addEventListener("keydown",s),()=>{o.removeEventListener("keydown",s)}},[r,e,t,n])}function v$({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:s,onClick:i,onDragging:c,onFocus:u,onPointerDown:d,onPointerUp:h,style:m={},tabIndex:g=0,tagName:v="div",...S}){var b,C;const E=_.useRef(null),k=_.useRef({onClick:i,onDragging:c,onPointerDown:d,onPointerUp:h});_.useEffect(()=>{k.current.onClick=i,k.current.onDragging=c,k.current.onPointerDown=d,k.current.onPointerUp=h});const A=_.useContext(Cy);if(A===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:R,groupId:N,registerResizeHandle:O,startDragging:I,stopDragging:M,panelGroupElement:z}=A,q=fT(o),[U,L]=_.useState("inactive"),[B,K]=_.useState(!1),[le,$]=_.useState(null),Q=_.useRef({state:U});Cc(()=>{Q.current.state=U}),_.useEffect(()=>{if(n)$(null);else{const j=O(q);$(()=>j)}},[n,q,O]);const se=(b=r?.coarse)!==null&&b!==void 0?b:15,de=(C=r?.fine)!==null&&C!==void 0?C:5;_.useEffect(()=>{if(n||le==null)return;const j=E.current;lt(j,"Element ref not attached");let Y=!1;return Oie(q,j,R,{coarse:se,fine:de},(J,ie,ue)=>{if(!ie){L("inactive");return}switch(J){case"down":{L("drag"),Y=!1,lt(ue,'Expected event to be defined for "down" action'),I(q,ue);const{onDragging:ge,onPointerDown:ee}=k.current;ge?.(!0),ee?.();break}case"move":{const{state:ge}=Q.current;Y=!0,ge!=="drag"&&L("hover"),lt(ue,'Expected event to be defined for "move" action'),le(ue);break}case"up":{L("hover"),M();const{onClick:ge,onDragging:ee,onPointerUp:Se}=k.current;ee?.(!1),Se?.(),Y||ge?.();break}}})},[se,R,n,de,O,q,le,I,M]),Vie({disabled:n,handleId:q,resizeHandler:le,panelGroupElement:z});const _e={touchAction:"none",userSelect:"none"};return _.createElement(v,{...S,children:e,className:t,id:o,onBlur:()=>{K(!1),s?.()},onFocus:()=>{K(!0),u?.()},ref:E,role:"separator",style:{..._e,...m},tabIndex:g,[Nn.groupDirection]:R,[Nn.groupId]:N,[Nn.resizeHandle]:"",[Nn.resizeHandleActive]:U==="drag"?"pointer":B?"keyboard":void 0,[Nn.resizeHandleEnabled]:!n,[Nn.resizeHandleId]:q,[Nn.resizeHandleState]:U})}v$.displayName="PanelResizeHandle";function gM({className:e,...t}){return x.jsx(g$,{className:ke("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}const Rh=QF;function vx({className:e,...t}){return x.jsx(v$,{className:ke("relative w-px shrink-0 bg-line transition-colors cursor-col-resize","after:absolute after:inset-y-0 after:left-1/2 after:w-1.5 after:-translate-x-1/2","data-[resize-handle-state=hover]:bg-line-strong","data-[resize-handle-state=drag]:bg-accent","focus-visible:outline-none focus-visible:bg-accent",e),...t})}function Gie({className:e,children:t}){const n=_.useRef(null),[r,o]=_.useState(null);return _.useEffect(()=>{const s=n.current?.parentElement;if(!s||typeof ResizeObserver>"u")return;const i=()=>{const u=Math.floor(s.getBoundingClientRect().width);o(d=>d===u?d:u)};i();const c=new ResizeObserver(i);return c.observe(s),()=>c.disconnect()},[]),x.jsx("div",{ref:n,className:e,style:r===null?void 0:{width:`${r}px`},children:t})}const y$=_.createContext(null);function Kie(e,t){return e==="list"?{size:62,max:78}:e==="detail"?{size:26,max:45}:{size:t==="compact"?43:33,max:58}}function D$e(){return _.useContext(y$)}function L$e({nav:e,list:t,reading:n,intelligence:r,intelligenceOpen:o=!0,hasThread:s=!0,density:i="comfortable",listBias:c="balanced",header:u,topBar:d,appBar:h,overlay:m,skeleton:g,isLoading:v=!1,initialWidth:S,navOpen:b,onOpenNav:C,onCloseNav:E}){const[k,A]=bie(S),R=yie(A??0),[N,O]=_.useState(!1),I=R.nav,M=I&&!N,z=R.reading&&!!n,q=R.intelligence,[U,L]=_.useState(!1),B=b!==void 0,K=B?b:U,le=()=>{B||L(!0),C?.()},$=()=>{B||L(!1),E?.()},Q=q&&o&&s&&!!r,de={panes:R,containerWidth:A,showNavPane:I,openNav:le,navCollapsed:N,toggleNav:()=>{if(!I){K?$():le();return}O(X=>!X)},showReadingPane:z,showIntelligencePane:q},_e=Kie(c,i),j=x.jsxs(gM,{direction:"horizontal",className:"min-h-0 flex-1",children:[x.jsx(Rh,{id:"list",order:1,defaultSize:z?_e.size:100,minSize:22,maxSize:z?_e.max:100,className:"min-w-0",children:t}),z&&x.jsxs(x.Fragment,{children:[x.jsx(vx,{}),x.jsx(Rh,{id:"reading",order:2,minSize:29,className:"min-w-0",children:x.jsx(Gie,{className:"h-full",children:n})})]}),Q&&x.jsxs(x.Fragment,{children:[x.jsx(vx,{}),x.jsx(Rh,{id:"intelligence",order:3,defaultSize:25,minSize:18,maxSize:39,className:"min-w-0",children:r})]})]},z?"list-reading":"list-only"),Y=x.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[!I&&u&&x.jsx("div",{className:"shrink-0",children:u}),j]});return x.jsx(y$.Provider,{value:de,children:x.jsxs("div",{ref:k,className:"safe-area-frame @container flex h-full w-full flex-col overflow-hidden bg-canvas font-sans text-fg",children:[x.jsx(mie,{topBar:d,appBar:h,children:v&&g?g:M?x.jsxs(gM,{direction:"horizontal",className:"min-h-0 flex-1",children:[x.jsx(Rh,{id:"nav",order:1,defaultSize:17,minSize:12,maxSize:24,className:"min-w-0",children:e}),x.jsx(vx,{}),x.jsx(Rh,{id:"content",order:2,className:"flex min-w-0 flex-col",children:Y})]}):Y}),!(v&&g)&&x.jsxs(x.Fragment,{children:[!I&&x.jsx(A3,{open:K,onClose:$,title:"Folders",anchor:"left",children:e}),m]})]})})}function b$({children:e,label:t}){return x.jsxs("span",{className:"relative inline-flex",children:[e,t!==void 0&&x.jsxs(x.Fragment,{children:[x.jsx("span",{"data-testid":"attention-dot",className:"absolute -right-1 -top-1 size-2 rounded-full bg-accent-2"}),x.jsx("span",{className:"sr-only",children:t})]})]})}function Ay({children:e,className:t}){return x.jsx("div",{"data-auth-page":!0,className:ke("flex min-h-dvh w-full flex-col items-center justify-center overflow-y-auto bg-surface-sunken pb-[max(2rem,env(safe-area-inset-bottom,0px))] pl-[max(1rem,env(safe-area-inset-left,0px))] pr-[max(1rem,env(safe-area-inset-right,0px))] pt-[max(2rem,env(safe-area-inset-top,0px))] text-fg",t),style:{backgroundImage:"radial-gradient(at 20% 0%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%), radial-gradient(at 80% 100%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%)"},children:x.jsx("div",{className:"w-full max-w-[26rem]",children:e})})}const Yie="Secure sign-in powered by AWS Cognito";function mT(e){const t=e?.note??"Secure sign-in";return x.jsx("div",{className:"text-center pt-5",children:x.jsx("p",{className:"text-xs text-fg-muted",children:t})})}const Zie=()=>x.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"text-accent",children:[x.jsx("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),x.jsx("path",{d:"M3 7l9 6 9-6"})]});function Ty({wordmark:e="remit,",tagline:t="your email client in the cloud.",mark:n=x.jsx(Zie,{})}){return x.jsxs("div",{className:"text-center pb-6",children:[x.jsx("div",{className:"flex items-center justify-center pb-3",children:n}),x.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-[-0.01em] text-fg",children:e}),x.jsx("p",{className:"mt-1 text-sm text-fg-muted",children:t})]})}function Xie({id:e,reason:t,nudged:n,className:r}){return x.jsxs(x.Fragment,{children:[x.jsx("p",{id:e,className:ke(r,!n&&"sr-only"),children:t}),x.jsx("span",{role:"status","aria-live":"polite",className:"sr-only",children:n?t:""})]})}function Qie(e){return e.sentDate!=null?new Date(e.sentDate).toDateString()===new Date().toDateString():/^\d{1,2}:\d{2}$/.test(e.timeLabel)}const S$=[{id:"unread",label:"Unread",match:e=>!e.isRead},{id:"attachment",label:"Has attachment",match:e=>!!e.hasAttachment},{id:"contacts",label:"From contacts",match:e=>e.trust==="vip"||e.trust==="wellknown"},{id:"today",label:"Today",match:Qie}],z$e=S$.map(({id:e,label:t})=>({id:e,label:t}));function U$e(e,t){return S$.every(n=>!t.has(n.id)||n.match(e))}function Jie(e){return e.target!==e.currentTarget?!1:e.key==="Enter"||e.key===" "}function w$({className:e}){return x.jsx("svg",{viewBox:"0 0 12 12",className:e,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:x.jsx("path",{d:"M2 4l4 4 4-4"})})}function vM({className:e}){return x.jsx("svg",{viewBox:"0 0 12 12",className:e,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:x.jsx("path",{d:"M3 3l6 6M9 3l-6 6"})})}const Iy=_.createContext(null);function j$e({children:e,hasSheet:t,open:n,onOpenChange:r}){const[o,s]=_.useState(!1),[i,c]=_.useState(!1),u=n??o,d=_.useCallback(m=>{n===void 0&&s(m),r?.(m)},[n,r]),h=_.useMemo(()=>({open:u,setOpen:d,active:i,setActive:c,hasSheet:t}),[u,d,i,t]);return x.jsx(Iy.Provider,{value:h,children:e})}function F$e({children:e}){return x.jsx(Iy.Provider,{value:null,children:e})}function $$e(){const e=_.useContext(Iy);if(!e?.hasSheet)return null;const{open:t,active:n,setOpen:r}=e;return x.jsx("button",{type:"button",onClick:()=>r(!t),"aria-expanded":t,"aria-label":t?"Collapse filters":"Expand filters",title:"Filters",className:ke("flex size-6 shrink-0 items-center justify-center rounded transition-colors hover:bg-surface-sunken",n?"text-accent-2":"text-fg-subtle hover:text-fg-muted"),children:x.jsx(w$,{className:ke("size-3 transition-transform duration-200",t?"rotate-180":"rotate-0")})})}function B$e({categories:e,filters:t,sources:n,sourcesNote:r,selectedCategory:o,activeFilters:s,expanded:i,onSelectCategory:c,onSelectSource:u,onToggleFilter:d,onClear:h,onExpandedChange:m,hideChrome:g=!1,children:v}){const S=_.useContext(Iy),b=i!==void 0,[C,E]=_.useState(!1),k=S?.open??(b?i:C),A=_.useCallback(se=>{b||E(se),S?.setOpen(se),m?.(se)},[b,m,S]),R=e[0],N=R!==void 0&&o===R.id,O=n?.[0],I=n?.find(se=>se.active),M=O===void 0||I?.id===O.id,z=!N||s.size>0||!M&&!!I,q=S?.setActive;_.useEffect(()=>{if(q)return q(z),()=>q(!1)},[z,q]);const U=_.useCallback(()=>{O&&u?.(O.id)},[O,u]),L=_.useCallback(()=>{h(),U()},[h,U]),B=e.find(se=>se.id===o),K=z?x.jsxs(x.Fragment,{children:[!M&&I&&x.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:I.label}),!N&&B&&x.jsx(_3,{tone:B.tone??"neutral",children:B.label}),t.filter(se=>s.has(se.id)).map(se=>x.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:se.label},se.id))]}):x.jsx("span",{className:"text-2xs text-fg-subtle",children:"Filters"}),le=n&&n.length>1&&x.jsxs("fieldset",{"aria-label":"Accounts",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-2",children:[n.map(se=>x.jsxs("button",{type:"button","aria-pressed":!!se.active,onClick:()=>u?.(se.id),className:ke("flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",se.active?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:[se.label,se.count!=null&&se.count>0&&x.jsx("span",{className:"tabular-nums opacity-70",children:se.count})]},se.id)),r&&x.jsx("span",{className:"ml-auto shrink-0 text-2xs text-fg-subtle",children:r})]}),$=x.jsx("fieldset",{"aria-label":"Categories",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-1.5 pt-1.5",children:e.map(se=>{const de=o===se.id;return x.jsx("button",{type:"button","aria-pressed":de,onClick:()=>c(se.id),className:ke("shrink-0 rounded-full transition-opacity",de?"opacity-100 ring-1 ring-accent-2":"opacity-60 hover:opacity-100"),children:x.jsx(_3,{tone:se.tone??"neutral",children:se.label})},se.id)})}),Q=x.jsxs("fieldset",{"aria-label":"Attributes",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-1.5",children:[t.map(se=>{const de=s.has(se.id);return x.jsx("button",{type:"button","aria-pressed":de,onClick:()=>d(se.id),className:ke("shrink-0 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",de?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:se.label},se.id)}),z&&x.jsxs("button",{type:"button",onClick:L,className:"ml-auto flex items-center gap-1 px-1 text-2xs text-fg-subtle hover:text-fg-muted",children:[x.jsx(vM,{className:"size-3"}),"Clear"]})]});return x.jsxs("div",{className:"flex h-full w-full flex-col overflow-hidden",children:[!g&&!S&&x.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":k,"aria-label":k?"Collapse filters":"Expand filters",onClick:()=>A(!k),onKeyDown:se=>{Jie(se)&&(se.preventDefault(),A(!k))},className:"flex h-section-row w-full shrink-0 cursor-pointer items-center gap-1.5 overflow-x-hidden border-b border-line bg-surface-sunken px-row-inset text-left hover:bg-surface",children:[K,z&&x.jsx("button",{type:"button","aria-label":"Clear filters",onClick:se=>{se.stopPropagation(),L()},className:"flex size-6 items-center justify-center text-fg-subtle hover:text-fg-muted",children:x.jsx(vM,{className:"size-3"})}),x.jsx(w$,{className:ke("ml-auto size-3 shrink-0 text-fg-subtle transition-transform duration-200",k?"rotate-180":"rotate-0")})]}),k&&!g&&x.jsxs("div",{className:"shrink-0",children:[le,$,Q]}),x.jsx("div",{className:"flex-1 overflow-y-auto",children:v})]})}const ele={default:ke("flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken px-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors"),inline:"flex items-center gap-2 bg-transparent text-sm"};function As({icon:e,className:t,variant:n="default",trailing:r,ref:o,...s}){return x.jsxs("div",{className:ke(ele[n],t),children:[e&&x.jsx("span",{className:"text-fg-subtle shrink-0",children:e}),x.jsx("input",{ref:o,className:"min-w-0 flex-1 bg-transparent text-fg placeholder:text-fg-subtle outline-none",...s}),r]})}function x$({icon:e,className:t,children:n,ref:r,...o}){return x.jsxs("div",{className:ke("relative flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken pl-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors",t),children:[e&&x.jsx("span",{className:"shrink-0 text-fg-subtle",children:e}),x.jsx("select",{ref:r,className:"min-w-0 flex-1 appearance-none bg-transparent py-0 pr-8 text-fg outline-none",...o,children:n}),x.jsx(Tse,{className:"pointer-events-none absolute right-2.5 size-4 text-fg-subtle"})]})}function yM(e){return String(e).padStart(2,"0")}function tle(e,t){if(e==="")return"";const[n,r]=e.split(":").map(Number),o=(n*60+r+t)%1440;return`${yM(Math.floor(o/60))}:${yM(o%60)}`}const C$=60,nle=864e5;function H$e(e,t,n){if(n){const r=e.slice(0,10),o=ks(t.slice(0,10),-1);return{...E$(e),endDate:o<r?r:o}}return{date:e.slice(0,10),endDate:t.slice(0,10),startTime:e.slice(11,16),endTime:t.slice(11,16),allDay:!1}}function q$e(e,t){if(t)return E$(e);const n=e.slice(11,16),r=tle(n,C$),o=e.slice(0,10);return{date:o,endDate:r<n?ks(o,1):o,startTime:n,endTime:r,allDay:!1}}function E$(e){return{date:e.slice(0,10),endDate:e.slice(0,10),startTime:"",endTime:"",allDay:!0}}function W$e(e,t,n,r){const o=Date.parse(t)-Date.parse(e);return Math.round(o/nle)>1}const Yn=15,rle=4,gT=1440;function bM(e,t){return Math.hypot(e,t)>=rle}function ole(e,t){const n=e/t*60,r=Math.floor(n/Yn)*Yn;return Math.min(Math.max(r,0),gT-Yn)}const SM=e=>String(e).padStart(2,"0");function I3(e){return`${SM(Math.floor(e/60))}:${SM(e%60)}`}function wM(e){const[t,n]=e.split(":").map(Number);return t*60+n}function sle(e,t,n){const r=Math.min(t,n),o=Math.max(t,n)+Yn;return qd(e,r,o)}function qd(e,t,n){const r=n>=gT;return{date:e,endDate:r?ks(e,1):e,startTime:I3(t),endTime:r?"00:00":I3(n),allDay:!1}}function Gu(e,t){return qd(e,t,t+C$)}function xM(e,t){const[n,r]=e<=t?[e,t]:[t,e];return{date:n,endDate:r,startTime:"",endTime:"",allDay:!0}}function R3(e){const t=wM(e.startTime),n=e.endDate>e.date?gT:wM(e.endTime);return{start:t,end:n}}const ev=1440;function ale(e,t){return Math.round(e/t*60/Yn)*Yn}function w1(e,t){const n=e.minute+t,r=Math.floor(n/ev);return{date:ks(e.date,r),minute:n-r*ev}}const _$=(e,t)=>{let n=0,r=e.date;for(;r<t.date;)r=ks(r,1),n+=1;return n*ev+t.minute-e.minute};function ile(e,t,n,r){const o=_$(e,t),s=w1({date:ks(e.date,n),minute:e.minute},r),i={date:s.date,minute:Math.round(s.minute/Yn)*Yn},c=i.minute===ev?w1(i,0):i;return{start:c,end:w1(c,o)}}function lle(e,t,n){const r=Math.max(_$(e,t)+n,Yn),o=Math.round(r/Yn)*Yn;return w1(e,o)}function cle(e,t,n){return{first:ks(e,n),last:ks(t,n)}}function ule(e,t,n){const r=ks(t,n);return r<e?e:r}const dle=1440-Yn;function CM(e,t,n){return{date:e.includes(t)?t:e[0],minute:Math.floor(n/60)*60}}function fle(e,t,n){const r=n.indexOf(e.date);switch(t){case"ArrowUp":return{...e,minute:Math.max(0,e.minute-Yn)};case"ArrowDown":return{...e,minute:Math.min(dle,e.minute+Yn)};case"ArrowLeft":return{...e,date:n[Math.max(0,r-1)]};case"ArrowRight":return{...e,date:n[Math.min(n.length-1,r+1)]};default:return null}}const hle=(e,t)=>e.date===t.date?e.minute-t.minute:e.date<t.date?-1:1;function EM(e,t){const[n,r]=hle(e,t)<=0?[e,t]:[t,e];if(n.date===r.date)return qd(n.date,n.minute,r.minute+Yn);const o=qd(r.date,r.minute,r.minute+Yn);return{date:n.date,startTime:I3(n.minute),endDate:o.endDate,endTime:o.endTime,allDay:!1}}const O3=500,ple=8;function _M(e,t,n){return{phase:"pending",x:e,y:t,at:n}}function kM(e,t,n){return e.phase!=="pending"?e:Math.hypot(t-e.x,n-e.y)>ple?{phase:"scrolled"}:e}function AM(e,t){return e.phase!=="pending"?e:t-e.at>=O3?{phase:"held"}:e}function TM(e,t,n,r){const o=Math.round(n/r*(60/Yn)),{start:s,end:i}=R3(e),c=o*Yn;if(t==="start"){const d=Math.min(Math.max(0,s+c),i-Yn);return qd(e.date,d,i)}const u=Math.max(Math.min(1440,i+c),s+Yn);return qd(e.date,s,u)}const IM=new Map;function mle(e){let t=IM.get(e);return t||(t=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),IM.set(e,t)),t}function Ys(e,t){const n=Object.fromEntries(mle(t).formatToParts(new Date(e)).map(r=>[r.type,r.value]));return{date:`${n.year}-${n.month}-${n.day}`,minute:Number(n.hour)*60+Number(n.minute)}}function gle(e,t){const n=t.filter(c=>c.start.date<=e&&c.end.date>=e).map(c=>({id:c.id,top:c.start.date<e?0:c.start.minute,bottom:c.end.date>e?1440:c.end.minute})).filter(c=>c.bottom>c.top||c.top===c.bottom).map(c=>({...c,bottom:Math.max(c.bottom,c.top+15)})).sort((c,u)=>c.top-u.top||u.bottom-c.bottom),r=[];let o=[],s=-1;const i=()=>{const c=Math.max(0,...o.map(u=>u.column))+1;for(const u of o)u.columns=c;r.push(...o),o=[]};for(const c of n){c.top>=s&&o.length>0&&i();const u=new Set(o.filter(h=>h.bottom>c.top).map(h=>h.column));let d=0;for(;u.has(d);)d+=1;o.push({...c,column:d,columns:1}),s=Math.max(s,c.bottom)}return o.length>0&&i(),r}function yx(e,t){const n=[],r=[],o=t.filter(s=>s.last>=e[0]&&s.first<=e[e.length-1]).sort((s,i)=>s.first.localeCompare(i.first)||i.last.localeCompare(s.last));for(const s of o){const i=Math.max(0,e.indexOf(s.first<e[0]?e[0]:s.first)),c=s.last>e[e.length-1]?e[e.length-1]:s.last,u=e.indexOf(c);let d=n.findIndex(h=>h.every(m=>m<i||m>u));d===-1&&(d=n.length,n.push([]));for(let h=i;h<=u;h+=1)n[d].push(h);r.push({id:s.id,startIndex:i,span:u-i+1,lane:d})}return r}const vle={comfortable:48,compact:24},yle=Array.from({length:24},(e,t)=>t),Ku=22,RM="cal-1",N3=e=>String(e).padStart(2,"0"),bd=e=>`${N3(Math.floor(e/60)%24)}:${N3(e%60)}`,Sd=(e,t)=>new Intl.DateTimeFormat(void 0,{...t,timeZone:"UTC"}).format(new Date(`${e}T00:00:00Z`));function OM(e){const t=Sd(e.date,{weekday:"long",day:"numeric",month:"long"});return e.allDay?e.endDate===e.date?`${t}, all day`:`${t} to ${Sd(e.endDate,{weekday:"long",day:"numeric",month:"long"})}, all day`:`${t}, ${e.startTime} to ${e.endTime}`}function ble(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(r=>r.type==="timeZoneName")?.value??""}function V$e({days:e,events:t,colorByCalendarId:n,density:r,timeZone:o,now:s,selectedEventId:i="",draft:c,onGesture:u,onSelectEvent:d,onOpenDay:h,touch:m=!1,canMove:g=()=>!1,onMoveEvent:v,tasks:S=[],selectedTaskId:b="",onSelectTask:C,onToggleTask:E,className:k}){const A=vle[r],R=_.useRef(null),N=_.useRef(null),O=_.useRef(null),I=_.useRef(null),M=_.useRef(null),z=_.useRef(void 0),[q,U]=_.useState(null),[L,B]=_.useState(null),[K,le]=_.useState(!1),[$,Q]=_.useState(""),se=_.useId(),de=Ys(s,o),_e=_.useMemo(()=>t.map(H=>({event:H,start:Ys(H.start,o),end:Ys(H.end,o)})),[t,o]),j=_e.filter(H=>!H.event.allDay),Y=_e.filter(H=>H.event.allDay),X=_.useMemo(()=>new Map(_e.map(H=>[H.event.id,H.event])),[_e]),J=_.useMemo(()=>new Map(S.map(H=>[H.calendarTaskId,{task:H,date:H.allDay?H.due.slice(0,10):Ys(H.due,o).date,minute:H.allDay?0:Ys(H.due,o).minute}])),[S,o]),ie=yx(e,[...Y.map(H=>({id:H.event.id,first:H.event.start.slice(0,10),last:NM(H.event)})),...[...J.values()].map(({task:H,date:re})=>({id:H.calendarTaskId,first:re,last:re}))]),ue=c?.range.allDay===!0?yx(e,[{id:"draft",first:c.range.date,last:c.range.endDate}])[0]:void 0,ge=Math.max(1,...ie.map(H=>H.lane+1),ue?1:0),ee=e.join(","),Se=e.includes(de.date)?Math.max(0,de.minute-90):480,Pe=_.useRef(Se);Pe.current=Se,_.useLayoutEffect(()=>{const H=R.current;!H||ee===""||(H.scrollTop=Pe.current/60*A)},[ee,A]);const xe=_.useRef(null),Ge=_.useRef(null),ze=_.useRef(void 0),He=_.useRef(!1),[ot,Oe]=_.useState(null),yn=_.useCallback(()=>{Ge.current=null,clearTimeout(ze.current),Oe(null)},[]),Fe=_.useCallback(()=>{I.current=null,M.current=null,clearTimeout(z.current)},[]);_.useEffect(()=>{const H=re=>{if(re.key==="Escape"){if(Ge.current?.dragging){re.preventDefault(),re.stopImmediatePropagation(),He.current=!0,yn();return}I.current&&(re.preventDefault(),re.stopImmediatePropagation(),Fe(),u({type:"drag-cancel"}))}};return window.addEventListener("keydown",H,!0),()=>window.removeEventListener("keydown",H,!0)},[Fe,yn,u]),_.useEffect(()=>{const H=R.current;if(!H)return;const re=Re=>{(M.current?.phase==="held"||I.current?.dragging||Ge.current?.dragging)&&Re.preventDefault()};return H.addEventListener("touchmove",re,{passive:!1}),()=>H.removeEventListener("touchmove",re)},[]);const zn=H=>{const re=N.current;if(!re)return;const Re=re.getBoundingClientRect(),Ue=Math.floor((H-Re.left)/Re.width*e.length);return e[Math.min(e.length-1,Math.max(0,Ue))]},Jt=H=>{const re=N.current;return re?ole(H-re.getBoundingClientRect().top,A):0},dn=H=>Q(OM(H)),mo=(H,re,Re)=>{if(H.stopPropagation(),H.button!==0||!g(re.id)||!v)return;const Ue=zn(H.clientX);if(!Ue)return;i0(H.currentTarget,H.pointerId);const mt=m&&H.pointerType==="touch";Ge.current={id:re.id,kind:Re,allDay:re.allDay,pointerId:H.pointerId,x:H.clientX,y:H.clientY,startColumn:Ue,start:Ys(re.start,o),end:Ys(re.end,o),first:re.start.slice(0,10),last:NM(re),dragging:!1,press:mt?_M(H.clientX,H.clientY,Date.now()):null,range:null,invalid:!1},mt&&(ze.current=setTimeout(()=>{const gt=Ge.current;gt?.press&&(gt.press=AM(gt.press,Date.now()+1),gt.press.phase==="held"&&(gt.dragging=!0,navigator.vibrate?.(10),gr(gt,gt.x,gt.y)))},O3))},gr=(H,re,Re)=>{const Ue=e.indexOf(zn(re)??H.startColumn)-e.indexOf(H.startColumn),mt=ale(Re-H.y,A);let gt;if(H.allDay){const Lr=H.kind==="move"?cle(H.first,H.last,Ue):{first:H.first,last:ule(H.first,H.last,Ue)};gt={date:Lr.first,endDate:Lr.last,startTime:"",endTime:"",allDay:!0}}else{const Lr=H.kind==="move"?ile(H.start,H.end,Ue,mt):{start:H.start,end:lle(H.start,H.end,mt)};gt={date:Lr.start.date,endDate:Lr.end.date,startTime:bd(Lr.start.minute),endTime:bd(Lr.end.minute),allDay:!1}}const jn=xe.current?.getBoundingClientRect(),zl=jn!==void 0&&(re<jn.left||re>jn.right||Re<jn.top||Re>jn.bottom);H.range=gt,H.invalid=zl,Oe({id:H.id,range:gt,invalid:zl})},kn=H=>{const re=Ge.current;if(!(!re||re.pointerId!==H.pointerId)){if(re.press){if(re.press=kM(re.press,H.clientX,H.clientY),re.press.phase==="scrolled"){yn();return}if(re.press.phase!=="held")return}else if(!re.dragging&&!bM(H.clientX-re.x,H.clientY-re.y))return;re.dragging=!0,gr(re,H.clientX,H.clientY)}},At=H=>{const re=Ge.current;if(!re||re.pointerId!==H.pointerId)return;re.dragging&&(He.current=!0);const{range:Re,invalid:Ue,dragging:mt,id:gt}=re;yn(),!(!mt||!Re||Ue)&&(dn(Re),v?.(gt,Re))},An=H=>{if(H.button!==0)return;const re=zn(H.clientX);if(!re)return;const Re=H.currentTarget;i0(Re,H.pointerId);const Ue=Jt(H.clientY);if(m&&H.pointerType==="touch"){M.current=_M(H.clientX,H.clientY,Date.now()),I.current={kind:"touch",pointerId:H.pointerId,date:re,anchorMinute:Ue,x:H.clientX,y:H.clientY,dragging:!1,range:null,origin:Re},z.current=setTimeout(()=>{if(!M.current||!I.current||(M.current=AM(M.current,Date.now()+1),M.current.phase!=="held"))return;const mt=Gu(re,Ue);I.current.dragging=!0,I.current.range=mt,navigator.vibrate?.(10),u({type:"drag",range:mt})},O3);return}I.current={kind:"timed",pointerId:H.pointerId,date:re,anchorMinute:Ue,x:H.clientX,y:H.clientY,dragging:!1,range:null,origin:Re}},Tr=H=>{if(H.button!==0||m&&H.pointerType==="touch")return;const re=zn(H.clientX);re&&(i0(H.currentTarget,H.pointerId),I.current={kind:"all-day",pointerId:H.pointerId,date:re,anchorMinute:0,x:H.clientX,y:H.clientY,dragging:!1,range:null,origin:H.currentTarget})},or=(H,re)=>{c&&(re.stopPropagation(),i0(re.currentTarget,re.pointerId),I.current={kind:H==="start"?"handle-start":"handle-end",pointerId:re.pointerId,date:c.range.date,anchorMinute:0,x:re.clientX,y:re.clientY,dragging:!0,range:c.range,origin:re.currentTarget})},go=H=>{const re=I.current;if(!re||re.pointerId!==H.pointerId)return;const Re=H.clientX-re.x,Ue=H.clientY-re.y;if(re.kind==="touch"){if(!M.current)return;if(M.current=kM(M.current,H.clientX,H.clientY),M.current.phase==="scrolled"){Fe();return}if(M.current.phase!=="held")return;const gt=TM(Gu(re.date,re.anchorMinute),"end",Ue,A);re.range=gt,u({type:"drag",range:gt});return}if(re.kind==="handle-start"||re.kind==="handle-end"){if(!c)return;const gt=TM(re.range??c.range,re.kind==="handle-start"?"start":"end",Ue,A);u({type:"drag",range:gt});return}if(!re.dragging&&!bM(Re,Ue))return;re.dragging=!0;const mt=re.kind==="all-day"?xM(re.date,zn(H.clientX)??re.date):sle(re.date,re.anchorMinute,Jt(H.clientY));re.range=mt,u({type:"drag",range:mt})},Gr=H=>{const re=I.current;if(!re||re.pointerId!==H.pointerId)return;if(re.kind==="handle-start"||re.kind==="handle-end"){const Ue=c?.range;Fe(),Ue&&(dn(Ue),u({type:"drag-end",range:Ue}));return}if(re.kind==="touch"){const Ue=re.range,mt=M.current?.phase==="pending";if(Fe(),Ue){dn(Ue),u({type:"drag-end",range:Ue});return}mt&&u({type:"click",range:Gu(re.date,re.anchorMinute),origin:re.origin});return}if(Fe(),re.dragging&&re.range){dn(re.range),u({type:"drag-end",range:re.range});return}const Re=re.kind==="all-day"?xM(re.date,re.date):Gu(re.date,re.anchorMinute);u({type:"click",range:Re,origin:re.origin})},fa=H=>{const re=I.current;if(!re||re.pointerId!==H.pointerId)return;const Re=re.dragging;Fe(),Re&&u({type:"drag-cancel"})},vi=H=>{if(H.target!==H.currentTarget)return;le(!0);const re=q??CM(e,de.date,de.minute);if(H.key==="Enter"){H.preventDefault();const Ue=L?EM(L,re):Gu(re.date,re.minute),mt=document.getElementById(se);B(null),dn(Ue),u({type:"keyboard",range:Ue,origin:mt});return}if(H.key==="Escape"&&L){H.preventDefault(),H.stopPropagation(),B(null),u({type:"drag-cancel"});return}const Re=fle(re,H.key,e);if(Re){if(H.preventDefault(),U(Re),Uo(Re.minute),H.shiftKey){const Ue=L??re;B(Ue);const mt=EM(Ue,Re);dn(mt),u({type:"drag",range:mt});return}L&&(B(null),u({type:"drag-cancel"}))}},Uo=H=>{const re=R.current;if(!re)return;const Re=H/60*A;Re<re.scrollTop?re.scrollTop=Re:Re+A>re.scrollTop+re.clientHeight&&(re.scrollTop=Re+A-re.clientHeight)},Tn=q&&e.includes(q.date)?q:CM(e,de.date,de.minute),sr=(H,re,Re)=>{const Ue=n[H.calendarId]??RM,mt=H.allDay||r==="compact"&&!Re?"":bd(Ys(H.start,o).minute),gt=v!==void 0&&g(H.id);return x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button","data-event-id":H.id,onPointerDown:jn=>mo(jn,H,"move"),onPointerMove:kn,onPointerUp:At,onPointerCancel:yn,onClick:jn=>{if(He.current){He.current=!1;return}d(H.id,jn.currentTarget)},"aria-label":`${H.title}, ${Sle(H,o)}`,className:ke(iM({color:Ue,layout:re,density:"compact",rsvp:H.myRsvp,status:H.status,selected:H.id===i,stacked:!1}),"h-full w-full cursor-pointer text-left outline-none focus-visible:ring-2 focus-visible:ring-ring",m&&"touch-pan-y",ot?.id===H.id&&"opacity-40"),children:x.jsx(pie,{title:H.title===""?"(No title)":H.title,timeText:mt,layout:re,rsvp:H.myRsvp,hasThread:H.threadId!=="",isRecurring:H.recurrenceRule!=="",zoneCertainty:H.zoneCertainty})}),gt&&x.jsx("span",{"aria-hidden":"true","data-resize-handle":"",onPointerDown:jn=>mo(jn,H,"resize"),onPointerMove:kn,onPointerUp:At,onPointerCancel:yn,className:ke("absolute",re==="column"?"inset-x-0 bottom-0 h-1.5 cursor-ns-resize":"inset-y-0 right-0 w-1.5 cursor-ew-resize"),style:{touchAction:"none"}})]})},Un=(H,re)=>{const Re=H.title===""?"(No title)":H.title,Ue=n[H.calendarId]??RM,mt=re===void 0?"":bd(re);return x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button","data-task-id":H.calendarTaskId,onPointerDown:gt=>gt.stopPropagation(),onClick:()=>C?.(H.calendarTaskId),"aria-label":`Task: ${Re}${mt===""?"":`, due ${mt}`}`,className:ke(iM({color:Ue,layout:"row",density:"compact",rsvp:"accepted",status:"confirmed",selected:H.calendarTaskId===b,stacked:!1}),"h-full w-full cursor-pointer truncate pl-5 text-left outline-none focus-visible:ring-2 focus-visible:ring-ring",H.completed&&"line-through opacity-60"),children:mt===""?Re:`${mt} ${Re}`}),x.jsx("input",{type:"checkbox","aria-label":Re,checked:H.completed,onPointerDown:gt=>gt.stopPropagation(),onChange:()=>E?.(H.calendarTaskId),className:"absolute top-1 left-1.5 z-10 size-3.5 accent-current"})]})},yi=H=>H.allDay?Sd(H.date,{weekday:"short",day:"numeric"}):`${Sd(H.date,{weekday:"short",day:"numeric"})} · ${H.startTime} – ${H.endTime}`,Dl=(H,re)=>x.jsx("div",{"data-lifted-event":"",className:ke("pointer-events-none absolute inset-0 z-30 flex flex-col overflow-hidden rounded-sm border-2 border-accent bg-accent-soft px-1.5 py-0.5 text-xs text-fg shadow-lg",re&&"border-dashed opacity-60"),children:x.jsx("span",{className:"truncate font-medium tabular-nums",children:yi(H)})}),Ll=(H,re)=>{if(!c)return null;const Re=ZF("cal-1");return x.jsx("div",{"data-draft-block":"",className:ke("pointer-events-auto absolute z-20 flex flex-col overflow-hidden rounded-sm px-1.5 py-0.5 text-xs shadow-md",c.tone==="draft"?ke("border-2 border-dashed bg-surface/90",Re.border,Re.text):"bg-accent text-accent-fg",re),children:H})},Ns=c?.title===""?"New event":c?.title??"",as=H=>x.jsx("span",{"data-handle":H,"aria-hidden":"true",onPointerDown:re=>or(H,re),onPointerMove:go,onPointerUp:Gr,onPointerCancel:fa,className:ke("absolute inset-x-0 cursor-ns-resize",H==="start"?"top-0":"bottom-0",m?"h-6":"h-2"),style:{touchAction:"none"},children:m&&x.jsx("span",{className:ke("absolute size-3 rounded-full border-2 border-accent bg-surface",H==="start"?"top-0 left-3 -translate-y-1/2":"right-3 bottom-0 translate-y-1/2")})}),Ms=c?x.jsxs(x.Fragment,{children:[c.tone==="draft"&&x.jsx("span",{className:"text-2xs font-semibold uppercase tracking-wider",children:"Draft"}),x.jsxs("span",{className:"flex items-center gap-1 truncate font-medium",children:[c.warning&&x.jsx(Sl,{className:"size-3.5 shrink-0","aria-label":"Not saved"}),Ns]}),x.jsxs("span",{className:"tabular-nums opacity-90",children:[c.range.startTime," – ",c.range.endTime]}),c.handles&&x.jsxs(x.Fragment,{children:[as("start"),as("end")]})]}):null;return x.jsxs("div",{ref:xe,"data-testid":"calendar-grid",className:ke("flex h-full min-h-0 flex-col bg-surface text-fg select-none",k),children:[x.jsxs("div",{className:"flex shrink-0 border-b border-line",children:[x.jsx("div",{className:"flex w-14 shrink-0 items-end justify-end pr-2 pb-1 text-2xs text-fg-subtle",children:ble(o,s)}),x.jsx("div",{className:"grid flex-1",style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`},children:e.map(H=>{const re=H===de.date;return x.jsxs("div",{className:"flex flex-col items-center gap-0.5 border-l border-line py-1",children:[x.jsx("span",{className:ke("text-2xs font-medium uppercase tracking-wider",re?"text-accent":"text-fg-subtle"),children:Sd(H,{weekday:"short"})}),x.jsx("button",{type:"button",onClick:()=>h?.(H),"aria-label":Sd(H,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),"aria-current":re?"date":void 0,className:ke("flex size-9 items-center justify-center rounded-full text-xl tabular-nums outline-none focus-visible:ring-2 focus-visible:ring-ring",re?"bg-accent text-accent-fg":"text-fg hover:bg-surface-sunken"),children:Number(H.slice(8))})]},H)})})]}),x.jsxs("div",{className:"flex shrink-0 border-b border-line-strong",children:[x.jsx("div",{className:"flex w-14 shrink-0 items-start justify-end pt-1 pr-2 text-2xs text-fg-subtle",children:"All day"}),x.jsxs("div",{ref:O,"data-all-day-row":"",onPointerDown:Tr,onPointerMove:go,onPointerUp:Gr,onPointerCancel:fa,className:"relative flex-1",style:{height:ge*Ku+6},children:[x.jsx("div",{className:"pointer-events-none absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`},children:e.map(H=>x.jsx("div",{className:"border-l border-line"},H))}),ie.map(H=>{const re=X.get(H.id),Re=J.get(H.id);return!re&&!Re?null:x.jsx("div",{className:"absolute px-0.5",style:{left:`${H.startIndex/e.length*100}%`,width:`${H.span/e.length*100}%`,top:2+H.lane*Ku,height:Ku-2},children:re?sr(re,"row",!1):Re&&Un(Re.task,Re.task.allDay?void 0:Re.minute)},H.id)}),ot?.range.allDay&&(()=>{const H=yx(e,[{id:"lifted",first:ot.range.date,last:ot.range.endDate}])[0];return H?x.jsx("div",{className:"absolute px-0.5",style:{left:`${H.startIndex/e.length*100}%`,width:`${H.span/e.length*100}%`,top:2,height:Ku-2},children:Dl(ot.range,ot.invalid)}):null})(),ue&&x.jsx("div",{className:"absolute px-0.5",style:{left:`${ue.startIndex/e.length*100}%`,width:`${ue.span/e.length*100}%`,top:2+(ge-1)*Ku,height:Ku-2},children:Ll(x.jsx("span",{className:"truncate font-medium",children:Ns}),"inset-0")})]})]}),x.jsx("div",{ref:R,role:"grid","aria-label":"Time grid","aria-activedescendant":K?se:void 0,tabIndex:0,onKeyDown:vi,onFocus:H=>{H.target===H.currentTarget&&H.currentTarget.matches(":focus-visible")&&le(!0)},onBlur:()=>le(!1),className:"relative min-h-0 flex-1 overflow-y-auto outline-none",children:x.jsxs("div",{className:"flex",style:{height:24*A},children:[x.jsx("div",{className:"relative w-14 shrink-0","aria-hidden":"true",children:yle.slice(1).map(H=>x.jsxs("span",{className:"absolute right-2 -translate-y-1/2 text-2xs tabular-nums text-fg-subtle",style:{top:H*A},children:[N3(H),":00"]},H))}),x.jsx("div",{ref:N,"data-time-columns":"",onPointerDown:An,onPointerMove:go,onPointerUp:Gr,onPointerCancel:fa,className:"relative grid flex-1",style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`,touchAction:m?"pan-y":void 0,backgroundImage:`repeating-linear-gradient(to bottom, var(--color-line) 0 1px, transparent 1px ${A}px)`},children:e.map(H=>{const re=gle(H,j.map(Ue=>({id:Ue.event.id,start:Ue.start,end:Ue.end}))),Re=c&&!c.range.allDay&&c.range.date===H?R3(c.range):void 0;return x.jsxs("div",{"data-date":H,className:"relative border-l border-line",children:[re.map(Ue=>{const mt=X.get(Ue.id);if(!mt)return null;const gt=(Ue.bottom-Ue.top)/60*A;return x.jsx("div",{className:"absolute px-px",style:{top:Ue.top/60*A,height:Math.max(gt,12),left:`${Ue.column/Ue.columns*100}%`,width:`${100/Ue.columns}%`},children:sr(mt,"column",gt>=36)},Ue.id)}),H===de.date&&x.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 left-0 z-10 border-t-2 border-danger",style:{top:de.minute/60*A},children:x.jsx("span",{className:"absolute -top-[5px] -left-1 size-2 rounded-full bg-danger"})}),K&&Tn.date===H&&x.jsx("div",{role:"row",tabIndex:-1,className:"pointer-events-none absolute right-0 left-0 z-30",style:{top:Tn.minute/60*A,height:A/4},children:x.jsx("div",{id:se,role:"gridcell",tabIndex:-1,"aria-label":OM(Gu(Tn.date,Tn.minute)).replace(/ to .*/,""),className:"h-full rounded-xs ring-2 ring-ring"})}),ot&&!ot.range.allDay&&ot.range.date===H&&(()=>{const Ue=R3(ot.range);return x.jsx("div",{className:"absolute right-1 left-0",style:{top:Ue.start/60*A,height:Math.max((Ue.end-Ue.start)/60*A,12)},children:Dl(ot.range,ot.invalid)})})(),Re&&x.jsx("div",{className:"absolute right-1 left-0",style:{top:Re.start/60*A,height:(Re.end-Re.start)/60*A},children:Ll(Ms,"inset-0")})]},H)})})]})}),x.jsx("div",{"aria-live":"polite",className:"sr-only",children:$})]})}function i0(e,t){try{e.setPointerCapture(t)}catch{}}function NM(e){const t=e.end.slice(0,10);if(!e.allDay)return t;const[n,r,o]=t.split("-").map(Number),i=new Date(Date.UTC(n,r-1,o-1)).toISOString().slice(0,10);return i<e.start.slice(0,10)?e.start.slice(0,10):i}function Sle(e,t){if(e.allDay)return"all day";const n=Ys(e.start,t),r=Ys(e.end,t);return`${bd(n.minute)} to ${bd(r.minute)}`}const vT=e=>{const[t,n,r]=e.split("-").map(Number);return new Date(Date.UTC(t,n-1,r))},k$=e=>e.toISOString().slice(0,10);function A$(e){const t=vT(e);return t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+6)%7),k$(t)}function M3(e,t){const n=vT(e);return Array.from({length:t},(r,o)=>{const s=new Date(n);return s.setUTCDate(n.getUTCDate()+o),k$(s)})}const Zi=(e,t,n)=>new Intl.DateTimeFormat(n,{...t,timeZone:"UTC"}).format(vT(e));function G$e(e,t,n){if(e==="year")return Zi(t,{year:"numeric"},n);if(e==="day")return Zi(t,{weekday:"long",day:"numeric",month:"long",year:"numeric"},n);if(e!=="week")return Zi(t,{month:"long",year:"numeric"},n);const[r,,,,,,o]=M3(A$(t),7);return r.slice(0,7)===o.slice(0,7)?Zi(r,{month:"long",year:"numeric"},n):r.slice(0,4)===o.slice(0,4)?`${Zi(r,{month:"short"},n)} – ${Zi(o,{month:"short",year:"numeric"},n)}`:`${Zi(r,{month:"short",year:"numeric"},n)} – ${Zi(o,{month:"short",year:"numeric"},n)}`}const MM=864e5,wle=e=>{const[t,n,r]=e.split("-").map(Number);return new Date(Date.UTC(t,n-1,r))};function xle(e){const t=wle(e),n=(t.getUTCDay()+6)%7,r=new Date(t.getTime()+(3-n)*MM),o=Date.UTC(r.getUTCFullYear(),0,1);return Math.floor((r.getTime()-o)/MM/7)+1}function P3(e,t){const[n,r]=e.split("-").map(Number),o=n*12+(r-1)+t,s=Math.floor(o/12),i=o%12+1;return`${s}-${String(i).padStart(2,"0")}-01`}function Cle({month:e,today:t,rangeStart:n,rangeEnd:r}){const o=`${e.slice(0,7)}-01`,s=P3(o,1),i=[];let c=A$(o);for(;c<s;){const u=M3(c,7).map(d=>({date:d,day:Number(d.slice(8)),inMonth:d.slice(0,7)===o.slice(0,7),isToday:d===t,inRange:n!==""&&d>=n&&d<=r}));i.push({weekNumber:xle(c),days:u}),c=M3(c,8)[7]}return i}const Ele=["M","T","W","T","F","S","S"],PM=e=>new Intl.DateTimeFormat(void 0,{weekday:"long",day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(`${e}T00:00:00Z`)),_le=e=>new Intl.DateTimeFormat(void 0,{month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(`${e.slice(0,7)}-01T00:00:00Z`));function kle({month:e,today:t,rangeStart:n="",rangeEnd:r="",onPickDay:o,onShowMonth:s,counts:i,className:c}){const u=Cle({month:e,today:t,rangeStart:n,rangeEnd:r}),d=_le(e);return x.jsxs("section",{"aria-label":d,className:ke("select-none",c),children:[x.jsxs("div",{className:"flex items-center justify-between px-1 pb-1",children:[x.jsx("h2",{className:"text-sm font-medium text-fg",children:d}),s&&x.jsxs("div",{className:"flex",children:[x.jsx("button",{type:"button","aria-label":"Previous month",onClick:()=>s(P3(e,-1)),className:"flex size-7 items-center justify-center rounded-full text-fg-muted outline-none hover:bg-surface-sunken focus-visible:ring-2 focus-visible:ring-ring",children:x.jsx(Ise,{className:"size-4"})}),x.jsx("button",{type:"button","aria-label":"Next month",onClick:()=>s(P3(e,1)),className:"flex size-7 items-center justify-center rounded-full text-fg-muted outline-none hover:bg-surface-sunken focus-visible:ring-2 focus-visible:ring-ring",children:x.jsx(LF,{className:"size-4"})})]})]}),x.jsxs("table",{className:"w-full border-collapse text-center text-2xs",children:[x.jsx("thead",{children:x.jsxs("tr",{className:"text-fg-subtle",children:[x.jsx("th",{scope:"col",className:"w-6 font-normal",children:x.jsx("span",{className:"sr-only",children:"Week"})}),Ele.map((h,m)=>x.jsx("th",{scope:"col",className:"h-6 font-normal",children:h},m))]})}),x.jsx("tbody",{children:u.map(h=>x.jsxs("tr",{children:[x.jsx("th",{scope:"row",className:"font-normal text-fg-subtle tabular-nums",children:h.weekNumber}),h.days.map(m=>{const g=i?.[m.date]??0,v=i===void 0?PM(m.date):`${PM(m.date)}, ${g===1?"1 event":`${g} events`}`;return x.jsx("td",{className:ke("p-0",m.inRange&&"bg-accent-soft"),children:x.jsxs("button",{type:"button","aria-label":v,"aria-current":m.isToday?"date":void 0,"data-date":m.date,onClick:()=>o(m.date),className:ke("relative mx-auto flex size-7 items-center justify-center rounded-full tabular-nums outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring",m.isToday?"bg-accent font-semibold text-accent-fg":"hover:bg-surface-sunken",!m.isToday&&!m.inMonth&&"text-fg-subtle"),children:[m.day,g>0&&!m.isToday&&x.jsx("span",{"aria-hidden":"true",className:"absolute bottom-0.5 size-1 rounded-full bg-accent"})]})},m.date)})]},h.days[0].date))})]})]})}const Ale=Array.from({length:12},(e,t)=>String(t+1).padStart(2,"0"));function K$e({date:e,today:t,counts:n,onPickDay:r,className:o}){const s=e.slice(0,4);return x.jsx("div",{"data-calendar-year":"",className:ke("grid h-full content-start gap-x-8 gap-y-6 overflow-y-auto p-6 [grid-template-columns:repeat(auto-fill,minmax(15rem,1fr))]",o),children:Ale.map(i=>x.jsx(kle,{month:`${s}-${i}-01`,today:t,onPickDay:r,counts:n},i))})}const DM={type:"none"};function Tle(e){if(!e.open||e.count<=0)return DM;if(e.key==="ArrowDown"){const n=e.activeIndex+1;return{type:"move",index:n>=e.count?0:n}}if(e.key==="ArrowUp"){const n=e.activeIndex-1;return{type:"move",index:n<0?e.count-1:n}}return e.key==="Escape"?{type:"dismiss"}:(e.key==="Enter"||(e.acceptKeys??[]).includes(e.key))&&e.activeIndex>=0&&e.activeIndex<e.count?{type:"accept",index:e.activeIndex}:DM}function Ile({count:e,onAccept:t,acceptKeys:n}){const[r,o]=_.useState(!1),[s,i]=_.useState(-1),c=_.useId().replace(/[^a-zA-Z0-9_-]/g,""),u=`suggest-${c}`,d=_.useCallback(S=>`suggest-${c}-option-${S}`,[c]);_.useEffect(()=>{i(-1),o(!1)},[e]);const h=e>0&&!r,m=_.useRef({open:h,count:e,activeIndex:s,acceptKeys:n,onAccept:t});m.current={open:h,count:e,activeIndex:s,acceptKeys:n,onAccept:t};const g=_.useCallback(S=>{const b=m.current,C=Tle({key:S.key,open:b.open,count:b.count,activeIndex:b.activeIndex,acceptKeys:b.acceptKeys});return C.type==="none"?!1:(S.preventDefault(),C.type==="move"&&i(C.index),C.type==="dismiss"&&o(!0),C.type==="accept"&&b.onAccept(C.index),!0)},[]),v=_.useMemo(()=>({role:"combobox","aria-expanded":h,"aria-controls":u,"aria-autocomplete":"list",...s>=0?{"aria-activedescendant":d(s)}:{},...h?{"data-escape-owner":""}:{}}),[h,u,s,d]);return{open:h,activeIndex:s,setActiveIndex:i,dismiss:_.useCallback(()=>o(!0),[]),reopen:_.useCallback(()=>o(!1),[]),handleKeyDown:g,listId:u,optionId:d,comboboxProps:v}}function Rle({id:e,suggestions:t,activeIndex:n,optionId:r,onPick:o,onHighlight:s,label:i,className:c}){return t.length===0?null:x.jsx("div",{id:e,role:"listbox","aria-label":i,className:ke("max-h-44 overflow-y-auto rounded-md border border-line bg-surface py-1 shadow-sm",c),children:t.map((u,d)=>x.jsxs("div",{id:r(d),role:"option",tabIndex:-1,"aria-selected":d===n,className:ke("flex cursor-pointer items-baseline gap-2 px-3 py-2 text-sm text-fg",d===n&&"bg-accent-2-soft"),onMouseDown:h=>{h.preventDefault(),o(u)},onMouseEnter:()=>s(d),children:[x.jsx("span",{className:"min-w-0 flex-1 truncate",children:u.label??u.value}),u.hint&&x.jsx("span",{className:"shrink-0 truncate text-2xs text-fg-subtle",children:u.hint}),u.source&&x.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:u.source})]},u.value))})}var LM={en:1199414,"en-GB":1199758,nl:3180464},zM=["en","en-GB","nl"];const T$=()=>typeof zM>"u"?[]:zM,Y$e=()=>{const e="/spellcheck/de99b00dc30674fd/";return typeof document>"u"?e:new URL(e,document.baseURI).href},Z$e=e=>typeof LM>"u"?0:LM[e]??0,X$e=(e,t=T$())=>{const n=e.toLowerCase(),r=t.find(s=>s.toLowerCase()===n);if(r)return r;const o=n.split("-")[0];return t.find(s=>s.toLowerCase().split("-")[0]===o)??null},Ole=[{tag:"ar",detectionCode:"arb"},{tag:"az",detectionCode:"azj"},{tag:"be",detectionCode:"bel"},{tag:"bg",detectionCode:"bul"},{tag:"bs",detectionCode:"bos"},{tag:"cs",detectionCode:"ces"},{tag:"de",detectionCode:"deu"},{tag:"en",detectionCode:"eng"},{tag:"es",detectionCode:"spa"},{tag:"fa",detectionCode:"pes"},{tag:"fr",detectionCode:"fra"},{tag:"ha",detectionCode:"hau"},{tag:"hi",detectionCode:"hin"},{tag:"hr",detectionCode:"hrv"},{tag:"hu",detectionCode:"hun"},{tag:"id",detectionCode:"ind"},{tag:"ig",detectionCode:"ibo"},{tag:"it",detectionCode:"ita"},{tag:"jv",detectionCode:"jav"},{tag:"kk",detectionCode:"kaz"},{tag:"mr",detectionCode:"mar"},{tag:"ms",detectionCode:"zlm"},{tag:"ne",detectionCode:"npi"},{tag:"nl",detectionCode:"nld"},{tag:"pl",detectionCode:"pol"},{tag:"ps",detectionCode:"pbu"},{tag:"pt",detectionCode:"por"},{tag:"ro",detectionCode:"ron"},{tag:"ru",detectionCode:"rus"},{tag:"so",detectionCode:"som"},{tag:"sr",detectionCode:"srp"},{tag:"su",detectionCode:"sun"},{tag:"sv",detectionCode:"swe"},{tag:"sw",detectionCode:"swh"},{tag:"tl",detectionCode:"tgl"},{tag:"tr",detectionCode:"tur"},{tag:"uk",detectionCode:"ukr"},{tag:"ur",detectionCode:"urd"},{tag:"vi",detectionCode:"vie"},{tag:"yo",detectionCode:"yor"},{tag:"zu",detectionCode:"zul"}],yT=e=>(e.split("-")[0]??"").toLowerCase(),Nle=new Map(Ole.map(e=>[e.tag,e])),Mle=e=>Nle.get(yT(e))?.detectionCode??null,Ple=/^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i,Q$e=e=>yT(e).toUpperCase(),J$e=e=>{if(!Ple.test(e))return e;const n=new Intl.DisplayNames([e],{type:"language",fallback:"none"}).of(e);return n?n.charAt(0).toLocaleUpperCase(e)+n.slice(1):e},eBe=(e,t=T$())=>{const n=[...e,...t].filter(o=>Mle(o)!==null),r=[...new Set(n.map(yT))];return r.includes("en")||r.push("en"),r},tBe=e=>/iPhone|iPad|iPod/.test(e)?"On iPhone and iPad the keyboard decides this. Add the language under Settings, then General, then Keyboard.":/Edg\//.test(e)?"Edge checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Firefox\//.test(e)?"Firefox uses this setting. Right-click the message to add a dictionary for it.":/Chrome\/|Chromium\//.test(e)?"Chrome checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Safari\//.test(e)?"macOS decides this under Keyboard, then Text Input, then Spelling. Automatic by Language covers every language enabled there.":"Your browser decides which dictionaries it checks. Add this language in its own language settings to have it spellchecked.",I$=e=>new DOMParser().parseFromString(e,"text/html"),R$=e=>{const t=[...e.children];if(t.length!==1)return null;const n=t[0];return n?[...e.childNodes].some(o=>o!==n&&(o.textContent??"").trim()!=="")?null:n:null},nBe=(e,t)=>{if(e==="")return"";const n=I$(e),r=R$(n.body);if(r?.tagName==="DIV"&&r.hasAttribute("lang"))return r.setAttribute("lang",t),n.body.innerHTML;const o=n.createElement("div");for(o.setAttribute("lang",t);n.body.firstChild;)o.append(n.body.firstChild);return n.body.append(o),n.body.innerHTML},rBe=e=>{if(e==="")return{html:e,language:null};const t=I$(e),n=R$(t.body);return n?.tagName!=="DIV"||!n.hasAttribute("lang")?{html:e,language:null}:{html:n.innerHTML,language:n.getAttribute("lang")}},Dle={error:{container:"border-danger/50 bg-danger-soft",icon:"text-danger",title:"text-danger"},warning:{container:"border-warning/50 bg-warning-soft",icon:"text-warning",title:"text-warning"},info:{container:"border-accent-2/50 bg-accent-2-soft",icon:"text-accent-2",title:"text-accent-2"}},Lle={error:zF,warning:Sl,info:jF},zle={error:"Error",warning:"Warning",info:"Information"},Ule=({id:e,severity:t,title:n,detail:r,action:o,onDismiss:s})=>{const i=Dle[t],c=Lle[t];return x.jsxs("div",{role:t==="error"?"alert":"status","aria-live":t==="error"?"assertive":"polite",className:ke("pointer-events-auto flex items-start gap-3 rounded-md border bg-canvas px-3 py-2 shadow-lg",i.container),children:[x.jsx(c,{className:ke("size-5 shrink-0 mt-0.5",i.icon),"aria-hidden":"true"}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:ke("text-sm font-medium",i.title),children:n}),r&&x.jsx("p",{className:"mt-0.5 text-xs text-fg-muted break-words",children:r}),o&&x.jsx("a",{href:o.href,target:"_blank",rel:"noopener noreferrer",className:"mt-1 inline-block text-xs font-medium text-accent-2 underline underline-offset-2",children:o.label})]}),x.jsx("button",{type:"button",onClick:()=>s(e),className:"shrink-0 rounded-md p-1 text-fg-muted hover:bg-surface-raised hover:text-fg transition-colors","aria-label":`Dismiss ${zle[t].toLowerCase()}`,children:x.jsx(ti,{className:"size-4","aria-hidden":"true"})})]})},jle=({errors:e,onDismiss:t})=>e.length===0?null:x.jsx("section",{"aria-label":"Notifications",className:"pointer-events-none fixed inset-x-0 top-0 z-[60] flex flex-col items-center gap-2 px-4 pt-[calc(1rem+env(safe-area-inset-top,0px))] sm:items-end sm:pr-6",children:x.jsx("div",{className:"flex w-full max-w-md flex-col gap-2",children:e.map(n=>x.jsx(Ule,{id:n.id,severity:n.severity,title:n.title,detail:n.detail,action:n.action,onDismiss:t},n.id))})});function bT({className:e,children:t,...n}){return x.jsx("label",{className:ke("mb-1 block text-xs font-medium text-fg-muted",e),...n,children:t})}const Fle="Matches on what the messages say about themselves — sender, subject, list. No reading involved.",$le={From:"From",Subject:"Subject",HasWords:"Has the words",ListId:"List",FromDomain:"Domain"};function Pd(e){return $le[e]}const Ble={ListId:"The mailing list's List-Id header, matched exactly. New mail is matched as it arrives — mail delivered before this was set up may not carry it yet.",FromDomain:"The sender's registrable domain — matches anyone at it, subdomains included (a look-alike like example.com.evil.test never matches)."};function Hle(e){return Ble[e]}function qle(e){return e==="HasWords"}function O$(e){return e.clauses.length>0}function N$(e){return e.clauses.filter(t=>qle(t.field))}const Wle=["From","Subject","HasWords","ListId","FromDomain"],Vle={all:"Match all",any:"Match any"};function tv(e){return Vle[e]}function ST(e){return e==="all"?"and":"or"}function M$(e){if(e.status==="loading")return"Counting matches…";if(e.status==="error")return e.reason;if(e.count===0)return"No mail matches yet";const t=e.count===1?"message":"messages",n=`${e.count} ${t} match`;return e.stale?`${n} — recounting`:n}const Gle={once:"Just once",standing:"Keep doing this",until:"Until a date"};function x1(e){return Gle[e]}function P$(e){return e==="once"?"Apply now":e==="standing"?"Save rule":"Save until then"}const Ro={noMatch:"Add a clause so the rule has something to match.",bodyTextOnce:"Applying once can't read message bodies. Save this as a rule instead, or drop the “has the words” clause.",noAction:"Pick a folder to move into, or a label to apply.",unnamed:"Name this rule so you can find it later.",noUntilDate:"Pick the date this rule should stop on.",counting:"Counting matches — save once the count settles.",recounting:"Recounting matches — save once the count settles."},oBe="Can't count matches — “has the words” reads message bodies, which only a saved rule does.";function D$(e){if(e.status==="loading")return Ro.counting;if(e.status==="ready"&&e.stale)return Ro.recounting}function Kle(e,t){return O$(e)?e.scope==="once"&&N$(e).length>0?Ro.bodyTextOnce:!e.moveMailboxId&&!e.labelId?Ro.noAction:(e.scope==="standing"||e.scope==="until")&&(e.name??"").trim()===""?Ro.unnamed:e.scope==="until"&&!e.until?Ro.noUntilDate:D$(t):Ro.noMatch}const L$="inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs";function z$({clause:e,onEdit:t,onRemove:n}){return x.jsxs("span",{className:ke(L$,e.derived?"border-dashed border-line-strong bg-surface-sunken":"border-line bg-surface"),children:[x.jsxs("button",{type:"button",onClick:t,"aria-label":`Edit ${Pd(e.field)} clause`,className:"flex items-center gap-1 text-left",children:[x.jsx("span",{className:"font-medium text-fg-muted",children:Pd(e.field)}),x.jsx("span",{className:"text-fg",children:e.value})]}),e.derived&&x.jsx("span",{className:"text-2xs text-fg-subtle",children:"from sender"}),n&&x.jsx("button",{type:"button",onClick:n,"aria-label":`Remove ${Pd(e.field)} clause`,className:"flex size-4 items-center justify-center rounded-full text-fg-subtle hover:bg-surface-sunken hover:text-fg-muted",children:x.jsx(ti,{className:"size-3"})})]})}function U$({label:e,onClick:t}){return x.jsxs("button",{type:"button",onClick:t,className:ke(L$,"border-dashed border-line-strong text-fg-muted hover:border-accent-2 hover:text-accent-2"),children:[x.jsx(Bse,{className:"size-3","aria-hidden":"true"}),e]})}function j$({draft:e,mode:t,fields:n=Wle,suggestions:r=[],onChangeField:o,onChangeValue:s,onSubmit:i,onCancel:c}){const u=Hle(e.field),d=Ile({count:r.length,onAccept:h=>s?.(r[h].value)});return x.jsxs("div",{className:"space-y-1.5 rounded-lg border border-accent-2 bg-surface p-2",children:[x.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[x.jsx(x$,{"aria-label":"Clause field",value:e.field,onChange:h=>o?.(h.target.value),className:"h-8 w-32 shrink-0",children:n.map(h=>x.jsx("option",{value:h,children:Pd(h)},h))}),x.jsx(As,{"aria-label":"Clause value",value:e.value,placeholder:"value…",autoComplete:"off",onChange:h=>{d.reopen(),s?.(h.target.value)},onKeyDown:h=>{d.handleKeyDown(h)||h.key==="Enter"&&i?.()},className:"h-8 min-w-40 flex-1",...d.comboboxProps}),x.jsx(Bt,{variant:"primary",size:"sm",onClick:i,disabled:e.value.trim()==="",className:"shrink-0",children:t==="add"?"Add":"Save"}),x.jsx(Bt,{variant:"ghost",size:"sm",onClick:c,"aria-label":"Cancel clause edit",icon:x.jsx(ti,{className:"size-4"}),className:"shrink-0 px-2"})]}),d.open&&x.jsx(Rle,{id:d.listId,suggestions:r,activeIndex:d.activeIndex,optionId:d.optionId,onPick:h=>{s?.(h.value),d.dismiss()},onHighlight:d.setActiveIndex,label:`${Pd(e.field)} suggestions`}),u&&x.jsx("p",{className:"px-0.5 text-2xs text-fg-subtle",children:u})]})}function Yle({preview:e}){const t=M$(e);if(e.status==="loading")return x.jsxs("p",{className:"flex items-center gap-2 text-xs text-fg-muted","aria-live":"polite",children:[x.jsx(Op,{className:"size-3.5 animate-spin","aria-hidden":"true"}),t]});if(e.status==="error")return x.jsxs("p",{className:"flex items-center gap-2 text-xs text-danger",role:"alert",children:[x.jsx(Sl,{className:"size-3.5 shrink-0","aria-hidden":"true"}),t]});const n=e.count===0;return x.jsxs("p",{className:ke("flex items-center gap-2 text-xs",e.stale?"text-fg-subtle":n?"text-fg-muted":"font-medium text-fg"),"aria-live":"polite",children:[e.stale&&x.jsx(Op,{className:"size-3.5 animate-spin","aria-hidden":"true"}),t]})}const Ry=(e,t)=>t.length===0?[e]:e.split(t),Zle=(e,t)=>{const n=Ry(e,t);return n[n.length-1]||e},Pp=(e,t)=>{if(t.length===0)return"";const n=e.lastIndexOf(t);return n===-1?"":e.slice(0,n)},F$=(e,t)=>Ry(e,t).length-1,Dp=(e,t)=>{const n=[];let r=e,o=Pp(r,t);for(;o&&o.length<r.length;)n.push(o),r=o,o=Pp(r,t);return n},Xle=(e,t)=>{const n=new Set(e.map(i=>i.path)),r=new Set,o=[],s=i=>{if(!r.has(i.path)){r.add(i.path),o.push(i);for(const c of e)Pp(c.path,t)===i.path&&s(c)}};for(const i of e){const c=Pp(i.path,t);c&&n.has(c)||s(i)}return o},$$=(e,t)=>e.label.toLowerCase().includes(t)||e.path.toLowerCase().includes(t),Qle=(e,t,n)=>{const r=new Set;if(!t)return r;for(const o of e)if($$(o,t))for(const s of Dp(o.path,n))r.add(s);return r},Jle=(e,t,n,r=new Set)=>{const o=(c,u)=>({folder:c,depth:F$(c.path,n),context:u,expanded:r.has(c.path)});if(!t)return e.map(c=>o(c,!1));const s=new Set;for(const c of e)$$(c,t)&&s.add(c.path);const i=new Set(s);for(const c of s)for(const u of Dp(c,n))i.add(u);return e.filter(c=>i.has(c.path)).map(c=>o(c,!s.has(c.path)))},ece=(e,t,n)=>{const r=new Set(e.map(o=>o.path));return e.filter(o=>Dp(o.path,n).every(s=>!r.has(s)||t.has(s))).map(o=>({folder:o,depth:F$(o.path,n),context:!1,expanded:t.has(o.path)}))},tce=(e,t)=>{if(t.length===0)return e.map((s,i)=>({kind:"folder",row:s,index:i}));const n=[],r=[],o=s=>{for(;r.length>0;){const i=r[r.length-1];if(!i||s?.startsWith(`${i.folder.path}${t}`))break;r.pop(),n.push({kind:"create",parent:i.folder,depth:i.depth+1})}};return e.forEach((s,i)=>{o(s.folder.path),n.push({kind:"folder",row:s,index:i}),s.expanded&&r.push(s)}),o(null),n},nce=e=>typeof e=="object"&&e!==null&&"name"in e&&e.name==="AbortError",Xs=e=>e!==void 0&&!e.context,bx=e=>e!==void 0&&!e.folder.isCurrent&&!e.context,Sx=e=>{for(let t=0;t<e.length;t+=1)if(Xs(e[t]))return t;return-1},rce=e=>{for(let t=e.length-1;t>=0;t-=1)if(Xs(e[t]))return t;return-1},UM=(e,t,n)=>{const r=e.length;if(r<=0)return-1;const o=t<0?n===1?-1:r:t;for(let s=1;s<=r;s+=1){const i=((o+n*s)%r+r)%r;if(Xs(e[i]))return i}return-1},oce=(e,t,n)=>{const r=e[t];if(!r)return-1;const o=Pp(r.folder.path,n);if(!o)return-1;for(let s=t-1;s>=0;s-=1)if(e[s]?.folder.path===o)return Xs(e[s])?s:-1;return-1},D3="flex min-h-11 min-w-0 flex-1 items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",B$=14,sce=60,L3=({depth:e})=>e>0?x.jsx("span",{"aria-hidden":"true",className:"shrink-0",style:{width:e*B$}}):null,z3=({depth:e})=>x.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 bottom-0 h-px bg-line",style:{left:sce+e*B$}}),ace=({label:e,depth:t,expanded:n,ariaLabel:r,selected:o=!1,context:s=!1,current:i=!1,currentTag:c,messageCount:u,failure:d,separated:h=!1,actions:m,tabIndex:g,onActivate:v,onFocus:S,ref:b})=>{const C=x.jsx(LF,{className:ke("size-4 shrink-0 text-fg-subtle transition-transform",n&&"rotate-90"),"aria-hidden":"true"}),E=x.jsx(zse,{className:"size-4 shrink-0 text-fg-subtle","aria-hidden":"true"}),k=u===void 0?null:x.jsxs("span",{"aria-hidden":"true",className:"shrink-0 text-2xs text-fg-subtle",children:[u," ",u===1?"msg":"msgs"]}),A=x.jsxs("span",{className:"min-w-0 flex-1",children:[x.jsx("span",{className:"block truncate",children:e}),d&&x.jsxs("span",{className:"flex items-center gap-1 text-2xs text-danger",children:[x.jsx(zF,{className:"size-3 shrink-0","aria-hidden":"true"}),x.jsx("span",{className:"truncate",children:d})]})]}),R=d?`${r} — ${d}`:r;return s?x.jsxs("div",{className:"relative flex items-center",children:[x.jsxs("div",{role:"treeitem","aria-level":t+1,"aria-selected":!1,"aria-expanded":n,"aria-label":R,className:ke(D3,"opacity-60"),children:[x.jsx(L3,{depth:t}),C,E,A,k]}),m,h&&x.jsx(z3,{depth:t})]}):x.jsxs("div",{className:"relative flex items-center",children:[x.jsxs("button",{ref:b,type:"button",role:"treeitem","aria-level":t+1,"aria-selected":o,"aria-expanded":n,"aria-current":i?"true":void 0,"aria-label":R,tabIndex:g,onClick:v,onFocus:S,className:ke(D3,"hover:bg-surface-raised active:bg-surface-sunken",i&&"text-fg-muted"),children:[x.jsx(L3,{depth:t}),C,E,A,k,i&&c&&x.jsx("span",{className:"shrink-0 text-xs text-fg-muted",children:c}),o&&x.jsx(wy,{className:"size-4 shrink-0 text-accent","aria-hidden":"true"})]}),m,h&&x.jsx(z3,{depth:t})]})},jM=({label:e,ariaLabel:t,depth:n=0,prominence:r="prominent",separated:o=!1,onOpen:s})=>x.jsxs("div",{className:ke("relative",r==="prominent"&&"p-2"),children:[x.jsxs("button",{type:"button",onClick:s,"aria-label":t,"data-prominence":r,className:ke(D3,"w-full active:bg-surface-sunken",r==="prominent"?"rounded-lg border border-line-strong border-dashed font-medium text-fg-muted hover:border-accent-2 hover:text-accent-2":"text-fg-subtle hover:bg-surface-raised hover:text-fg-muted"),children:[x.jsx(L3,{depth:n}),x.jsx("span",{"aria-hidden":"true",className:"size-4 shrink-0"}),x.jsx(Dse,{className:"size-4 shrink-0","aria-hidden":"true"}),x.jsx("span",{className:"min-w-0 flex-1 truncate",children:e})]}),o&&x.jsx(z3,{depth:n})]}),H$={nameLabel:"Folder name",namePlaceholder:"Hotels",insideLabel:"Inside",create:"Create folder",cancel:"Cancel",createPending:"Creating folder…"},ice=({parentLabel:e,name:t,onNameChange:n,onSubmit:r,onCancel:o,pending:s=!1,error:i,labels:c})=>{const u={...H$,...c},d=_.useId(),h=_.useRef(null),m=_.useRef(null);return _.useEffect(()=>{h.current?.focus({preventScroll:!0}),m.current?.scrollIntoView({block:"nearest"})},[]),x.jsxs("div",{ref:m,className:"space-y-3 border-y border-line bg-surface-sunken px-3 py-3",children:[x.jsxs("div",{children:[x.jsx(bT,{htmlFor:d,children:u.nameLabel}),x.jsx(As,{id:d,ref:h,value:t,placeholder:u.namePlaceholder,onChange:g=>n(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),r()),g.key==="Escape"&&(g.preventDefault(),o())}})]}),x.jsxs("p",{className:"text-xs text-fg-muted",children:[u.insideLabel," ",x.jsx("span",{className:"font-medium text-fg",children:e})]}),i&&x.jsx("p",{className:"text-xs text-danger",role:"alert",children:i}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(Bt,{variant:"ghost",size:"md",onClick:o,className:"min-h-11 shrink-0",children:u.cancel}),x.jsx(Bt,{variant:"secondary",size:"md",onClick:r,disabled:s,className:"min-h-11 shrink-0",children:s?u.createPending:u.create})]})]})},lce={...H$,filterPlaceholder:"Filter folders…",filterAriaLabel:"Filter folders",treeAriaLabel:"Destination folders",currentSuffix:"(current folder)",currentTag:"current",contextSuffix:"(containing folder)",emptyMessage:e=>`No folders match "${e}"`,noFolders:"No folders to show",optionLabel:e=>`Move to ${e.label}`,newFolder:"New folder",newSubfolder:e=>`New folder inside ${e}`,topLevel:"Top level",nameRequired:"Give the folder a name.",createError:"Couldn't create that folder. Please try again."},wT=({folders:e,selectedId:t,onSelect:n,rowActions:r,rowFailure:o,onCreateFolder:s,onCancel:i,delimiter:c="/",labels:u,autoFocusFilter:d=!1})=>{const h={...lce,...u},[m,g]=_.useState(""),[v,S]=_.useState(()=>{const ee=e.find(Se=>Se.id===t);return new Set(ee?Dp(ee.path,c):[])}),[b,C]=_.useState(null),[E,k]=_.useState(""),[A,R]=_.useState(),[N,O]=_.useState(!1),[I,M]=_.useState(-1),z=_.useRef([]),q=_.useRef(null),U=_.useRef(!1),L=_.useRef(null);_.useEffect(()=>()=>L.current?.abort(),[]),_.useEffect(()=>{d&&q.current?.focus()},[d]);const B=m.trim().toLowerCase(),K=_.useMemo(()=>Xle(e,c),[e,c]),le=_.useMemo(()=>{const ee=Qle(K,B,c);return ee.size===0?v:new Set([...v,...ee])},[K,v,B,c]),$=_.useMemo(()=>B?Jle(K,B,c,le):ece(K,le,c),[K,B,c,le]),Q=_.useMemo(()=>s?tce($,c):void 0,[$,c,s]);_.useEffect(()=>{M(ee=>Xs($[ee])?ee:Sx($))},[$]),_.useEffect(()=>{U.current&&(U.current=!1,!(I<0)&&z.current[I]?.focus())},[I]);const se=_.useCallback((ee,Se)=>{S(Pe=>{if(Se)return new Set([...Dp(ee,c),ee]);const xe=new Set(Pe);return xe.delete(ee),xe})},[c]),de=_.useCallback(ee=>{bx(ee)&&n?.(ee.folder.id),se(ee.folder.path,!ee.expanded)},[n,se]),_e=_.useCallback(()=>{L.current?.abort(),C(null),k(""),R(void 0),O(!1)},[]),j=_.useCallback(ee=>{L.current?.abort(),C({anchorId:ee?.id??null,parentPath:ee?.path??"",parentLabel:ee?.label??h.topLevel}),k(""),R(void 0),O(!1)},[h.topLevel]),Y=_.useCallback(()=>{if(!s||!b||N)return;const ee=E.trim();if(ee===""){R(h.nameRequired);return}O(!0),R(void 0),L.current?.abort();const Se=new AbortController;L.current=Se;const Pe=b.parentPath;s(ee,Pe,Se.signal).then(xe=>{O(!1),C(null),k(""),Pe&&se(Pe,!0),n?.(xe.id)}).catch(xe=>{nce(xe)||(R(xe instanceof Error?xe.message:h.createError),O(!1))})},[s,b,N,E,n,se,h.nameRequired,h.createError]),X=_.useCallback(ee=>{const Se=ee.target;if(!(Se instanceof Element)||!Se.closest('[role="treeitem"]'))return;const Pe=Ge=>{ee.preventDefault(),U.current=!0,M(Ge)},xe=$[I];switch(ee.key){case"ArrowDown":return Pe(UM($,I,1));case"ArrowUp":return Pe(UM($,I,-1));case"Home":return Pe(Sx($));case"End":return Pe(rce($));case"ArrowRight":{if(!Xs(xe)||!xe)return;if(ee.preventDefault(),!xe.expanded){se(xe.folder.path,!0);return}const Ge=I+1;Xs($[Ge])&&Pe(Ge);return}case"ArrowLeft":{if(!Xs(xe)||!xe)return;if(ee.preventDefault(),xe.expanded){se(xe.folder.path,!1);return}const Ge=oce($,I,c);Ge>=0&&Pe(Ge);return}case"Enter":case" ":{if(!Xs(xe)||!xe)return;ee.preventDefault(),de(xe);return}case"Escape":ee.preventDefault(),i?.();return;default:return}},[$,I,c,de,se,i]),J=b!==null&&b.anchorId!==null&&(Q?.some(ee=>ee.kind==="create"&&ee.parent.id===b.anchorId)??!1),ie=b&&x.jsx(ice,{parentLabel:b.parentLabel,name:E,onNameChange:ee=>{k(ee),R(void 0)},onSubmit:Y,onCancel:_e,pending:N,error:A,labels:h}),ue=ee=>ee.context?`${ee.folder.label} ${h.contextSuffix}`:bx(ee)?h.optionLabel(ee.folder):`${ee.folder.label} ${h.currentSuffix}`,ge=(ee,Se,Pe)=>{const{folder:xe,depth:Ge}=ee,ze=bx(ee);return x.jsx(ace,{ref:He=>{z.current[Se]=He},label:xe.label,depth:Ge,expanded:ee.expanded,context:ee.context,current:xe.isCurrent,currentTag:h.currentTag,messageCount:xe.messageCount,selected:ze&&xe.id===t,separated:Pe,failure:o?.(xe),actions:r?.(xe),ariaLabel:ue(ee),tabIndex:Se===I?0:-1,onActivate:()=>de(ee),onFocus:()=>M(Se)})};return x.jsxs("div",{className:"flex min-h-0 w-full min-w-0 flex-col",children:[x.jsx(As,{ref:q,variant:"inline",className:"border-b border-line px-3 py-2",icon:x.jsx(qse,{className:"size-4","aria-hidden":"true"}),type:"search",value:m,onChange:ee=>g(ee.target.value),onKeyDown:ee=>{if(ee.key==="Escape"){ee.preventDefault(),i?.();return}if(ee.key!=="ArrowDown")return;ee.preventDefault();const Se=Xs($[I])?I:Sx($);Se<0||(U.current=!0,M(Se),z.current[Se]?.focus())},placeholder:h.filterPlaceholder,"aria-label":h.filterAriaLabel}),s&&x.jsx("div",{className:"shrink-0 border-b border-line","data-create-anchor":"top",children:b&&!J?ie:x.jsx(jM,{label:h.newFolder,ariaLabel:h.newFolder,prominence:"prominent",onOpen:()=>j(null)})}),$.length===0?x.jsx("p",{className:"px-3 py-3 text-sm text-fg-muted","aria-live":"polite",children:e.length===0?h.noFolders:h.emptyMessage(m)}):x.jsx("div",{role:"tree","aria-label":h.treeAriaLabel,className:"min-h-0 flex-1 overflow-y-auto overflow-x-hidden pb-24",onKeyDown:X,children:(Q??$.map((ee,Se)=>({kind:"folder",row:ee,index:Se}))).map((ee,Se,Pe)=>{const xe=Se<Pe.length-1;return ee.kind==="create"?x.jsx("div",{role:"none","data-create-anchor":ee.parent.id,children:b?.anchorId===ee.parent.id?ie:x.jsx(jM,{label:h.newFolder,ariaLabel:h.newSubfolder(ee.parent.label),depth:ee.depth,prominence:"quiet",separated:xe,onOpen:()=>j(ee.parent)})},`new:${ee.parent.id}`):x.jsx("div",{role:"none",children:ge(ee.row,ee.index,xe)},ee.row.folder.id)})})]})},U3={Default:"bg-fg-subtle",Red:"bg-red-500",Orange:"bg-orange-500",Yellow:"bg-yellow-500",Green:"bg-green-500",Teal:"bg-teal-500",Blue:"bg-blue-500",Purple:"bg-purple-500",Gray:"bg-gray-500"},sBe=["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],cce=e=>Object.hasOwn(U3,e);function uce({label:e,onRemove:t,className:n}){const r=cce(e.color)?U3[e.color]:U3.Default;return x.jsxs("span",{className:ke("inline-flex items-center gap-1 rounded-full bg-surface-sunken px-2 py-0.5 text-2xs font-medium text-fg-muted shrink-0",n),children:[x.jsx("span",{className:ke("size-1.5 shrink-0 rounded-full",r)}),x.jsx("span",{className:"truncate",children:e.name}),t&&x.jsx("button",{type:"button",onClick:()=>t(e.labelId),"aria-label":`Remove label ${e.name}`,className:"ml-0.5 rounded-full text-fg-subtle hover:text-fg",children:"×"})]})}const dce={sm:"min-h-9 px-3 text-xs",md:"min-h-11 px-4 text-sm"};function j3({name:e,options:t,value:n,onChange:r,size:o="md","aria-label":s}){const i=t.findIndex(c=>c.value===n);return x.jsx("div",{role:"radiogroup","aria-label":s,className:"inline-flex rounded-md border border-line bg-surface-sunken p-0.5",children:t.map((c,u)=>{const d=c.value===n,h=!d&&u<t.length-1&&i!==u+1;return x.jsxs("label",{className:ke("relative flex cursor-pointer items-center justify-center rounded-[5px] font-medium transition-colors",dce[o],d?"bg-surface text-fg shadow":"text-fg-muted hover:text-fg",h&&"after:pointer-events-none after:absolute after:right-0 after:top-1/4 after:h-1/2 after:w-px after:bg-line"),children:[x.jsx("input",{type:"radio",name:e,value:c.value,checked:d,onChange:()=>r(c.value),className:"sr-only"}),c.label]},c.value)})})}const fce=[{value:"all",label:tv("all")},{value:"any",label:tv("any")}],FM=[{value:"once",label:"Just once"},{value:"standing",label:"Keep doing this"},{value:"until",label:"Until a date"}],$M="__filter_create_label__";function hce({folders:e,value:t,delimiter:n="/",onChangeMove:r,onCreateFolder:o}){const[s,i]=_.useState(!1),[c,u]=_.useState(),[d,h]=_.useState([]),m=_.useMemo(()=>{const E=new Set(e.map(k=>k.id));return[...e,...d.filter(k=>!E.has(k.id))]},[e,d]),g=_.useMemo(()=>{if(o)return async(E,k,A)=>{const R=await o(E,k,A);return h(N=>N.some(O=>O.id===R.id)?N:[...N,R]),R}},[o]),v=m.find(E=>E.id===t),S=m.find(E=>E.id===c),b=E=>{const k=Ry(E.path,n);return k.map((A,R)=>{const N=k.slice(0,R+1).join(n);return m.find(O=>O.path===N)?.label??A}).join(" / ")},C=()=>{i(!1),u(void 0)};return s?x.jsxs("div",{className:"space-y-2",children:[x.jsx("div",{className:"flex h-72 min-h-0 overflow-hidden rounded-md border border-line bg-surface",children:x.jsx(wT,{folders:m,selectedId:c,delimiter:n,onSelect:u,onCreateFolder:g,onCancel:C,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})}),S?x.jsx(Bt,{variant:"primary",onClick:()=>{r?.(S.id),C()},className:"w-full",children:x.jsx("span",{className:"truncate",children:`Move matches to ${b(S)}`})}):x.jsx("p",{className:"text-2xs text-fg-subtle",children:"Tap a folder to open it, or make a new one where you want it."}),x.jsx(Bt,{variant:"ghost",size:"sm",onClick:C,className:"w-full",children:"Cancel"})]}):x.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken p-3",children:[x.jsx("p",{className:"text-sm font-medium text-fg",children:v?b(v):"No folder yet"}),x.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-3",children:[x.jsx(Bt,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>{u(t),i(!0)},children:"Choose a folder"}),v&&x.jsx(Bt,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>r?.(""),children:"Don't move matches"})]})]})}function pce({labels:e,value:t,onChangeLabel:n,onCreateLabel:r}){const[o,s]=_.useState(!1),[i,c]=_.useState(""),[u,d]=_.useState(!1),[h,m]=_.useState(),[g,v]=_.useState([]),S=_.useMemo(()=>{const A=new Set(e.map(R=>R.id));return[...e,...g.filter(R=>!A.has(R.id))]},[e,g]),b=S.find(A=>A.id===t),C=A=>{if(A===$M){m(void 0),s(!0);return}n?.(A)},E=()=>{if(!r)return;const A=i.trim();A!==""&&(d(!0),m(void 0),r(A).then(R=>{v(N=>N.some(O=>O.id===R.id)?N:[...N,R]),n?.(R.id),s(!1),c(""),d(!1)}).catch(R=>{m(R instanceof Error?R.message:"Couldn't create that label. Please try again."),d(!1)}))},k=()=>{s(!1),c(""),m(void 0)};return x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsxs(x$,{"aria-label":"Label to apply",value:t,onChange:A=>C(A.target.value),className:"flex-1",children:[x.jsx("option",{value:"",children:"No label"}),S.map(A=>x.jsx("option",{value:A.id,children:A.name},A.id)),r&&x.jsx("option",{value:$M,children:"+ New label…"})]}),b&&x.jsx(uce,{label:{...b,labelId:b.id}})]}),o&&x.jsxs("div",{className:"space-y-2 rounded-md border border-line bg-surface-sunken p-2",children:[x.jsx(As,{value:i,onChange:A=>c(A.target.value),placeholder:"Label name","aria-label":"New label name",disabled:u,autoFocus:!0,onKeyDown:A=>{A.key==="Enter"&&(A.preventDefault(),E()),A.key==="Escape"&&(A.preventDefault(),k())}}),h&&x.jsx("p",{className:"text-2xs text-danger",role:"alert",children:h}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx(Bt,{variant:"primary",size:"sm",onClick:E,disabled:u||i.trim()==="",children:u?"Creating…":"Create label"}),x.jsx(Bt,{variant:"ghost",size:"sm",onClick:k,disabled:u,children:"Cancel"})]})]})]})}function aBe({rule:e,folders:t,delimiter:n,labels:r=[],preview:o,notice:s,clauseFields:i,persisted:c=!1,clauseSuggestions:u,clauseEdit:d,onStartAddClause:h,onStartEditClause:m,onRemoveClause:g,onChangeDraftField:v,onChangeDraftValue:S,onSubmitClause:b,onCancelClause:C,onChangeMatchOperator:E,onChangeMove:k,onCreateFolder:A,onChangeLabel:R,onCreateLabel:N,onChangeScope:O,onChangeName:I,onChangeUntil:M,onCommit:z,onCancel:q}){const U=e.clauses.length>=2,L=ST(e.matchOperator),B=Kle(e,o),K=e.scope==="standing"||e.scope==="until",le=c?FM.filter($=>$.value!=="once"):FM;return x.jsxs("div",{className:"flex min-h-0 flex-col",children:[x.jsxs("div",{className:"border-b border-line px-5 py-3",children:[x.jsx("h2",{className:"text-sm font-semibold text-fg",children:"Filter rule"}),x.jsx("p",{className:"mt-0.5 text-xs text-fg-muted",children:"These chips are the whole rule — what you see is what applies."})]}),x.jsxs("div",{className:"min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4",children:[s,x.jsxs("section",{className:"space-y-3",children:[x.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[e.clauses.map(($,Q)=>x.jsxs(_.Fragment,{children:[Q>0&&x.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:L}),x.jsx(z$,{clause:$,onEdit:()=>m?.($.id),onRemove:()=>g?.($.id)})]},$.id)),!d&&x.jsx(U$,{label:"Add clause",onClick:h})]}),d&&x.jsx(j$,{draft:d.draft,mode:d.mode,fields:i,suggestions:u,onChangeField:v,onChangeValue:S,onSubmit:b,onCancel:C}),U&&x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),x.jsx(j3,{name:"match-operator",size:"sm","aria-label":"Match operator",options:fce,value:e.matchOperator,onChange:$=>E?.($)})]})]}),x.jsxs("section",{className:"space-y-2",children:[x.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Move matches to"}),x.jsx(hce,{folders:t,value:e.moveMailboxId,delimiter:n,onChangeMove:k,onCreateFolder:A})]}),x.jsxs("section",{className:"space-y-2",children:[x.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Apply a label"}),x.jsx(pce,{labels:r,value:e.labelId??"",onChangeLabel:R,onCreateLabel:N})]}),x.jsxs("section",{className:"space-y-2",children:[x.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"How long"}),x.jsx(j3,{name:"rule-scope",size:"sm","aria-label":"Rule scope",options:le,value:e.scope,onChange:$=>O?.($)}),K&&x.jsx(As,{value:e.name??"",onChange:$=>I?.($.target.value),placeholder:"Name this rule (e.g. Receipts)","aria-label":"Rule name",className:"w-full"}),e.scope==="until"&&x.jsxs("div",{className:"flex items-center gap-2 text-xs text-fg-muted",children:[x.jsx("span",{children:"Until"}),x.jsx(As,{type:"date",value:e.until??"",onChange:$=>M?.($.target.value),"aria-label":"Expiry date",className:"flex-1"})]})]}),x.jsx("div",{className:"border-t border-line pt-3",children:x.jsx(Yle,{preview:o})})]}),x.jsxs("div",{className:"space-y-2 border-t border-line px-5 py-3",children:[B&&x.jsx("p",{className:"text-xs text-fg-subtle",role:"status",children:B}),x.jsx(Bt,{variant:"primary",onClick:z,disabled:B!==void 0,className:"w-full",children:P$(e.scope)}),x.jsx(Bt,{variant:"ghost",onClick:q,className:"w-full",children:"Not now"})]})]})}function mce({count:e,activeStep:t}){return x.jsx("ol",{className:"flex items-center gap-1.5","aria-label":"Progress",children:Array.from({length:e},(n,r)=>x.jsx("li",{className:"flex flex-1 items-center gap-1.5",children:x.jsx("span",{className:ke("h-1 flex-1 rounded-full transition-colors",r<=t?"bg-accent":"bg-surface-sunken"),"aria-current":r===t?"step":void 0})},r))})}function gce({title:e,subtitle:t,steps:n,activeStep:r,onBack:o,onExit:s,footer:i,children:c,anchor:u="viewport",bodyFit:d="scroll"}){const h=u==="container",m=_.useRef(null);bm(m,!h);const g=ke("z-50 flex flex-col font-sans text-fg",h?"absolute inset-0":"fixed inset-0 md:items-center md:justify-center md:bg-black/40 md:p-6"),v=x.jsxs("div",{className:ke("flex min-h-0 w-full flex-1 flex-col bg-canvas",!h&&"md:h-[45rem] md:max-h-[calc(100dvh-3rem)] md:w-[35rem] md:max-w-[calc(100vw-3rem)] md:flex-none md:overflow-hidden md:rounded-xl md:border md:border-line md:shadow-lg"),children:[x.jsxs("header",{className:ke("shrink-0 border-b border-line px-3 pb-2",h?"pt-3":"pt-[calc(0.75rem+env(safe-area-inset-top,0px))] md:pt-3"),children:[x.jsxs("div",{className:"flex items-center gap-1",children:[x.jsx("button",{type:"button",onClick:o,"aria-label":"Back",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:x.jsx(DF,{className:"size-5"})}),x.jsxs("div",{className:"min-w-0 flex-1 text-center",children:[x.jsx("h1",{className:"truncate text-sm font-semibold",children:e}),t&&x.jsx("p",{className:"truncate text-2xs text-fg-muted",children:t})]}),x.jsx("button",{type:"button",onClick:s,"aria-label":"Cancel",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:x.jsx(ti,{className:"size-5"})})]}),n.length>1&&x.jsxs("div",{className:"space-y-1 px-1 pt-2",children:[x.jsx(mce,{count:n.length,activeStep:r}),x.jsxs("p",{className:"text-2xs text-fg-subtle",children:["Step ",r+1," of ",n.length," · ",n[r]]})]})]}),x.jsx("div",{className:ke("min-h-0 flex-1",d==="fill"?"overflow-hidden":"overflow-y-auto px-4 py-4"),children:c}),i&&x.jsx("footer",{className:ke("shrink-0 border-t border-line px-4 py-3",h?"":"pb-[max(0.75rem,env(safe-area-inset-bottom))] md:pb-3"),children:i})]});return h?x.jsx("section",{ref:m,"aria-label":e,tabIndex:-1,className:g,children:v}):x.jsx("section",{ref:m,role:"dialog","aria-modal":"true","aria-label":e,tabIndex:-1,className:g,children:v})}const vce={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Spam",trash:"Trash",flagged:"Starred",all:"All Mail"};function yce(e){return vce[e]}const bce=new Set(["all","flagged"]);function Sce(e){return bce.has(e)}const wce=new Set(["[Gmail]","[Google Mail]"]);function xce(e){if(e.role)return Sce(e.role)?void 0:yce(e.role);if(!e.providerPath)return;const t=Ry(e.providerPath,e.hierarchyDelimiter);if(!wce.has(t[0]))return Zle(e.providerPath,e.hierarchyDelimiter)}function iBe(e){return e==="inbox"?x.jsx(UF,{className:"size-4"}):e==="drafts"?x.jsx(Nse,{className:"size-4"}):e==="sent"?x.jsx(Wse,{className:"size-4"}):e==="archive"?x.jsx(_se,{className:"size-4"}):e==="junk"?x.jsx(lT,{className:"size-4"}):e==="trash"?x.jsx(Kse,{className:"size-4"}):e==="flagged"?x.jsx(Vse,{className:"size-4"}):x.jsx(Fse,{className:"size-4"})}function Cce(e,t,n){return Math.max(t,Math.min(e,n))}const Mr={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function BM(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function HM(e,t,n,r=.15){return r===0?Cce(e,t,n):e<t?-BM(t-e,n-t,r)+t:e>n?+BM(e-n,n-t,r)+n:e}function Ece(e,[t,n],[r,o]){const[[s,i],[c,u]]=e;return[HM(t,s,i,r),HM(n,c,u,o)]}function _ce(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kce(e){var t=_ce(e,"string");return typeof t=="symbol"?t:String(t)}function no(e,t,n){return t=kce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qM(Object(n),!0).forEach(function(r){no(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const q$={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function WM(e){return e?e[0].toUpperCase()+e.slice(1):""}const Ace=["enter","leave"];function Tce(e=!1,t){return e&&!Ace.includes(t)}function Ice(e,t="",n=!1){const r=q$[e],o=r&&r[t]||t;return"on"+WM(e)+WM(o)+(Tce(n,o)?"Capture":"")}const Rce=["gotpointercapture","lostpointercapture"];function Oce(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=Rce.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function Nce(e,t=""){const n=q$[e],r=n&&n[t]||t;return e+r}function Oy(e){return"touches"in e}function W$(e){return Oy(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Mce(e){return Array.from(e.touches).filter(t=>{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function Pce(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function V$(e){return Oy(e)?Pce(e)[0]:e}function Dce(e){return Mce(e).map(t=>t.identifier)}function wx(e){const t=V$(e);return Oy(e)?t.identifier:t.pointerId}function VM(e){const t=V$(e);return[t.clientX,t.clientY]}function Lce(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:s}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:s})}return t}function nv(e,...t){return typeof e=="function"?e(...t):e}function zce(){}function Uce(...e){return e.length===0?zce:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function GM(e,t){return Object.assign({},t,e||{})}const jce=32;class Fce{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?nv(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let s=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,Lce(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,s=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const O=n._delta.map(Math.abs);Mr.addTo(n._distance,O)}this.axisIntent&&this.axisIntent(t);const[i,c]=n._movement,[u,d]=r.threshold,{_step:h,values:m}=n;if(r.hasCustomTransform?(h[0]===!1&&(h[0]=Math.abs(i)>=u&&m[0]),h[1]===!1&&(h[1]=Math.abs(c)>=d&&m[1])):(h[0]===!1&&(h[0]=Math.abs(i)>=u&&Math.sign(i)*u),h[1]===!1&&(h[1]=Math.abs(c)>=d&&Math.sign(c)*d)),n.intentional=h[0]!==!1||h[1]!==!1,!n.intentional)return;const g=[0,0];if(r.hasCustomTransform){const[O,I]=m;g[0]=h[0]!==!1?O-h[0]:0,g[1]=h[1]!==!1?I-h[1]:0}else g[0]=h[0]!==!1?i-h[0]:0,g[1]=h[1]!==!1?c-h[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(g);const v=n.offset,S=n._active&&!n._blocked||n.active;S&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=nv(r.bounds,n)),this.setup&&this.setup()),n.movement=g,this.computeOffset()));const[b,C]=n.offset,[[E,k],[A,R]]=n._bounds;n.overflow=[b<E?-1:b>k?1:0,C<A?-1:C>R?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const N=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=Ece(n._bounds,n.offset,N),n.delta=Mr.sub(n.offset,v),this.computeMovement(),S&&(!n.last||s>jce)){n.delta=Mr.sub(n.offset,v);const O=n.delta.map(Math.abs);Mr.addTo(n.distance,O),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[O[0]/s,O[1]/s],n.timeDelta=s)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(wn(wn(wn({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function $ce([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class Bce extends Fce{constructor(...t){super(...t),no(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Mr.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Mr.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[W$(t)]:r.axisThreshold;n.axis=$ce(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const Hce=e=>e,KM=.15,G$={enabled(e=!0){return e},eventOptions(e,t,n){return wn(wn({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[KM,KM];case!1:return[0,0];default:return Mr.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Mr.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Hce},threshold(e){return Mr.toVector(e,0)}},qce=0,Sm=wn(wn({},G$),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=qce){return e},bounds(e={}){if(typeof e=="function")return s=>Sm.bounds(e(s));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),YM={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class Wce extends Bce{constructor(...t){super(...t),no(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Sm.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=wx(t),r._pointerActive=!0,this.computeValues(VM(t)),this.computeInitial(),n.preventScrollAxis&&W$(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=wx(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const s=VM(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=Mr.sub(s,n._values),this.computeValues(s)),Mr.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=wx(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[s,i]=n._distance;if(n.tap=s<=r.tapsThreshold&&i<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[c,u]=n._delta,[d,h]=n._movement,[m,g]=r.swipe.velocity,[v,S]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTime<b){const C=Math.abs(c/n.timeDelta),E=Math.abs(u/n.timeDelta);C>m&&Math.abs(d)>v&&(n.swipe[0]=Math.sign(c)),E>g&&Math.abs(h)>S&&(n.swipe[1]=Math.sign(u))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,Vce(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=YM[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,Mr.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in YM&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Vce(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const wm=typeof window<"u"&&window.document&&window.document.createElement;function K$(){return wm&&"ontouchstart"in window}function Gce(){return K$()||wm&&window.navigator.maxTouchPoints>1}function Kce(){return wm&&"onpointerdown"in window}function Yce(){return wm&&"exitPointerLock"in window.document}function Zce(){try{return"constructor"in GestureEvent}catch{return!1}}const Xo={isBrowser:wm,gesture:Zce(),touch:K$(),touchscreen:Gce(),pointer:Kce(),pointerLock:Yce()},Xce=250,Qce=180,Jce=.5,eue=50,tue=250,nue=10,ZM={mouse:0,touch:0,pen:8},rue=wn(wn({},Sm),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Xo.pointerLock,Xo.touch&&n?"touch":this.pointerLock?"mouse":Xo.pointer&&!o?"pointer":Xo.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Xce:void 0,!(!Xo.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const s=Mr.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,s},swipe({velocity:e=Jce,distance:t=eue,duration:n=tue}={}){return{velocity:this.transform(Mr.toVector(e)),distance:this.transform(Mr.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return Qce;case!1:return 0;default:return e}},axisThreshold(e){return e?wn(wn({},ZM),e):ZM},keyboardDisplacement(e=nue){return e}});wn(wn({},G$),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Xo.touch&&Xo.gesture)return"gesture";if(Xo.touch&&r)return"touch";if(Xo.touchscreen){if(Xo.pointer)return"pointer";if(Xo.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=i=>{const c=GM(nv(n,i),{min:-1/0,max:1/0});return[c.min,c.max]},s=i=>{const c=GM(nv(r,i),{min:-1/0,max:1/0});return[c.min,c.max]};return typeof n!="function"&&typeof r!="function"?[o(),s()]:i=>[o(i),s(i)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",Mr.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});wn(wn({},Sm),{},{mouseOnly:(e=!0)=>e});wn(wn({},Sm),{},{mouseOnly:(e=!0)=>e});const Y$=new Map,F3=new Map;function oue(e){Y$.set(e.key,e.engine),F3.set(e.key,e.resolver)}const sue={key:"drag",engine:Wce,resolver:rue};function aue(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function iue(e,t){if(e==null)return{};var n=aue(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const lue={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=Xo.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},cue=["target","eventOptions","window","enabled","transform"];function C1(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=C1(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function uue(e,t,n={}){const r=e,{target:o,eventOptions:s,window:i,enabled:c,transform:u}=r,d=iue(r,cue);if(n.shared=C1({target:o,eventOptions:s,window:i,enabled:c,transform:u},lue),t){const h=F3.get(t);n[t]=C1(wn({shared:n.shared},d),h)}else for(const h in d){const m=F3.get(h);m&&(n[h]=C1(wn({shared:n.shared},d[h]),m))}return n}class Z${constructor(t,n){no(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,s){const i=this._listeners,c=Nce(n,r),u=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},d=wn(wn({},u),s);t.addEventListener(c,o,d);const h=()=>{t.removeEventListener(c,o,d),i.delete(h)};return i.add(h),h}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class due{constructor(){no(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>{window.clearTimeout(t)}),this._timeouts.clear()}}class fue{constructor(t){no(this,"gestures",new Set),no(this,"_targetEventStore",new Z$(this)),no(this,"gestureEventStores",{}),no(this,"gestureTimeoutStores",{}),no(this,"handlers",{}),no(this,"config",{}),no(this,"pointerIds",new Set),no(this,"touchIds",new Set),no(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),hue(this,t)}setEventIds(t){if(Oy(t))return this.touchIds=new Set(Dce(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=uue(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const i of this.gestures){const c=this.config[i],u=XM(r,c.eventOptions,!!o);if(c.enabled){const d=Y$.get(i);new d(this,t,i).bind(u)}}const s=XM(r,n.eventOptions,!!o);for(const i in this.nativeHandlers)s(i,"",c=>this.nativeHandlers[i](wn(wn({},this.state.shared),{},{event:c,args:t})),void 0,!0)}for(const s in r)r[s]=Uce(...r[s]);if(!o)return r;for(const s in r){const{device:i,capture:c,passive:u}=Oce(s);this._targetEventStore.add(o,i,"",r[s],{capture:c,passive:u})}}}}function Yu(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Z$(e,t),e.gestureTimeoutStores[t]=new due}function hue(e,t){t.drag&&Yu(e,"drag"),t.wheel&&Yu(e,"wheel"),t.scroll&&Yu(e,"scroll"),t.move&&Yu(e,"move"),t.pinch&&Yu(e,"pinch"),t.hover&&Yu(e,"hover")}const XM=(e,t,n)=>(r,o,s,i={},c=!1)=>{var u,d;const h=(u=i.capture)!==null&&u!==void 0?u:t.capture,m=(d=i.passive)!==null&&d!==void 0?d:t.passive;let g=c?r:Ice(r,o,h);n&&m&&(g+="Passive"),e[g]=e[g]||[],e[g].push(s)},xx=10,pue={axisThreshold:{mouse:xx,touch:xx,pen:xx},swipe:{distance:60,velocity:.3,duration:600},pointer:{keys:!1,capture:!1}};function mue(e,t={},n,r){const o=F.useMemo(()=>new fue(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),F.useEffect(o.effect.bind(o)),F.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function gue(e,t){return oue(sue),mue({drag:e},t||{},"drag")}const QM="remit:swipe",lBe=_.createContext(!1),vue=1.01,yue=e=>{const{event:t}=e;if("pointerType"in t&&t.pointerType!=="touch"||t.type!=="pointerup")return null;const n=e.swipe[0];return n<0?"left":n>0?"right":null},bue=e=>{const t=window.visualViewport;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)},Sue=()=>(window.visualViewport?.scale??1)>vue,cBe=({onSwipeLeft:e,onSwipeRight:t})=>{const n=_.useRef(null),r=e!==void 0||t!==void 0,o=_.useSyncExternalStore(bue,Sue,()=>!1),s=c=>{c==="left"&&e?.(),c==="right"&&t?.()},i=gue(c=>s(yue(c)),{...pue,axis:"x",enabled:r&&!o});return _.useEffect(()=>{const c=n.current;if(!c||!r||o)return;const u=d=>{if(!(d instanceof CustomEvent))return;const{detail:h}=d;(h==="left"||h==="right")&&s(h)};return c.addEventListener(QM,u),()=>c.removeEventListener(QM,u)}),{ref:n,bind:i,touchAction:r&&!o?"pan-y pinch-zoom":"auto",enabled:r}},X$={filter:"border-line bg-surface-sunken text-fg-muted",scope:"border-accent-2/40 bg-accent-2-soft text-accent-2"},wue=({label:e,onRemove:t,tone:n="filter",className:r})=>x.jsxs("span",{className:ke("inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-2xs",X$[n],r),children:[x.jsx("span",{children:e}),x.jsx("button",{type:"button",onClick:t,className:"shrink-0 rounded-full p-0.5 hover:bg-fg-muted/20 transition-colors","aria-label":`Remove filter: ${e}`,children:x.jsx(ti,{className:"size-3"})})]}),xue=_.forwardRef(({label:e,onRemove:t,onActivate:n,tone:r="filter",focused:o=!1,onKeyDown:s,onFocusLabel:i,className:c},u)=>x.jsxs("span",{role:"row",tabIndex:-1,className:ke("inline-flex max-w-48 items-center gap-1 rounded-full border px-2 py-0.5 text-2xs transition-colors",X$[r],o&&"ring-2 ring-ring",c),children:[x.jsx("button",{ref:u,type:"button",role:"gridcell",tabIndex:o?0:-1,onClick:n,onFocus:i,onKeyDown:s,className:ke("block min-w-0 max-w-full truncate rounded-full outline-none",n?"cursor-pointer":"cursor-default"),children:e}),x.jsx("button",{type:"button",role:"gridcell",tabIndex:-1,onClick:t,className:"block shrink-0 rounded-full p-0.5 transition-colors hover:bg-fg-muted/20","aria-label":`Remove filter: ${e}`,children:x.jsx(ti,{className:"size-3"})})]}));xue.displayName="SearchChipRow";const uBe=({tokens:e,className:t})=>e.length===0?null:x.jsx("div",{className:ke("flex flex-wrap items-center gap-1.5 border-b border-line bg-surface px-row-inset py-1.5",t),children:e.map(n=>x.jsx(wue,{label:n.label,onRemove:n.onRemove},n.label))});function JM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cue(e){if(Array.isArray(e))return e}function Eue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,i,c=[],u=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(u=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(h){d=!0,o=h}finally{try{if(!u&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(d)throw o}}return c}}function _ue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
+ `,recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the session has not expired."});try{const{Session:d,ChallengeName:h,AuthenticationResult:m,ChallengeParameters:g}=await one(r,o,s,t,c,lo,u,n);return Kc({signInSession:d,username:r,challengeName:h,signInDetails:i}),m?(await di({username:r,...m,NewDeviceMetadata:await Yc({userPoolId:c.userPoolId,userPoolEndpoint:c.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:i}),_s(),await Ol(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):Xc({challengeName:h,challengeParameters:g})}catch(d){rs(d);const h=yf(d.name);if(h)return h;throw d}}const Rne=e=>Xn(hr,fr("GetUser"),Ar(),{...pr,...e}),One=e=>Xn(hr,fr("VerifyUserAttribute"),Ar(),{...pr,...e});async function Nne(e){const t=Xt.getConfig().Auth?.Cognito;pt(t);const{userPoolEndpoint:n,userPoolId:r}=t,{confirmationCode:o,userAttributeKey:s}=e;xn(!!o,tt.EmptyConfirmUserAttributeCode);const{tokens:i}=await py({forceRefresh:!1});hf(i),await One({endpointResolver:_t({endpointOverride:n})})({region:Et(r),userAgentValue:jt(nt.ConfirmUserAttribute)},{AccessToken:i.accessToken.toString(),AttributeName:s,Code:o})}new _r("AuthError");const Mne={oauthSignInError:{message:ur.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:ur.DEFAULT_MSG},missingAuthConfig:{message:ur.DEFAULT_MSG},emptyUsername:{message:ur.EMPTY_USERNAME},invalidUsername:{message:ur.INVALID_USERNAME},emptyPassword:{message:ur.EMPTY_PASSWORD},emptyCode:{message:ur.EMPTY_CODE},signUpError:{message:ur.SIGN_UP_ERROR},noMFA:{message:ur.NO_MFA},invalidMFA:{message:ur.INVALID_MFA},emptyChallengeResponse:{message:ur.EMPTY_CHALLENGE},noUserSession:{message:ur.NO_USER_SESSION},deviceConfig:{message:ur.DEVICE_CONFIG},networkError:{message:ur.NETWORK_ERROR},autoSignInError:{message:ur.AUTOSIGNIN_ERROR},default:{message:ur.DEFAULT_MSG}},bl=(e,t)=>new Ye({message:e??"An error has occurred during the oauth process.",name:ra.OAuthSignInError,recoverySuggestion:Mne.oauthSignInError.log});var v3;(function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkError",e.AutoSignInError="autoSignInError",e.OAuthSignInError="oauthSignInError"})(v3||(v3={}));const Pne="`signInWithRedirect` has been canceled.",Dne="An error occurred while validating the state.",Lne="Try to initiate an OAuth flow from Amplify",cF=async e=>{const t=await ro.loadOAuthState(),n=e===t?t:void 0;if(!n)throw new Ye({name:v3.OAuthSignInError,message:e===null?Pne:Dne,recoverySuggestion:e===null?void 0:Lne});return n},uF=async({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,responseType:o,domain:s,preferPrivateSession:i})=>{const c=new Rl(e),u=c.searchParams.get("error"),d=c.searchParams.get("error_description");if(u)throw bl(d??u);return o==="code"?zne({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,domain:s,preferPrivateSession:i}):Une({currentUrl:e,redirectUri:r,preferPrivateSession:i})},zne=async({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,domain:o,preferPrivateSession:s})=>{const i=new Rl(e),c=i.searchParams.get("code"),u=i.searchParams.get("state");if(!c||!u)throw bl("User cancelled OAuth flow.");const d=await cF(u),h="https://"+o+"/oauth2/token",m=await ro.loadPKCE(),g={grant_type:"authorization_code",code:c,client_id:n,redirect_uri:r,...m?{code_verifier:m}:{}},v=Object.entries(g).map(([O,I])=>`${encodeURIComponent(O)}=${encodeURIComponent(I)}`).join("&"),{access_token:S,refresh_token:b,id_token:C,error:E,error_message:k,token_type:A,expires_in:R}=await(await fetch(h,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[$X]:t},body:v})).json();if(E)throw bl(k??E);const N=(S&&ei(S).payload.username)??"username";return await di({username:N,AccessToken:S,IdToken:C,RefreshToken:b}),dF({redirectUri:r,state:d,preferPrivateSession:s})},Une=async({currentUrl:e,redirectUri:t,preferPrivateSession:n})=>{const r=new Rl(e),{id_token:o,access_token:s,state:i,token_type:c,expires_in:u,error_description:d,error:h}=(r.hash??"#").substring(1).split("&").map(v=>v.split("=")).reduce((v,[S,b])=>({...v,[S]:b}),{id_token:void 0,access_token:void 0,state:void 0,token_type:void 0,expires_in:void 0,error_description:void 0,error:void 0});if(h)throw bl(d??h);if(!s)throw bl("No access token returned from OAuth flow.");const m=await cF(i),g=(s&&ei(s).payload.username)??"username";return await di({username:g,AccessToken:s,IdToken:o}),dF({redirectUri:t,state:m,preferPrivateSession:n})},dF=async({redirectUri:e,state:t,preferPrivateSession:n})=>{await lo.setOAuthMetadata({oauthSignIn:!0}),await ro.clearOAuthData(),await ro.storeOAuthSignIn(!0,n),Vj(),$ne(e),jne(t)&&na.dispatch("auth",{event:"customOAuthState",data:UJ(Fne(t))},"Auth",ta),na.dispatch("auth",{event:"signInWithRedirect"},"Auth",ta),await Ol()},jne=e=>/-/.test(e),Fne=e=>e.split("-").splice(1).join("-"),$ne=e=>{typeof window<"u"&&typeof window.history<"u"&&window.history.replaceState(window.history.state,"",e)};function tT(e,t){{const n=e?.find(Bne)??e?.find(Hne),r=e?.find(Wne)??e?.find(qne);if(n)return n;throw r?JJ:XJ}}const Bne=e=>e.startsWith(String(window.location.origin+(window.location.pathname||"/"))),Hne=e=>e.includes(String(window.location.hostname)),qne=e=>e.startsWith("http://"),Wne=e=>e.startsWith("https://"),nT=async e=>{Vj(),await ro.clearOAuthInflightData(),na.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:e}},"Auth",ta)},Vne=async e=>{try{pt(e),uy(e),ro.setAuthConfig(e)}catch{return}if(await ro.loadOAuthInFlight())try{const t=window.location.href,{loginWith:n,userPoolClientId:r}=e,{domain:o,redirectSignIn:s,responseType:i}=n.oauth,c=tT(s);await uF({currentUrl:t,clientId:r,domain:o,redirectUri:c,responseType:i,userAgentValue:jt(nt.SignInWithRedirect)})}catch(t){await nT(t)}};hy()&&Xt[gj](Vne);const Gne={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"SignInWithApple"},fF=async e=>{window?.location&&(window.location.href=e.replace("http://","https://"))},PN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Kne=e=>{const t=new Uint8Array(e);jA().getRandomValues(t);let n="",r;for(const o of t)n+=PN.charAt(o%PN.length);return{value:n,method:"S256",toCodeChallenge(){return r||(r=Yne(n),r)}}};function Yne(e){const t=new Dc;return t.update(e),Zne(Fd.convert(t.digestSync(),{urlSafe:!0}))}function Zne(e){return e.replace(/=/g,"")}const Xne=()=>zJ(32),Qne=e=>{async function t(n){if(n.persisted&&await e.loadOAuthInFlight()){const o=bl("User cancelled OAuth flow.");await nT(o)}window.removeEventListener("pageshow",t)}window.addEventListener("pageshow",t)};async function hF(e){const t=Xt.getConfig().Auth?.Cognito;pt(t),uy(t),ro.setAuthConfig(t),e?.options?.prompt||await tF();let n="COGNITO",r;return typeof e?.provider=="string"?n=Gne[e.provider]:e?.provider?.custom?n=e.provider.custom:e?.provider?.idpIdentifier&&({idpIdentifier:r}=e.provider),Jne({oauthConfig:t.loginWith.oauth,clientId:t.userPoolClientId,provider:n,idpIdentifier:r,customState:e?.customState,preferPrivateSession:e?.options?.preferPrivateSession,options:{loginHint:e?.options?.loginHint,lang:e?.options?.lang,nonce:e?.options?.nonce,prompt:e?.options?.prompt},authSessionOpener:e?.options?.authSessionOpener})}const Jne=async({oauthConfig:e,provider:t,idpIdentifier:n,clientId:r,customState:o,preferPrivateSession:s,options:i,authSessionOpener:c})=>{const{domain:u,redirectSignIn:d,responseType:h,scopes:m}=e,{loginHint:g,lang:v,nonce:S,prompt:b}=i??{},C=Xne(),E=c||fF,k=o?`${C}-${jJ(o)}`:C,{value:A,method:R,toCodeChallenge:N}=Kne(128),O=tT(e.redirectSignIn);hy()&&ro.storeOAuthInFlight(!0),ro.storeOAuthState(k),ro.storePKCE(A);const I=new URLSearchParams;I.append("redirect_uri",O),I.append("response_type",h),I.append("client_id",r),n?I.append("idp_identifier",n):I.append("identity_provider",t),I.append("scope",m.join(" ")),g&&I.append("login_hint",g),v&&I.append("lang",v),S&&I.append("nonce",S),b&&I.append("prompt",b.toLowerCase()),I.append("state",k),h==="code"&&(I.append("code_challenge",N()),I.append("code_challenge_method",R));const M=`https://${u}/oauth2/authorize?${I.toString()}`;Qne(ro);const{type:z,error:q,url:U}=await E(M,d,s)??{};try{if(z==="error")throw bl(String(q));if(z==="canceled")throw bl(String(z));z==="success"&&U&&await uF({currentUrl:U,clientId:r,domain:u,redirectUri:O,responseType:h,userAgentValue:jt(nt.SignInWithRedirect),preferPrivateSession:s})}catch(L){throw await nT(L),L}},ere=async e=>{const t=e.getConfig().Auth?.Cognito;pt(t);const{userPoolEndpoint:n,userPoolId:r}=t,{tokens:o}=await xj(e,{forceRefresh:!1});hf(o);const s=Rne({endpointResolver:_t({endpointOverride:n})}),{UserAttributes:i}=await s({region:Et(r),userAgentValue:jt(nt.FetchUserAttributes)},{AccessToken:o.accessToken.toString()});return WJ(i)},pF=()=>ere(Xt),tre=async e=>{await e.clearOAuthData(),lo.clearTokens(),await Cj(),na.dispatch("auth",{event:"signedOut"},"Auth",ta)},nre=async(e,t=!1,n)=>{uy(e);const{loginWith:r,userPoolClientId:o}=e,{domain:s,redirectSignOut:i}=r.oauth,c=tT(i),u=`https://${s}/logout?${Object.entries({client_id:o,logout_uri:encodeURIComponent(c)}).map(([d,h])=>`${d}=${h}`).join("&")}`;return fF(u)},rre=async(e,t,n,r)=>{const{isOAuthSignIn:o}=await t.loadOAuthSignIn(),s=await n.getOAuthMetadata();if(await tre(t),o||s?.oauthSignIn)return nre(e,!1)},ore=e=>Xn(hr,fr("RevokeToken"),Ar(),{...pr,...e}),sre=new _r("Auth");async function are(e){const t=Xt.getConfig().Auth?.Cognito;pt(t),await ire(t);let n;try{uy(t),n=!0}catch{n=!1}if(n){const r=new Wj(hm);r.setAuthConfig(t);const{type:o}=await rre(t,r,lo)??{};if(o==="error")throw new Ye({name:eee,message:"An error occurred when attempting to log out from OAuth provider."})}else lo.clearTokens(),await Cj(),na.dispatch("auth",{event:"signedOut"},"Auth",ta)}async function ire(e){try{const{userPoolEndpoint:t,userPoolId:n,userPoolClientId:r}=e,o=await lo.getTokenStore().loadTokens();$j(o),lre(o.accessToken)&&await ore({endpointResolver:_t({endpointOverride:t})})({region:Et(n),userAgentValue:jt(nt.SignOut)},{ClientId:r,Token:o.refreshToken})}catch{sre.debug("Client signOut error caught but will proceed with token removal")}}const lre=e=>!!e?.payload?.origin_jti,cre=e=>Xn(hr,fr("GetUserAttributeVerificationCode"),Ar(),{...pr,...e}),ure=async e=>{const{userAttributeKey:t,options:n}=e,r=Xt.getConfig().Auth?.Cognito,o=n?.clientMetadata;pt(r);const{userPoolEndpoint:s,userPoolId:i}=r,{tokens:c}=await py({forceRefresh:!1});hf(c);const u=cre({endpointResolver:_t({endpointOverride:s})}),{CodeDeliveryDetails:d}=await u({region:Et(i),userAgentValue:jt(nt.SendUserAttributeVerificationCode)},{AccessToken:c.accessToken.toString(),ClientMetadata:o,AttributeName:t}),{DeliveryMedium:h,AttributeName:m,Destination:g}={...d};return{destination:g,deliveryMedium:h,attributeName:m}},dre={identityId:"identityId"},fre=new _r("DefaultIdentityIdStore");class mF{setAuthConfig(t){d1(t.Cognito),this.authConfig=t,this._authKeys=hre("Cognito",t.Cognito.identityPoolId)}constructor(t){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=t}async loadIdentityId(){d1(this.authConfig?.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const t=await this.keyValueStorage.getItem(this._authKeys.identityId);return t?(this._hasGuestIdentityId=!0,{id:t,type:"guest"}):null}}catch(t){return fre.log("Error getting stored IdentityId.",t),null}}async storeIdentityId(t){d1(this.authConfig?.Cognito),t.type==="guest"?(this.keyValueStorage.setItem(this._authKeys.identityId,t.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=t.id,this._hasGuestIdentityId&&(this.keyValueStorage.removeItem(this._authKeys.identityId),this._hasGuestIdentityId=!1))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}const hre=(e,t)=>WA(dre)(`com.amplify.${e}`,t),y3=({endpointOverride:e})=>t=>e?{url:new Rl(e)}:kJ(t);function gF(e){const t=ei(e).payload.iss,n={};if(!t)throw new Ye({name:"InvalidIdTokenException",message:"Invalid Idtoken."});const r=t.replace(/(^\w+:|^)\/\//,"");return n[r]=e,n}async function pre({tokens:e,authConfig:t,identityIdStore:n}){n.setAuthConfig({Cognito:t});const r=await n.loadIdentityId();if(r)return r.id;const o=e?.idToken?gF(e.idToken.toString()):{},s=await mre(o,t);return n.storeIdentityId({id:s,type:e?"primary":"guest"}),s}async function mre(e,t){const n=t?.identityPoolId,r=u3(n),o=CJ({endpointResolver:y3({endpointOverride:t.identityPoolEndpoint})});let s;try{s=(await o({region:r},{IdentityPoolId:n,Logins:e})).IdentityId}catch(i){throw rs(i),new Ye(i)}if(!s)throw new Ye({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return s}const r0=new _r("CognitoCredentialsProvider"),DN=3e3*1e3;class vF{constructor(t){this._nextCredentialsRefresh=0,this._identityIdStore=t}async clearCredentialsAndIdentityId(){r0.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){r0.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(t){const n=t.authenticated,{tokens:r}=t,{authConfig:o}=t;try{d1(o?.Cognito)}catch{return}if(!n&&!o.Cognito.allowGuestAccess)return;const{forceRefresh:s}=t,i=this.hasTokenChanged(r),c=await pre({tokens:r,authConfig:o.Cognito,identityIdStore:this._identityIdStore});return(s||i)&&this.clearCredentials(),n?(ree(r),this.credsForOIDCTokens(o.Cognito,r,c)):this.getGuestCredentials(c,o.Cognito)}async getGuestCredentials(t,n){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!1)return r0.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const r=u3(n.identityPoolId),o=Q6({endpointResolver:y3({endpointOverride:n.identityPoolEndpoint})});let s;try{s=await o({region:r},{IdentityId:t})}catch(i){throw rs(i),new Ye(i)}if(s?.Credentials?.AccessKeyId&&s?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+DN;const i={credentials:{accessKeyId:s.Credentials.AccessKeyId,secretAccessKey:s.Credentials.SecretKey,sessionToken:s.Credentials.SessionToken,expiration:s.Credentials.Expiration},identityId:t};return s.IdentityId&&(i.identityId=s.IdentityId,this._identityIdStore.storeIdentityId({id:s.IdentityId,type:"guest"})),this._credentialsAndIdentityId={...i,isAuthenticatedCreds:!1},i}else throw new Ye({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(t,n,r){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!0)return r0.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const o=n.idToken?gF(n.idToken.toString()):{},s=u3(t.identityPoolId),i=Q6({endpointResolver:y3({endpointOverride:t.identityPoolEndpoint})});let c;try{c=await i({region:s},{IdentityId:r,Logins:o})}catch(u){throw rs(u),new Ye(u)}if(c?.Credentials?.AccessKeyId&&c?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+DN;const u={credentials:{accessKeyId:c.Credentials.AccessKeyId,secretAccessKey:c.Credentials.SecretKey,sessionToken:c.Credentials.SessionToken,expiration:c.Credentials.Expiration},identityId:r};return c.IdentityId&&(u.identityId=c.IdentityId,this._identityIdStore.storeIdentityId({id:c.IdentityId,type:"primary"})),this._credentialsAndIdentityId={...u,isAuthenticatedCreds:!0,associatedIdToken:n.idToken?.toString()},u}else throw new Ye({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return this._nextCredentialsRefresh===void 0?!0:this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(t){return!!t&&!!this._credentialsAndIdentityId?.associatedIdToken&&t.idToken?.toString()!==this._credentialsAndIdentityId.associatedIdToken}}const gre=new vF(new mF(hm)),yF={configure(e,t){const n=yj(e),r=new MJ({sameSite:"lax"}),o=t?.ssr?r:hm,s=t?.ssr?new vF(new mF(r)):gre;if(!n.Auth||t?.Auth){Xt.configure(n,t);return}h1.setAuthConfig(n.Auth),h1.setKeyValueStorage(o),Xt.configure(n,{...t,Auth:{tokenProvider:h1,credentialsProvider:s}})},getConfig(){return Xt.getConfig()}},vre="https://github.com/remit-mail/reader/issues/new",yre=["internal","acme","tailscale","off"],bre=["self","managed"],LN=(e,t,n)=>e.find(r=>r===t)??n,bf=()=>{const e=globalThis.__REMIT_CONFIG__??{};return{apiUrl:e.apiUrl??"/api",appOrigin:e.appOrigin??"",betterAuthEnabled:e.betterAuthEnabled??!1,cognito:{userPoolId:e.cognito?.userPoolId??"",clientId:e.cognito?.clientId??"",domain:e.cognito?.domain??"",region:e.cognito?.region??""},rum:{appMonitorId:e.rum?.appMonitorId??"",identityPoolId:e.rum?.identityPoolId??"",region:e.rum?.region??"eu-west-1"},mailboxPollIntervalSeconds:e.mailboxPollIntervalSeconds!=null?String(e.mailboxPollIntervalSeconds):void 0,disableDevtools:e.disableDevtools??!1,tlsMode:LN(yre,e.tlsMode,"off"),issuesUrl:e.issuesUrl??vre,updateMode:LN(bre,e.updateMode,"self")}},bF=()=>{const e=bf(),{userPoolId:t,clientId:n,domain:r,region:o}=e.cognito;return!t||!n?null:{userPoolId:t,userPoolClientId:n,domain:r,region:o,appOrigin:e.appOrigin}},by=()=>bF()!==null,SF=()=>{const e=bF();if(!e){console.warn("[auth] Cognito user pool is not configured. Running in local dev mode without Cognito auth.");return}const{userPoolId:t,userPoolClientId:n,domain:r,appOrigin:o}=e;yF.configure({Auth:{Cognito:{userPoolId:t,userPoolClientId:n,loginWith:r?{oauth:{domain:r,scopes:["openid","email","profile"],redirectSignIn:o?[o]:[],redirectSignOut:o?[o]:[],responseType:"code"}}:void 0}}})};var Sre={};const g1=Object.create(null),_h=e=>Sre||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?g1:globalThis),el=new Proxy(g1,{get(e,t){return _h()[t]??g1[t]},has(e,t){return t in _h()||t in g1},set(e,t,n){const r=_h(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=_h(!0);return delete n[t],!0},ownKeys(){const e=_h(!0);return Object.keys(e)}});el.NODE_ENV;var v1=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};const wre=47;function wF(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===wre;)t--;return t===e.length?e:e.slice(0,t)}function xre(e){try{return(wF(new URL(e).pathname)||"/")!=="/"}catch{throw new v1(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function Cre(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new v1(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof v1?t:new v1(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function zN(e,t="/api/auth"){if(Cre(e),xre(e))return e;const n=wF(e);return!t||t==="/"?n:(t=t.startsWith("/")?t:`/${t}`,`${n}${t}`)}function Ere(e,t,n,r,o){{const s=el.BETTER_AUTH_URL||el.NEXT_PUBLIC_BETTER_AUTH_URL||el.PUBLIC_BETTER_AUTH_URL||el.NUXT_PUBLIC_BETTER_AUTH_URL||el.NUXT_PUBLIC_AUTH_URL||(el.BASE_URL!=="/"?el.BASE_URL:void 0);if(s)return zN(s,t)}if(typeof window<"u"&&window.location)return zN(window.location.origin,t)}const _re={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},kre=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,UN={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},Are=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function Tre(e){return e instanceof Date&&!isNaN(e.getTime())}function Ire(e){const t=Are.exec(e);if(!t)return null;const[,n,r,o,s,i,c,u,d,h,m]=t,g=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(o,10),parseInt(s,10),parseInt(i,10),parseInt(c,10),u?parseInt(u.padEnd(3,"0"),10):0));if(d){const v=(parseInt(h,10)*60+parseInt(m,10))*(d==="+"?-1:1);g.setUTCMinutes(g.getUTCMinutes()+v)}return Tre(g)?g:null}function Rre(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:o,parseDates:s=!0}=t;if(typeof e!="string")return e;const i=e.trim(),c=i.toLowerCase();if(c.length<=9&&c in UN)return UN[c];if(!kre.test(i)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(_re).some(([u,d])=>{const h=d.test(i);return h&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${u} pattern`),h})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(d,h)=>{if(d==="__proto__"||d==="constructor"&&h&&typeof h=="object"&&"prototype"in h){r&&console.warn(`[better-json] Dropping "${d}" key to prevent prototype pollution`);return}if(s&&typeof h=="string"){const m=Ire(h);if(m)return m}return o?o(d,h):h})}catch(u){if(n)throw u;return e}}function Ore(e,t={strict:!0}){return Rre(e,t)}const Nre=["javascript:","data:","vbscript:"];function Mre(e){let t;try{t=new URL(e)}catch{return!0}return!Nre.includes(t.protocol)}const Pre={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&Mre(e.data.url)&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};let bs=[],tl=0;const y1=4,Dre=globalThis.nanostoresGlobal||={epoch:0};let Lre=()=>{for(tl=0;tl<bs.length;tl+=y1)bs[tl](bs[tl+1].value,bs[tl+2],bs[tl+3]);bs.length=0};const xF=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(r){return n.lc=t.push(r),()=>{for(let s=tl+y1;s<bs.length;)bs[s]===r?bs.splice(s,y1):s+=y1;let o=t.indexOf(r);~o&&(t.splice(o,1),--n.lc||n.off())}},notify(r,o){Dre.epoch++;let s=!bs.length&&!0;for(let i of t)bs.push(i,n,r,o);s&&Lre()},off(){},set(r){let o=n.value;o!==r&&(n.value=r,n.notify(o))},subscribe(r){let o=n.listen(r);return r(n.value),o},value:e};return n},zre=2,Ure=5,o0=6,s0=10;let CF=(e,t,n,r)=>(e.events=e.events||{},e.events[n+s0]||(e.events[n+s0]=r(o=>{e.events[n].reduceRight((s,i)=>(i(s),s),{shared:{},...o})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let o=e.events[n],s=o.indexOf(t);o.splice(s,1),o.length||(delete e.events[n],e.events[n+s0](),delete e.events[n+s0])}),jre=(e,t)=>CF(e,t,zre,n=>{let r=e.set,o=e.setKey;return e.setKey&&(e.setKey=(s,i)=>{let c;if(n({abort:()=>{c=!0},changed:s,newValue:{...e.value,[s]:i}}),!c)return o(s,i)}),e.set=s=>{let i;if(n({abort:()=>{i=!0},newValue:s}),!i)return r(s)},()=>{e.set=r,e.setKey=o}});const EF=1e3;let Fre=(e,t)=>CF(e,r=>{let o=t(r);o&&e.events[o0].push(o)},Ure,r=>{let o=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,r()),o(...i));let s=e.off;return e.events[o0]=[],e.off=()=>{s(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[o0])i();e.events[o0]=[]}},EF)},()=>{e.listen=o,e.off=s}});function $re(e,t,n){let r=new Set(t);return e.listen((o,s,i)=>{(i===void 0?t.some(c=>o[c]!==s[c]):r.has(i)||r.has(i.split(/\.|\[/)[0]))&&n(o,s,i)})}function jN(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Y1(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Y1(e[n],t[n]))return!1;return!0}if(jN(e)&&jN(t)){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!(o in t)||!Y1(e[o],t[o]))return!1;return!0}return!1}function Bre(e,t){return jre(e,({newValue:n,abort:r})=>{t(e.value,n)&&r()})}const b3=Symbol.for("better-auth:auth-query");function Hre(e){return b3 in e&&e[b3]===!0}function qre(e){const t=xF(e);return Object.defineProperty(t,b3,{value:!0}),t}const ex=Symbol.for("better-auth:broadcast-channel"),Wre=()=>Math.floor(Date.now()/1e3);var Vre=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:Wre()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const n=JSON.parse(t.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function tx(e="better-auth.message"){return globalThis[ex]||(globalThis[ex]=new Vre(e)),globalThis[ex]}const nx=Symbol.for("better-auth:focus-manager");var Gre=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function FN(){return globalThis[nx]||(globalThis[nx]=new Gre),globalThis[nx]}const rx=Symbol.for("better-auth:online-manager");var Kre=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function ox(){return globalThis[rx]||(globalThis[rx]=new Kre),globalThis[rx]}const sx=()=>Math.floor(Date.now()/1e3),Yre=5;function Zre(e){const{fetchSession:t,shouldPollSession:n=()=>!0,sessionSignal:r,options:o={}}=e,s=o.sessionOptions?.refetchInterval??0,i=o.sessionOptions?.refetchOnWindowFocus??!0,c=o.sessionOptions?.refetchWhenOffline??!1,u={isInitialized:!1,lastSessionRequest:0},d=()=>c||ox().isOnline,h=A=>{if(d()){if(A?.event==="storage"){t();return}if(A?.event==="poll"){u.lastSessionRequest=sx(),t();return}if(A?.event==="visibilitychange"){if(sx()-u.lastSessionRequest<Yre)return;u.lastSessionRequest=sx(),t();return}t()}},m=A=>{tx().post({event:"session",data:{trigger:A},clientId:Math.random().toString(36).substring(7)})},g=()=>{s&&s>0&&(u.pollInterval=setInterval(()=>{n()&&h({event:"poll"})},s*1e3))},v=()=>{u.unsubscribeBroadcast=tx().subscribe(()=>{h({event:"storage"})})},S=()=>{i&&(u.unsubscribeFocus=FN().subscribe(()=>{h({event:"visibilitychange"})}))},b=()=>{u.unsubscribeOnline=ox().subscribe(A=>{A&&h({event:"visibilitychange"})})},C=()=>{u.unsubscribeSignal=r.listen(()=>{t()})};return{init:()=>{u.isInitialized||(u.isInitialized=!0,g(),v(),S(),b(),C(),u.cleanupBroadcastSetup=tx().setup(),u.cleanupFocusSetup=FN().setup(),u.cleanupOnlineSetup=ox().setup())},cleanup:()=>{u.isInitialized&&(u.pollInterval&&(clearInterval(u.pollInterval),u.pollInterval=void 0),u.unsubscribeBroadcast&&(u.unsubscribeBroadcast(),u.unsubscribeBroadcast=void 0),u.unsubscribeFocus&&(u.unsubscribeFocus(),u.unsubscribeFocus=void 0),u.unsubscribeOnline&&(u.unsubscribeOnline(),u.unsubscribeOnline=void 0),u.unsubscribeSignal&&(u.unsubscribeSignal(),u.unsubscribeSignal=void 0),u.cleanupBroadcastSetup&&(u.cleanupBroadcastSetup(),u.cleanupBroadcastSetup=void 0),u.cleanupFocusSetup&&(u.cleanupFocusSetup(),u.cleanupFocusSetup=void 0),u.cleanupOnlineSetup&&(u.cleanupOnlineSetup(),u.cleanupOnlineSetup=void 0),u.isInitialized=!1,u.lastSessionRequest=0)},triggerRefetch:h,broadcastSessionUpdate:m}}const Xre=()=>typeof window>"u",Qre=EF;function Jre(e,t){if(typeof window>"u")return;const n=e.get();n.data!==null||t===null||e.set({...n,data:t,error:null,isPending:!1})}function $N(e){return typeof e=="object"&&e!==null&&"data"in e&&"error"in e?e:{data:e,error:null}}function eoe(e){return!e||e.session===null&&e.user===null?null:e}function toe(e,t){return Y1(e.data,t.data)&&e.error===t.error&&e.isPending===t.isPending&&e.isRefetching===t.isRefetching&&e.refetch===t.refetch}function noe(e,t){const n=xF(!1);let r,o=0,s=0;n.listen(()=>{s++,o=0});const i=v=>h(v),c=qre({data:null,error:null,isPending:!0,isRefetching:!1,refetch:i});Bre(c,toe);const u=async(v,S)=>{const b=c.value;if(c.set({...b,isPending:b.data===null,isRefetching:!0,error:null,refetch:i}),v.aborted)return"aborted";try{const C=await e("/get-session",{method:"GET",query:S?.query,signal:v});if(v.aborted)return"aborted";let{data:E,error:k}=$N(C),A="fresh";if(E?.needsRefresh)try{const I=await e("/get-session",{method:"POST",signal:v});if(v.aborted)return"aborted";({data:E,error:k}=$N(I))}catch{if(v.aborted)return"aborted";A="stale"}if(k){const I=c.value,M=k?.status===401;return c.set({data:M?null:I.data,error:k,isPending:!1,isRefetching:!1,refetch:i}),"failed"}const R=eoe(E),N=c.value,O=N.data!=null&&R!=null&&Y1(N.data,R)?N.data:R;return c.set({data:O,error:null,isPending:!1,isRefetching:!1,refetch:i}),A}catch(C){if(v.aborted)return"aborted";const E=c.value;return c.set({data:E.data,error:C,isPending:!1,isRefetching:!1,refetch:i}),"failed"}},d=()=>{const v=c.value.data?.session?.expiresAt,S=v instanceof Date?v.getTime():Number.POSITIVE_INFINITY;return Math.min(Date.now()+Qre,S)},h=v=>{o=0,r?.cancel();const S=new AbortController,b={cancel:()=>S.abort(),promise:Promise.resolve().then(()=>S.signal.aborted?"aborted":u(S.signal,v)),revision:s};r=b;const C=E=>{r===b&&(r=void 0,E==="fresh"&&b.revision===s&&(o=d()))};return b.promise.then(C,()=>C("failed")),b.promise.then(()=>{})},m=()=>r?.revision===s?r.promise.then(()=>{}):Date.now()<o?Promise.resolve():h();let g=()=>{};return Fre(c,()=>{let v;Xre()||(v=setTimeout(()=>{m()},0));const S=Zre({fetchSession:h,shouldPollSession:()=>c.value.data!=null,sessionSignal:n,options:t});return S.init(),g=S.broadcastSessionUpdate,()=>{v&&clearTimeout(v),S.cleanup()}}),{session:c,$sessionSignal:n,broadcastSessionUpdate:v=>g(v)}}function ax(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function S3(e,t,n=".",r){if(!ax(t))return S3(e,{},n,r);const o={...t};for(const s of Object.keys(e)){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:ax(i)&&ax(o[s])?o[s]=S3(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function roe(e){return(...t)=>t.reduce((n,r)=>S3(n,r,"",e),{})}const ooe=roe();var soe=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor)}};const aoe=async(e,t)=>{let n=t||{};const r={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:n,hooks:r};for(const h of t?.plugins||[]){var o,s,i,c,u;if(h.init){var d;const m=await((d=h.init)===null||d===void 0?void 0:d.call(h,e.toString(),n));n=m.options||n,e=m.url}r.onRequest.push((o=h.hooks)===null||o===void 0?void 0:o.onRequest),r.onResponse.push((s=h.hooks)===null||s===void 0?void 0:s.onResponse),r.onSuccess.push((i=h.hooks)===null||i===void 0?void 0:i.onSuccess),r.onError.push((c=h.hooks)===null||c===void 0?void 0:c.onError),r.onRetry.push((u=h.hooks)===null||u===void 0?void 0:u.onRetry)}return{url:e,options:n,hooks:r}};var BN=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},ioe=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function loe(e){if(typeof e=="number")return new BN({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new BN(e);case"exponential":return new ioe(e);default:throw new Error("Invalid retry strategy")}}const coe=["get","post","put","patch","delete"];function rT(e){if(!e.startsWith("@"))return{method:void 0,path:e};const t=e.indexOf("/"),n=e.slice(1,t===-1?void 0:t);return coe.includes(n)?{method:n,path:t===-1?e:e.slice(t+1)}:{method:void 0,path:e}}const uoe=e=>e==="."||e==="..",doe=e=>e.split(":").map(t=>encodeURIComponent(t)).join(":");function foe(e,t){const n=t.get(e);if(n===void 0)return doe(e);if(uoe(n))throw new TypeError("Path parameters cannot be reserved path segments");return encodeURIComponent(n)}function hoe(e,t){const{baseURL:n,params:r,query:o}=t||{query:{},params:{},baseURL:""};let s=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";const{path:i}=rT(e);i!==e&&(e=`/${i}`),s.endsWith("/")||(s+="/");let[c,u]=e.replace(s,"").split("?");const d=new URLSearchParams(u);for(const[g,v]of Object.entries(o||{})){if(v==null)continue;let S;if(typeof v=="string")S=v;else if(Array.isArray(v)){for(const b of v)d.append(g,b);continue}else S=JSON.stringify(v);d.set(g,S)}const h=new Map;if(r)if(Array.isArray(r)){const g=c.split("/").filter(v=>v.startsWith(":"));for(const[v,S]of g.entries()){const b=r[v];h.set(S,String(b))}}else for(const[g,v]of Object.entries(r))h.set(`:${g}`,String(v));c=c.split("/").map(g=>foe(g,h)).join("/"),c=c.replace(/^\/+/,"");let m=d.toString();return m=m.length>0?`?${m}`.replace(/\+/g,"%20"):"",s.startsWith("http")?new URL(`${c}${m}`,s):`${s}${c}${m}`}const poe=async e=>{const t={},n=async r=>typeof r=="function"?await r():r;if(e?.auth){if(e.auth.type==="Bearer"){const r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type==="Basic"){const[r,o]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!r||!o)return t;t.authorization=`Basic ${btoa(`${r}:${o}`)}`}else if(e.auth.type==="Custom"){const[r,o]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!o)return t;t.authorization=`${r??""} ${o}`}}return t},moe=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function goe(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const r=t.split(";").shift()||"";return moe.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function voe(e){try{return JSON.parse(e),!0}catch{return!1}}function _F(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function HN(e){try{return JSON.parse(e)}catch{return e}}function qN(e){return typeof e=="function"}function yoe(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&qN(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&qN(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}function kF(...e){const t={};for(const n of e)if(n)if(n instanceof Headers)n.forEach((r,o)=>{t[o]=r});else{const r=Array.isArray(n)?n:Object.entries(n);for(const[o,s]of r)s!=null&&(t[o]=s)}return t}async function boe(e){const t=new Headers(kF(e?.headers,await poe(e)));if(!t.has("content-type")){const n=Soe(e?.body);n&&t.set("content-type",n)}return t}function Soe(e){return _F(e)?"application/json":null}function woe(e){const t=e.get("content-type");return t?t.split(";")[0].trim().toLowerCase():null}function xoe(e,t){const{body:n}=e;return n?!_F(n)||typeof n=="string"?n:woe(t)==="application/x-www-form-urlencoded"?new URLSearchParams(n).toString():JSON.stringify(n):null}function Coe(e,t){if(t?.method)return t.method.toUpperCase();const{method:n}=rT(e);return n?n.toUpperCase():t?.body?"POST":"GET"}function Eoe(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var _oe=class AF extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,AF.prototype)}};async function Jh(e,t){const n=await e["~standard"].validate(t);if(n.issues)throw new _oe(n.issues);return n.value}function Rp(e){"@babel/helpers - typeof";return Rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rp(e)}function koe(e,t){if(Rp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aoe(e){var t=koe(e,"string");return Rp(t)=="symbol"?t:t+""}function Toe(e,t,n){return(t=Aoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WN(Object(n),!0).forEach(function(r){Toe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const w3=async(e,t)=>{var n,r,o;const{hooks:s,url:i,options:c}=await aoe(e,t),u=yoe(c),d=new AbortController,h=(n=c.signal)!==null&&n!==void 0?n:d.signal,m=hoe(i,c),g=await boe(c),v=xoe(c,g),S=Coe(i,c),b=Pt(Pt({},c),{},{url:m,headers:g,body:v,method:S,signal:h});for(const B of s.onRequest)if(B){const K=await B(b);typeof K=="object"&&K!==null&&Object.assign(b,K)}("pipeTo"in b&&typeof b.pipeTo=="function"||typeof(t==null||(r=t.body)===null||r===void 0?void 0:r.pipe)=="function")&&("duplex"in b||(b.duplex="half"));const{clearTimeout:C}=Eoe(c,d);let E=await u(b.url,b);C();const k={response:E,request:b};for(const B of s.onResponse)if(B){var A;const K=await B(Pt(Pt({},k),{},{response:!(t==null||(A=t.hookOptions)===null||A===void 0)&&A.cloneResponse?E.clone():E}));K instanceof Response?E=K:typeof K=="object"&&K!==null&&(E=K.response)}if(E.ok){if(b.method==="HEAD")return{data:"",error:null};const B=goe(E),K={data:null,response:E,request:b};if(B==="json"||B==="text"){var R;const le=await E.text();K.data=await((R=b.jsonParser)!==null&&R!==void 0?R:HN)(le)}else K.data=await E[B]();b?.output&&b.output&&!b.disableValidation&&(K.data=await Jh(b.output,K.data));for(const le of s.onSuccess)if(le){var N;await le(Pt(Pt({},K),{},{response:!(t==null||(N=t.hookOptions)===null||N===void 0)&&N.cloneResponse?E.clone():E}))}return t?.throw?K.data:{data:K.data,error:null}}const O=(o=t?.jsonParser)!==null&&o!==void 0?o:HN,I=await E.text(),M=voe(I),z=M?await O(I):null,q={response:E,responseText:I,request:b,error:Pt(Pt({},z),{},{status:E.status,statusText:E.statusText})};for(const B of s.onError)if(B){var U;await B(Pt(Pt({},q),{},{response:!(t==null||(U=t.hookOptions)===null||U===void 0)&&U.cloneResponse?E.clone():E}))}if(t?.retry){var L;const B=loe(t.retry),K=(L=t.retryAttempt)!==null&&L!==void 0?L:0;if(await B.shouldAttemptRetry(K,E)){for(const $ of s.onRetry)$&&await $(k);const le=B.getDelay(K);return await new Promise($=>setTimeout($,le)),await w3(e,Pt(Pt({},t),{},{retryAttempt:K+1}))}}if(t?.throw)throw new soe(E.status,E.statusText,M?z:I);return{data:null,error:Pt(Pt({},z),{},{status:E.status,statusText:E.statusText})}},Ioe=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r;let o=Pt(Pt({},n),e.query!==void 0&&{query:Pt(Pt({},e.query),n?.query)});const s=((r=e.plugins)===null||r===void 0||(r=r.find(d=>{var h;return!((h=d.schema)===null||h===void 0)&&h.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))===null||r===void 0?void 0:r.schema)||e.schema;if(s){var i,c;let d=t;!((i=s.config)===null||i===void 0)&&i.prefix&&d.startsWith(s.config.prefix)&&(d=d.replace(s.config.prefix,""),s.config.baseURL&&(t=t.replace(s.config.prefix,s.config.baseURL))),!((c=s.config)===null||c===void 0)&&c.baseURL&&d.startsWith(s.config.baseURL)&&(d=d.replace(s.config.baseURL,"")),d.startsWith("/")&&d.charAt(1)==="@"&&(d=d.substring(1));const h=s.schema[d];if(h){var u;const{method:m,path:g}=rT(d);m&&(t=t.slice(0,t.length-d.length)+g);let v=n?.headers;if(h.headers&&!n?.disableValidation){const b={};if(n?.headers){if(n.headers instanceof Headers)n.headers.forEach((k,A)=>{b[A.toLowerCase()]=k});else if(typeof n.headers=="object")for(const[k,A]of Object.entries(n.headers))A!=null&&(b[k.toLowerCase()]=A)}const C=await Jh(h.headers,b),E={};for(const[k,A]of Object.entries(C))E[k.toLowerCase()]=A;v=E}const S=(u=h.method)!==null&&u!==void 0?u:m;if(o=Pt(Pt(Pt(Pt({},o),S!==void 0&&{method:S}),h.output!==void 0&&{output:h.output}),v!==void 0&&{headers:v}),!n?.disableValidation){if(h.query&&(o.query=await Jh(h.query,n?.query),o.query!==null&&typeof o.query=="object")){const b=Pt({},e.query);for(const C of Object.keys(b))n?.query&&Object.prototype.hasOwnProperty.call(n.query,C)&&(b[C]=n.query[C]);o.query=Pt(Pt({},b),o.query)}o=Pt(Pt({},o),{},{body:h.input?await Jh(h.input,n?.body):n?.body,params:h.params?await Jh(h.params,n?.params):n?.params})}return{url:t,options:o}}}return Pt({url:t},(n!==void 0||e.query!==void 0)&&{options:o})}}),Roe=e=>{async function t(n,r){const o=Pt(Pt(Pt({},e),r),{},{headers:kF(e?.headers,r?.headers),plugins:[...e?.plugins||[],Ioe(e||{}),...r?.plugins||[]]});if(e?.catchAllError)try{return await w3(n,o)}catch(s){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:s}}}return await w3(n,o)}return t};var ic={};const Ooe=e=>{if(typeof process>"u")return;const t="/api/auth";if(ic.NEXT_PUBLIC_AUTH_URL)return ic.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(ic.NEXTAUTH_URL)try{return ic.NEXTAUTH_URL}catch{}if(ic.VERCEL_URL)try{const n=ic.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${n}${ic.VERCEL_URL}`).origin}${t}`}catch{}}},Noe=e=>e==="/sign-out"||e==="/update-user"||e==="/update-session"||e==="/sign-up/email"||e==="/sign-in/email"||e==="/delete-user"||e==="/verify-email"||e==="/revoke-sessions"||e==="/revoke-session"||e==="/revoke-other-sessions"||e==="/change-email"||e==="/change-password",Moe=(e,t)=>{const n="credentials"in Request.prototype,r=Ere(e?.baseURL,e?.basePath)??Ooe()??"/api/auth",o=[],s={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:u,onResponse:d,...h}={},m=Roe({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(I){return I?Ore(I,{strict:!1}):null},customFetchImpl:fetch,...h,plugins:[s,...h.plugins||[],Pre,...o]}),{$sessionSignal:g,session:v,broadcastSessionUpdate:S}=noe(m,e);let b=!1;const C=I=>{b||I===null||(b=!0,Jre(v,I))},E=[];let k={};const A={$sessionSignal:g,session:v},R={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},N=[{signal:"$sessionSignal",matcher:Noe,callback(I){I==="/sign-out"?S("signout"):(I==="/update-user"||I==="/update-session")&&S("updateUser")}}];for(const I of E)I.getAtoms&&Object.assign(A,I.getAtoms?.(m)),I.pathMethods&&Object.assign(R,I.pathMethods),I.atomListeners&&N.push(...I.atomListeners);const O={notify:I=>{A[I].set(!A[I].get())},listen:(I,M)=>{A[I].subscribe(M)},atoms:A};for(const I of E)I.getActions&&(k=ooe(I.getActions?.(m,O,e)??{},k));return{get baseURL(){return r},pluginsActions:k,pluginsAtoms:A,pluginPathMethods:R,atomListeners:N,hydrateSession:C,$sessionSignal:g,$fetch:m,$store:O}};function Poe(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function Doe(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Loe=new RegExp("[\\p{Ll}\\d]+|\\p{Lu}+(?!\\p{Ll})|\\p{Lu}[\\p{Ll}\\d]+|\\p{Lo}+","gu"),zoe=/['\u2019]/g;function Uoe(e){return e.replace(zoe,"").match(Loe)??[]}function joe(e){return Uoe(e).map(t=>t.toLowerCase()).join("-")}function Foe(e,t,n){const r=t[e],{fetchOptions:o,query:s,...i}=n||{};return r||(o?.method?o.method:i&&Object.keys(i).length>0?"POST":"GET")}function $oe(e,t,n,r,o){function s(i=[]){return new Proxy(function(){},{get(c,u){if(typeof u!="string"||u==="then"||u==="catch"||u==="finally")return;const d=[...i,u];let h=e;for(const m of d)if(h&&typeof h=="object"&&m in h)h=h[m];else{h=void 0;break}return typeof h=="function"||Poe(h)?h:s(d)},apply:async(c,u,d)=>{const h="/"+i.map(joe).join("/"),m=d[0]||{},g=d[1]||{},{query:v,fetchOptions:S,...b}=m,C={...g,...S},E=Foe(h,n,m);return await t(h,{...C,body:E==="GET"?void 0:{...b,...C?.body||{}},query:v||C?.query,method:E,async onSuccess(k){if(await C?.onSuccess?.(k),!o||C.disableSignal)return;const A=o.filter(N=>N.matcher(h));if(!A.length)return;const R=new Set;for(const N of A){const O=r[N.signal];if(!O)return;if(R.has(N.signal))continue;R.add(N.signal);const I=O.get();setTimeout(()=>{O.set(!I)},10),N.callback?.(h)}}})}})}return s()}var ix={exports:{}},et={};var VN;function Boe(){if(VN)return et;VN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),g=Symbol.iterator;function v(j){return j===null||typeof j!="object"?null:(j=g&&j[g]||j["@@iterator"],typeof j=="function"?j:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,C={};function E(j,Y,X){this.props=j,this.context=Y,this.refs=C,this.updater=X||S}E.prototype.isReactComponent={},E.prototype.setState=function(j,Y){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,Y,"setState")},E.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function k(){}k.prototype=E.prototype;function A(j,Y,X){this.props=j,this.context=Y,this.refs=C,this.updater=X||S}var R=A.prototype=new k;R.constructor=A,b(R,E.prototype),R.isPureReactComponent=!0;var N=Array.isArray;function O(){}var I={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function z(j,Y,X){var J=X.ref;return{$$typeof:e,type:j,key:Y,ref:J!==void 0?J:null,props:X}}function q(j,Y){return z(j.type,Y,j.props)}function U(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function L(j){var Y={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(X){return Y[X]})}var B=/\/+/g;function K(j,Y){return typeof j=="object"&&j!==null&&j.key!=null?L(""+j.key):Y.toString(36)}function le(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(O,O):(j.status="pending",j.then(function(Y){j.status==="pending"&&(j.status="fulfilled",j.value=Y)},function(Y){j.status==="pending"&&(j.status="rejected",j.reason=Y)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function $(j,Y,X,J,ie){var ue=typeof j;(ue==="undefined"||ue==="boolean")&&(j=null);var ge=!1;if(j===null)ge=!0;else switch(ue){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(j.$$typeof){case e:case t:ge=!0;break;case h:return ge=j._init,$(ge(j._payload),Y,X,J,ie)}}if(ge)return ie=ie(j),ge=J===""?"."+K(j,0):J,N(ie)?(X="",ge!=null&&(X=ge.replace(B,"$&/")+"/"),$(ie,Y,X,"",function(Pe){return Pe})):ie!=null&&(U(ie)&&(ie=q(ie,X+(ie.key==null||j&&j.key===ie.key?"":(""+ie.key).replace(B,"$&/")+"/")+ge)),Y.push(ie)),1;ge=0;var ee=J===""?".":J+":";if(N(j))for(var Se=0;Se<j.length;Se++)J=j[Se],ue=ee+K(J,Se),ge+=$(J,Y,X,ue,ie);else if(Se=v(j),typeof Se=="function")for(j=Se.call(j),Se=0;!(J=j.next()).done;)J=J.value,ue=ee+K(J,Se++),ge+=$(J,Y,X,ue,ie);else if(ue==="object"){if(typeof j.then=="function")return $(le(j),Y,X,J,ie);throw Y=String(j),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ge}function Q(j,Y,X){if(j==null)return j;var J=[],ie=0;return $(j,J,"","",function(ue){return Y.call(X,ue,ie++)}),J}function se(j){if(j._status===-1){var Y=j._result;Y=Y(),Y.then(function(X){(j._status===0||j._status===-1)&&(j._status=1,j._result=X)},function(X){(j._status===0||j._status===-1)&&(j._status=2,j._result=X)}),j._status===-1&&(j._status=0,j._result=Y)}if(j._status===1)return j._result.default;throw j._result}var de=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},_e={map:Q,forEach:function(j,Y,X){Q(j,function(){Y.apply(this,arguments)},X)},count:function(j){var Y=0;return Q(j,function(){Y++}),Y},toArray:function(j){return Q(j,function(Y){return Y})||[]},only:function(j){if(!U(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return et.Activity=m,et.Children=_e,et.Component=E,et.Fragment=n,et.Profiler=o,et.PureComponent=A,et.StrictMode=r,et.Suspense=u,et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,et.__COMPILER_RUNTIME={__proto__:null,c:function(j){return I.H.useMemoCache(j)}},et.cache=function(j){return function(){return j.apply(null,arguments)}},et.cacheSignal=function(){return null},et.cloneElement=function(j,Y,X){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var J=b({},j.props),ie=j.key;if(Y!=null)for(ue in Y.key!==void 0&&(ie=""+Y.key),Y)!M.call(Y,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Y.ref===void 0||(J[ue]=Y[ue]);var ue=arguments.length-2;if(ue===1)J.children=X;else if(1<ue){for(var ge=Array(ue),ee=0;ee<ue;ee++)ge[ee]=arguments[ee+2];J.children=ge}return z(j.type,ie,J)},et.createContext=function(j){return j={$$typeof:i,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:s,_context:j},j},et.createElement=function(j,Y,X){var J,ie={},ue=null;if(Y!=null)for(J in Y.key!==void 0&&(ue=""+Y.key),Y)M.call(Y,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ie[J]=Y[J]);var ge=arguments.length-2;if(ge===1)ie.children=X;else if(1<ge){for(var ee=Array(ge),Se=0;Se<ge;Se++)ee[Se]=arguments[Se+2];ie.children=ee}if(j&&j.defaultProps)for(J in ge=j.defaultProps,ge)ie[J]===void 0&&(ie[J]=ge[J]);return z(j,ue,ie)},et.createRef=function(){return{current:null}},et.forwardRef=function(j){return{$$typeof:c,render:j}},et.isValidElement=U,et.lazy=function(j){return{$$typeof:h,_payload:{_status:-1,_result:j},_init:se}},et.memo=function(j,Y){return{$$typeof:d,type:j,compare:Y===void 0?null:Y}},et.startTransition=function(j){var Y=I.T,X={};I.T=X;try{var J=j(),ie=I.S;ie!==null&&ie(X,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(O,de)}catch(ue){de(ue)}finally{Y!==null&&X.types!==null&&(Y.types=X.types),I.T=Y}},et.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},et.use=function(j){return I.H.use(j)},et.useActionState=function(j,Y,X){return I.H.useActionState(j,Y,X)},et.useCallback=function(j,Y){return I.H.useCallback(j,Y)},et.useContext=function(j){return I.H.useContext(j)},et.useDebugValue=function(){},et.useDeferredValue=function(j,Y){return I.H.useDeferredValue(j,Y)},et.useEffect=function(j,Y){return I.H.useEffect(j,Y)},et.useEffectEvent=function(j){return I.H.useEffectEvent(j)},et.useId=function(){return I.H.useId()},et.useImperativeHandle=function(j,Y,X){return I.H.useImperativeHandle(j,Y,X)},et.useInsertionEffect=function(j,Y){return I.H.useInsertionEffect(j,Y)},et.useLayoutEffect=function(j,Y){return I.H.useLayoutEffect(j,Y)},et.useMemo=function(j,Y){return I.H.useMemo(j,Y)},et.useOptimistic=function(j,Y){return I.H.useOptimistic(j,Y)},et.useReducer=function(j,Y,X){return I.H.useReducer(j,Y,X)},et.useRef=function(j){return I.H.useRef(j)},et.useState=function(j){return I.H.useState(j)},et.useSyncExternalStore=function(j,Y,X){return I.H.useSyncExternalStore(j,Y,X)},et.useTransition=function(){return I.H.useTransition()},et.version="19.2.7",et}var GN;function ym(){return GN||(GN=1,ix.exports=Boe()),ix.exports}var _=ym();const F=uf(_),TF=hj({__proto__:null,default:F},[_]);function Hoe(e,t={}){const n=_.useRef(e.get()),{keys:r,deps:o=[e,r]}=t,s=_.useCallback(c=>{const u=d=>{n.current!==d&&(n.current=d,c())};return u(e.value),r?.length?$re(e,r,u):e.listen(u)},o),i=()=>n.current;return _.useSyncExternalStore(s,i,Hre(e)?()=>e.init:i)}function qoe(e){return`use${Doe(e)}`}function Woe(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,hydrateSession:o,$fetch:s,$store:i,atomListeners:c}=Moe(e),u={};for(const[d,h]of Object.entries(r))u[qoe(d)]=()=>Hoe(h);return $oe({...n,...u,hydrateSession:o,$fetch:s,$store:i},s,t,r,c)}const Voe=10,Od=[],Goe=["x-correlation-id","x-request-id","x-amzn-requestid","x-amzn-trace-id","apigw-requestid","x-trace-id"];function Koe(e){const t=typeof e=="string"?e:e instanceof URL?e.href:e.url;try{return new URL(t,window.location.origin).pathname}catch{return t.split(/[?#]/)[0]}}function Yoe(e,t){return t?.method?t.method.toUpperCase():typeof e!="string"&&!(e instanceof URL)&&e.method?e.method.toUpperCase():"GET"}function Zoe(e){for(const t of Goe){const n=e.headers.get(t);if(n)return n}}function Xoe(e){Od.push(e),Od.length>Voe&&Od.shift()}function KN(e){const{input:t,init:n,response:r,durationMs:o}=e;Xoe({method:Yoe(t,n),path:Koe(t),status:r?.status??0,durationMs:Math.round(o),correlationId:r?Zoe(r):void 0,timestamp:new Date().toISOString()})}function Qoe(){return Od.slice()}function Joe(){for(let e=Od.length-1;e>=0;e--){const t=Od[e];if(t.status===0||t.status>=400)return t}}class oT extends Error{constructor(t){super(t instanceof Error&&t.message?t.message:"The request could not be completed.",{cause:t}),this.name="NetworkError"}}const ese=e=>typeof e=="object"&&e!==null&&"name"in e&&e.name==="AbortError",IF=async(e,t)=>{const n=performance.now();try{const r=await fetch(e,{...t,redirect:"manual"}),o=r.type==="opaqueredirect"?new Response(null,{status:401}):r;return KN({input:e,init:t,response:o,durationMs:performance.now()-n}),o}catch(r){throw ese(r)?r:(KN({input:e,init:t,durationMs:performance.now()-n}),new oT(r))}},sT=()=>{try{return globalThis.sessionStorage??null}catch{return null}},Sy=()=>bf().betterAuthEnabled,tse="EMAIL_PASSWORD_SIGN_UP_DISABLED",nse=e=>typeof e=="object"&&e!==null&&e.code===tse,Lc=Woe(),rse=60,ose=30,x3="remit.better-auth.token",sse=()=>{const e=sT()?.getItem(x3);if(!e)return null;try{const t=JSON.parse(e);if(t&&typeof t=="object"&&typeof t.value=="string"&&typeof t.expiresAt=="number")return{value:t.value,expiresAt:t.expiresAt}}catch{}return null},RF=e=>{const t=sT();if(t)try{if(!e){t.removeItem(x3);return}t.setItem(x3,JSON.stringify(e))}catch{}};let mc=null,Z1=0;const ase=()=>mc||(mc=sse(),mc),xc=()=>Math.floor(Date.now()/1e3),ise=e=>{const[,t]=e.split(".");if(!t)return xc();try{const n=JSON.parse(atob(t.replace(/-/g,"+").replace(/_/g,"/")));return typeof n.exp=="number"?n.exp:xc()}catch{return xc()}};class X1 extends Error{status;constructor(t,n){super(t),this.name="AuthTokenError",this.status=n}}const lse=async()=>{const e=await IF("/api/auth/token",{credentials:"include"});if(!e.ok)throw new X1(`Could not mint a session token: ${e.status} ${e.statusText}`,e.status);const t=await e.json();if(t&&typeof t=="object"&&"token"in t&&typeof t.token=="string")return t.token;throw new X1("The token endpoint returned no token")};let kh=null;const cse=()=>kh||(kh=lse().then(e=>(mc={value:e,expiresAt:ise(e)},RF(mc),Z1=0,e)).finally(()=>{kh=null}),kh),use=e=>e.expiresAt-rse>xc(),YN=e=>e.expiresAt>xc(),dse=e=>e instanceof oT?!0:e instanceof X1?e.status===408||e.status===429||(e.status??0)>=500:!1,fse=e=>e instanceof X1&&(e.status===401||e.status===403),hse=async()=>{const e=ase();if(e&&use(e)||e&&YN(e)&&xc()<Z1)return e.value;try{return await cse()}catch(t){if(fse(t))throw aT(),t.status===403&&Lc.$store.notify("$sessionSignal"),t;if(e&&YN(e)&&dse(t))return Z1=xc()+ose,e.value;throw t}},aT=()=>{Z1=0,RF(null),mc=null};function OF(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=OF(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pse(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=OF(e))&&(r&&(r+=" "),r+=t);return r}var lx={exports:{}},Or={};var ZN;function mse(){if(ZN)return Or;ZN=1;var e=ym();function t(u){var d="https://react.dev/errors/"+u;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)d+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+u+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(u,d,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:u,containerInfo:d,implementation:h}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Or.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Or.createPortal=function(u,d){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(u,d,null,h)},Or.flushSync=function(u){var d=i.T,h=r.p;try{if(i.T=null,r.p=2,u)return u()}finally{i.T=d,r.p=h,r.d.f()}},Or.preconnect=function(u,d){typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(u,d))},Or.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Or.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var h=d.as,m=c(h,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;h==="style"?r.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:v}):h==="script"&&r.d.X(u,{crossOrigin:m,integrity:g,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Or.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var h=c(d.as,d.crossOrigin);r.d.M(u,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(u)},Or.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var h=d.as,m=c(h,d.crossOrigin);r.d.L(u,h,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Or.preloadModule=function(u,d){if(typeof u=="string")if(d){var h=c(d.as,d.crossOrigin);r.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(u)},Or.requestFormReset=function(u){r.d.r(u)},Or.unstable_batchedUpdates=function(u,d){return u(d)},Or.useFormState=function(u,d,h){return i.H.useFormState(u,d,h)},Or.useFormStatus=function(){return i.H.useHostTransitionStatus()},Or.version="19.2.7",Or}var XN;function NF(){if(XN)return lx.exports;XN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),lx.exports=mse(),lx.exports}var gse=NF(),cx={exports:{}},ux={};var QN;function vse(){if(QN)return ux;QN=1;var e=ym();function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function c(m,g){var v=g(),S=r({inst:{value:v,getSnapshot:g}}),b=S[0].inst,C=S[1];return s(function(){b.value=v,b.getSnapshot=g,u(b)&&C({inst:b})},[m,v,g]),o(function(){return u(b)&&C({inst:b}),m(function(){u(b)&&C({inst:b})})},[m]),i(v),v}function u(m){var g=m.getSnapshot;m=m.value;try{var v=g();return!n(m,v)}catch{return!0}}function d(m,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return ux.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,ux}var JN;function yse(){return JN||(JN=1,cx.exports=vse()),cx.exports}const iT=[{category:"personal",label:"Personal",tone:"accent",section:1},{category:"uncategorized",label:"Unclassified",tone:"neutral",section:7},{category:"transactional",label:"Transactional",tone:"positive",section:2},{category:"newsletter",label:"Newsletter",tone:"neutral",section:3},{category:"marketing",label:"Marketing",tone:"neutral",section:4},{category:"social",label:"Social",tone:"warning",section:5},{category:"automated",label:"Automated",tone:"neutral",section:6}],p$e=[...iT].sort((e,t)=>e.section-t.section).map(e=>e.category),MF=e=>Object.fromEntries(iT.map(t=>[t.category,e(t)])),bse=MF(e=>e.label),Sse=MF(e=>e.tone),m$e=e=>!e||e==="personal"?null:bse[e];function wse(e){return Object.hasOwn(Sse,e)}function g$e(e){return e==="all"||wse(e)}const v$e=[{id:"all",label:"All",tone:"neutral"},...iT.map(e=>({id:e.category,label:e.label,tone:e.tone}))];const xse=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),PF=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();var Cse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ese=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...c},u)=>_.createElement("svg",{ref:u,...Cse,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:PF("lucide",o),...c},[...i.map(([d,h])=>_.createElement(d,h)),...Array.isArray(s)?s:[s]]));const ut=(e,t)=>{const n=_.forwardRef(({className:r,...o},s)=>_.createElement(Ese,{ref:s,iconNode:t,className:PF(`lucide-${xse(e)}`,r),...o}));return n.displayName=`${e}`,n};const _se=ut("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);const DF=ut("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const kse=ut("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const Ase=ut("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);const wy=ut("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Tse=ut("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Ise=ut("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const LF=ut("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const zF=ut("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const Rse=ut("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const Ose=ut("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Nse=ut("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const Mse=ut("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);const Pse=ut("FolderInput",[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]]);const Dse=ut("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const Lse=ut("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);const zse=ut("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const Use=ut("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const UF=ut("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);const jF=ut("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);const Op=ut("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const eM=ut("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);const jse=ut("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);const Fse=ut("Mails",[["rect",{width:"16",height:"13",x:"6",y:"4",rx:"2",key:"1drq3f"}],["path",{d:"m22 7-7.1 3.78c-.57.3-1.23.3-1.8 0L6 7",key:"xn252p"}],["path",{d:"M2 8v11c0 1.1.9 2 2 2h14",key:"n13cji"}]]);const lT=ut("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const $se=ut("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);const Bse=ut("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Hse=ut("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);const qse=ut("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const Wse=ut("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const Vse=ut("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);const Gse=ut("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const Kse=ut("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const Sl=ut("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const Yse=ut("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]);const Zse=ut("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);const Xse=ut("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);const ti=ut("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),cT="-",Qse=e=>{const t=eae(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const c=i.split(cT);return c[0]===""&&c.length!==1&&c.shift(),FF(c,t)||Jse(i)},getConflictingClassGroupIds:(i,c)=>{const u=n[i]||[];return c&&r[i]?[...u,...r[i]]:u}}},FF=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?FF(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(cT);return t.validators.find(({validator:i})=>i(s))?.classGroupId},tM=/^\[(.+)\]$/,Jse=e=>{if(tM.test(e)){const t=tM.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},eae=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return nae(Object.entries(e.classGroups),n).forEach(([s,i])=>{C3(i,r,s,t)}),r},C3=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:nM(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(tae(o)){C3(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{C3(i,nM(t,s),n,r)})})},nM=(e,t)=>{let n=e;return t.split(cT).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},tae=e=>e.isThemeGetter,nae=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,c])=>[t+i,c])):s);return[n,o]}):e,rae=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},$F="!",oae=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=c=>{const u=[];let d=0,h=0,m;for(let C=0;C<c.length;C++){let E=c[C];if(d===0){if(E===o&&(r||c.slice(C,C+s)===t)){u.push(c.slice(h,C)),h=C+s;continue}if(E==="/"){m=C;continue}}E==="["?d++:E==="]"&&d--}const g=u.length===0?c:c.substring(h),v=g.startsWith($F),S=v?g.substring(1):g,b=m&&m>h?m-h:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:b}};return n?c=>n({className:c,parseClassName:i}):i},sae=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},aae=e=>({cache:rae(e.cacheSize),parseClassName:oae(e),...Qse(e)}),iae=/\s+/,lae=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(iae);let c="";for(let u=i.length-1;u>=0;u-=1){const d=i[u],{modifiers:h,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:v}=n(d);let S=!!v,b=r(S?g.substring(0,v):g);if(!b){if(!S){c=d+(c.length>0?" "+c:c);continue}if(b=r(g),!b){c=d+(c.length>0?" "+c:c);continue}S=!1}const C=sae(h).join(":"),E=m?C+$F:C,k=E+b;if(s.includes(k))continue;s.push(k);const A=o(b,S);for(let R=0;R<A.length;++R){const N=A[R];s.push(E+N)}c=d+(c.length>0?" "+c:c)}return c};function cae(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=BF(t))&&(r&&(r+=" "),r+=n);return r}const BF=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=BF(e[r]))&&(n&&(n+=" "),n+=t);return n};function uae(e,...t){let n,r,o,s=i;function i(u){const d=t.reduce((h,m)=>m(h),e());return n=aae(d),r=n.cache.get,o=n.cache.set,s=c,c(u)}function c(u){const d=r(u);if(d)return d;const h=lae(u,n);return o(u,h),h}return function(){return s(cae.apply(null,arguments))}}const sn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},HF=/^\[(?:([a-z-]+):)?(.+)\]$/i,dae=/^\d+\/\d+$/,fae=new Set(["px","full","screen"]),hae=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pae=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mae=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vae=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Da=e=>Nd(e)||fae.has(e)||dae.test(e),Ki=e=>Sf(e,"length",_ae),Nd=e=>!!e&&!Number.isNaN(Number(e)),dx=e=>Sf(e,"number",Nd),Ah=e=>!!e&&Number.isInteger(Number(e)),yae=e=>e.endsWith("%")&&Nd(e.slice(0,-1)),it=e=>HF.test(e),Yi=e=>hae.test(e),bae=new Set(["length","size","percentage"]),Sae=e=>Sf(e,bae,qF),wae=e=>Sf(e,"position",qF),xae=new Set(["image","url"]),Cae=e=>Sf(e,xae,Aae),Eae=e=>Sf(e,"",kae),Th=()=>!0,Sf=(e,t,n)=>{const r=HF.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},_ae=e=>pae.test(e)&&!mae.test(e),qF=()=>!1,kae=e=>gae.test(e),Aae=e=>vae.test(e),Tae=()=>{const e=sn("colors"),t=sn("spacing"),n=sn("blur"),r=sn("brightness"),o=sn("borderColor"),s=sn("borderRadius"),i=sn("borderSpacing"),c=sn("borderWidth"),u=sn("contrast"),d=sn("grayscale"),h=sn("hueRotate"),m=sn("invert"),g=sn("gap"),v=sn("gradientColorStops"),S=sn("gradientColorStopPositions"),b=sn("inset"),C=sn("margin"),E=sn("opacity"),k=sn("padding"),A=sn("saturate"),R=sn("scale"),N=sn("sepia"),O=sn("skew"),I=sn("space"),M=sn("translate"),z=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",it,t],L=()=>[it,t],B=()=>["",Da,Ki],K=()=>["auto",Nd,it],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",it],_e=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[Nd,it];return{cacheSize:500,separator:":",theme:{colors:[Th],spacing:[Da,Ki],blur:["none","",Yi,it],brightness:j(),borderColor:[e],borderRadius:["none","","full",Yi,it],borderSpacing:L(),borderWidth:B(),contrast:j(),grayscale:de(),hueRotate:j(),invert:de(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[yae,Ki],inset:U(),margin:U(),opacity:j(),padding:L(),saturate:j(),scale:j(),sepia:de(),skew:j(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",it]}],container:["container"],columns:[{columns:[Yi]}],"break-after":[{"break-after":_e()}],"break-before":[{"break-before":_e()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...le(),it]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ah,it]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",it]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",Ah,it]}],"grid-cols":[{"grid-cols":[Th]}],"col-start-end":[{col:["auto",{span:["full",Ah,it]},it]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[Th]}],"row-start-end":[{row:["auto",{span:[Ah,it]},it]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",it]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",it]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",it,t]}],"min-w":[{"min-w":[it,t,"min","max","fit"]}],"max-w":[{"max-w":[it,t,"none","full","min","max","fit","prose",{screen:[Yi]},Yi]}],h:[{h:[it,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[it,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[it,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[it,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Yi,Ki]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",dx]}],"font-family":[{font:[Th]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",it]}],"line-clamp":[{"line-clamp":["none",Nd,dx]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Da,it]}],"list-image":[{"list-image":["none",it]}],"list-style-type":[{list:["none","disc","decimal",it]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Da,Ki]}],"underline-offset":[{"underline-offset":["auto",Da,it]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",it]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",it]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),wae]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Sae]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cae]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Da,it]}],"outline-w":[{outline:[Da,Ki]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[Da,Ki]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Yi,Eae]}],"shadow-color":[{shadow:[Th]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Yi,it]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[A]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",it]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",it]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",it]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[Ah,it]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",it]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",it]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",it]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Da,Ki,dx]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Iae=uae(Tae);function ke(...e){return Iae(pse(e))}const Ih={action:null,nextPrefix:null,preventDefault:!1},Rae={b:"goBrief",i:"goInbox",s:"goSent",f:"goFlagged",",":"goSettings"},Oae={j:{action:"focusNext"},k:{action:"focusPrevious"},arrowdown:{action:"focusNext"},arrowup:{action:"focusPrevious"},home:{action:"focusFirst"},end:{action:"focusLast"},enter:{action:"openFocused"}," ":{action:"toggleSelect"},delete:{action:"delete"},backspace:{action:"delete"},u:{action:"toggleRead"},x:{action:"toggleSelect"},r:{action:"reply"},a:{action:"replyAll"},f:{action:"forward"},"#":{action:"delete"},s:{action:"toggleStar"},m:{action:"muteSender"},b:{action:"blockSender"},v:{action:"vipSender"},"!":{action:"markJunk"},i:{action:"toggleIntelligence"},d:{action:"toggleDensity"},"/":{action:"focusSearch"},c:{action:"compose"},"?":{action:"help"}};function Nae(e,t){const n=e.key.toLowerCase(),r=e.metaKey||e.ctrlKey;if(e.inEditable)return{...Ih,nextPrefix:t==="g"?null:t};if(e.onControl&&(n==="enter"||n===" "))return{...Ih,nextPrefix:t==="g"?null:t};if(r&&n==="n")return{action:"compose",nextPrefix:null,preventDefault:!0};if(r&&n==="a")return{action:"selectAll",nextPrefix:null,preventDefault:!0};if(r)return{...Ih,nextPrefix:t==="g"?null:t};if(n==="escape")return{action:"back",nextPrefix:null,preventDefault:!1};if(t==="g"){const i=Rae[n===","?",":n]??null;return{action:i,nextPrefix:null,preventDefault:i!==null}}if(n==="g"&&!e.shiftKey)return{action:null,nextPrefix:"g",preventDefault:!0};if(e.shiftKey){const s=n==="j"||n==="arrowdown";if(s||(n==="k"||n==="arrowup"))return{action:s?"extendSelectDown":"extendSelectUp",nextPrefix:null,preventDefault:!0}}const o=Oae[n];if(o){const s=o.requireShift===!0,i=n.length===1&&!/[a-z0-9]/.test(n);return!s&&e.shiftKey&&!i?Ih:{action:o.action,nextPrefix:null,preventDefault:!0}}return Ih}function Mae(e){if(!(e instanceof HTMLElement))return!1;const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"||e.isContentEditable}const Pae="data-message-row",Dae='button, a[href], summary, [role="button"], [role="menuitem"], [role="tab"], [role="switch"], [role="checkbox"]';function Lae(e){if(!(e instanceof HTMLElement))return!1;const t=e.closest(Dae);return t?!t.hasAttribute(Pae):!1}const zae=["reply","replyAll","forward","delete","toggleStar","toggleRead","muteSender","blockSender","vipSender","markJunk"],Uae=["focusNext","focusPrevious","focusFirst","focusLast","openFocused","toggleSelect","extendSelectDown","extendSelectUp","selectAll","toggleDensity"],cr=(e,...t)=>({action:e,requires:t});cr("help"),cr("goBrief",{listIsNot:"brief"}),cr("goFlagged",{listIsNot:"flagged"}),cr("goInbox",{listIsNot:"inbox"}),cr("goSent",{listIsNot:"sent"}),cr("goSettings"),cr("compose"),cr("focusSearch"),cr("toggleIntelligence"),[...Uae.map(e=>cr(e,"listVisible")),...zae.map(e=>cr(e,"aimed")),cr("back","selection")],cr("focusNext","threadOpen",{not:"listVisible"}),cr("focusPrevious","threadOpen",{not:"listVisible"}),cr("reply","threadOpen"),cr("replyAll","threadOpen"),cr("forward","threadOpen"),cr("back");function jae(e,t){const n=t.at(-1);return n?n.handles.includes(e)?{outcome:"act",target:{kind:"overlay",frame:n}}:{outcome:"contained",by:{kind:"overlay",frame:n}}:null}const Fae="[data-escape-owner]";let Hd=[],$ae=0;const Bae=()=>++$ae;function WF(){const[e]=_.useState(Bae);return e}const Hae=(e,t)=>e.depth-t.depth;function qae(){return[...Hd].sort(Hae).map(e=>({id:e.id,handles:Object.entries(e.run()).filter(([,t])=>t).map(([t])=>t)}))}function Wae(){let e;for(const t of Hd)(!e||t.depth>e.depth)&&(e=t);return e}function y$e(e){return jae(e,qae())}function Vae(e){if(e.key==="Escape"){const t=document.activeElement;return t instanceof Element&&t.closest(Fae)?null:"back"}return Nae({key:e.key,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,inEditable:Mae(e.target),onControl:Lae(e.target)},null).action}function rM(e){const t=Wae();if(!t)return;const n=Vae(e);if(!n)return;const r=t.run()[n];r&&(e.preventDefault(),e.stopImmediatePropagation(),r())}function oM(e){const t=Hd.length===0;if(Hd=e,t!==(e.length===0)){if(e.length>0){window.addEventListener("keydown",rM,!0);return}window.removeEventListener("keydown",rM,!0)}}function xy({id:e,open:t,answers:n={}}){const r=_.useRef(n);r.current=n;const o=WF();_.useEffect(()=>{if(!t)return;const s={id:e,depth:o,run:()=>r.current};return oM([...Hd,s]),()=>{oM(Hd.filter(i=>i!==s))}},[e,t,o])}const VF="inline-flex items-center justify-center gap-2 rounded-md font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface disabled:opacity-50 disabled:pointer-events-none",GF={primary:"bg-accent text-accent-fg hover:bg-accent-hover",secondary:"bg-surface text-fg border border-line hover:bg-surface-sunken hover:border-line-strong",ghost:"text-fg-muted hover:bg-surface-sunken hover:text-fg",danger:"bg-danger text-accent-fg hover:opacity-90"},KF={sm:"h-7 px-2.5 text-xs",md:"h-9 px-3.5 text-sm",touch:"h-11 w-11 text-sm"};function Bt({variant:e="primary",size:t="md",icon:n,className:r,children:o,ref:s,...i}){return x.jsxs("button",{type:"button",ref:s,className:ke(VF,GF[e],KF[t],r),...i,children:[n,o]})}function b$e({variant:e="primary",size:t="md",icon:n,external:r,className:o,children:s,...i}){return x.jsxs("a",{className:ke(VF,GF[e],KF[t],o),...r?{target:"_blank",rel:"noopener noreferrer"}:{},...i,children:[n,s]})}const Gae='a[href], button, input, select, textarea, iframe, [tabindex], [contenteditable]:not([contenteditable="false"])';function Kae(e){if(Number(e.getAttribute("tabindex")??0)<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"||e.closest("[inert], [hidden], [aria-hidden='true']"))return!1;const t=getComputedStyle(e);return t.display!=="none"&&t.visibility!=="hidden"}function sM(e){const t=e.querySelectorAll('[role="dialog"][aria-modal="true"]');return[...(t[t.length-1]??e).querySelectorAll(Gae)].filter(Kae)}const E3=new Set;function Yae(e){for(const t of E3)if(t>e)return!1;return!0}function Zae(e,t){return!(t instanceof HTMLElement)||t===document.body||t===document.documentElement?!1:!e.contains(t)}function bm(e,t){const n=WF();_.useEffect(()=>{if(t)return E3.add(n),()=>{E3.delete(n)}},[t,n]),_.useEffect(()=>{if(!t)return;const r=document.activeElement instanceof HTMLElement?document.activeElement:null,o=e.current;return o&&(sM(o)[0]??o).focus(),()=>{r?.isConnected&&r.focus()}},[t,e]),_.useEffect(()=>{if(!t)return;const r=o=>{if(o.key!=="Tab"||o.defaultPrevented||!Yae(n))return;const s=e.current;if(!s)return;const i=document.activeElement;if(Zae(s,i))return;const c=sM(s),u=c[0],d=c.at(-1);if(!u||!d){o.preventDefault(),s.focus();return}const h=i instanceof HTMLElement&&c.includes(i);if(o.shiftKey){(!h||i===u)&&(o.preventDefault(),d.focus());return}(!h||i===d)&&(o.preventDefault(),u.focus())};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t,e,n])}const Xae=({label:e,onDismiss:t,className:n})=>x.jsx("button",{type:"button","aria-label":e,tabIndex:-1,onClick:t,className:ke("absolute inset-0 bg-canvas/80",n)}),Qae={info:"bg-accent-2/15 text-accent-2 border-accent-2/40",success:"bg-positive/15 text-positive border-positive/40",warning:"bg-warning/15 text-warning border-warning/40",danger:"bg-danger/15 text-danger border-danger/40"},Jae={info:"bg-surface-sunken text-fg-muted",success:"bg-positive/10 text-positive",warning:"bg-warning/10 text-warning",danger:"bg-danger-soft text-danger"},eie={info:"status",success:"status",warning:"alert",danger:"alert"};function Jo({tone:e="info",variant:t="framed",onDismiss:n,role:r,className:o,children:s,...i}){const c=t==="soft";return x.jsxs("div",{role:r??eie[e],className:ke("flex gap-2 px-3 py-2 text-sm",c?ke("items-start rounded-md",Jae[e]):ke("items-center border",Qae[e]),o),...i,children:[x.jsx("div",{className:"flex-1 min-w-0",children:s}),n&&(c?x.jsx(Bt,{variant:"ghost",size:"sm",icon:x.jsx(ti,{className:"size-3.5"}),onClick:n,"aria-label":"Dismiss",className:"-mr-1 shrink-0"}):x.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"shrink-0 rounded-md p-1 hover:bg-fg/10 transition-colors",children:x.jsx(ti,{className:"size-4","aria-hidden":"true"})}))]})}const tie={neutral:"bg-surface-sunken text-fg-muted",accent:"bg-accent-2-soft text-accent-2",positive:"bg-surface-sunken text-positive",warning:"bg-surface-sunken text-warning",danger:"bg-danger-soft text-danger"},nie={neutral:"bg-fg-subtle",accent:"bg-accent-2",positive:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function _3({tone:e="neutral",dot:t,className:n,children:r,...o}){return x.jsxs("span",{className:ke("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-2xs font-medium",tie[e],n),...o,children:[t&&x.jsx("span",{className:ke("size-1.5 rounded-full",nie[e])}),r]})}const b1=480,cd=1320,uT=90;function k3(e){return Number(e.slice(11,13))*60+Number(e.slice(14,16))}function S$e(e){const t=Math.max(0,Math.min(1440,Math.round(e)));return`${String(Math.floor(t/60)).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`}function w$e(e){const t=Math.round(e);if(t<60)return`${t}m`;const n=Math.floor(t/60),r=t%60;return r===0?`${n}h`:`${n}h ${r}m`}function ks(e,t){const n=new Date(`${e}T00:00:00Z`);return n.setUTCDate(n.getUTCDate()+t),n.toISOString().slice(0,10)}function x$e(e,t){return Math.round((Date.parse(`${t}T00:00:00Z`)-Date.parse(`${e}T00:00:00Z`))/864e5)}function C$e(e){const t=e.start.slice(0,10),n=e.end.slice(0,10);if(!e.allDay)return n;const r=ks(n,-1);return r<t?t:r}function E$e(e,t){const n=[];for(let r=e;r<=t;r=ks(r,1))n.push(r);return n}function _$e(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r).toLocaleDateString("en-GB",{month:"long",year:"numeric"})}function k$e(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r).toLocaleDateString("en-GB",{weekday:"short",day:"numeric",month:"short"})}function A$e(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r).toLocaleDateString("en-GB",{weekday:"long"})}function T$e(e,t){const[n,r,o]=e.split("-").map(Number),[s,i,c]=t.split("-").map(Number),u=new Date(n,r-1,o),d=new Date(s,i-1,c),h=u.toLocaleDateString("en-GB",{weekday:"short",day:"numeric",...r===i?{}:{month:"short"}}),m=d.toLocaleDateString("en-GB",{weekday:"short",day:"numeric",month:"short"});return`${h} – ${m}`}function rie(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r).toLocaleDateString("en-GB",{weekday:"short"})}function dl(e){return new Date(e).getTime()}function oie(e,t){return e.allDay?t>=e.start.slice(0,10)&&t<e.end.slice(0,10):e.start.slice(0,10)===t}function sie(e,t){return dl(e.start)<dl(t.end)&&dl(t.start)<dl(e.end)}function aie(e){const t=e.map(s=>[dl(s.start),dl(s.end)]).sort((s,i)=>s[0]-i[0]);let n=0,r=0,o=0;for(const[s,i]of t){if(s>o){n+=o-r,r=s,o=i;continue}o=Math.max(o,i)}return n+=o-r,Math.round(n/6e4)}function iie(e){const t=[];for(const n of e){const r=e.filter(s=>s.id===n.id||sie(n,s)).map(s=>s.id).sort();if(r.length<2)continue;const o=r.join("|");t.some(s=>s.join("|")===o)||t.push(r)}return t.filter(n=>!t.some(r=>r!==n&&n.every(o=>r.includes(o))))}function I$e(e,t,n){const r=t.filter(s=>oie(s,e)),o=r.filter(s=>!s.allDay).sort((s,i)=>dl(s.start)-dl(i.start));return{date:e,weekdayLabel:rie(e),dayNumber:Number(e.slice(8)),isToday:e===n,timed:o,allDay:r.filter(s=>s.allDay),busyMinutes:aie(o),conflicts:iie(o)}}function lie(e){return e.timed.length===0&&e.allDay.length===0}function cie(e){return YF(e.timed.map(t=>({from:k3(t.start),to:k3(t.end)})))}function YF(e){const t=[...e].sort((r,o)=>r.from-o.from),n=[];for(const r of t){const o=n[n.length-1];if(o&&r.from<=o.to){o.to=Math.max(o.to,r.to);continue}n.push({...r})}return n}function aM(e){return Math.min(Math.max(e,b1),cd)}function uie(e,t,n=uT){const r=YF(t);if(r.length===0)return[{date:e,startMinute:b1,endMinute:cd,minutes:cd-b1,wholeDay:!0}];const o=[];let s=b1;for(const i of r){const c=aM(i.from),u=aM(i.to);c-s>=n&&o.push({date:e,startMinute:s,endMinute:c,minutes:c-s,wholeDay:!1}),s=Math.max(s,c,u)}return cd-s>=n&&o.push({date:e,startMinute:s,endMinute:cd,minutes:cd-s,wholeDay:!1}),o}function die(e,t=uT){return uie(e.date,cie(e),t)}function R$e(e,t,{ignoreIds:n=[]}={}){const r=Date.parse(e.start),o=Date.parse(e.end);return t.filter(s=>s.allDay||s.myRsvp==="declined"||n.includes(s.id)?!1:Date.parse(s.start)<o&&r<Date.parse(s.end))}function O$e(e,t){const n=[];let r=[];const o=()=>{r.length!==0&&(r.length===1?n.push({kind:"day",key:r[0].date,day:r[0]}):n.push({kind:"run",key:`run_${r[0].date}`,from:r[0].date,to:r[r.length-1].date,days:r.length}),r=[])};for(const s of e){if(lie(s)&&!t.includes(s.date)){r.push(s);continue}o(),n.push({kind:"day",key:s.date,day:s})}return o(),n}function N$e(e){const t=[];for(const n of e){const r=t[t.length-1],o=r?Math.max(...r.map(s=>Date.parse(s.end))):0;if(r&&Date.parse(n.start)<o){r.push(n);continue}t.push([n])}return t}function M$e(e,t){const n=Date.parse(t),r=t.slice(0,10),o=e.flatMap(d=>d.timed).sort((d,h)=>Date.parse(d.start)-Date.parse(h.start)),s=o.filter(d=>Date.parse(d.start)<=n&&Date.parse(d.end)>n),i=o.filter(d=>Date.parse(d.start)>n),c=i[0],u=s.filter(d=>d.start.slice(0,10)===r).length+i.filter(d=>d.start.slice(0,10)===r).length;return{running:s,next:c,minutesUntilNext:c?Math.round((Date.parse(c.start)-n)/6e4):0,after:i[1],restOfDay:u,free:fie(e,t,1)[0]}}function fie(e,t,n){const r=t.slice(0,10),o=k3(t),s=[];for(const i of e)if(!(i.date<r))for(const c of die(i)){if(i.date>r)s.push(c);else{const u=Math.max(c.startMinute,o);if(c.endMinute-u<uT)continue;s.push({...c,startMinute:u,minutes:c.endMinute-u,wholeDay:c.wholeDay&&u===c.startMinute})}if(s.length===n)return s}return s}const hie={"cal-1":{solid:"bg-cal-1",soft:"bg-cal-1-soft",text:"text-cal-1",border:"border-cal-1",rail:"border-l-cal-1"},"cal-2":{solid:"bg-cal-2",soft:"bg-cal-2-soft",text:"text-cal-2",border:"border-cal-2",rail:"border-l-cal-2"},"cal-3":{solid:"bg-cal-3",soft:"bg-cal-3-soft",text:"text-cal-3",border:"border-cal-3",rail:"border-l-cal-3"},"cal-4":{solid:"bg-cal-4",soft:"bg-cal-4-soft",text:"text-cal-4",border:"border-cal-4",rail:"border-l-cal-4"},"cal-5":{solid:"bg-cal-5",soft:"bg-cal-5-soft",text:"text-cal-5",border:"border-cal-5",rail:"border-l-cal-5"},"cal-6":{solid:"bg-cal-6",soft:"bg-cal-6-soft",text:"text-cal-6",border:"border-cal-6",rail:"border-l-cal-6"}};function ZF(e){return hie[e]}function iM(e){const t=ZF(e.color),n=e.rsvp==="tentative"||e.status==="tentative";return ke("flex min-w-0 overflow-hidden rounded-sm border-l-2 px-1.5 py-0.5",t.soft,t.text,t.rail,e.layout==="column"||e.stacked?"flex-col":"items-center gap-1.5",n&&"border-y border-r border-dashed",n&&t.border,e.rsvp==="declined"&&"opacity-60",e.selected&&"ring-2 ring-ring",e.density==="compact"?"text-2xs":"text-xs")}function pie({title:e,timeText:t,layout:n,rsvp:r,hasThread:o,isRecurring:s,zoneCertainty:i,trailing:c,detail:u}){const d=n==="column",h=i==="ambiguous",m=!d&&u!==void 0,g=x.jsxs("span",{className:ke("flex min-w-0 items-center gap-1",d&&"w-full",r==="declined"&&"line-through"),children:[t!==""&&x.jsx("span",{className:"shrink-0 tabular-nums opacity-80",children:t}),x.jsx("span",{className:"truncate font-medium",children:e})]}),v=(s||o||h)&&x.jsxs("span",{className:ke("flex shrink-0 items-center gap-1",d&&"mt-0.5",!d&&c===void 0&&"ml-auto"),children:[s&&x.jsx(Hse,{className:"size-2.5","aria-label":"Repeats"}),o&&x.jsx(jse,{className:"size-2.5","aria-label":"From mail"}),h&&x.jsx(Use,{className:"size-2.5 text-warning","aria-label":"Unclear zone"})]}),S=c!==void 0&&x.jsx("span",{className:ke("shrink-0 opacity-80",!d&&"ml-auto"),children:c});return x.jsxs(x.Fragment,{children:[m?x.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[g,v,S]}):x.jsxs(x.Fragment,{children:[g,v,S]}),u]})}function mie({topBar:e,appBar:t,children:n}){return x.jsxs(x.Fragment,{children:[e,x.jsxs("div",{className:"flex min-h-0 flex-1",children:[t,x.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:n})]})]})}const gie=1024,vie=1280;function yie(e,t=gie,n=vie){const r=e>=t;return{nav:r,reading:r,intelligence:e>=n}}function P$e(e){return e===void 0?!1:e.handlers.focusNext!==void 0&&e.handlers.focusPrevious!==void 0}function bie(e){const t=_.useRef(null),[n,r]=_.useState(e??null);return _.useEffect(()=>{const o=t.current;if(!o||typeof ResizeObserver>"u")return;const s=new ResizeObserver(u=>{const d=u[0];d&&r(d.contentRect.width)});s.observe(o);const i=getComputedStyle(o),c=Number.parseFloat(i.paddingLeft)+Number.parseFloat(i.paddingRight);return r(o.clientWidth-c),()=>s.disconnect()},[]),[t,n]}function A3({open:e,onClose:t,title:n,children:r,className:o,anchor:s="center"}){const i=_.useRef(null);if(xy({id:"dialog",open:e,answers:{back:t}}),bm(i,e),!e)return null;const c=s==="left",u=s==="right";return x.jsxs("div",{className:ke("fixed inset-0 z-50 flex",c?"items-stretch justify-start":u?"items-stretch justify-end":"items-center justify-center px-4"),children:[x.jsx(Xae,{label:"Dismiss dialog",onDismiss:t}),x.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title",tabIndex:-1,className:ke("relative z-10 overflow-hidden border-line bg-surface shadow-xl",c?"safe-area-frame h-full w-72 max-w-[85vw] border-r":u?"safe-area-frame h-full w-[80vw] max-w-[320px] border-l":"w-full max-w-lg rounded-md border",o),children:[x.jsx("h2",{id:"dialog-title",className:"sr-only",children:n}),r]})]})}const Cy=_.createContext(null);Cy.displayName="PanelGroupContext";const Nn={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},dT=10,Cc=_.useLayoutEffect,lM=TF.useId,Sie=typeof lM=="function"?lM:()=>null;let wie=0;function fT(e=null){const t=Sie(),n=_.useRef(e||t||null);return n.current===null&&(n.current=""+wie++),e??n.current}function XF({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:s,id:i,maxSize:c,minSize:u,onCollapse:d,onExpand:h,onResize:m,order:g,style:v,tagName:S="div",...b}){const C=_.useContext(Cy);if(C===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:E,expandPanel:k,getPanelSize:A,getPanelStyle:R,groupId:N,isPanelCollapsed:O,reevaluatePanelConstraints:I,registerPanel:M,resizePanel:z,unregisterPanel:q}=C,U=fT(i),L=_.useRef({callbacks:{onCollapse:d,onExpand:h,onResize:m},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:c,minSize:u},id:U,idIsFromProps:i!==void 0,order:g});_.useRef({didLogMissingDefaultSizeWarning:!1}),Cc(()=>{const{callbacks:K,constraints:le}=L.current,$={...le};L.current.id=U,L.current.idIsFromProps=i!==void 0,L.current.order=g,K.onCollapse=d,K.onExpand=h,K.onResize=m,le.collapsedSize=n,le.collapsible=r,le.defaultSize=o,le.maxSize=c,le.minSize=u,($.collapsedSize!==le.collapsedSize||$.collapsible!==le.collapsible||$.maxSize!==le.maxSize||$.minSize!==le.minSize)&&I(L.current,$)}),Cc(()=>{const K=L.current;return M(K),()=>{q(K)}},[g,U,M,q]),_.useImperativeHandle(s,()=>({collapse:()=>{E(L.current)},expand:K=>{k(L.current,K)},getId(){return U},getSize(){return A(L.current)},isCollapsed(){return O(L.current)},isExpanded(){return!O(L.current)},resize:K=>{z(L.current,K)}}),[E,k,A,O,U,z]);const B=R(L.current,o);return _.createElement(S,{...b,children:e,className:t,id:U,style:{...B,...v},[Nn.groupId]:N,[Nn.panel]:"",[Nn.panelCollapsible]:r||void 0,[Nn.panelId]:U,[Nn.panelSize]:parseFloat(""+B.flexGrow).toFixed(1)})}const QF=_.forwardRef((e,t)=>_.createElement(XF,{...e,forwardedRef:t}));XF.displayName="Panel";QF.displayName="forwardRef(Panel)";let T3=null,S1=-1,al=null;function xie(e,t){if(t){const n=(t&r$)!==0,r=(t&o$)!==0,o=(t&s$)!==0,s=(t&a$)!==0;if(n)return o?"se-resize":s?"ne-resize":"e-resize";if(r)return o?"sw-resize":s?"nw-resize":"w-resize";if(o)return"s-resize";if(s)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Cie(){al!==null&&(document.head.removeChild(al),T3=null,al=null,S1=-1)}function fx(e,t){var n,r;const o=xie(e,t);if(T3!==o){if(T3=o,al===null&&(al=document.createElement("style"),document.head.appendChild(al)),S1>=0){var s;(s=al.sheet)===null||s===void 0||s.removeRule(S1)}S1=(n=(r=al.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${o} !important;}`))!==null&&n!==void 0?n:-1}}function JF(e){return e.type==="keydown"}function e$(e){return e.type.startsWith("pointer")}function t$(e){return e.type.startsWith("mouse")}function Ey(e){if(e$(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(t$(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Eie(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function _ie(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function kie(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:dM(e),b:dM(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;lt(r,"Stacking order can only be calculated for elements with a common ancestor");const o={a:uM(cM(n.a)),b:uM(cM(n.b))};if(o.a===o.b){const s=r.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let c=s.length;for(;c--;){const u=s[c];if(u===i.a)return 1;if(u===i.b)return-1}}return Math.sign(o.a-o.b)}const Aie=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Tie(e){var t;const n=getComputedStyle((t=n$(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function Iie(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Tie(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Aie.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function cM(e){let t=e.length;for(;t--;){const n=e[t];if(lt(n,"Missing node"),Iie(n))return n}return null}function uM(e){return e&&Number(getComputedStyle(e).zIndex)||0}function dM(e){const t=[];for(;e;)t.push(e),e=n$(e);return t}function n$(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const r$=1,o$=2,s$=4,a$=8,Rie=Eie()==="coarse";let xs=[],Md=!1,hc=new Map,_y=new Map;const Np=new Set;function Oie(e,t,n,r,o){var s;const{ownerDocument:i}=t,c={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},u=(s=hc.get(i))!==null&&s!==void 0?s:0;return hc.set(i,u+1),Np.add(c),Q1(),function(){var h;_y.delete(e),Np.delete(c);const m=(h=hc.get(i))!==null&&h!==void 0?h:1;if(hc.set(i,m-1),Q1(),m===1&&hc.delete(i),xs.includes(c)){const g=xs.indexOf(c);g>=0&&xs.splice(g,1),pT(),o("up",!0,null)}}}function Nie(e){const{target:t}=e,{x:n,y:r}=Ey(e);Md=!0,hT({target:t,x:n,y:r}),Q1(),xs.length>0&&(J1("down",e),e.preventDefault(),i$(t)||e.stopImmediatePropagation())}function hx(e){const{x:t,y:n}=Ey(e);if(Md&&e.buttons===0&&(Md=!1,J1("up",e)),!Md){const{target:r}=e;hT({target:r,x:t,y:n})}J1("move",e),pT(),xs.length>0&&e.preventDefault()}function px(e){const{target:t}=e,{x:n,y:r}=Ey(e);_y.clear(),Md=!1,xs.length>0&&(e.preventDefault(),i$(t)||e.stopImmediatePropagation()),J1("up",e),hT({target:t,x:n,y:r}),pT(),Q1()}function i$(e){let t=e;for(;t;){if(t.hasAttribute(Nn.resizeHandle))return!0;t=t.parentElement}return!1}function hT({target:e,x:t,y:n}){xs.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),Np.forEach(o=>{const{element:s,hitAreaMargins:i}=o,c=s.getBoundingClientRect(),{bottom:u,left:d,right:h,top:m}=c,g=Rie?i.coarse:i.fine;if(t>=d-g&&t<=h+g&&n>=m-g&&n<=u+g){if(r!==null&&document.contains(r)&&s!==r&&!s.contains(r)&&!r.contains(s)&&kie(r,s)>0){let S=r,b=!1;for(;S&&!S.contains(s);){if(_ie(S.getBoundingClientRect(),c)){b=!0;break}S=S.parentElement}if(b)return}xs.push(o)}})}function mx(e,t){_y.set(e,t)}function pT(){let e=!1,t=!1;xs.forEach(r=>{const{direction:o}=r;o==="horizontal"?e=!0:t=!0});let n=0;_y.forEach(r=>{n|=r}),e&&t?fx("intersection",n):e?fx("horizontal",n):t?fx("vertical",n):Cie()}let gx=new AbortController;function Q1(){gx.abort(),gx=new AbortController;const e={capture:!0,signal:gx.signal};Np.size&&(Md?(xs.length>0&&hc.forEach((t,n)=>{const{body:r}=n;t>0&&(r.addEventListener("contextmenu",px,e),r.addEventListener("pointerleave",hx,e),r.addEventListener("pointermove",hx,e))}),window.addEventListener("pointerup",px,e),window.addEventListener("pointercancel",px,e)):hc.forEach((t,n)=>{const{body:r}=n;t>0&&(r.addEventListener("pointerdown",Nie,e),r.addEventListener("pointermove",hx,e))}))}function J1(e,t){Np.forEach(n=>{const{setResizeHandlerState:r}=n,o=xs.includes(n);r(e,o,t)})}function Mie(){const[e,t]=_.useState(0);return _.useCallback(()=>t(n=>n+1),[])}function lt(e,t){if(!e)throw console.error(t),Error(t)}function zc(e,t,n=dT){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Wa(e,t,n=dT){return zc(e,t,n)===0}function To(e,t,n){return zc(e,t,n)===0}function Pie(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const o=e[r],s=t[r];if(!To(o,s,n))return!1}return!0}function yd({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];lt(r!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:s,maxSize:i=100,minSize:c=0}=r;if(zc(n,c)<0)if(s){const u=(o+c)/2;zc(n,u)<0?n=o:n=c}else n=c;return n=Math.min(i,n),n=parseFloat(n.toFixed(dT)),n}function ep({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:s}){if(To(e,0))return t;const i=[...t],[c,u]=r;lt(c!=null,"Invalid first pivot index"),lt(u!=null,"Invalid second pivot index");let d=0;if(s==="keyboard"){{const m=e<0?u:c,g=n[m];lt(g,`Panel constraints not found for index ${m}`);const{collapsedSize:v=0,collapsible:S,minSize:b=0}=g;if(S){const C=t[m];if(lt(C!=null,`Previous layout not found for panel index ${m}`),To(C,v)){const E=b-C;zc(E,Math.abs(e))>0&&(e=e<0?0-E:E)}}}{const m=e<0?c:u,g=n[m];lt(g,`No panel constraints found for index ${m}`);const{collapsedSize:v=0,collapsible:S,minSize:b=0}=g;if(S){const C=t[m];if(lt(C!=null,`Previous layout not found for panel index ${m}`),To(C,b)){const E=C-v;zc(E,Math.abs(e))>0&&(e=e<0?0-E:E)}}}}{const m=e<0?1:-1;let g=e<0?u:c,v=0;for(;;){const b=t[g];lt(b!=null,`Previous layout not found for panel index ${g}`);const E=yd({panelConstraints:n,panelIndex:g,size:100})-b;if(v+=E,g+=m,g<0||g>=n.length)break}const S=Math.min(Math.abs(e),Math.abs(v));e=e<0?0-S:S}{let g=e<0?c:u;for(;g>=0&&g<n.length;){const v=Math.abs(e)-Math.abs(d),S=t[g];lt(S!=null,`Previous layout not found for panel index ${g}`);const b=S-v,C=yd({panelConstraints:n,panelIndex:g,size:b});if(!To(S,C)&&(d+=S-C,i[g]=C,d.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(Pie(o,i))return o;{const m=e<0?u:c,g=t[m];lt(g!=null,`Previous layout not found for panel index ${m}`);const v=g+d,S=yd({panelConstraints:n,panelIndex:m,size:v});if(i[m]=S,!To(S,v)){let b=v-S,E=e<0?u:c;for(;E>=0&&E<n.length;){const k=i[E];lt(k!=null,`Previous layout not found for panel index ${E}`);const A=k+b,R=yd({panelConstraints:n,panelIndex:E,size:A});if(To(k,R)||(b-=R-k,i[E]=R),To(b,0))break;e>0?E--:E++}}}const h=i.reduce((m,g)=>g+m,0);return To(h,100)?i:o}function Die({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,s=0,i=0;const c=n[0];lt(c!=null,"No pivot index found"),t.forEach((m,g)=>{const{constraints:v}=m,{maxSize:S=100,minSize:b=0}=v;g===c?(r=b,o=S):(s+=b,i+=S)});const u=Math.min(o,100-s),d=Math.max(r,100-i),h=e[c];return{valueMax:u,valueMin:d,valueNow:h}}function Mp(e,t=document){return Array.from(t.querySelectorAll(`[${Nn.resizeHandleId}][data-panel-group-id="${e}"]`))}function l$(e,t,n=document){const o=Mp(e,n).findIndex(s=>s.getAttribute(Nn.resizeHandleId)===t);return o??null}function c$(e,t,n){const r=l$(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function u$(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function ky(e,t=document){const n=t.querySelector(`[${Nn.resizeHandleId}="${e}"]`);return n||null}function Lie(e,t,n,r=document){var o,s,i,c;const u=ky(t,r),d=Mp(e,r),h=u?d.indexOf(u):-1,m=(o=(s=n[h])===null||s===void 0?void 0:s.id)!==null&&o!==void 0?o:null,g=(i=(c=n[h+1])===null||c===void 0?void 0:c.id)!==null&&i!==void 0?i:null;return[m,g]}function zie({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:s,setLayout:i}){_.useRef({didWarnAboutMissingResizeHandle:!1}),Cc(()=>{if(!s)return;const c=Mp(n,s);for(let u=0;u<o.length-1;u++){const{valueMax:d,valueMin:h,valueNow:m}=Die({layout:r,panelsArray:o,pivotIndices:[u,u+1]}),g=c[u];if(g!=null){const v=o[u];lt(v,`No panel data found for index "${u}"`),g.setAttribute("aria-controls",v.id),g.setAttribute("aria-valuemax",""+Math.round(d)),g.setAttribute("aria-valuemin",""+Math.round(h)),g.setAttribute("aria-valuenow",m!=null?""+Math.round(m):"")}}return()=>{c.forEach((u,d)=>{u.removeAttribute("aria-controls"),u.removeAttribute("aria-valuemax"),u.removeAttribute("aria-valuemin"),u.removeAttribute("aria-valuenow")})}},[n,r,o,s]),_.useEffect(()=>{if(!s)return;const c=t.current;lt(c,"Eager values not found");const{panelDataArray:u}=c,d=u$(n,s);lt(d!=null,`No group found for id "${n}"`);const h=Mp(n,s);lt(h,`No resize handles found for group id "${n}"`);const m=h.map(g=>{const v=g.getAttribute(Nn.resizeHandleId);lt(v,"Resize handle element has no handle id attribute");const[S,b]=Lie(n,v,u,s);if(S==null||b==null)return()=>{};const C=E=>{if(!E.defaultPrevented)switch(E.key){case"Enter":{E.preventDefault();const k=u.findIndex(A=>A.id===S);if(k>=0){const A=u[k];lt(A,`No panel data found for index ${k}`);const R=r[k],{collapsedSize:N=0,collapsible:O,minSize:I=0}=A.constraints;if(R!=null&&O){const M=ep({delta:To(R,N)?I-N:N-R,initialLayout:r,panelConstraints:u.map(z=>z.constraints),pivotIndices:c$(n,v,s),prevLayout:r,trigger:"keyboard"});r!==M&&i(M)}}break}}};return g.addEventListener("keydown",C),()=>{g.removeEventListener("keydown",C)}});return()=>{m.forEach(g=>g())}},[s,e,t,n,r,o,i])}function fM(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function d$(e,t){const n=e==="horizontal",{x:r,y:o}=Ey(t);return n?r:o}function Uie(e,t,n,r,o){const s=n==="horizontal",i=ky(t,o);lt(i,`No resize handle element found for id "${t}"`);const c=i.getAttribute(Nn.groupId);lt(c,"Resize handle element has no group id attribute");let{initialCursorPosition:u}=r;const d=d$(n,e),h=u$(c,o);lt(h,`No group element found for id "${c}"`);const m=h.getBoundingClientRect(),g=s?m.width:m.height;return(d-u)/g*100}function jie(e,t,n,r,o,s){if(JF(e)){const i=n==="horizontal";let c=0;e.shiftKey?c=100:o!=null?c=o:c=10;let u=0;switch(e.key){case"ArrowDown":u=i?0:c;break;case"ArrowLeft":u=i?-c:0;break;case"ArrowRight":u=i?c:0;break;case"ArrowUp":u=i?0:-c;break;case"End":u=100;break;case"Home":u=-100;break}return u}else return r==null?0:Uie(e,t,n,r,s)}function Fie({panelDataArray:e}){const t=Array(e.length),n=e.map(s=>s.constraints);let r=0,o=100;for(let s=0;s<e.length;s++){const i=n[s];lt(i,`Panel constraints not found for index ${s}`);const{defaultSize:c}=i;c!=null&&(r++,t[s]=c,o-=c)}for(let s=0;s<e.length;s++){const i=n[s];lt(i,`Panel constraints not found for index ${s}`);const{defaultSize:c}=i;if(c!=null)continue;const u=e.length-r,d=o/u;r++,t[s]=d,o-=d}return t}function Vu(e,t,n){t.forEach((r,o)=>{const s=e[o];lt(s,`Panel data not found for index ${o}`);const{callbacks:i,constraints:c,id:u}=s,{collapsedSize:d=0,collapsible:h}=c,m=n[u];if(m==null||r!==m){n[u]=r;const{onCollapse:g,onExpand:v,onResize:S}=i;S&&S(r,m),h&&(g||v)&&(v&&(m==null||Wa(m,d))&&!Wa(r,d)&&v(),g&&(m==null||!Wa(m,d))&&Wa(r,d)&&g())}})}function a0(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function $ie({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:s=3}){const i=n[o];let c;return i==null?c=e!=null?e.toPrecision(s):"1":r.length===1?c="1":c=i.toPrecision(s),{flexBasis:0,flexGrow:c,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function Bie(e,t=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}function hM(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function f$(e){return`react-resizable-panels:${e}`}function h$(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:o,order:s}=t;return o?r:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function p$(e,t){try{const n=f$(e),r=t.getItem(n);if(r){const o=JSON.parse(r);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function Hie(e,t,n){var r,o;const s=(r=p$(e,n))!==null&&r!==void 0?r:{},i=h$(t);return(o=s[i])!==null&&o!==void 0?o:null}function qie(e,t,n,r,o){var s;const i=f$(e),c=h$(t),u=(s=p$(e,o))!==null&&s!==void 0?s:{};u[c]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(i,JSON.stringify(u))}catch(d){console.error(d)}}function pM({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((s,i)=>s+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(s=>`${s}%`).join(", ")}`);if(!To(r,100)&&n.length>0)for(let s=0;s<t.length;s++){const i=n[s];lt(i!=null,`No layout data found for index ${s}`);const c=100/r*i;n[s]=c}let o=0;for(let s=0;s<t.length;s++){const i=n[s];lt(i!=null,`No layout data found for index ${s}`);const c=yd({panelConstraints:t,panelIndex:s,size:i});i!=c&&(o+=i-c,n[s]=c)}if(!To(o,0))for(let s=0;s<t.length;s++){const i=n[s];lt(i!=null,`No layout data found for index ${s}`);const c=i+o,u=yd({panelConstraints:t,panelIndex:s,size:c});if(i!==u&&(o-=u-i,n[s]=u,To(o,0)))break}return n}const Wie=100,tp={getItem:e=>(hM(tp),tp.getItem(e)),setItem:(e,t)=>{hM(tp),tp.setItem(e,t)}},mM={};function m$({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:s=null,onLayout:i=null,keyboardResizeBy:c=null,storage:u=tp,style:d,tagName:h="div",...m}){const g=fT(s),v=_.useRef(null),[S,b]=_.useState(null),[C,E]=_.useState([]),k=Mie(),A=_.useRef({}),R=_.useRef(new Map),N=_.useRef(0),O=_.useRef({autoSaveId:e,direction:r,dragState:S,id:g,keyboardResizeBy:c,onLayout:i,storage:u}),I=_.useRef({layout:C,panelDataArray:[],panelDataArrayChanged:!1});_.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),_.useImperativeHandle(o,()=>({getId:()=>O.current.id,getLayout:()=>{const{layout:X}=I.current;return X},setLayout:X=>{const{onLayout:J}=O.current,{layout:ie,panelDataArray:ue}=I.current,ge=pM({layout:X,panelConstraints:ue.map(ee=>ee.constraints)});fM(ie,ge)||(E(ge),I.current.layout=ge,J&&J(ge),Vu(ue,ge,A.current))}}),[]),Cc(()=>{O.current.autoSaveId=e,O.current.direction=r,O.current.dragState=S,O.current.id=g,O.current.onLayout=i,O.current.storage=u}),zie({committedValuesRef:O,eagerValuesRef:I,groupId:g,layout:C,panelDataArray:I.current.panelDataArray,setLayout:E,panelGroupElement:v.current}),_.useEffect(()=>{const{panelDataArray:X}=I.current;if(e){if(C.length===0||C.length!==X.length)return;let J=mM[e];J==null&&(J=Bie(qie,Wie),mM[e]=J);const ie=[...X],ue=new Map(R.current);J(e,ie,ue,C,u)}},[e,C,u]),_.useEffect(()=>{});const M=_.useCallback(X=>{const{onLayout:J}=O.current,{layout:ie,panelDataArray:ue}=I.current;if(X.constraints.collapsible){const ge=ue.map(xe=>xe.constraints),{collapsedSize:ee=0,panelSize:Se,pivotIndices:Pe}=lc(ue,X,ie);if(lt(Se!=null,`Panel size not found for panel "${X.id}"`),!Wa(Se,ee)){R.current.set(X.id,Se);const Ge=ud(ue,X)===ue.length-1?Se-ee:ee-Se,ze=ep({delta:Ge,initialLayout:ie,panelConstraints:ge,pivotIndices:Pe,prevLayout:ie,trigger:"imperative-api"});a0(ie,ze)||(E(ze),I.current.layout=ze,J&&J(ze),Vu(ue,ze,A.current))}}},[]),z=_.useCallback((X,J)=>{const{onLayout:ie}=O.current,{layout:ue,panelDataArray:ge}=I.current;if(X.constraints.collapsible){const ee=ge.map(He=>He.constraints),{collapsedSize:Se=0,panelSize:Pe=0,minSize:xe=0,pivotIndices:Ge}=lc(ge,X,ue),ze=J??xe;if(Wa(Pe,Se)){const He=R.current.get(X.id),ot=He!=null&&He>=ze?He:ze,yn=ud(ge,X)===ge.length-1?Pe-ot:ot-Pe,Fe=ep({delta:yn,initialLayout:ue,panelConstraints:ee,pivotIndices:Ge,prevLayout:ue,trigger:"imperative-api"});a0(ue,Fe)||(E(Fe),I.current.layout=Fe,ie&&ie(Fe),Vu(ge,Fe,A.current))}}},[]),q=_.useCallback(X=>{const{layout:J,panelDataArray:ie}=I.current,{panelSize:ue}=lc(ie,X,J);return lt(ue!=null,`Panel size not found for panel "${X.id}"`),ue},[]),U=_.useCallback((X,J)=>{const{panelDataArray:ie}=I.current,ue=ud(ie,X);return $ie({defaultSize:J,dragState:S,layout:C,panelData:ie,panelIndex:ue})},[S,C]),L=_.useCallback(X=>{const{layout:J,panelDataArray:ie}=I.current,{collapsedSize:ue=0,collapsible:ge,panelSize:ee}=lc(ie,X,J);return lt(ee!=null,`Panel size not found for panel "${X.id}"`),ge===!0&&Wa(ee,ue)},[]),B=_.useCallback(X=>{const{layout:J,panelDataArray:ie}=I.current,{collapsedSize:ue=0,collapsible:ge,panelSize:ee}=lc(ie,X,J);return lt(ee!=null,`Panel size not found for panel "${X.id}"`),!ge||zc(ee,ue)>0},[]),K=_.useCallback(X=>{const{panelDataArray:J}=I.current;J.push(X),J.sort((ie,ue)=>{const ge=ie.order,ee=ue.order;return ge==null&&ee==null?0:ge==null?-1:ee==null?1:ge-ee}),I.current.panelDataArrayChanged=!0,k()},[k]);Cc(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:X,onLayout:J,storage:ie}=O.current,{layout:ue,panelDataArray:ge}=I.current;let ee=null;if(X){const Pe=Hie(X,ge,ie);Pe&&(R.current=new Map(Object.entries(Pe.expandToSizes)),ee=Pe.layout)}ee==null&&(ee=Fie({panelDataArray:ge}));const Se=pM({layout:ee,panelConstraints:ge.map(Pe=>Pe.constraints)});fM(ue,Se)||(E(Se),I.current.layout=Se,J&&J(Se),Vu(ge,Se,A.current))}}),Cc(()=>{const X=I.current;return()=>{X.layout=[]}},[]);const le=_.useCallback(X=>{let J=!1;const ie=v.current;return ie&&window.getComputedStyle(ie,null).getPropertyValue("direction")==="rtl"&&(J=!0),function(ge){ge.preventDefault();const ee=v.current;if(!ee)return()=>null;const{direction:Se,dragState:Pe,id:xe,keyboardResizeBy:Ge,onLayout:ze}=O.current,{layout:He,panelDataArray:ot}=I.current,{initialLayout:Oe}=Pe??{},yn=c$(xe,X,ee);let Fe=jie(ge,X,Se,Pe,Ge,ee);const zn=Se==="horizontal";zn&&J&&(Fe=-Fe);const Jt=ot.map(gr=>gr.constraints),dn=ep({delta:Fe,initialLayout:Oe??He,panelConstraints:Jt,pivotIndices:yn,prevLayout:He,trigger:JF(ge)?"keyboard":"mouse-or-touch"}),mo=!a0(He,dn);(e$(ge)||t$(ge))&&N.current!=Fe&&(N.current=Fe,!mo&&Fe!==0?zn?mx(X,Fe<0?r$:o$):mx(X,Fe<0?s$:a$):mx(X,0)),mo&&(E(dn),I.current.layout=dn,ze&&ze(dn),Vu(ot,dn,A.current))}},[]),$=_.useCallback((X,J)=>{const{onLayout:ie}=O.current,{layout:ue,panelDataArray:ge}=I.current,ee=ge.map(He=>He.constraints),{panelSize:Se,pivotIndices:Pe}=lc(ge,X,ue);lt(Se!=null,`Panel size not found for panel "${X.id}"`);const Ge=ud(ge,X)===ge.length-1?Se-J:J-Se,ze=ep({delta:Ge,initialLayout:ue,panelConstraints:ee,pivotIndices:Pe,prevLayout:ue,trigger:"imperative-api"});a0(ue,ze)||(E(ze),I.current.layout=ze,ie&&ie(ze),Vu(ge,ze,A.current))},[]),Q=_.useCallback((X,J)=>{const{layout:ie,panelDataArray:ue}=I.current,{collapsedSize:ge=0,collapsible:ee}=J,{collapsedSize:Se=0,collapsible:Pe,maxSize:xe=100,minSize:Ge=0}=X.constraints,{panelSize:ze}=lc(ue,X,ie);ze!=null&&(ee&&Pe&&Wa(ze,ge)?Wa(ge,Se)||$(X,Se):ze<Ge?$(X,Ge):ze>xe&&$(X,xe))},[$]),se=_.useCallback((X,J)=>{const{direction:ie}=O.current,{layout:ue}=I.current;if(!v.current)return;const ge=ky(X,v.current);lt(ge,`Drag handle element not found for id "${X}"`);const ee=d$(ie,J);b({dragHandleId:X,dragHandleRect:ge.getBoundingClientRect(),initialCursorPosition:ee,initialLayout:ue})},[]),de=_.useCallback(()=>{b(null)},[]),_e=_.useCallback(X=>{const{panelDataArray:J}=I.current,ie=ud(J,X);ie>=0&&(J.splice(ie,1),delete A.current[X.id],I.current.panelDataArrayChanged=!0,k())},[k]),j=_.useMemo(()=>({collapsePanel:M,direction:r,dragState:S,expandPanel:z,getPanelSize:q,getPanelStyle:U,groupId:g,isPanelCollapsed:L,isPanelExpanded:B,reevaluatePanelConstraints:Q,registerPanel:K,registerResizeHandle:le,resizePanel:$,startDragging:se,stopDragging:de,unregisterPanel:_e,panelGroupElement:v.current}),[M,S,r,z,q,U,g,L,B,Q,K,le,$,se,de,_e]),Y={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return _.createElement(Cy.Provider,{value:j},_.createElement(h,{...m,children:t,className:n,id:s,ref:v,style:{...Y,...d},[Nn.group]:"",[Nn.groupDirection]:r,[Nn.groupId]:g}))}const g$=_.forwardRef((e,t)=>_.createElement(m$,{...e,forwardedRef:t}));m$.displayName="PanelGroup";g$.displayName="forwardRef(PanelGroup)";function ud(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function lc(e,t,n){const r=ud(e,t),s=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:s}}function Vie({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){_.useEffect(()=>{if(e||n==null||r==null)return;const o=ky(t,r);if(o==null)return;const s=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const c=o.getAttribute(Nn.groupId);lt(c,`No group element found for id "${c}"`);const u=Mp(c,r),d=l$(c,t,r);lt(d!==null,`No resize element found for id "${t}"`);const h=i.shiftKey?d>0?d-1:u.length-1:d+1<u.length?d+1:0;u[h].focus();break}}};return o.addEventListener("keydown",s),()=>{o.removeEventListener("keydown",s)}},[r,e,t,n])}function v$({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:s,onClick:i,onDragging:c,onFocus:u,onPointerDown:d,onPointerUp:h,style:m={},tabIndex:g=0,tagName:v="div",...S}){var b,C;const E=_.useRef(null),k=_.useRef({onClick:i,onDragging:c,onPointerDown:d,onPointerUp:h});_.useEffect(()=>{k.current.onClick=i,k.current.onDragging=c,k.current.onPointerDown=d,k.current.onPointerUp=h});const A=_.useContext(Cy);if(A===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:R,groupId:N,registerResizeHandle:O,startDragging:I,stopDragging:M,panelGroupElement:z}=A,q=fT(o),[U,L]=_.useState("inactive"),[B,K]=_.useState(!1),[le,$]=_.useState(null),Q=_.useRef({state:U});Cc(()=>{Q.current.state=U}),_.useEffect(()=>{if(n)$(null);else{const j=O(q);$(()=>j)}},[n,q,O]);const se=(b=r?.coarse)!==null&&b!==void 0?b:15,de=(C=r?.fine)!==null&&C!==void 0?C:5;_.useEffect(()=>{if(n||le==null)return;const j=E.current;lt(j,"Element ref not attached");let Y=!1;return Oie(q,j,R,{coarse:se,fine:de},(J,ie,ue)=>{if(!ie){L("inactive");return}switch(J){case"down":{L("drag"),Y=!1,lt(ue,'Expected event to be defined for "down" action'),I(q,ue);const{onDragging:ge,onPointerDown:ee}=k.current;ge?.(!0),ee?.();break}case"move":{const{state:ge}=Q.current;Y=!0,ge!=="drag"&&L("hover"),lt(ue,'Expected event to be defined for "move" action'),le(ue);break}case"up":{L("hover"),M();const{onClick:ge,onDragging:ee,onPointerUp:Se}=k.current;ee?.(!1),Se?.(),Y||ge?.();break}}})},[se,R,n,de,O,q,le,I,M]),Vie({disabled:n,handleId:q,resizeHandler:le,panelGroupElement:z});const _e={touchAction:"none",userSelect:"none"};return _.createElement(v,{...S,children:e,className:t,id:o,onBlur:()=>{K(!1),s?.()},onFocus:()=>{K(!0),u?.()},ref:E,role:"separator",style:{..._e,...m},tabIndex:g,[Nn.groupDirection]:R,[Nn.groupId]:N,[Nn.resizeHandle]:"",[Nn.resizeHandleActive]:U==="drag"?"pointer":B?"keyboard":void 0,[Nn.resizeHandleEnabled]:!n,[Nn.resizeHandleId]:q,[Nn.resizeHandleState]:U})}v$.displayName="PanelResizeHandle";function gM({className:e,...t}){return x.jsx(g$,{className:ke("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}const Rh=QF;function vx({className:e,...t}){return x.jsx(v$,{className:ke("relative w-px shrink-0 bg-line transition-colors cursor-col-resize","after:absolute after:inset-y-0 after:left-1/2 after:w-1.5 after:-translate-x-1/2","data-[resize-handle-state=hover]:bg-line-strong","data-[resize-handle-state=drag]:bg-accent","focus-visible:outline-none focus-visible:bg-accent",e),...t})}function Gie({className:e,children:t}){const n=_.useRef(null),[r,o]=_.useState(null);return _.useEffect(()=>{const s=n.current?.parentElement;if(!s||typeof ResizeObserver>"u")return;const i=()=>{const u=Math.floor(s.getBoundingClientRect().width);o(d=>d===u?d:u)};i();const c=new ResizeObserver(i);return c.observe(s),()=>c.disconnect()},[]),x.jsx("div",{ref:n,className:e,style:r===null?void 0:{width:`${r}px`},children:t})}const y$=_.createContext(null);function Kie(e,t){return e==="list"?{size:62,max:78}:e==="detail"?{size:26,max:45}:{size:t==="compact"?43:33,max:58}}function D$e(){return _.useContext(y$)}function L$e({nav:e,list:t,reading:n,intelligence:r,intelligenceOpen:o=!0,hasThread:s=!0,density:i="comfortable",listBias:c="balanced",header:u,topBar:d,appBar:h,overlay:m,skeleton:g,isLoading:v=!1,initialWidth:S,navOpen:b,onOpenNav:C,onCloseNav:E}){const[k,A]=bie(S),R=yie(A??0),[N,O]=_.useState(!1),I=R.nav,M=I&&!N,z=R.reading&&!!n,q=R.intelligence,[U,L]=_.useState(!1),B=b!==void 0,K=B?b:U,le=()=>{B||L(!0),C?.()},$=()=>{B||L(!1),E?.()},Q=q&&o&&s&&!!r,de={panes:R,containerWidth:A,showNavPane:I,openNav:le,navCollapsed:N,toggleNav:()=>{if(!I){K?$():le();return}O(X=>!X)},showReadingPane:z,showIntelligencePane:q},_e=Kie(c,i),j=x.jsxs(gM,{direction:"horizontal",className:"min-h-0 flex-1",children:[x.jsx(Rh,{id:"list",order:1,defaultSize:z?_e.size:100,minSize:22,maxSize:z?_e.max:100,className:"min-w-0",children:t}),z&&x.jsxs(x.Fragment,{children:[x.jsx(vx,{}),x.jsx(Rh,{id:"reading",order:2,minSize:29,className:"min-w-0",children:x.jsx(Gie,{className:"h-full",children:n})})]}),Q&&x.jsxs(x.Fragment,{children:[x.jsx(vx,{}),x.jsx(Rh,{id:"intelligence",order:3,defaultSize:25,minSize:18,maxSize:39,className:"min-w-0",children:r})]})]},z?"list-reading":"list-only"),Y=x.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[!I&&u&&x.jsx("div",{className:"shrink-0",children:u}),j]});return x.jsx(y$.Provider,{value:de,children:x.jsxs("div",{ref:k,className:"safe-area-frame @container flex h-full w-full flex-col overflow-hidden bg-canvas font-sans text-fg",children:[x.jsx(mie,{topBar:d,appBar:h,children:v&&g?g:M?x.jsxs(gM,{direction:"horizontal",className:"min-h-0 flex-1",children:[x.jsx(Rh,{id:"nav",order:1,defaultSize:17,minSize:12,maxSize:24,className:"min-w-0",children:e}),x.jsx(vx,{}),x.jsx(Rh,{id:"content",order:2,className:"flex min-w-0 flex-col",children:Y})]}):Y}),!(v&&g)&&x.jsxs(x.Fragment,{children:[!I&&x.jsx(A3,{open:K,onClose:$,title:"Folders",anchor:"left",children:e}),m]})]})})}function b$({children:e,label:t}){return x.jsxs("span",{className:"relative inline-flex",children:[e,t!==void 0&&x.jsxs(x.Fragment,{children:[x.jsx("span",{"data-testid":"attention-dot",className:"absolute -right-1 -top-1 size-2 rounded-full bg-accent-2"}),x.jsx("span",{className:"sr-only",children:t})]})]})}function Ay({children:e,className:t}){return x.jsx("div",{"data-auth-page":!0,className:ke("flex min-h-dvh w-full flex-col items-center justify-center overflow-y-auto bg-surface-sunken pb-[max(2rem,env(safe-area-inset-bottom,0px))] pl-[max(1rem,env(safe-area-inset-left,0px))] pr-[max(1rem,env(safe-area-inset-right,0px))] pt-[max(2rem,env(safe-area-inset-top,0px))] text-fg",t),style:{backgroundImage:"radial-gradient(at 20% 0%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%), radial-gradient(at 80% 100%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%)"},children:x.jsx("div",{className:"w-full max-w-[26rem]",children:e})})}const Yie="Secure sign-in powered by AWS Cognito";function mT(e){const t=e?.note??"Secure sign-in";return x.jsx("div",{className:"text-center pt-5",children:x.jsx("p",{className:"text-xs text-fg-muted",children:t})})}const Zie=()=>x.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"text-accent",children:[x.jsx("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),x.jsx("path",{d:"M3 7l9 6 9-6"})]});function Ty({wordmark:e="remit,",tagline:t="your email client in the cloud.",mark:n=x.jsx(Zie,{})}){return x.jsxs("div",{className:"text-center pb-6",children:[x.jsx("div",{className:"flex items-center justify-center pb-3",children:n}),x.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-[-0.01em] text-fg",children:e}),x.jsx("p",{className:"mt-1 text-sm text-fg-muted",children:t})]})}function Xie({id:e,reason:t,nudged:n,className:r}){return x.jsxs(x.Fragment,{children:[x.jsx("p",{id:e,className:ke(r,!n&&"sr-only"),children:t}),x.jsx("span",{role:"status","aria-live":"polite",className:"sr-only",children:n?t:""})]})}function Qie(e){return e.sentDate!=null?new Date(e.sentDate).toDateString()===new Date().toDateString():/^\d{1,2}:\d{2}$/.test(e.timeLabel)}const S$=[{id:"unread",label:"Unread",match:e=>!e.isRead},{id:"attachment",label:"Has attachment",match:e=>!!e.hasAttachment},{id:"contacts",label:"From contacts",match:e=>e.trust==="vip"||e.trust==="wellknown"},{id:"today",label:"Today",match:Qie}],z$e=S$.map(({id:e,label:t})=>({id:e,label:t}));function U$e(e,t){return S$.every(n=>!t.has(n.id)||n.match(e))}function Jie(e){return e.target!==e.currentTarget?!1:e.key==="Enter"||e.key===" "}function w$({className:e}){return x.jsx("svg",{viewBox:"0 0 12 12",className:e,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:x.jsx("path",{d:"M2 4l4 4 4-4"})})}function vM({className:e}){return x.jsx("svg",{viewBox:"0 0 12 12",className:e,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:x.jsx("path",{d:"M3 3l6 6M9 3l-6 6"})})}const Iy=_.createContext(null);function j$e({children:e,hasSheet:t,open:n,onOpenChange:r}){const[o,s]=_.useState(!1),[i,c]=_.useState(!1),u=n??o,d=_.useCallback(m=>{n===void 0&&s(m),r?.(m)},[n,r]),h=_.useMemo(()=>({open:u,setOpen:d,active:i,setActive:c,hasSheet:t}),[u,d,i,t]);return x.jsx(Iy.Provider,{value:h,children:e})}function F$e({children:e}){return x.jsx(Iy.Provider,{value:null,children:e})}function $$e(){const e=_.useContext(Iy);if(!e?.hasSheet)return null;const{open:t,active:n,setOpen:r}=e;return x.jsx("button",{type:"button",onClick:()=>r(!t),"aria-expanded":t,"aria-label":t?"Collapse filters":"Expand filters",title:"Filters",className:ke("flex size-6 shrink-0 items-center justify-center rounded transition-colors hover:bg-surface-sunken",n?"text-accent-2":"text-fg-subtle hover:text-fg-muted"),children:x.jsx(w$,{className:ke("size-3 transition-transform duration-200",t?"rotate-180":"rotate-0")})})}function B$e({categories:e,filters:t,sources:n,sourcesNote:r,selectedCategory:o,activeFilters:s,expanded:i,onSelectCategory:c,onSelectSource:u,onToggleFilter:d,onClear:h,onExpandedChange:m,hideChrome:g=!1,children:v}){const S=_.useContext(Iy),b=i!==void 0,[C,E]=_.useState(!1),k=S?.open??(b?i:C),A=_.useCallback(se=>{b||E(se),S?.setOpen(se),m?.(se)},[b,m,S]),R=e[0],N=R!==void 0&&o===R.id,O=n?.[0],I=n?.find(se=>se.active),M=O===void 0||I?.id===O.id,z=!N||s.size>0||!M&&!!I,q=S?.setActive;_.useEffect(()=>{if(q)return q(z),()=>q(!1)},[z,q]);const U=_.useCallback(()=>{O&&u?.(O.id)},[O,u]),L=_.useCallback(()=>{h(),U()},[h,U]),B=e.find(se=>se.id===o),K=z?x.jsxs(x.Fragment,{children:[!M&&I&&x.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:I.label}),!N&&B&&x.jsx(_3,{tone:B.tone??"neutral",children:B.label}),t.filter(se=>s.has(se.id)).map(se=>x.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:se.label},se.id))]}):x.jsx("span",{className:"text-2xs text-fg-subtle",children:"Filters"}),le=n&&n.length>1&&x.jsxs("fieldset",{"aria-label":"Accounts",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-2",children:[n.map(se=>x.jsxs("button",{type:"button","aria-pressed":!!se.active,onClick:()=>u?.(se.id),className:ke("flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",se.active?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:[se.label,se.count!=null&&se.count>0&&x.jsx("span",{className:"tabular-nums opacity-70",children:se.count})]},se.id)),r&&x.jsx("span",{className:"ml-auto shrink-0 text-2xs text-fg-subtle",children:r})]}),$=x.jsx("fieldset",{"aria-label":"Categories",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-1.5 pt-1.5",children:e.map(se=>{const de=o===se.id;return x.jsx("button",{type:"button","aria-pressed":de,onClick:()=>c(se.id),className:ke("shrink-0 rounded-full transition-opacity",de?"opacity-100 ring-1 ring-accent-2":"opacity-60 hover:opacity-100"),children:x.jsx(_3,{tone:se.tone??"neutral",children:se.label})},se.id)})}),Q=x.jsxs("fieldset",{"aria-label":"Attributes",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-1.5",children:[t.map(se=>{const de=s.has(se.id);return x.jsx("button",{type:"button","aria-pressed":de,onClick:()=>d(se.id),className:ke("shrink-0 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",de?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:se.label},se.id)}),z&&x.jsxs("button",{type:"button",onClick:L,className:"ml-auto flex items-center gap-1 px-1 text-2xs text-fg-subtle hover:text-fg-muted",children:[x.jsx(vM,{className:"size-3"}),"Clear"]})]});return x.jsxs("div",{className:"flex h-full w-full flex-col overflow-hidden",children:[!g&&!S&&x.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":k,"aria-label":k?"Collapse filters":"Expand filters",onClick:()=>A(!k),onKeyDown:se=>{Jie(se)&&(se.preventDefault(),A(!k))},className:"flex h-section-row w-full shrink-0 cursor-pointer items-center gap-1.5 overflow-x-hidden border-b border-line bg-surface-sunken px-row-inset text-left hover:bg-surface",children:[K,z&&x.jsx("button",{type:"button","aria-label":"Clear filters",onClick:se=>{se.stopPropagation(),L()},className:"flex size-6 items-center justify-center text-fg-subtle hover:text-fg-muted",children:x.jsx(vM,{className:"size-3"})}),x.jsx(w$,{className:ke("ml-auto size-3 shrink-0 text-fg-subtle transition-transform duration-200",k?"rotate-180":"rotate-0")})]}),k&&!g&&x.jsxs("div",{className:"shrink-0",children:[le,$,Q]}),x.jsx("div",{className:"flex-1 overflow-y-auto",children:v})]})}const ele={default:ke("flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken px-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors"),inline:"flex items-center gap-2 bg-transparent text-sm"};function As({icon:e,className:t,variant:n="default",trailing:r,ref:o,...s}){return x.jsxs("div",{className:ke(ele[n],t),children:[e&&x.jsx("span",{className:"text-fg-subtle shrink-0",children:e}),x.jsx("input",{ref:o,className:"min-w-0 flex-1 bg-transparent text-fg placeholder:text-fg-subtle outline-none",...s}),r]})}function x$({icon:e,className:t,children:n,ref:r,...o}){return x.jsxs("div",{className:ke("relative flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken pl-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors",t),children:[e&&x.jsx("span",{className:"shrink-0 text-fg-subtle",children:e}),x.jsx("select",{ref:r,className:"min-w-0 flex-1 appearance-none bg-transparent py-0 pr-8 text-fg outline-none",...o,children:n}),x.jsx(Tse,{className:"pointer-events-none absolute right-2.5 size-4 text-fg-subtle"})]})}function yM(e){return String(e).padStart(2,"0")}function tle(e,t){if(e==="")return"";const[n,r]=e.split(":").map(Number),o=(n*60+r+t)%1440;return`${yM(Math.floor(o/60))}:${yM(o%60)}`}const C$=60,nle=864e5;function H$e(e,t,n){if(n){const r=e.slice(0,10),o=ks(t.slice(0,10),-1);return{...E$(e),endDate:o<r?r:o}}return{date:e.slice(0,10),endDate:t.slice(0,10),startTime:e.slice(11,16),endTime:t.slice(11,16),allDay:!1}}function q$e(e,t){if(t)return E$(e);const n=e.slice(11,16),r=tle(n,C$),o=e.slice(0,10);return{date:o,endDate:r<n?ks(o,1):o,startTime:n,endTime:r,allDay:!1}}function E$(e){return{date:e.slice(0,10),endDate:e.slice(0,10),startTime:"",endTime:"",allDay:!0}}function W$e(e,t,n,r){const o=Date.parse(t)-Date.parse(e);return Math.round(o/nle)>1}const Yn=15,rle=4,gT=1440;function bM(e,t){return Math.hypot(e,t)>=rle}function ole(e,t){const n=e/t*60,r=Math.floor(n/Yn)*Yn;return Math.min(Math.max(r,0),gT-Yn)}const SM=e=>String(e).padStart(2,"0");function I3(e){return`${SM(Math.floor(e/60))}:${SM(e%60)}`}function wM(e){const[t,n]=e.split(":").map(Number);return t*60+n}function sle(e,t,n){const r=Math.min(t,n),o=Math.max(t,n)+Yn;return qd(e,r,o)}function qd(e,t,n){const r=n>=gT;return{date:e,endDate:r?ks(e,1):e,startTime:I3(t),endTime:r?"00:00":I3(n),allDay:!1}}function Gu(e,t){return qd(e,t,t+C$)}function xM(e,t){const[n,r]=e<=t?[e,t]:[t,e];return{date:n,endDate:r,startTime:"",endTime:"",allDay:!0}}function R3(e){const t=wM(e.startTime),n=e.endDate>e.date?gT:wM(e.endTime);return{start:t,end:n}}const ev=1440;function ale(e,t){return Math.round(e/t*60/Yn)*Yn}function w1(e,t){const n=e.minute+t,r=Math.floor(n/ev);return{date:ks(e.date,r),minute:n-r*ev}}const _$=(e,t)=>{let n=0,r=e.date;for(;r<t.date;)r=ks(r,1),n+=1;return n*ev+t.minute-e.minute};function ile(e,t,n,r){const o=_$(e,t),s=w1({date:ks(e.date,n),minute:e.minute},r),i={date:s.date,minute:Math.round(s.minute/Yn)*Yn},c=i.minute===ev?w1(i,0):i;return{start:c,end:w1(c,o)}}function lle(e,t,n){const r=Math.max(_$(e,t)+n,Yn),o=Math.round(r/Yn)*Yn;return w1(e,o)}function cle(e,t,n){return{first:ks(e,n),last:ks(t,n)}}function ule(e,t,n){const r=ks(t,n);return r<e?e:r}const dle=1440-Yn;function CM(e,t,n){return{date:e.includes(t)?t:e[0],minute:Math.floor(n/60)*60}}function fle(e,t,n){const r=n.indexOf(e.date);switch(t){case"ArrowUp":return{...e,minute:Math.max(0,e.minute-Yn)};case"ArrowDown":return{...e,minute:Math.min(dle,e.minute+Yn)};case"ArrowLeft":return{...e,date:n[Math.max(0,r-1)]};case"ArrowRight":return{...e,date:n[Math.min(n.length-1,r+1)]};default:return null}}const hle=(e,t)=>e.date===t.date?e.minute-t.minute:e.date<t.date?-1:1;function EM(e,t){const[n,r]=hle(e,t)<=0?[e,t]:[t,e];if(n.date===r.date)return qd(n.date,n.minute,r.minute+Yn);const o=qd(r.date,r.minute,r.minute+Yn);return{date:n.date,startTime:I3(n.minute),endDate:o.endDate,endTime:o.endTime,allDay:!1}}const O3=500,ple=8;function _M(e,t,n){return{phase:"pending",x:e,y:t,at:n}}function kM(e,t,n){return e.phase!=="pending"?e:Math.hypot(t-e.x,n-e.y)>ple?{phase:"scrolled"}:e}function AM(e,t){return e.phase!=="pending"?e:t-e.at>=O3?{phase:"held"}:e}function TM(e,t,n,r){const o=Math.round(n/r*(60/Yn)),{start:s,end:i}=R3(e),c=o*Yn;if(t==="start"){const d=Math.min(Math.max(0,s+c),i-Yn);return qd(e.date,d,i)}const u=Math.max(Math.min(1440,i+c),s+Yn);return qd(e.date,s,u)}const IM=new Map;function mle(e){let t=IM.get(e);return t||(t=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),IM.set(e,t)),t}function Ys(e,t){const n=Object.fromEntries(mle(t).formatToParts(new Date(e)).map(r=>[r.type,r.value]));return{date:`${n.year}-${n.month}-${n.day}`,minute:Number(n.hour)*60+Number(n.minute)}}function gle(e,t){const n=t.filter(c=>c.start.date<=e&&c.end.date>=e).map(c=>({id:c.id,top:c.start.date<e?0:c.start.minute,bottom:c.end.date>e?1440:c.end.minute})).filter(c=>c.bottom>c.top||c.top===c.bottom).map(c=>({...c,bottom:Math.max(c.bottom,c.top+15)})).sort((c,u)=>c.top-u.top||u.bottom-c.bottom),r=[];let o=[],s=-1;const i=()=>{const c=Math.max(0,...o.map(u=>u.column))+1;for(const u of o)u.columns=c;r.push(...o),o=[]};for(const c of n){c.top>=s&&o.length>0&&i();const u=new Set(o.filter(h=>h.bottom>c.top).map(h=>h.column));let d=0;for(;u.has(d);)d+=1;o.push({...c,column:d,columns:1}),s=Math.max(s,c.bottom)}return o.length>0&&i(),r}function yx(e,t){const n=[],r=[],o=t.filter(s=>s.last>=e[0]&&s.first<=e[e.length-1]).sort((s,i)=>s.first.localeCompare(i.first)||i.last.localeCompare(s.last));for(const s of o){const i=Math.max(0,e.indexOf(s.first<e[0]?e[0]:s.first)),c=s.last>e[e.length-1]?e[e.length-1]:s.last,u=e.indexOf(c);let d=n.findIndex(h=>h.every(m=>m<i||m>u));d===-1&&(d=n.length,n.push([]));for(let h=i;h<=u;h+=1)n[d].push(h);r.push({id:s.id,startIndex:i,span:u-i+1,lane:d})}return r}const vle={comfortable:48,compact:24},yle=Array.from({length:24},(e,t)=>t),Ku=22,RM="cal-1",N3=e=>String(e).padStart(2,"0"),bd=e=>`${N3(Math.floor(e/60)%24)}:${N3(e%60)}`,Sd=(e,t)=>new Intl.DateTimeFormat(void 0,{...t,timeZone:"UTC"}).format(new Date(`${e}T00:00:00Z`));function OM(e){const t=Sd(e.date,{weekday:"long",day:"numeric",month:"long"});return e.allDay?e.endDate===e.date?`${t}, all day`:`${t} to ${Sd(e.endDate,{weekday:"long",day:"numeric",month:"long"})}, all day`:`${t}, ${e.startTime} to ${e.endTime}`}function ble(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(r=>r.type==="timeZoneName")?.value??""}function V$e({days:e,events:t,colorByCalendarId:n,density:r,timeZone:o,now:s,selectedEventId:i="",draft:c,onGesture:u,onSelectEvent:d,onOpenDay:h,touch:m=!1,canMove:g=()=>!1,onMoveEvent:v,tasks:S=[],selectedTaskId:b="",onSelectTask:C,onToggleTask:E,className:k}){const A=vle[r],R=_.useRef(null),N=_.useRef(null),O=_.useRef(null),I=_.useRef(null),M=_.useRef(null),z=_.useRef(void 0),[q,U]=_.useState(null),[L,B]=_.useState(null),[K,le]=_.useState(!1),[$,Q]=_.useState(""),se=_.useId(),de=Ys(s,o),_e=_.useMemo(()=>t.map(H=>({event:H,start:Ys(H.start,o),end:Ys(H.end,o)})),[t,o]),j=_e.filter(H=>!H.event.allDay),Y=_e.filter(H=>H.event.allDay),X=_.useMemo(()=>new Map(_e.map(H=>[H.event.id,H.event])),[_e]),J=_.useMemo(()=>new Map(S.map(H=>[H.calendarTaskId,{task:H,date:H.allDay?H.due.slice(0,10):Ys(H.due,o).date,minute:H.allDay?0:Ys(H.due,o).minute}])),[S,o]),ie=yx(e,[...Y.map(H=>({id:H.event.id,first:H.event.start.slice(0,10),last:NM(H.event)})),...[...J.values()].map(({task:H,date:re})=>({id:H.calendarTaskId,first:re,last:re}))]),ue=c?.range.allDay===!0?yx(e,[{id:"draft",first:c.range.date,last:c.range.endDate}])[0]:void 0,ge=Math.max(1,...ie.map(H=>H.lane+1),ue?1:0),ee=e.join(","),Se=e.includes(de.date)?Math.max(0,de.minute-90):480,Pe=_.useRef(Se);Pe.current=Se,_.useLayoutEffect(()=>{const H=R.current;!H||ee===""||(H.scrollTop=Pe.current/60*A)},[ee,A]);const xe=_.useRef(null),Ge=_.useRef(null),ze=_.useRef(void 0),He=_.useRef(!1),[ot,Oe]=_.useState(null),yn=_.useCallback(()=>{Ge.current=null,clearTimeout(ze.current),Oe(null)},[]),Fe=_.useCallback(()=>{I.current=null,M.current=null,clearTimeout(z.current)},[]);_.useEffect(()=>{const H=re=>{if(re.key==="Escape"){if(Ge.current?.dragging){re.preventDefault(),re.stopImmediatePropagation(),He.current=!0,yn();return}I.current&&(re.preventDefault(),re.stopImmediatePropagation(),Fe(),u({type:"drag-cancel"}))}};return window.addEventListener("keydown",H,!0),()=>window.removeEventListener("keydown",H,!0)},[Fe,yn,u]),_.useEffect(()=>{const H=R.current;if(!H)return;const re=Re=>{(M.current?.phase==="held"||I.current?.dragging||Ge.current?.dragging)&&Re.preventDefault()};return H.addEventListener("touchmove",re,{passive:!1}),()=>H.removeEventListener("touchmove",re)},[]);const zn=H=>{const re=N.current;if(!re)return;const Re=re.getBoundingClientRect(),Ue=Math.floor((H-Re.left)/Re.width*e.length);return e[Math.min(e.length-1,Math.max(0,Ue))]},Jt=H=>{const re=N.current;return re?ole(H-re.getBoundingClientRect().top,A):0},dn=H=>Q(OM(H)),mo=(H,re,Re)=>{if(H.stopPropagation(),H.button!==0||!g(re.id)||!v)return;const Ue=zn(H.clientX);if(!Ue)return;i0(H.currentTarget,H.pointerId);const mt=m&&H.pointerType==="touch";Ge.current={id:re.id,kind:Re,allDay:re.allDay,pointerId:H.pointerId,x:H.clientX,y:H.clientY,startColumn:Ue,start:Ys(re.start,o),end:Ys(re.end,o),first:re.start.slice(0,10),last:NM(re),dragging:!1,press:mt?_M(H.clientX,H.clientY,Date.now()):null,range:null,invalid:!1},mt&&(ze.current=setTimeout(()=>{const gt=Ge.current;gt?.press&&(gt.press=AM(gt.press,Date.now()+1),gt.press.phase==="held"&&(gt.dragging=!0,navigator.vibrate?.(10),gr(gt,gt.x,gt.y)))},O3))},gr=(H,re,Re)=>{const Ue=e.indexOf(zn(re)??H.startColumn)-e.indexOf(H.startColumn),mt=ale(Re-H.y,A);let gt;if(H.allDay){const Lr=H.kind==="move"?cle(H.first,H.last,Ue):{first:H.first,last:ule(H.first,H.last,Ue)};gt={date:Lr.first,endDate:Lr.last,startTime:"",endTime:"",allDay:!0}}else{const Lr=H.kind==="move"?ile(H.start,H.end,Ue,mt):{start:H.start,end:lle(H.start,H.end,mt)};gt={date:Lr.start.date,endDate:Lr.end.date,startTime:bd(Lr.start.minute),endTime:bd(Lr.end.minute),allDay:!1}}const jn=xe.current?.getBoundingClientRect(),zl=jn!==void 0&&(re<jn.left||re>jn.right||Re<jn.top||Re>jn.bottom);H.range=gt,H.invalid=zl,Oe({id:H.id,range:gt,invalid:zl})},kn=H=>{const re=Ge.current;if(!(!re||re.pointerId!==H.pointerId)){if(re.press){if(re.press=kM(re.press,H.clientX,H.clientY),re.press.phase==="scrolled"){yn();return}if(re.press.phase!=="held")return}else if(!re.dragging&&!bM(H.clientX-re.x,H.clientY-re.y))return;re.dragging=!0,gr(re,H.clientX,H.clientY)}},At=H=>{const re=Ge.current;if(!re||re.pointerId!==H.pointerId)return;re.dragging&&(He.current=!0);const{range:Re,invalid:Ue,dragging:mt,id:gt}=re;yn(),!(!mt||!Re||Ue)&&(dn(Re),v?.(gt,Re))},An=H=>{if(H.button!==0)return;const re=zn(H.clientX);if(!re)return;const Re=H.currentTarget;i0(Re,H.pointerId);const Ue=Jt(H.clientY);if(m&&H.pointerType==="touch"){M.current=_M(H.clientX,H.clientY,Date.now()),I.current={kind:"touch",pointerId:H.pointerId,date:re,anchorMinute:Ue,x:H.clientX,y:H.clientY,dragging:!1,range:null,origin:Re},z.current=setTimeout(()=>{if(!M.current||!I.current||(M.current=AM(M.current,Date.now()+1),M.current.phase!=="held"))return;const mt=Gu(re,Ue);I.current.dragging=!0,I.current.range=mt,navigator.vibrate?.(10),u({type:"drag",range:mt})},O3);return}I.current={kind:"timed",pointerId:H.pointerId,date:re,anchorMinute:Ue,x:H.clientX,y:H.clientY,dragging:!1,range:null,origin:Re}},Tr=H=>{if(H.button!==0||m&&H.pointerType==="touch")return;const re=zn(H.clientX);re&&(i0(H.currentTarget,H.pointerId),I.current={kind:"all-day",pointerId:H.pointerId,date:re,anchorMinute:0,x:H.clientX,y:H.clientY,dragging:!1,range:null,origin:H.currentTarget})},or=(H,re)=>{c&&(re.stopPropagation(),i0(re.currentTarget,re.pointerId),I.current={kind:H==="start"?"handle-start":"handle-end",pointerId:re.pointerId,date:c.range.date,anchorMinute:0,x:re.clientX,y:re.clientY,dragging:!0,range:c.range,origin:re.currentTarget})},go=H=>{const re=I.current;if(!re||re.pointerId!==H.pointerId)return;const Re=H.clientX-re.x,Ue=H.clientY-re.y;if(re.kind==="touch"){if(!M.current)return;if(M.current=kM(M.current,H.clientX,H.clientY),M.current.phase==="scrolled"){Fe();return}if(M.current.phase!=="held")return;const gt=TM(Gu(re.date,re.anchorMinute),"end",Ue,A);re.range=gt,u({type:"drag",range:gt});return}if(re.kind==="handle-start"||re.kind==="handle-end"){if(!c)return;const gt=TM(re.range??c.range,re.kind==="handle-start"?"start":"end",Ue,A);u({type:"drag",range:gt});return}if(!re.dragging&&!bM(Re,Ue))return;re.dragging=!0;const mt=re.kind==="all-day"?xM(re.date,zn(H.clientX)??re.date):sle(re.date,re.anchorMinute,Jt(H.clientY));re.range=mt,u({type:"drag",range:mt})},Gr=H=>{const re=I.current;if(!re||re.pointerId!==H.pointerId)return;if(re.kind==="handle-start"||re.kind==="handle-end"){const Ue=c?.range;Fe(),Ue&&(dn(Ue),u({type:"drag-end",range:Ue}));return}if(re.kind==="touch"){const Ue=re.range,mt=M.current?.phase==="pending";if(Fe(),Ue){dn(Ue),u({type:"drag-end",range:Ue});return}mt&&u({type:"click",range:Gu(re.date,re.anchorMinute),origin:re.origin});return}if(Fe(),re.dragging&&re.range){dn(re.range),u({type:"drag-end",range:re.range});return}const Re=re.kind==="all-day"?xM(re.date,re.date):Gu(re.date,re.anchorMinute);u({type:"click",range:Re,origin:re.origin})},fa=H=>{const re=I.current;if(!re||re.pointerId!==H.pointerId)return;const Re=re.dragging;Fe(),Re&&u({type:"drag-cancel"})},vi=H=>{if(H.target!==H.currentTarget)return;le(!0);const re=q??CM(e,de.date,de.minute);if(H.key==="Enter"){H.preventDefault();const Ue=L?EM(L,re):Gu(re.date,re.minute),mt=document.getElementById(se);B(null),dn(Ue),u({type:"keyboard",range:Ue,origin:mt});return}if(H.key==="Escape"&&L){H.preventDefault(),H.stopPropagation(),B(null),u({type:"drag-cancel"});return}const Re=fle(re,H.key,e);if(Re){if(H.preventDefault(),U(Re),Uo(Re.minute),H.shiftKey){const Ue=L??re;B(Ue);const mt=EM(Ue,Re);dn(mt),u({type:"drag",range:mt});return}L&&(B(null),u({type:"drag-cancel"}))}},Uo=H=>{const re=R.current;if(!re)return;const Re=H/60*A;Re<re.scrollTop?re.scrollTop=Re:Re+A>re.scrollTop+re.clientHeight&&(re.scrollTop=Re+A-re.clientHeight)},Tn=q&&e.includes(q.date)?q:CM(e,de.date,de.minute),sr=(H,re,Re)=>{const Ue=n[H.calendarId]??RM,mt=H.allDay||r==="compact"&&!Re?"":bd(Ys(H.start,o).minute),gt=v!==void 0&&g(H.id);return x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button","data-event-id":H.id,onPointerDown:jn=>mo(jn,H,"move"),onPointerMove:kn,onPointerUp:At,onPointerCancel:yn,onClick:jn=>{if(He.current){He.current=!1;return}d(H.id,jn.currentTarget)},"aria-label":`${H.title}, ${Sle(H,o)}`,className:ke(iM({color:Ue,layout:re,density:"compact",rsvp:H.myRsvp,status:H.status,selected:H.id===i,stacked:!1}),"h-full w-full cursor-pointer text-left outline-none focus-visible:ring-2 focus-visible:ring-ring",m&&"touch-pan-y",ot?.id===H.id&&"opacity-40"),children:x.jsx(pie,{title:H.title===""?"(No title)":H.title,timeText:mt,layout:re,rsvp:H.myRsvp,hasThread:H.threadId!=="",isRecurring:H.recurrenceRule!=="",zoneCertainty:H.zoneCertainty})}),gt&&x.jsx("span",{"aria-hidden":"true","data-resize-handle":"",onPointerDown:jn=>mo(jn,H,"resize"),onPointerMove:kn,onPointerUp:At,onPointerCancel:yn,className:ke("absolute",re==="column"?"inset-x-0 bottom-0 h-1.5 cursor-ns-resize":"inset-y-0 right-0 w-1.5 cursor-ew-resize"),style:{touchAction:"none"}})]})},Un=(H,re)=>{const Re=H.title===""?"(No title)":H.title,Ue=n[H.calendarId]??RM,mt=re===void 0?"":bd(re);return x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button","data-task-id":H.calendarTaskId,onPointerDown:gt=>gt.stopPropagation(),onClick:()=>C?.(H.calendarTaskId),"aria-label":`Task: ${Re}${mt===""?"":`, due ${mt}`}`,className:ke(iM({color:Ue,layout:"row",density:"compact",rsvp:"accepted",status:"confirmed",selected:H.calendarTaskId===b,stacked:!1}),"h-full w-full cursor-pointer truncate pl-5 text-left outline-none focus-visible:ring-2 focus-visible:ring-ring",H.completed&&"line-through opacity-60"),children:mt===""?Re:`${mt} ${Re}`}),x.jsx("input",{type:"checkbox","aria-label":Re,checked:H.completed,onPointerDown:gt=>gt.stopPropagation(),onChange:()=>E?.(H.calendarTaskId),className:"absolute top-1 left-1.5 z-10 size-3.5 accent-current"})]})},yi=H=>H.allDay?Sd(H.date,{weekday:"short",day:"numeric"}):`${Sd(H.date,{weekday:"short",day:"numeric"})} · ${H.startTime} – ${H.endTime}`,Dl=(H,re)=>x.jsx("div",{"data-lifted-event":"",className:ke("pointer-events-none absolute inset-0 z-30 flex flex-col overflow-hidden rounded-sm border-2 border-accent bg-accent-soft px-1.5 py-0.5 text-xs text-fg shadow-lg",re&&"border-dashed opacity-60"),children:x.jsx("span",{className:"truncate font-medium tabular-nums",children:yi(H)})}),Ll=(H,re)=>{if(!c)return null;const Re=ZF("cal-1");return x.jsx("div",{"data-draft-block":"",className:ke("pointer-events-auto absolute z-20 flex flex-col overflow-hidden rounded-sm px-1.5 py-0.5 text-xs shadow-md",c.tone==="draft"?ke("border-2 border-dashed bg-surface/90",Re.border,Re.text):"bg-accent text-accent-fg",re),children:H})},Ns=c?.title===""?"New event":c?.title??"",as=H=>x.jsx("span",{"data-handle":H,"aria-hidden":"true",onPointerDown:re=>or(H,re),onPointerMove:go,onPointerUp:Gr,onPointerCancel:fa,className:ke("absolute inset-x-0 cursor-ns-resize",H==="start"?"top-0":"bottom-0",m?"h-6":"h-2"),style:{touchAction:"none"},children:m&&x.jsx("span",{className:ke("absolute size-3 rounded-full border-2 border-accent bg-surface",H==="start"?"top-0 left-3 -translate-y-1/2":"right-3 bottom-0 translate-y-1/2")})}),Ms=c?x.jsxs(x.Fragment,{children:[c.tone==="draft"&&x.jsx("span",{className:"text-2xs font-semibold uppercase tracking-wider",children:"Draft"}),x.jsxs("span",{className:"flex items-center gap-1 truncate font-medium",children:[c.warning&&x.jsx(Sl,{className:"size-3.5 shrink-0","aria-label":"Not saved"}),Ns]}),x.jsxs("span",{className:"tabular-nums opacity-90",children:[c.range.startTime," – ",c.range.endTime]}),c.handles&&x.jsxs(x.Fragment,{children:[as("start"),as("end")]})]}):null;return x.jsxs("div",{ref:xe,"data-testid":"calendar-grid",className:ke("flex h-full min-h-0 flex-col bg-surface text-fg select-none",k),children:[x.jsxs("div",{className:"flex shrink-0 border-b border-line",children:[x.jsx("div",{className:"flex w-14 shrink-0 items-end justify-end pr-2 pb-1 text-2xs text-fg-subtle",children:ble(o,s)}),x.jsx("div",{className:"grid flex-1",style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`},children:e.map(H=>{const re=H===de.date;return x.jsxs("div",{className:"flex flex-col items-center gap-0.5 border-l border-line py-1",children:[x.jsx("span",{className:ke("text-2xs font-medium uppercase tracking-wider",re?"text-accent":"text-fg-subtle"),children:Sd(H,{weekday:"short"})}),x.jsx("button",{type:"button",onClick:()=>h?.(H),"aria-label":Sd(H,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),"aria-current":re?"date":void 0,className:ke("flex size-9 items-center justify-center rounded-full text-xl tabular-nums outline-none focus-visible:ring-2 focus-visible:ring-ring",re?"bg-accent text-accent-fg":"text-fg hover:bg-surface-sunken"),children:Number(H.slice(8))})]},H)})})]}),x.jsxs("div",{className:"flex shrink-0 border-b border-line-strong",children:[x.jsx("div",{className:"flex w-14 shrink-0 items-start justify-end pt-1 pr-2 text-2xs text-fg-subtle",children:"All day"}),x.jsxs("div",{ref:O,"data-all-day-row":"",onPointerDown:Tr,onPointerMove:go,onPointerUp:Gr,onPointerCancel:fa,className:"relative flex-1",style:{height:ge*Ku+6},children:[x.jsx("div",{className:"pointer-events-none absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`},children:e.map(H=>x.jsx("div",{className:"border-l border-line"},H))}),ie.map(H=>{const re=X.get(H.id),Re=J.get(H.id);return!re&&!Re?null:x.jsx("div",{className:"absolute px-0.5",style:{left:`${H.startIndex/e.length*100}%`,width:`${H.span/e.length*100}%`,top:2+H.lane*Ku,height:Ku-2},children:re?sr(re,"row",!1):Re&&Un(Re.task,Re.task.allDay?void 0:Re.minute)},H.id)}),ot?.range.allDay&&(()=>{const H=yx(e,[{id:"lifted",first:ot.range.date,last:ot.range.endDate}])[0];return H?x.jsx("div",{className:"absolute px-0.5",style:{left:`${H.startIndex/e.length*100}%`,width:`${H.span/e.length*100}%`,top:2,height:Ku-2},children:Dl(ot.range,ot.invalid)}):null})(),ue&&x.jsx("div",{className:"absolute px-0.5",style:{left:`${ue.startIndex/e.length*100}%`,width:`${ue.span/e.length*100}%`,top:2+(ge-1)*Ku,height:Ku-2},children:Ll(x.jsx("span",{className:"truncate font-medium",children:Ns}),"inset-0")})]})]}),x.jsx("div",{ref:R,role:"grid","aria-label":"Time grid","aria-activedescendant":K?se:void 0,tabIndex:0,onKeyDown:vi,onFocus:H=>{H.target===H.currentTarget&&H.currentTarget.matches(":focus-visible")&&le(!0)},onBlur:()=>le(!1),className:"relative min-h-0 flex-1 overflow-y-auto outline-none",children:x.jsxs("div",{className:"flex",style:{height:24*A},children:[x.jsx("div",{className:"relative w-14 shrink-0","aria-hidden":"true",children:yle.slice(1).map(H=>x.jsxs("span",{className:"absolute right-2 -translate-y-1/2 text-2xs tabular-nums text-fg-subtle",style:{top:H*A},children:[N3(H),":00"]},H))}),x.jsx("div",{ref:N,"data-time-columns":"",onPointerDown:An,onPointerMove:go,onPointerUp:Gr,onPointerCancel:fa,className:"relative grid flex-1",style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`,touchAction:m?"pan-y":void 0,backgroundImage:`repeating-linear-gradient(to bottom, var(--color-line) 0 1px, transparent 1px ${A}px)`},children:e.map(H=>{const re=gle(H,j.map(Ue=>({id:Ue.event.id,start:Ue.start,end:Ue.end}))),Re=c&&!c.range.allDay&&c.range.date===H?R3(c.range):void 0;return x.jsxs("div",{"data-date":H,className:"relative border-l border-line",children:[re.map(Ue=>{const mt=X.get(Ue.id);if(!mt)return null;const gt=(Ue.bottom-Ue.top)/60*A;return x.jsx("div",{className:"absolute px-px",style:{top:Ue.top/60*A,height:Math.max(gt,12),left:`${Ue.column/Ue.columns*100}%`,width:`${100/Ue.columns}%`},children:sr(mt,"column",gt>=36)},Ue.id)}),H===de.date&&x.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 left-0 z-10 border-t-2 border-danger",style:{top:de.minute/60*A},children:x.jsx("span",{className:"absolute -top-[5px] -left-1 size-2 rounded-full bg-danger"})}),K&&Tn.date===H&&x.jsx("div",{role:"row",tabIndex:-1,className:"pointer-events-none absolute right-0 left-0 z-30",style:{top:Tn.minute/60*A,height:A/4},children:x.jsx("div",{id:se,role:"gridcell",tabIndex:-1,"aria-label":OM(Gu(Tn.date,Tn.minute)).replace(/ to .*/,""),className:"h-full rounded-xs ring-2 ring-ring"})}),ot&&!ot.range.allDay&&ot.range.date===H&&(()=>{const Ue=R3(ot.range);return x.jsx("div",{className:"absolute right-1 left-0",style:{top:Ue.start/60*A,height:Math.max((Ue.end-Ue.start)/60*A,12)},children:Dl(ot.range,ot.invalid)})})(),Re&&x.jsx("div",{className:"absolute right-1 left-0",style:{top:Re.start/60*A,height:(Re.end-Re.start)/60*A},children:Ll(Ms,"inset-0")})]},H)})})]})}),x.jsx("div",{"aria-live":"polite",className:"sr-only",children:$})]})}function i0(e,t){try{e.setPointerCapture(t)}catch{}}function NM(e){const t=e.end.slice(0,10);if(!e.allDay)return t;const[n,r,o]=t.split("-").map(Number),i=new Date(Date.UTC(n,r-1,o-1)).toISOString().slice(0,10);return i<e.start.slice(0,10)?e.start.slice(0,10):i}function Sle(e,t){if(e.allDay)return"all day";const n=Ys(e.start,t),r=Ys(e.end,t);return`${bd(n.minute)} to ${bd(r.minute)}`}const vT=e=>{const[t,n,r]=e.split("-").map(Number);return new Date(Date.UTC(t,n-1,r))},k$=e=>e.toISOString().slice(0,10);function A$(e){const t=vT(e);return t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+6)%7),k$(t)}function M3(e,t){const n=vT(e);return Array.from({length:t},(r,o)=>{const s=new Date(n);return s.setUTCDate(n.getUTCDate()+o),k$(s)})}const Zi=(e,t,n)=>new Intl.DateTimeFormat(n,{...t,timeZone:"UTC"}).format(vT(e));function G$e(e,t,n){if(e==="year")return Zi(t,{year:"numeric"},n);if(e==="day")return Zi(t,{weekday:"long",day:"numeric",month:"long",year:"numeric"},n);if(e!=="week")return Zi(t,{month:"long",year:"numeric"},n);const[r,,,,,,o]=M3(A$(t),7);return r.slice(0,7)===o.slice(0,7)?Zi(r,{month:"long",year:"numeric"},n):r.slice(0,4)===o.slice(0,4)?`${Zi(r,{month:"short"},n)} – ${Zi(o,{month:"short",year:"numeric"},n)}`:`${Zi(r,{month:"short",year:"numeric"},n)} – ${Zi(o,{month:"short",year:"numeric"},n)}`}const MM=864e5,wle=e=>{const[t,n,r]=e.split("-").map(Number);return new Date(Date.UTC(t,n-1,r))};function xle(e){const t=wle(e),n=(t.getUTCDay()+6)%7,r=new Date(t.getTime()+(3-n)*MM),o=Date.UTC(r.getUTCFullYear(),0,1);return Math.floor((r.getTime()-o)/MM/7)+1}function P3(e,t){const[n,r]=e.split("-").map(Number),o=n*12+(r-1)+t,s=Math.floor(o/12),i=o%12+1;return`${s}-${String(i).padStart(2,"0")}-01`}function Cle({month:e,today:t,rangeStart:n,rangeEnd:r}){const o=`${e.slice(0,7)}-01`,s=P3(o,1),i=[];let c=A$(o);for(;c<s;){const u=M3(c,7).map(d=>({date:d,day:Number(d.slice(8)),inMonth:d.slice(0,7)===o.slice(0,7),isToday:d===t,inRange:n!==""&&d>=n&&d<=r}));i.push({weekNumber:xle(c),days:u}),c=M3(c,8)[7]}return i}const Ele=["M","T","W","T","F","S","S"],PM=e=>new Intl.DateTimeFormat(void 0,{weekday:"long",day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(`${e}T00:00:00Z`)),_le=e=>new Intl.DateTimeFormat(void 0,{month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(`${e.slice(0,7)}-01T00:00:00Z`));function kle({month:e,today:t,rangeStart:n="",rangeEnd:r="",onPickDay:o,onShowMonth:s,counts:i,className:c}){const u=Cle({month:e,today:t,rangeStart:n,rangeEnd:r}),d=_le(e);return x.jsxs("section",{"aria-label":d,className:ke("select-none",c),children:[x.jsxs("div",{className:"flex items-center justify-between px-1 pb-1",children:[x.jsx("h2",{className:"text-sm font-medium text-fg",children:d}),s&&x.jsxs("div",{className:"flex",children:[x.jsx("button",{type:"button","aria-label":"Previous month",onClick:()=>s(P3(e,-1)),className:"flex size-7 items-center justify-center rounded-full text-fg-muted outline-none hover:bg-surface-sunken focus-visible:ring-2 focus-visible:ring-ring",children:x.jsx(Ise,{className:"size-4"})}),x.jsx("button",{type:"button","aria-label":"Next month",onClick:()=>s(P3(e,1)),className:"flex size-7 items-center justify-center rounded-full text-fg-muted outline-none hover:bg-surface-sunken focus-visible:ring-2 focus-visible:ring-ring",children:x.jsx(LF,{className:"size-4"})})]})]}),x.jsxs("table",{className:"w-full border-collapse text-center text-2xs",children:[x.jsx("thead",{children:x.jsxs("tr",{className:"text-fg-subtle",children:[x.jsx("th",{scope:"col",className:"w-6 font-normal",children:x.jsx("span",{className:"sr-only",children:"Week"})}),Ele.map((h,m)=>x.jsx("th",{scope:"col",className:"h-6 font-normal",children:h},m))]})}),x.jsx("tbody",{children:u.map(h=>x.jsxs("tr",{children:[x.jsx("th",{scope:"row",className:"font-normal text-fg-subtle tabular-nums",children:h.weekNumber}),h.days.map(m=>{const g=i?.[m.date]??0,v=i===void 0?PM(m.date):`${PM(m.date)}, ${g===1?"1 event":`${g} events`}`;return x.jsx("td",{className:ke("p-0",m.inRange&&"bg-accent-soft"),children:x.jsxs("button",{type:"button","aria-label":v,"aria-current":m.isToday?"date":void 0,"data-date":m.date,onClick:()=>o(m.date),className:ke("relative mx-auto flex size-7 items-center justify-center rounded-full tabular-nums outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring",m.isToday?"bg-accent font-semibold text-accent-fg":"hover:bg-surface-sunken",!m.isToday&&!m.inMonth&&"text-fg-subtle"),children:[m.day,g>0&&!m.isToday&&x.jsx("span",{"aria-hidden":"true",className:"absolute bottom-0.5 size-1 rounded-full bg-accent"})]})},m.date)})]},h.days[0].date))})]})]})}const Ale=Array.from({length:12},(e,t)=>String(t+1).padStart(2,"0"));function K$e({date:e,today:t,counts:n,onPickDay:r,className:o}){const s=e.slice(0,4);return x.jsx("div",{"data-calendar-year":"",className:ke("grid h-full content-start gap-x-8 gap-y-6 overflow-y-auto p-6 [grid-template-columns:repeat(auto-fill,minmax(15rem,1fr))]",o),children:Ale.map(i=>x.jsx(kle,{month:`${s}-${i}-01`,today:t,onPickDay:r,counts:n},i))})}const DM={type:"none"};function Tle(e){if(!e.open||e.count<=0)return DM;if(e.key==="ArrowDown"){const n=e.activeIndex+1;return{type:"move",index:n>=e.count?0:n}}if(e.key==="ArrowUp"){const n=e.activeIndex-1;return{type:"move",index:n<0?e.count-1:n}}return e.key==="Escape"?{type:"dismiss"}:(e.key==="Enter"||(e.acceptKeys??[]).includes(e.key))&&e.activeIndex>=0&&e.activeIndex<e.count?{type:"accept",index:e.activeIndex}:DM}function Ile({count:e,onAccept:t,acceptKeys:n}){const[r,o]=_.useState(!1),[s,i]=_.useState(-1),c=_.useId().replace(/[^a-zA-Z0-9_-]/g,""),u=`suggest-${c}`,d=_.useCallback(S=>`suggest-${c}-option-${S}`,[c]);_.useEffect(()=>{i(-1),o(!1)},[e]);const h=e>0&&!r,m=_.useRef({open:h,count:e,activeIndex:s,acceptKeys:n,onAccept:t});m.current={open:h,count:e,activeIndex:s,acceptKeys:n,onAccept:t};const g=_.useCallback(S=>{const b=m.current,C=Tle({key:S.key,open:b.open,count:b.count,activeIndex:b.activeIndex,acceptKeys:b.acceptKeys});return C.type==="none"?!1:(S.preventDefault(),C.type==="move"&&i(C.index),C.type==="dismiss"&&o(!0),C.type==="accept"&&b.onAccept(C.index),!0)},[]),v=_.useMemo(()=>({role:"combobox","aria-expanded":h,"aria-controls":u,"aria-autocomplete":"list",...s>=0?{"aria-activedescendant":d(s)}:{},...h?{"data-escape-owner":""}:{}}),[h,u,s,d]);return{open:h,activeIndex:s,setActiveIndex:i,dismiss:_.useCallback(()=>o(!0),[]),reopen:_.useCallback(()=>o(!1),[]),handleKeyDown:g,listId:u,optionId:d,comboboxProps:v}}function Rle({id:e,suggestions:t,activeIndex:n,optionId:r,onPick:o,onHighlight:s,label:i,className:c}){return t.length===0?null:x.jsx("div",{id:e,role:"listbox","aria-label":i,className:ke("max-h-44 overflow-y-auto rounded-md border border-line bg-surface py-1 shadow-sm",c),children:t.map((u,d)=>x.jsxs("div",{id:r(d),role:"option",tabIndex:-1,"aria-selected":d===n,className:ke("flex cursor-pointer items-baseline gap-2 px-3 py-2 text-sm text-fg",d===n&&"bg-accent-2-soft"),onMouseDown:h=>{h.preventDefault(),o(u)},onMouseEnter:()=>s(d),children:[x.jsx("span",{className:"min-w-0 flex-1 truncate",children:u.label??u.value}),u.hint&&x.jsx("span",{className:"shrink-0 truncate text-2xs text-fg-subtle",children:u.hint}),u.source&&x.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:u.source})]},u.value))})}var LM={en:1199414,"en-GB":1199758,nl:3180464},zM=["en","en-GB","nl"];const T$=()=>typeof zM>"u"?[]:zM,Y$e=()=>{const e="/spellcheck/de99b00dc30674fd/";return typeof document>"u"?e:new URL(e,document.baseURI).href},Z$e=e=>typeof LM>"u"?0:LM[e]??0,X$e=(e,t=T$())=>{const n=e.toLowerCase(),r=t.find(s=>s.toLowerCase()===n);if(r)return r;const o=n.split("-")[0];return t.find(s=>s.toLowerCase().split("-")[0]===o)??null},Ole=[{tag:"ar",detectionCode:"arb"},{tag:"az",detectionCode:"azj"},{tag:"be",detectionCode:"bel"},{tag:"bg",detectionCode:"bul"},{tag:"bs",detectionCode:"bos"},{tag:"cs",detectionCode:"ces"},{tag:"de",detectionCode:"deu"},{tag:"en",detectionCode:"eng"},{tag:"es",detectionCode:"spa"},{tag:"fa",detectionCode:"pes"},{tag:"fr",detectionCode:"fra"},{tag:"ha",detectionCode:"hau"},{tag:"hi",detectionCode:"hin"},{tag:"hr",detectionCode:"hrv"},{tag:"hu",detectionCode:"hun"},{tag:"id",detectionCode:"ind"},{tag:"ig",detectionCode:"ibo"},{tag:"it",detectionCode:"ita"},{tag:"jv",detectionCode:"jav"},{tag:"kk",detectionCode:"kaz"},{tag:"mr",detectionCode:"mar"},{tag:"ms",detectionCode:"zlm"},{tag:"ne",detectionCode:"npi"},{tag:"nl",detectionCode:"nld"},{tag:"pl",detectionCode:"pol"},{tag:"ps",detectionCode:"pbu"},{tag:"pt",detectionCode:"por"},{tag:"ro",detectionCode:"ron"},{tag:"ru",detectionCode:"rus"},{tag:"so",detectionCode:"som"},{tag:"sr",detectionCode:"srp"},{tag:"su",detectionCode:"sun"},{tag:"sv",detectionCode:"swe"},{tag:"sw",detectionCode:"swh"},{tag:"tl",detectionCode:"tgl"},{tag:"tr",detectionCode:"tur"},{tag:"uk",detectionCode:"ukr"},{tag:"ur",detectionCode:"urd"},{tag:"vi",detectionCode:"vie"},{tag:"yo",detectionCode:"yor"},{tag:"zu",detectionCode:"zul"}],yT=e=>(e.split("-")[0]??"").toLowerCase(),Nle=new Map(Ole.map(e=>[e.tag,e])),Mle=e=>Nle.get(yT(e))?.detectionCode??null,Ple=/^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i,Q$e=e=>yT(e).toUpperCase(),J$e=e=>{if(!Ple.test(e))return e;const n=new Intl.DisplayNames([e],{type:"language",fallback:"none"}).of(e);return n?n.charAt(0).toLocaleUpperCase(e)+n.slice(1):e},eBe=(e,t=T$())=>{const n=[...e,...t].filter(o=>Mle(o)!==null),r=[...new Set(n.map(yT))];return r.includes("en")||r.push("en"),r},tBe=e=>/iPhone|iPad|iPod/.test(e)?"On iPhone and iPad the keyboard decides this. Add the language under Settings, then General, then Keyboard.":/Edg\//.test(e)?"Edge checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Firefox\//.test(e)?"Firefox uses this setting. Right-click the message to add a dictionary for it.":/Chrome\/|Chromium\//.test(e)?"Chrome checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Safari\//.test(e)?"macOS decides this under Keyboard, then Text Input, then Spelling. Automatic by Language covers every language enabled there.":"Your browser decides which dictionaries it checks. Add this language in its own language settings to have it spellchecked.",I$=e=>new DOMParser().parseFromString(e,"text/html"),R$=e=>{const t=[...e.children];if(t.length!==1)return null;const n=t[0];return n?[...e.childNodes].some(o=>o!==n&&(o.textContent??"").trim()!=="")?null:n:null},nBe=(e,t)=>{if(e==="")return"";const n=I$(e),r=R$(n.body);if(r?.tagName==="DIV"&&r.hasAttribute("lang"))return r.setAttribute("lang",t),n.body.innerHTML;const o=n.createElement("div");for(o.setAttribute("lang",t);n.body.firstChild;)o.append(n.body.firstChild);return n.body.append(o),n.body.innerHTML},rBe=e=>{if(e==="")return{html:e,language:null};const t=I$(e),n=R$(t.body);return n?.tagName!=="DIV"||!n.hasAttribute("lang")?{html:e,language:null}:{html:n.innerHTML,language:n.getAttribute("lang")}},Dle={error:{container:"border-danger/50 bg-danger-soft",icon:"text-danger",title:"text-danger"},warning:{container:"border-warning/50 bg-warning-soft",icon:"text-warning",title:"text-warning"},info:{container:"border-accent-2/50 bg-accent-2-soft",icon:"text-accent-2",title:"text-accent-2"}},Lle={error:zF,warning:Sl,info:jF},zle={error:"Error",warning:"Warning",info:"Information"},Ule=({id:e,severity:t,title:n,detail:r,action:o,onDismiss:s})=>{const i=Dle[t],c=Lle[t];return x.jsxs("div",{role:t==="error"?"alert":"status","aria-live":t==="error"?"assertive":"polite",className:ke("pointer-events-auto flex items-start gap-3 rounded-md border bg-canvas px-3 py-2 shadow-lg",i.container),children:[x.jsx(c,{className:ke("size-5 shrink-0 mt-0.5",i.icon),"aria-hidden":"true"}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:ke("text-sm font-medium",i.title),children:n}),r&&x.jsx("p",{className:"mt-0.5 text-xs text-fg-muted break-words",children:r}),o&&x.jsx("a",{href:o.href,target:"_blank",rel:"noopener noreferrer",className:"mt-1 inline-block text-xs font-medium text-accent-2 underline underline-offset-2",children:o.label})]}),x.jsx("button",{type:"button",onClick:()=>s(e),className:"shrink-0 rounded-md p-1 text-fg-muted hover:bg-surface-raised hover:text-fg transition-colors","aria-label":`Dismiss ${zle[t].toLowerCase()}`,children:x.jsx(ti,{className:"size-4","aria-hidden":"true"})})]})},jle=({errors:e,onDismiss:t})=>e.length===0?null:x.jsx("section",{"aria-label":"Notifications",className:"pointer-events-none fixed inset-x-0 top-0 z-[60] flex flex-col items-center gap-2 px-4 pt-[calc(1rem+env(safe-area-inset-top,0px))] sm:items-end sm:pr-6",children:x.jsx("div",{className:"flex w-full max-w-md flex-col gap-2",children:e.map(n=>x.jsx(Ule,{id:n.id,severity:n.severity,title:n.title,detail:n.detail,action:n.action,onDismiss:t},n.id))})});function bT({className:e,children:t,...n}){return x.jsx("label",{className:ke("mb-1 block text-xs font-medium text-fg-muted",e),...n,children:t})}const Fle="Matches on what the messages say about themselves — sender, subject, list. No reading involved.",$le={From:"From",Subject:"Subject",HasWords:"Has the words",ListId:"List",FromDomain:"Domain"};function Pd(e){return $le[e]}const Ble={ListId:"The mailing list's List-Id header, matched exactly. New mail is matched as it arrives — mail delivered before this was set up may not carry it yet.",FromDomain:"The sender's registrable domain — matches anyone at it, subdomains included (a look-alike like example.com.evil.test never matches)."};function Hle(e){return Ble[e]}function qle(e){return e==="HasWords"}function O$(e){return e.clauses.length>0}function N$(e){return e.clauses.filter(t=>qle(t.field))}const Wle=["From","Subject","HasWords","ListId","FromDomain"],Vle={all:"Match all",any:"Match any"};function tv(e){return Vle[e]}function ST(e){return e==="all"?"and":"or"}function M$(e){if(e.status==="loading")return"Counting matches…";if(e.status==="error")return e.reason;if(e.count===0)return"No mail matches yet";const t=e.count===1?"message":"messages",n=`${e.count} ${t} match`;return e.stale?`${n} — recounting`:n}const Gle={once:"Just once",standing:"Keep doing this",until:"Until a date"};function x1(e){return Gle[e]}function P$(e){return e==="once"?"Apply now":e==="standing"?"Save rule":"Save until then"}const Ro={noMatch:"Add a clause so the rule has something to match.",bodyTextOnce:"Applying once can't read message bodies. Save this as a rule instead, or drop the “has the words” clause.",noAction:"Pick a folder to move into, or a label to apply.",unnamed:"Name this rule so you can find it later.",noUntilDate:"Pick the date this rule should stop on.",counting:"Counting matches — save once the count settles.",recounting:"Recounting matches — save once the count settles."},oBe="Can't count matches — “has the words” reads message bodies, which only a saved rule does.";function D$(e){if(e.status==="loading")return Ro.counting;if(e.status==="ready"&&e.stale)return Ro.recounting}function Kle(e,t){return O$(e)?e.scope==="once"&&N$(e).length>0?Ro.bodyTextOnce:!e.moveMailboxId&&!e.labelId?Ro.noAction:(e.scope==="standing"||e.scope==="until")&&(e.name??"").trim()===""?Ro.unnamed:e.scope==="until"&&!e.until?Ro.noUntilDate:D$(t):Ro.noMatch}const L$="inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs";function z$({clause:e,onEdit:t,onRemove:n}){return x.jsxs("span",{className:ke(L$,e.derived?"border-dashed border-line-strong bg-surface-sunken":"border-line bg-surface"),children:[x.jsxs("button",{type:"button",onClick:t,"aria-label":`Edit ${Pd(e.field)} clause`,className:"flex items-center gap-1 text-left",children:[x.jsx("span",{className:"font-medium text-fg-muted",children:Pd(e.field)}),x.jsx("span",{className:"text-fg",children:e.value})]}),e.derived&&x.jsx("span",{className:"text-2xs text-fg-subtle",children:"from sender"}),n&&x.jsx("button",{type:"button",onClick:n,"aria-label":`Remove ${Pd(e.field)} clause`,className:"flex size-4 items-center justify-center rounded-full text-fg-subtle hover:bg-surface-sunken hover:text-fg-muted",children:x.jsx(ti,{className:"size-3"})})]})}function U$({label:e,onClick:t}){return x.jsxs("button",{type:"button",onClick:t,className:ke(L$,"border-dashed border-line-strong text-fg-muted hover:border-accent-2 hover:text-accent-2"),children:[x.jsx(Bse,{className:"size-3","aria-hidden":"true"}),e]})}function j$({draft:e,mode:t,fields:n=Wle,suggestions:r=[],onChangeField:o,onChangeValue:s,onSubmit:i,onCancel:c}){const u=Hle(e.field),d=Ile({count:r.length,onAccept:h=>s?.(r[h].value)});return x.jsxs("div",{className:"space-y-1.5 rounded-lg border border-accent-2 bg-surface p-2",children:[x.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[x.jsx(x$,{"aria-label":"Clause field",value:e.field,onChange:h=>o?.(h.target.value),className:"h-8 w-32 shrink-0",children:n.map(h=>x.jsx("option",{value:h,children:Pd(h)},h))}),x.jsx(As,{"aria-label":"Clause value",value:e.value,placeholder:"value…",autoComplete:"off",onChange:h=>{d.reopen(),s?.(h.target.value)},onKeyDown:h=>{d.handleKeyDown(h)||h.key==="Enter"&&i?.()},className:"h-8 min-w-40 flex-1",...d.comboboxProps}),x.jsx(Bt,{variant:"primary",size:"sm",onClick:i,disabled:e.value.trim()==="",className:"shrink-0",children:t==="add"?"Add":"Save"}),x.jsx(Bt,{variant:"ghost",size:"sm",onClick:c,"aria-label":"Cancel clause edit",icon:x.jsx(ti,{className:"size-4"}),className:"shrink-0 px-2"})]}),d.open&&x.jsx(Rle,{id:d.listId,suggestions:r,activeIndex:d.activeIndex,optionId:d.optionId,onPick:h=>{s?.(h.value),d.dismiss()},onHighlight:d.setActiveIndex,label:`${Pd(e.field)} suggestions`}),u&&x.jsx("p",{className:"px-0.5 text-2xs text-fg-subtle",children:u})]})}function Yle({preview:e}){const t=M$(e);if(e.status==="loading")return x.jsxs("p",{className:"flex items-center gap-2 text-xs text-fg-muted","aria-live":"polite",children:[x.jsx(Op,{className:"size-3.5 animate-spin","aria-hidden":"true"}),t]});if(e.status==="error")return x.jsxs("p",{className:"flex items-center gap-2 text-xs text-danger",role:"alert",children:[x.jsx(Sl,{className:"size-3.5 shrink-0","aria-hidden":"true"}),t]});const n=e.count===0;return x.jsxs("p",{className:ke("flex items-center gap-2 text-xs",e.stale?"text-fg-subtle":n?"text-fg-muted":"font-medium text-fg"),"aria-live":"polite",children:[e.stale&&x.jsx(Op,{className:"size-3.5 animate-spin","aria-hidden":"true"}),t]})}const Ry=(e,t)=>t.length===0?[e]:e.split(t),Zle=(e,t)=>{const n=Ry(e,t);return n[n.length-1]||e},Pp=(e,t)=>{if(t.length===0)return"";const n=e.lastIndexOf(t);return n===-1?"":e.slice(0,n)},F$=(e,t)=>Ry(e,t).length-1,Dp=(e,t)=>{const n=[];let r=e,o=Pp(r,t);for(;o&&o.length<r.length;)n.push(o),r=o,o=Pp(r,t);return n},Xle=(e,t)=>{const n=new Set(e.map(i=>i.path)),r=new Set,o=[],s=i=>{if(!r.has(i.path)){r.add(i.path),o.push(i);for(const c of e)Pp(c.path,t)===i.path&&s(c)}};for(const i of e){const c=Pp(i.path,t);c&&n.has(c)||s(i)}return o},$$=(e,t)=>e.label.toLowerCase().includes(t)||e.path.toLowerCase().includes(t),Qle=(e,t,n)=>{const r=new Set;if(!t)return r;for(const o of e)if($$(o,t))for(const s of Dp(o.path,n))r.add(s);return r},Jle=(e,t,n,r=new Set)=>{const o=(c,u)=>({folder:c,depth:F$(c.path,n),context:u,expanded:r.has(c.path)});if(!t)return e.map(c=>o(c,!1));const s=new Set;for(const c of e)$$(c,t)&&s.add(c.path);const i=new Set(s);for(const c of s)for(const u of Dp(c,n))i.add(u);return e.filter(c=>i.has(c.path)).map(c=>o(c,!s.has(c.path)))},ece=(e,t,n)=>{const r=new Set(e.map(o=>o.path));return e.filter(o=>Dp(o.path,n).every(s=>!r.has(s)||t.has(s))).map(o=>({folder:o,depth:F$(o.path,n),context:!1,expanded:t.has(o.path)}))},tce=(e,t)=>{if(t.length===0)return e.map((s,i)=>({kind:"folder",row:s,index:i}));const n=[],r=[],o=s=>{for(;r.length>0;){const i=r[r.length-1];if(!i||s?.startsWith(`${i.folder.path}${t}`))break;r.pop(),n.push({kind:"create",parent:i.folder,depth:i.depth+1})}};return e.forEach((s,i)=>{o(s.folder.path),n.push({kind:"folder",row:s,index:i}),s.expanded&&r.push(s)}),o(null),n},nce=e=>typeof e=="object"&&e!==null&&"name"in e&&e.name==="AbortError",Xs=e=>e!==void 0&&!e.context,bx=e=>e!==void 0&&!e.folder.isCurrent&&!e.context,Sx=e=>{for(let t=0;t<e.length;t+=1)if(Xs(e[t]))return t;return-1},rce=e=>{for(let t=e.length-1;t>=0;t-=1)if(Xs(e[t]))return t;return-1},UM=(e,t,n)=>{const r=e.length;if(r<=0)return-1;const o=t<0?n===1?-1:r:t;for(let s=1;s<=r;s+=1){const i=((o+n*s)%r+r)%r;if(Xs(e[i]))return i}return-1},oce=(e,t,n)=>{const r=e[t];if(!r)return-1;const o=Pp(r.folder.path,n);if(!o)return-1;for(let s=t-1;s>=0;s-=1)if(e[s]?.folder.path===o)return Xs(e[s])?s:-1;return-1},D3="flex min-h-11 min-w-0 flex-1 items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",B$=14,sce=60,L3=({depth:e})=>e>0?x.jsx("span",{"aria-hidden":"true",className:"shrink-0",style:{width:e*B$}}):null,z3=({depth:e})=>x.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 bottom-0 h-px bg-line",style:{left:sce+e*B$}}),ace=({label:e,depth:t,expanded:n,ariaLabel:r,selected:o=!1,context:s=!1,current:i=!1,currentTag:c,messageCount:u,failure:d,separated:h=!1,actions:m,tabIndex:g,onActivate:v,onFocus:S,ref:b})=>{const C=x.jsx(LF,{className:ke("size-4 shrink-0 text-fg-subtle transition-transform",n&&"rotate-90"),"aria-hidden":"true"}),E=x.jsx(zse,{className:"size-4 shrink-0 text-fg-subtle","aria-hidden":"true"}),k=u===void 0?null:x.jsxs("span",{"aria-hidden":"true",className:"shrink-0 text-2xs text-fg-subtle",children:[u," ",u===1?"msg":"msgs"]}),A=x.jsxs("span",{className:"min-w-0 flex-1",children:[x.jsx("span",{className:"block truncate",children:e}),d&&x.jsxs("span",{className:"flex items-center gap-1 text-2xs text-danger",children:[x.jsx(zF,{className:"size-3 shrink-0","aria-hidden":"true"}),x.jsx("span",{className:"truncate",children:d})]})]}),R=d?`${r} — ${d}`:r;return s?x.jsxs("div",{className:"relative flex items-center",children:[x.jsxs("div",{role:"treeitem","aria-level":t+1,"aria-selected":!1,"aria-expanded":n,"aria-label":R,className:ke(D3,"opacity-60"),children:[x.jsx(L3,{depth:t}),C,E,A,k]}),m,h&&x.jsx(z3,{depth:t})]}):x.jsxs("div",{className:"relative flex items-center",children:[x.jsxs("button",{ref:b,type:"button",role:"treeitem","aria-level":t+1,"aria-selected":o,"aria-expanded":n,"aria-current":i?"true":void 0,"aria-label":R,tabIndex:g,onClick:v,onFocus:S,className:ke(D3,"hover:bg-surface-raised active:bg-surface-sunken",i&&"text-fg-muted"),children:[x.jsx(L3,{depth:t}),C,E,A,k,i&&c&&x.jsx("span",{className:"shrink-0 text-xs text-fg-muted",children:c}),o&&x.jsx(wy,{className:"size-4 shrink-0 text-accent","aria-hidden":"true"})]}),m,h&&x.jsx(z3,{depth:t})]})},jM=({label:e,ariaLabel:t,depth:n=0,prominence:r="prominent",separated:o=!1,onOpen:s})=>x.jsxs("div",{className:ke("relative",r==="prominent"&&"p-2"),children:[x.jsxs("button",{type:"button",onClick:s,"aria-label":t,"data-prominence":r,className:ke(D3,"w-full active:bg-surface-sunken",r==="prominent"?"rounded-lg border border-line-strong border-dashed font-medium text-fg-muted hover:border-accent-2 hover:text-accent-2":"text-fg-subtle hover:bg-surface-raised hover:text-fg-muted"),children:[x.jsx(L3,{depth:n}),x.jsx("span",{"aria-hidden":"true",className:"size-4 shrink-0"}),x.jsx(Dse,{className:"size-4 shrink-0","aria-hidden":"true"}),x.jsx("span",{className:"min-w-0 flex-1 truncate",children:e})]}),o&&x.jsx(z3,{depth:n})]}),H$={nameLabel:"Folder name",namePlaceholder:"Hotels",insideLabel:"Inside",create:"Create folder",cancel:"Cancel",createPending:"Creating folder…"},ice=({parentLabel:e,name:t,onNameChange:n,onSubmit:r,onCancel:o,pending:s=!1,error:i,labels:c})=>{const u={...H$,...c},d=_.useId(),h=_.useRef(null),m=_.useRef(null);return _.useEffect(()=>{h.current?.focus({preventScroll:!0}),m.current?.scrollIntoView({block:"nearest"})},[]),x.jsxs("div",{ref:m,className:"space-y-3 border-y border-line bg-surface-sunken px-3 py-3",children:[x.jsxs("div",{children:[x.jsx(bT,{htmlFor:d,children:u.nameLabel}),x.jsx(As,{id:d,ref:h,value:t,placeholder:u.namePlaceholder,onChange:g=>n(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),r()),g.key==="Escape"&&(g.preventDefault(),o())}})]}),x.jsxs("p",{className:"text-xs text-fg-muted",children:[u.insideLabel," ",x.jsx("span",{className:"font-medium text-fg",children:e})]}),i&&x.jsx("p",{className:"text-xs text-danger",role:"alert",children:i}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(Bt,{variant:"ghost",size:"md",onClick:o,className:"min-h-11 shrink-0",children:u.cancel}),x.jsx(Bt,{variant:"secondary",size:"md",onClick:r,disabled:s,className:"min-h-11 shrink-0",children:s?u.createPending:u.create})]})]})},lce={...H$,filterPlaceholder:"Filter folders…",filterAriaLabel:"Filter folders",treeAriaLabel:"Destination folders",currentSuffix:"(current folder)",currentTag:"current",contextSuffix:"(containing folder)",emptyMessage:e=>`No folders match "${e}"`,noFolders:"No folders to show",optionLabel:e=>`Move to ${e.label}`,newFolder:"New folder",newSubfolder:e=>`New folder inside ${e}`,topLevel:"Top level",nameRequired:"Give the folder a name.",createError:"Couldn't create that folder. Please try again."},wT=({folders:e,selectedId:t,onSelect:n,rowActions:r,rowFailure:o,onCreateFolder:s,onCancel:i,delimiter:c="/",labels:u,autoFocusFilter:d=!1})=>{const h={...lce,...u},[m,g]=_.useState(""),[v,S]=_.useState(()=>{const ee=e.find(Se=>Se.id===t);return new Set(ee?Dp(ee.path,c):[])}),[b,C]=_.useState(null),[E,k]=_.useState(""),[A,R]=_.useState(),[N,O]=_.useState(!1),[I,M]=_.useState(-1),z=_.useRef([]),q=_.useRef(null),U=_.useRef(!1),L=_.useRef(null);_.useEffect(()=>()=>L.current?.abort(),[]),_.useEffect(()=>{d&&q.current?.focus()},[d]);const B=m.trim().toLowerCase(),K=_.useMemo(()=>Xle(e,c),[e,c]),le=_.useMemo(()=>{const ee=Qle(K,B,c);return ee.size===0?v:new Set([...v,...ee])},[K,v,B,c]),$=_.useMemo(()=>B?Jle(K,B,c,le):ece(K,le,c),[K,B,c,le]),Q=_.useMemo(()=>s?tce($,c):void 0,[$,c,s]);_.useEffect(()=>{M(ee=>Xs($[ee])?ee:Sx($))},[$]),_.useEffect(()=>{U.current&&(U.current=!1,!(I<0)&&z.current[I]?.focus())},[I]);const se=_.useCallback((ee,Se)=>{S(Pe=>{if(Se)return new Set([...Dp(ee,c),ee]);const xe=new Set(Pe);return xe.delete(ee),xe})},[c]),de=_.useCallback(ee=>{bx(ee)&&n?.(ee.folder.id),se(ee.folder.path,!ee.expanded)},[n,se]),_e=_.useCallback(()=>{L.current?.abort(),C(null),k(""),R(void 0),O(!1)},[]),j=_.useCallback(ee=>{L.current?.abort(),C({anchorId:ee?.id??null,parentPath:ee?.path??"",parentLabel:ee?.label??h.topLevel}),k(""),R(void 0),O(!1)},[h.topLevel]),Y=_.useCallback(()=>{if(!s||!b||N)return;const ee=E.trim();if(ee===""){R(h.nameRequired);return}O(!0),R(void 0),L.current?.abort();const Se=new AbortController;L.current=Se;const Pe=b.parentPath;s(ee,Pe,Se.signal).then(xe=>{O(!1),C(null),k(""),Pe&&se(Pe,!0),n?.(xe.id)}).catch(xe=>{nce(xe)||(R(xe instanceof Error?xe.message:h.createError),O(!1))})},[s,b,N,E,n,se,h.nameRequired,h.createError]),X=_.useCallback(ee=>{const Se=ee.target;if(!(Se instanceof Element)||!Se.closest('[role="treeitem"]'))return;const Pe=Ge=>{ee.preventDefault(),U.current=!0,M(Ge)},xe=$[I];switch(ee.key){case"ArrowDown":return Pe(UM($,I,1));case"ArrowUp":return Pe(UM($,I,-1));case"Home":return Pe(Sx($));case"End":return Pe(rce($));case"ArrowRight":{if(!Xs(xe)||!xe)return;if(ee.preventDefault(),!xe.expanded){se(xe.folder.path,!0);return}const Ge=I+1;Xs($[Ge])&&Pe(Ge);return}case"ArrowLeft":{if(!Xs(xe)||!xe)return;if(ee.preventDefault(),xe.expanded){se(xe.folder.path,!1);return}const Ge=oce($,I,c);Ge>=0&&Pe(Ge);return}case"Enter":case" ":{if(!Xs(xe)||!xe)return;ee.preventDefault(),de(xe);return}case"Escape":ee.preventDefault(),i?.();return;default:return}},[$,I,c,de,se,i]),J=b!==null&&b.anchorId!==null&&(Q?.some(ee=>ee.kind==="create"&&ee.parent.id===b.anchorId)??!1),ie=b&&x.jsx(ice,{parentLabel:b.parentLabel,name:E,onNameChange:ee=>{k(ee),R(void 0)},onSubmit:Y,onCancel:_e,pending:N,error:A,labels:h}),ue=ee=>ee.context?`${ee.folder.label} ${h.contextSuffix}`:bx(ee)?h.optionLabel(ee.folder):`${ee.folder.label} ${h.currentSuffix}`,ge=(ee,Se,Pe)=>{const{folder:xe,depth:Ge}=ee,ze=bx(ee);return x.jsx(ace,{ref:He=>{z.current[Se]=He},label:xe.label,depth:Ge,expanded:ee.expanded,context:ee.context,current:xe.isCurrent,currentTag:h.currentTag,messageCount:xe.messageCount,selected:ze&&xe.id===t,separated:Pe,failure:o?.(xe),actions:r?.(xe),ariaLabel:ue(ee),tabIndex:Se===I?0:-1,onActivate:()=>de(ee),onFocus:()=>M(Se)})};return x.jsxs("div",{className:"flex min-h-0 w-full min-w-0 flex-col",children:[x.jsx(As,{ref:q,variant:"inline",className:"border-b border-line px-3 py-2",icon:x.jsx(qse,{className:"size-4","aria-hidden":"true"}),type:"search",value:m,onChange:ee=>g(ee.target.value),onKeyDown:ee=>{if(ee.key==="Escape"){ee.preventDefault(),i?.();return}if(ee.key!=="ArrowDown")return;ee.preventDefault();const Se=Xs($[I])?I:Sx($);Se<0||(U.current=!0,M(Se),z.current[Se]?.focus())},placeholder:h.filterPlaceholder,"aria-label":h.filterAriaLabel}),s&&x.jsx("div",{className:"shrink-0 border-b border-line","data-create-anchor":"top",children:b&&!J?ie:x.jsx(jM,{label:h.newFolder,ariaLabel:h.newFolder,prominence:"prominent",onOpen:()=>j(null)})}),$.length===0?x.jsx("p",{className:"px-3 py-3 text-sm text-fg-muted","aria-live":"polite",children:e.length===0?h.noFolders:h.emptyMessage(m)}):x.jsx("div",{role:"tree","aria-label":h.treeAriaLabel,className:"min-h-0 flex-1 overflow-y-auto overflow-x-hidden pb-24",onKeyDown:X,children:(Q??$.map((ee,Se)=>({kind:"folder",row:ee,index:Se}))).map((ee,Se,Pe)=>{const xe=Se<Pe.length-1;return ee.kind==="create"?x.jsx("div",{role:"none","data-create-anchor":ee.parent.id,children:b?.anchorId===ee.parent.id?ie:x.jsx(jM,{label:h.newFolder,ariaLabel:h.newSubfolder(ee.parent.label),depth:ee.depth,prominence:"quiet",separated:xe,onOpen:()=>j(ee.parent)})},`new:${ee.parent.id}`):x.jsx("div",{role:"none",children:ge(ee.row,ee.index,xe)},ee.row.folder.id)})})]})},U3={Default:"bg-fg-subtle",Red:"bg-red-500",Orange:"bg-orange-500",Yellow:"bg-yellow-500",Green:"bg-green-500",Teal:"bg-teal-500",Blue:"bg-blue-500",Purple:"bg-purple-500",Gray:"bg-gray-500"},sBe=["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],cce=e=>Object.hasOwn(U3,e);function uce({label:e,onRemove:t,className:n}){const r=cce(e.color)?U3[e.color]:U3.Default;return x.jsxs("span",{className:ke("inline-flex items-center gap-1 rounded-full bg-surface-sunken px-2 py-0.5 text-2xs font-medium text-fg-muted shrink-0",n),children:[x.jsx("span",{className:ke("size-1.5 shrink-0 rounded-full",r)}),x.jsx("span",{className:"truncate",children:e.name}),t&&x.jsx("button",{type:"button",onClick:()=>t(e.labelId),"aria-label":`Remove label ${e.name}`,className:"ml-0.5 rounded-full text-fg-subtle hover:text-fg",children:"×"})]})}const dce={sm:"min-h-9 px-3 text-xs",md:"min-h-11 px-4 text-sm"};function j3({name:e,options:t,value:n,onChange:r,size:o="md","aria-label":s}){const i=t.findIndex(c=>c.value===n);return x.jsx("div",{role:"radiogroup","aria-label":s,className:"inline-flex rounded-md border border-line bg-surface-sunken p-0.5",children:t.map((c,u)=>{const d=c.value===n,h=!d&&u<t.length-1&&i!==u+1;return x.jsxs("label",{className:ke("relative flex cursor-pointer items-center justify-center rounded-[5px] font-medium transition-colors",dce[o],d?"bg-surface text-fg shadow":"text-fg-muted hover:text-fg",h&&"after:pointer-events-none after:absolute after:right-0 after:top-1/4 after:h-1/2 after:w-px after:bg-line"),children:[x.jsx("input",{type:"radio",name:e,value:c.value,checked:d,onChange:()=>r(c.value),className:"sr-only"}),c.label]},c.value)})})}const fce=[{value:"all",label:tv("all")},{value:"any",label:tv("any")}],FM=[{value:"once",label:"Just once"},{value:"standing",label:"Keep doing this"},{value:"until",label:"Until a date"}],$M="__filter_create_label__";function hce({folders:e,value:t,delimiter:n="/",onChangeMove:r,onCreateFolder:o}){const[s,i]=_.useState(!1),[c,u]=_.useState(),[d,h]=_.useState([]),m=_.useMemo(()=>{const E=new Set(e.map(k=>k.id));return[...e,...d.filter(k=>!E.has(k.id))]},[e,d]),g=_.useMemo(()=>{if(o)return async(E,k,A)=>{const R=await o(E,k,A);return h(N=>N.some(O=>O.id===R.id)?N:[...N,R]),R}},[o]),v=m.find(E=>E.id===t),S=m.find(E=>E.id===c),b=E=>{const k=Ry(E.path,n);return k.map((A,R)=>{const N=k.slice(0,R+1).join(n);return m.find(O=>O.path===N)?.label??A}).join(" / ")},C=()=>{i(!1),u(void 0)};return s?x.jsxs("div",{className:"space-y-2",children:[x.jsx("div",{className:"flex h-72 min-h-0 overflow-hidden rounded-md border border-line bg-surface",children:x.jsx(wT,{folders:m,selectedId:c,delimiter:n,onSelect:u,onCreateFolder:g,onCancel:C,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})}),S?x.jsx(Bt,{variant:"primary",onClick:()=>{r?.(S.id),C()},className:"w-full",children:x.jsx("span",{className:"truncate",children:`Move matches to ${b(S)}`})}):x.jsx("p",{className:"text-2xs text-fg-subtle",children:"Tap a folder to open it, or make a new one where you want it."}),x.jsx(Bt,{variant:"ghost",size:"sm",onClick:C,className:"w-full",children:"Cancel"})]}):x.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken p-3",children:[x.jsx("p",{className:"text-sm font-medium text-fg",children:v?b(v):"No folder yet"}),x.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-3",children:[x.jsx(Bt,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>{u(t),i(!0)},children:"Choose a folder"}),v&&x.jsx(Bt,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>r?.(""),children:"Don't move matches"})]})]})}function pce({labels:e,value:t,onChangeLabel:n,onCreateLabel:r}){const[o,s]=_.useState(!1),[i,c]=_.useState(""),[u,d]=_.useState(!1),[h,m]=_.useState(),[g,v]=_.useState([]),S=_.useMemo(()=>{const A=new Set(e.map(R=>R.id));return[...e,...g.filter(R=>!A.has(R.id))]},[e,g]),b=S.find(A=>A.id===t),C=A=>{if(A===$M){m(void 0),s(!0);return}n?.(A)},E=()=>{if(!r)return;const A=i.trim();A!==""&&(d(!0),m(void 0),r(A).then(R=>{v(N=>N.some(O=>O.id===R.id)?N:[...N,R]),n?.(R.id),s(!1),c(""),d(!1)}).catch(R=>{m(R instanceof Error?R.message:"Couldn't create that label. Please try again."),d(!1)}))},k=()=>{s(!1),c(""),m(void 0)};return x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsxs(x$,{"aria-label":"Label to apply",value:t,onChange:A=>C(A.target.value),className:"flex-1",children:[x.jsx("option",{value:"",children:"No label"}),S.map(A=>x.jsx("option",{value:A.id,children:A.name},A.id)),r&&x.jsx("option",{value:$M,children:"+ New label…"})]}),b&&x.jsx(uce,{label:{...b,labelId:b.id}})]}),o&&x.jsxs("div",{className:"space-y-2 rounded-md border border-line bg-surface-sunken p-2",children:[x.jsx(As,{value:i,onChange:A=>c(A.target.value),placeholder:"Label name","aria-label":"New label name",disabled:u,autoFocus:!0,onKeyDown:A=>{A.key==="Enter"&&(A.preventDefault(),E()),A.key==="Escape"&&(A.preventDefault(),k())}}),h&&x.jsx("p",{className:"text-2xs text-danger",role:"alert",children:h}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx(Bt,{variant:"primary",size:"sm",onClick:E,disabled:u||i.trim()==="",children:u?"Creating…":"Create label"}),x.jsx(Bt,{variant:"ghost",size:"sm",onClick:k,disabled:u,children:"Cancel"})]})]})]})}function aBe({rule:e,folders:t,delimiter:n,labels:r=[],preview:o,notice:s,clauseFields:i,persisted:c=!1,clauseSuggestions:u,clauseEdit:d,onStartAddClause:h,onStartEditClause:m,onRemoveClause:g,onChangeDraftField:v,onChangeDraftValue:S,onSubmitClause:b,onCancelClause:C,onChangeMatchOperator:E,onChangeMove:k,onCreateFolder:A,onChangeLabel:R,onCreateLabel:N,onChangeScope:O,onChangeName:I,onChangeUntil:M,onCommit:z,onCancel:q}){const U=e.clauses.length>=2,L=ST(e.matchOperator),B=Kle(e,o),K=e.scope==="standing"||e.scope==="until",le=c?FM.filter($=>$.value!=="once"):FM;return x.jsxs("div",{className:"flex min-h-0 flex-col",children:[x.jsxs("div",{className:"border-b border-line px-5 py-3",children:[x.jsx("h2",{className:"text-sm font-semibold text-fg",children:"Filter rule"}),x.jsx("p",{className:"mt-0.5 text-xs text-fg-muted",children:"These chips are the whole rule — what you see is what applies."})]}),x.jsxs("div",{className:"min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4",children:[s,x.jsxs("section",{className:"space-y-3",children:[x.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[e.clauses.map(($,Q)=>x.jsxs(_.Fragment,{children:[Q>0&&x.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:L}),x.jsx(z$,{clause:$,onEdit:()=>m?.($.id),onRemove:()=>g?.($.id)})]},$.id)),!d&&x.jsx(U$,{label:"Add clause",onClick:h})]}),d&&x.jsx(j$,{draft:d.draft,mode:d.mode,fields:i,suggestions:u,onChangeField:v,onChangeValue:S,onSubmit:b,onCancel:C}),U&&x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),x.jsx(j3,{name:"match-operator",size:"sm","aria-label":"Match operator",options:fce,value:e.matchOperator,onChange:$=>E?.($)})]})]}),x.jsxs("section",{className:"space-y-2",children:[x.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Move matches to"}),x.jsx(hce,{folders:t,value:e.moveMailboxId,delimiter:n,onChangeMove:k,onCreateFolder:A})]}),x.jsxs("section",{className:"space-y-2",children:[x.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Apply a label"}),x.jsx(pce,{labels:r,value:e.labelId??"",onChangeLabel:R,onCreateLabel:N})]}),x.jsxs("section",{className:"space-y-2",children:[x.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"How long"}),x.jsx(j3,{name:"rule-scope",size:"sm","aria-label":"Rule scope",options:le,value:e.scope,onChange:$=>O?.($)}),K&&x.jsx(As,{value:e.name??"",onChange:$=>I?.($.target.value),placeholder:"Name this rule (e.g. Receipts)","aria-label":"Rule name",className:"w-full"}),e.scope==="until"&&x.jsxs("div",{className:"flex items-center gap-2 text-xs text-fg-muted",children:[x.jsx("span",{children:"Until"}),x.jsx(As,{type:"date",value:e.until??"",onChange:$=>M?.($.target.value),"aria-label":"Expiry date",className:"flex-1"})]})]}),x.jsx("div",{className:"border-t border-line pt-3",children:x.jsx(Yle,{preview:o})})]}),x.jsxs("div",{className:"space-y-2 border-t border-line px-5 py-3",children:[B&&x.jsx("p",{className:"text-xs text-fg-subtle",role:"status",children:B}),x.jsx(Bt,{variant:"primary",onClick:z,disabled:B!==void 0,className:"w-full",children:P$(e.scope)}),x.jsx(Bt,{variant:"ghost",onClick:q,className:"w-full",children:"Not now"})]})]})}function mce({count:e,activeStep:t}){return x.jsx("ol",{className:"flex items-center gap-1.5","aria-label":"Progress",children:Array.from({length:e},(n,r)=>x.jsx("li",{className:"flex flex-1 items-center gap-1.5",children:x.jsx("span",{className:ke("h-1 flex-1 rounded-full transition-colors",r<=t?"bg-accent":"bg-surface-sunken"),"aria-current":r===t?"step":void 0})},r))})}function gce({title:e,subtitle:t,steps:n,activeStep:r,onBack:o,onExit:s,footer:i,children:c,anchor:u="viewport",bodyFit:d="scroll"}){const h=u==="container",m=_.useRef(null);bm(m,!h);const g=ke("z-50 flex flex-col font-sans text-fg",h?"absolute inset-0":"fixed inset-0 md:items-center md:justify-center md:bg-black/40 md:p-6"),v=x.jsxs("div",{className:ke("flex min-h-0 w-full flex-1 flex-col bg-canvas",!h&&"md:h-[45rem] md:max-h-[calc(100dvh-3rem)] md:w-[35rem] md:max-w-[calc(100vw-3rem)] md:flex-none md:overflow-hidden md:rounded-xl md:border md:border-line md:shadow-lg"),children:[x.jsxs("header",{className:ke("shrink-0 border-b border-line px-3 pb-2",h?"pt-3":"pt-[calc(0.75rem+env(safe-area-inset-top,0px))] md:pt-3"),children:[x.jsxs("div",{className:"flex items-center gap-1",children:[x.jsx("button",{type:"button",onClick:o,"aria-label":"Back",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:x.jsx(DF,{className:"size-5"})}),x.jsxs("div",{className:"min-w-0 flex-1 text-center",children:[x.jsx("h1",{className:"truncate text-sm font-semibold",children:e}),t&&x.jsx("p",{className:"truncate text-2xs text-fg-muted",children:t})]}),x.jsx("button",{type:"button",onClick:s,"aria-label":"Cancel",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:x.jsx(ti,{className:"size-5"})})]}),n.length>1&&x.jsxs("div",{className:"space-y-1 px-1 pt-2",children:[x.jsx(mce,{count:n.length,activeStep:r}),x.jsxs("p",{className:"text-2xs text-fg-subtle",children:["Step ",r+1," of ",n.length," · ",n[r]]})]})]}),x.jsx("div",{className:ke("min-h-0 flex-1",d==="fill"?"overflow-hidden":"overflow-y-auto px-4 py-4"),children:c}),i&&x.jsx("footer",{className:ke("shrink-0 border-t border-line px-4 py-3",h?"":"pb-[max(0.75rem,env(safe-area-inset-bottom))] md:pb-3"),children:i})]});return h?x.jsx("section",{ref:m,"aria-label":e,tabIndex:-1,className:g,children:v}):x.jsx("section",{ref:m,role:"dialog","aria-modal":"true","aria-label":e,tabIndex:-1,className:g,children:v})}const vce={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Spam",trash:"Trash",flagged:"Starred",all:"All Mail"};function yce(e){return vce[e]}const bce=new Set(["all","flagged"]);function Sce(e){return bce.has(e)}const wce=new Set(["[Gmail]","[Google Mail]"]);function xce(e){if(e.role)return Sce(e.role)?void 0:yce(e.role);if(!e.providerPath)return;const t=Ry(e.providerPath,e.hierarchyDelimiter);if(!wce.has(t[0]))return Zle(e.providerPath,e.hierarchyDelimiter)}function iBe(e){return e==="inbox"?x.jsx(UF,{className:"size-4"}):e==="drafts"?x.jsx(Nse,{className:"size-4"}):e==="sent"?x.jsx(Wse,{className:"size-4"}):e==="archive"?x.jsx(_se,{className:"size-4"}):e==="junk"?x.jsx(lT,{className:"size-4"}):e==="trash"?x.jsx(Kse,{className:"size-4"}):e==="flagged"?x.jsx(Vse,{className:"size-4"}):x.jsx(Fse,{className:"size-4"})}function Cce(e,t,n){return Math.max(t,Math.min(e,n))}const Mr={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function BM(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function HM(e,t,n,r=.15){return r===0?Cce(e,t,n):e<t?-BM(t-e,n-t,r)+t:e>n?+BM(e-n,n-t,r)+n:e}function Ece(e,[t,n],[r,o]){const[[s,i],[c,u]]=e;return[HM(t,s,i,r),HM(n,c,u,o)]}function _ce(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kce(e){var t=_ce(e,"string");return typeof t=="symbol"?t:String(t)}function no(e,t,n){return t=kce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qM(Object(n),!0).forEach(function(r){no(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const q$={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function WM(e){return e?e[0].toUpperCase()+e.slice(1):""}const Ace=["enter","leave"];function Tce(e=!1,t){return e&&!Ace.includes(t)}function Ice(e,t="",n=!1){const r=q$[e],o=r&&r[t]||t;return"on"+WM(e)+WM(o)+(Tce(n,o)?"Capture":"")}const Rce=["gotpointercapture","lostpointercapture"];function Oce(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=Rce.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function Nce(e,t=""){const n=q$[e],r=n&&n[t]||t;return e+r}function Oy(e){return"touches"in e}function W$(e){return Oy(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Mce(e){return Array.from(e.touches).filter(t=>{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function Pce(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function V$(e){return Oy(e)?Pce(e)[0]:e}function Dce(e){return Mce(e).map(t=>t.identifier)}function wx(e){const t=V$(e);return Oy(e)?t.identifier:t.pointerId}function VM(e){const t=V$(e);return[t.clientX,t.clientY]}function Lce(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:s}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:s})}return t}function nv(e,...t){return typeof e=="function"?e(...t):e}function zce(){}function Uce(...e){return e.length===0?zce:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function GM(e,t){return Object.assign({},t,e||{})}const jce=32;class Fce{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?nv(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let s=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,Lce(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,s=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const O=n._delta.map(Math.abs);Mr.addTo(n._distance,O)}this.axisIntent&&this.axisIntent(t);const[i,c]=n._movement,[u,d]=r.threshold,{_step:h,values:m}=n;if(r.hasCustomTransform?(h[0]===!1&&(h[0]=Math.abs(i)>=u&&m[0]),h[1]===!1&&(h[1]=Math.abs(c)>=d&&m[1])):(h[0]===!1&&(h[0]=Math.abs(i)>=u&&Math.sign(i)*u),h[1]===!1&&(h[1]=Math.abs(c)>=d&&Math.sign(c)*d)),n.intentional=h[0]!==!1||h[1]!==!1,!n.intentional)return;const g=[0,0];if(r.hasCustomTransform){const[O,I]=m;g[0]=h[0]!==!1?O-h[0]:0,g[1]=h[1]!==!1?I-h[1]:0}else g[0]=h[0]!==!1?i-h[0]:0,g[1]=h[1]!==!1?c-h[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(g);const v=n.offset,S=n._active&&!n._blocked||n.active;S&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=nv(r.bounds,n)),this.setup&&this.setup()),n.movement=g,this.computeOffset()));const[b,C]=n.offset,[[E,k],[A,R]]=n._bounds;n.overflow=[b<E?-1:b>k?1:0,C<A?-1:C>R?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const N=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=Ece(n._bounds,n.offset,N),n.delta=Mr.sub(n.offset,v),this.computeMovement(),S&&(!n.last||s>jce)){n.delta=Mr.sub(n.offset,v);const O=n.delta.map(Math.abs);Mr.addTo(n.distance,O),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[O[0]/s,O[1]/s],n.timeDelta=s)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(wn(wn(wn({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function $ce([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class Bce extends Fce{constructor(...t){super(...t),no(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Mr.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Mr.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[W$(t)]:r.axisThreshold;n.axis=$ce(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const Hce=e=>e,KM=.15,G$={enabled(e=!0){return e},eventOptions(e,t,n){return wn(wn({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[KM,KM];case!1:return[0,0];default:return Mr.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Mr.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Hce},threshold(e){return Mr.toVector(e,0)}},qce=0,Sm=wn(wn({},G$),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=qce){return e},bounds(e={}){if(typeof e=="function")return s=>Sm.bounds(e(s));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),YM={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class Wce extends Bce{constructor(...t){super(...t),no(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Sm.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=wx(t),r._pointerActive=!0,this.computeValues(VM(t)),this.computeInitial(),n.preventScrollAxis&&W$(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=wx(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const s=VM(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=Mr.sub(s,n._values),this.computeValues(s)),Mr.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=wx(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[s,i]=n._distance;if(n.tap=s<=r.tapsThreshold&&i<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[c,u]=n._delta,[d,h]=n._movement,[m,g]=r.swipe.velocity,[v,S]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTime<b){const C=Math.abs(c/n.timeDelta),E=Math.abs(u/n.timeDelta);C>m&&Math.abs(d)>v&&(n.swipe[0]=Math.sign(c)),E>g&&Math.abs(h)>S&&(n.swipe[1]=Math.sign(u))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,Vce(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=YM[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,Mr.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in YM&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Vce(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const wm=typeof window<"u"&&window.document&&window.document.createElement;function K$(){return wm&&"ontouchstart"in window}function Gce(){return K$()||wm&&window.navigator.maxTouchPoints>1}function Kce(){return wm&&"onpointerdown"in window}function Yce(){return wm&&"exitPointerLock"in window.document}function Zce(){try{return"constructor"in GestureEvent}catch{return!1}}const Xo={isBrowser:wm,gesture:Zce(),touch:K$(),touchscreen:Gce(),pointer:Kce(),pointerLock:Yce()},Xce=250,Qce=180,Jce=.5,eue=50,tue=250,nue=10,ZM={mouse:0,touch:0,pen:8},rue=wn(wn({},Sm),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Xo.pointerLock,Xo.touch&&n?"touch":this.pointerLock?"mouse":Xo.pointer&&!o?"pointer":Xo.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Xce:void 0,!(!Xo.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const s=Mr.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,s},swipe({velocity:e=Jce,distance:t=eue,duration:n=tue}={}){return{velocity:this.transform(Mr.toVector(e)),distance:this.transform(Mr.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return Qce;case!1:return 0;default:return e}},axisThreshold(e){return e?wn(wn({},ZM),e):ZM},keyboardDisplacement(e=nue){return e}});wn(wn({},G$),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Xo.touch&&Xo.gesture)return"gesture";if(Xo.touch&&r)return"touch";if(Xo.touchscreen){if(Xo.pointer)return"pointer";if(Xo.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=i=>{const c=GM(nv(n,i),{min:-1/0,max:1/0});return[c.min,c.max]},s=i=>{const c=GM(nv(r,i),{min:-1/0,max:1/0});return[c.min,c.max]};return typeof n!="function"&&typeof r!="function"?[o(),s()]:i=>[o(i),s(i)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",Mr.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});wn(wn({},Sm),{},{mouseOnly:(e=!0)=>e});wn(wn({},Sm),{},{mouseOnly:(e=!0)=>e});const Y$=new Map,F3=new Map;function oue(e){Y$.set(e.key,e.engine),F3.set(e.key,e.resolver)}const sue={key:"drag",engine:Wce,resolver:rue};function aue(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function iue(e,t){if(e==null)return{};var n=aue(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const lue={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=Xo.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},cue=["target","eventOptions","window","enabled","transform"];function C1(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=C1(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function uue(e,t,n={}){const r=e,{target:o,eventOptions:s,window:i,enabled:c,transform:u}=r,d=iue(r,cue);if(n.shared=C1({target:o,eventOptions:s,window:i,enabled:c,transform:u},lue),t){const h=F3.get(t);n[t]=C1(wn({shared:n.shared},d),h)}else for(const h in d){const m=F3.get(h);m&&(n[h]=C1(wn({shared:n.shared},d[h]),m))}return n}class Z${constructor(t,n){no(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,s){const i=this._listeners,c=Nce(n,r),u=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},d=wn(wn({},u),s);t.addEventListener(c,o,d);const h=()=>{t.removeEventListener(c,o,d),i.delete(h)};return i.add(h),h}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class due{constructor(){no(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>{window.clearTimeout(t)}),this._timeouts.clear()}}class fue{constructor(t){no(this,"gestures",new Set),no(this,"_targetEventStore",new Z$(this)),no(this,"gestureEventStores",{}),no(this,"gestureTimeoutStores",{}),no(this,"handlers",{}),no(this,"config",{}),no(this,"pointerIds",new Set),no(this,"touchIds",new Set),no(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),hue(this,t)}setEventIds(t){if(Oy(t))return this.touchIds=new Set(Dce(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=uue(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const i of this.gestures){const c=this.config[i],u=XM(r,c.eventOptions,!!o);if(c.enabled){const d=Y$.get(i);new d(this,t,i).bind(u)}}const s=XM(r,n.eventOptions,!!o);for(const i in this.nativeHandlers)s(i,"",c=>this.nativeHandlers[i](wn(wn({},this.state.shared),{},{event:c,args:t})),void 0,!0)}for(const s in r)r[s]=Uce(...r[s]);if(!o)return r;for(const s in r){const{device:i,capture:c,passive:u}=Oce(s);this._targetEventStore.add(o,i,"",r[s],{capture:c,passive:u})}}}}function Yu(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Z$(e,t),e.gestureTimeoutStores[t]=new due}function hue(e,t){t.drag&&Yu(e,"drag"),t.wheel&&Yu(e,"wheel"),t.scroll&&Yu(e,"scroll"),t.move&&Yu(e,"move"),t.pinch&&Yu(e,"pinch"),t.hover&&Yu(e,"hover")}const XM=(e,t,n)=>(r,o,s,i={},c=!1)=>{var u,d;const h=(u=i.capture)!==null&&u!==void 0?u:t.capture,m=(d=i.passive)!==null&&d!==void 0?d:t.passive;let g=c?r:Ice(r,o,h);n&&m&&(g+="Passive"),e[g]=e[g]||[],e[g].push(s)},xx=10,pue={axisThreshold:{mouse:xx,touch:xx,pen:xx},swipe:{distance:60,velocity:.3,duration:600},pointer:{keys:!1,capture:!1}};function mue(e,t={},n,r){const o=F.useMemo(()=>new fue(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),F.useEffect(o.effect.bind(o)),F.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function gue(e,t){return oue(sue),mue({drag:e},t||{},"drag")}const QM="remit:swipe",lBe=_.createContext(!1),vue=1.01,yue=e=>{const{event:t}=e;if("pointerType"in t&&t.pointerType!=="touch"||t.type!=="pointerup")return null;const n=e.swipe[0];return n<0?"left":n>0?"right":null},bue=e=>{const t=window.visualViewport;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)},Sue=()=>(window.visualViewport?.scale??1)>vue,cBe=({onSwipeLeft:e,onSwipeRight:t})=>{const n=_.useRef(null),r=e!==void 0||t!==void 0,o=_.useSyncExternalStore(bue,Sue,()=>!1),s=c=>{c==="left"&&e?.(),c==="right"&&t?.()},i=gue(c=>s(yue(c)),{...pue,axis:"x",enabled:r&&!o});return _.useEffect(()=>{const c=n.current;if(!c||!r||o)return;const u=d=>{if(!(d instanceof CustomEvent))return;const{detail:h}=d;(h==="left"||h==="right")&&s(h)};return c.addEventListener(QM,u),()=>c.removeEventListener(QM,u)}),{ref:n,bind:i,touchAction:r&&!o?"pan-y pinch-zoom":"auto",enabled:r}},X$={filter:"border-line bg-surface-sunken text-fg-muted",scope:"border-accent-2/40 bg-accent-2-soft text-accent-2"},wue=({label:e,onRemove:t,tone:n="filter",className:r})=>x.jsxs("span",{className:ke("inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-2xs",X$[n],r),children:[x.jsx("span",{children:e}),x.jsx("button",{type:"button",onClick:t,className:"shrink-0 rounded-full p-0.5 hover:bg-fg-muted/20 transition-colors","aria-label":`Remove filter: ${e}`,children:x.jsx(ti,{className:"size-3"})})]}),xue=_.forwardRef(({label:e,onRemove:t,onActivate:n,tone:r="filter",focused:o=!1,onKeyDown:s,onFocusLabel:i,className:c},u)=>x.jsxs("span",{role:"row",tabIndex:-1,className:ke("inline-flex max-w-48 items-center gap-1 rounded-full border px-2 py-0.5 text-2xs transition-colors",X$[r],o&&"ring-2 ring-ring",c),children:[x.jsx("button",{ref:u,type:"button",role:"gridcell",tabIndex:o?0:-1,onClick:n,onFocus:i,onKeyDown:s,className:ke("block min-w-0 max-w-full truncate rounded-full outline-none",n?"cursor-pointer":"cursor-default"),children:e}),x.jsx("button",{type:"button",role:"gridcell",tabIndex:-1,onClick:t,className:"block shrink-0 rounded-full p-0.5 transition-colors hover:bg-fg-muted/20","aria-label":`Remove filter: ${e}`,children:x.jsx(ti,{className:"size-3"})})]}));xue.displayName="SearchChipRow";const uBe=({tokens:e,className:t})=>e.length===0?null:x.jsx("div",{className:ke("flex flex-wrap items-center gap-1.5 border-b border-line bg-surface px-row-inset py-1.5",t),children:e.map(n=>x.jsx(wue,{label:n.label,onRemove:n.onRemove},n.label))});function JM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cue(e){if(Array.isArray(e))return e}function Eue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,i,c=[],u=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(u=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(h){d=!0,o=h}finally{try{if(!u&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(d)throw o}}return c}}function _ue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
13
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kue(e,t){return Cue(e)||Eue(e,t)||Aue(e,t)||_ue()}function Aue(e,t){if(e){if(typeof e=="string")return JM(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JM(e,t):void 0}}const Q$=Object.entries,eP=Object.setPrototypeOf,Tue=Object.isFrozen,J$=Object.getPrototypeOf,eB=Object.getOwnPropertyDescriptor;let dr=Object.freeze,kr=Object.seal,dd=Object.create,tB=typeof Reflect<"u"&&Reflect,$3=tB.apply,B3=tB.construct;dr||(dr=function(t){return t});kr||(kr=function(t){return t});$3||($3=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return t.apply(n,o)});B3||(B3=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const La=pn(Array.prototype.forEach),Iue=pn(Array.prototype.lastIndexOf),tP=pn(Array.prototype.pop),Oh=pn(Array.prototype.push),Rue=pn(Array.prototype.slice),Oue=pn(Array.prototype.splice),Dd=Array.isArray,Cx=nB(Set),Ex=pn(Set.prototype.add),Nh=pn(Set.prototype.has),dc=pn(String.prototype.toLowerCase),_x=pn(String.prototype.toString),nP=pn(String.prototype.match),Mh=pn(String.prototype.replace),rP=pn(String.prototype.indexOf),Nue=pn(String.prototype.trim),Mue=pn(Number.prototype.toString),Pue=pn(Boolean.prototype.toString),oP=typeof BigInt>"u"?null:pn(BigInt.prototype.toString),sP=typeof Symbol>"u"?null:pn(Symbol.prototype.toString),to=pn(Object.prototype.hasOwnProperty),Ph=pn(Object.prototype.toString),Cr=pn(RegExp.prototype.test),za=nB(TypeError);function pn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return $3(e,t,r)}}function nB(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return B3(e,n)}}function Tt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:dc;if(eP&&eP(e,null),!Dd(t))return e;let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const s=n(o);s!==o&&(Tue(t)||(t[r]=s),o=s)}e[o]=!0}return e}function Due(e){for(let t=0;t<e.length;t++)to(e,t)||(e[t]=null);return e}function Ao(e){const t=dd(null);for(const r of Q$(e)){var n=kue(r,2);const o=n[0],s=n[1];to(e,o)&&(Dd(s)?t[o]=Due(s):s&&typeof s=="object"&&s.constructor===Object?t[o]=Ao(s):t[o]=s)}return t}function Lue(e){switch(typeof e){case"string":return e;case"number":return Mue(e);case"boolean":return Pue(e);case"bigint":return oP?oP(e):"0";case"symbol":return sP?sP(e):"Symbol()";case"undefined":return Ph(e);case"function":case"object":{if(e===null)return Ph(e);const t=e,n=Ko(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:Ph(r)}return Ph(e)}default:return Ph(e)}}function Ko(e,t){for(;e!==null;){const r=eB(e,t);if(r){if(r.get)return pn(r.get);if(typeof r.value=="function")return pn(r.value)}e=J$(e)}function n(){return null}return n}function zue(e,t){for(;e!==null;){const n=eB(e,t);if(n)return n.get?pn(n.get):null;e=J$(e)}return null}function Uue(e){try{return Cr(e,""),!0}catch{return!1}}const aP=dr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),kx=dr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ax=dr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),jue=dr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Tx=dr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Fue=dr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),iP=dr(["#text"]),lP=dr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ix=dr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),cP=dr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),l0=dr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$ue=kr(/{{[\w\W]*|^[\w\W]*}}/g),Bue=kr(/<%[\w\W]*|^[\w\W]*%>/g),Hue=kr(/\${[\w\W]*/g),que=kr(/^data-[\-\w.\u00B7-\uFFFF]+$/),Wue=kr(/^aria-[\-\w]+$/),uP=kr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vue=kr(/^(?:\w+script|data):/i),Gue=kr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Kue=kr(/^html$/i),Yue=kr(/^[a-z][.\w]*(-[.\w]+)+$/i),Rx=kr(/<[/\w!]/g),dP=kr(/<[/\w]/g),Zue=kr(/<\/no(script|embed|frames)/i),fP=kr(/\/>/i),Vn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Xue=dr(Tt({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Que=function(){return typeof window>"u"?null:window},Jue=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},hP=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Xi=function(t,n,r,o){return to(t,n)&&Dd(t[n])?Tt(o.base?Ao(o.base):{},t[n],o.transform):r},Ox=function(t,n,r){const o=to(t,n)?t[n]:void 0;return o&&typeof o=="object"?Ao(o):r()};function rB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Que();const t=be=>rB(be);if(t.version="3.4.17",t.removed=[],!e||!e.document||e.document.nodeType!==Vn.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,o=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,i=e.Node,c=e.Element,u=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,h=e.trustedTypes,m=c.prototype,g=Ko(m,"cloneNode"),v=Ko(m,"remove"),S=Ko(m,"removeAttributeNode"),b=Ko(m,"nextSibling"),C=Ko(m,"childNodes"),E=Ko(m,"parentNode"),k=Ko(m,"shadowRoot"),A=Ko(m,"attributes"),R=i&&i.prototype?Ko(i.prototype,"nodeType"):null,N=i&&i.prototype?Ko(i.prototype,"nodeName"):null,O=i&&i.prototype?Ko(i.prototype,"ownerDocument"):null,I=function(D){return R?R(D):D.nodeType},M=function(D){return N?N(D):D.nodeName},z=zue(m,"namespaceURI"),q=function(D){return z?z(D):D.namespaceURI};if(typeof s=="function"){const be=n.createElement("template");be.content&&be.content.ownerDocument&&(n=be.content.ownerDocument)}let U,L="",B,K=!1,le=0;const $=function(){if(le>0)throw za('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Q=function(D){$(),le++;try{return U.createHTML(D)}finally{le--}},se=function(D){$(),le++;try{return U.createScriptURL(D)}finally{le--}},de=function(){return K||(B=Jue(h,o),K=!0),B},_e=n,j=_e.implementation,Y=_e.createNodeIterator,X=_e.createDocumentFragment,J=_e.getElementsByTagName,ie=r.importNode;let ue=hP();t.isSupported=typeof Q$=="function"&&typeof E=="function"&&j&&j.createHTMLDocument!==void 0;const ge=$ue,ee=Bue,Se=Hue,Pe=que,xe=Wue,Ge=Vue,ze=Gue,He=Yue;let ot=uP,Oe=null;const yn=Tt({},[...aP,...kx,...Ax,...Tx,...iP]);let Fe=null;const zn=Tt({},[...lP,...Ix,...cP,...l0]);let Jt=Object.seal(dd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),dn=null,mo=null;const gr=Object.seal(dd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let kn=!0,At=!0,An=!1,Tr=!0,or=!1,go=!0,Gr=!1,fa=!1,vi=null,Uo=null,Tn=!1,sr=!1,Un=!1,yi=!1,Dl=!0,Ll=!1;const Ns="user-content-";let as=!0,Ms=!1,H=null,re={},Re=null;const Ue=Tt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let mt=null;const gt=Tt({},["audio","video","img","source","image","track"]);let jn=null;const zl=Tt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Lr="http://www.w3.org/1998/Math/MathML",Ul="http://www.w3.org/2000/svg",vo="http://www.w3.org/1999/xhtml";let Ps=vo,jl=!1,uu=null;const Um=Tt({},[Lr,Ul,vo],_x),is=dr(["mi","mo","mn","ms","mtext"]);let Mn=Tt({},is);const vr=dr(["annotation-xml"]);let Ds=Tt({},vr);const Rf=Tt({},["title","style","font","a","script"]);let Fl=null;const Zb=["application/xhtml+xml","text/html"],jm="text/html";let en=null,Ls=null;const bi=n.createElement("form"),ha=function(D){return D instanceof RegExp||D instanceof Function},pa=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ls&&Ls===D)return;(!D||typeof D!="object")&&(D={}),D=Ao(D),Fl=Zb.indexOf(D.PARSER_MEDIA_TYPE)===-1?jm:D.PARSER_MEDIA_TYPE,en=Fl==="application/xhtml+xml"?_x:dc,Oe=Xi(D,"ALLOWED_TAGS",yn,{transform:en}),Fe=Xi(D,"ALLOWED_ATTR",zn,{transform:en}),uu=Xi(D,"ALLOWED_NAMESPACES",Um,{transform:_x}),jn=Xi(D,"ADD_URI_SAFE_ATTR",zl,{transform:en,base:zl}),mt=Xi(D,"ADD_DATA_URI_TAGS",gt,{transform:en,base:gt}),Re=Xi(D,"FORBID_CONTENTS",Ue,{transform:en}),dn=Xi(D,"FORBID_TAGS",Ao({}),{transform:en}),mo=Xi(D,"FORBID_ATTR",Ao({}),{transform:en}),re=to(D,"USE_PROFILES")?D.USE_PROFILES&&typeof D.USE_PROFILES=="object"?Ao(D.USE_PROFILES):D.USE_PROFILES:!1,kn=D.ALLOW_ARIA_ATTR!==!1,At=D.ALLOW_DATA_ATTR!==!1,An=D.ALLOW_UNKNOWN_PROTOCOLS||!1,Tr=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,or=D.SAFE_FOR_TEMPLATES||!1,go=D.SAFE_FOR_XML!==!1,Gr=D.WHOLE_DOCUMENT||!1,sr=D.RETURN_DOM||!1,Un=D.RETURN_DOM_FRAGMENT||!1,yi=D.RETURN_TRUSTED_TYPE||!1,Tn=D.FORCE_BODY||!1,Dl=D.SANITIZE_DOM!==!1,Ll=D.SANITIZE_NAMED_PROPS||!1,as=D.KEEP_CONTENT!==!1,Ms=D.IN_PLACE||!1,ot=Uue(D.ALLOWED_URI_REGEXP)?D.ALLOWED_URI_REGEXP:uP,Ps=typeof D.NAMESPACE=="string"?D.NAMESPACE:vo,Mn=Ox(D,"MATHML_TEXT_INTEGRATION_POINTS",()=>Tt({},is)),Ds=Ox(D,"HTML_INTEGRATION_POINTS",()=>Tt({},vr));const G=Ox(D,"CUSTOM_ELEMENT_HANDLING",()=>dd(null));if(Jt=dd(null),to(G,"tagNameCheck")&&ha(G.tagNameCheck)&&(Jt.tagNameCheck=G.tagNameCheck),to(G,"attributeNameCheck")&&ha(G.attributeNameCheck)&&(Jt.attributeNameCheck=G.attributeNameCheck),to(G,"allowCustomizedBuiltInElements")&&typeof G.allowCustomizedBuiltInElements=="boolean"&&(Jt.allowCustomizedBuiltInElements=G.allowCustomizedBuiltInElements),kr(Jt),or&&(At=!1),Un&&(sr=!0),re&&(Oe=Tt({},iP),Fe=dd(null),re.html===!0&&(Tt(Oe,aP),Tt(Fe,lP)),re.svg===!0&&(Tt(Oe,kx),Tt(Fe,Ix),Tt(Fe,l0)),re.svgFilters===!0&&(Tt(Oe,Ax),Tt(Fe,Ix),Tt(Fe,l0)),re.mathMl===!0&&(Tt(Oe,Tx),Tt(Fe,cP),Tt(Fe,l0))),gr.tagCheck=null,gr.attributeCheck=null,to(D,"ADD_TAGS")&&(typeof D.ADD_TAGS=="function"?gr.tagCheck=D.ADD_TAGS:Dd(D.ADD_TAGS)&&(Oe===yn&&(Oe=Ao(Oe)),Tt(Oe,D.ADD_TAGS,en))),to(D,"ADD_ATTR")&&(typeof D.ADD_ATTR=="function"?gr.attributeCheck=D.ADD_ATTR:Dd(D.ADD_ATTR)&&(Fe===zn&&(Fe=Ao(Fe)),Tt(Fe,D.ADD_ATTR,en))),to(D,"ADD_FORBID_CONTENTS")&&Dd(D.ADD_FORBID_CONTENTS)&&(Re===Ue&&(Re=Ao(Re)),Tt(Re,D.ADD_FORBID_CONTENTS,en)),as&&(Oe["#text"]=!0),Gr&&Tt(Oe,["html","head","body"]),Oe.table&&(Tt(Oe,["tbody"]),delete dn.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw za('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw za('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const pe=U;U=D.TRUSTED_TYPES_POLICY;try{L=Q("")}catch(me){throw U=pe,me}}else D.TRUSTED_TYPES_POLICY===null?(U=void 0,L=""):(U===void 0&&(U=de()),U&&typeof L=="string"&&(L=Q("")));dr&&dr(D),Ls=D},ma=Tt({},[...kx,...Ax,...jue]),Pn=Tt({},[...Tx,...Fue]),Fm=function(D,G,pe){return G.namespaceURI===vo?D==="svg":G.namespaceURI===Lr?D==="svg"&&(pe==="annotation-xml"||Mn[pe]):!!ma[D]},$m=function(D,G,pe){return G.namespaceURI===vo?D==="math":G.namespaceURI===Ul?D==="math"&&Ds[pe]:!!Pn[D]},ga=function(D,G,pe){return G.namespaceURI===Ul&&!Ds[pe]||G.namespaceURI===Lr&&!Mn[pe]?!1:!Pn[D]&&(Rf[D]||!ma[D])},Si=function(D){const G=q(D),pe=dc(M(D)),me=E(D);let De,qe;return me&&I(me)===Vn.element?(De={namespaceURI:q(me)},qe=dc(M(me))):(De={namespaceURI:Ps},qe="template"),uu[G]?G===Ul?Fm(pe,De,qe):G===Lr?$m(pe,De,qe):G===vo?ga(pe,De,qe):!!(Fl==="application/xhtml+xml"&&uu[G]):!1},zs=function(D){Oh(t.removed,{element:D});try{E(D).removeChild(D)}catch{if(v(D),!E(D))throw za("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Of=function(D,G,pe){try{S(D,G)}catch{try{D.removeAttribute(pe)}catch{}}},du=function(D){yo(D);const G=C(D);G&&La(Rue(G),me=>{try{v(me)}catch{}});const pe=I(D)===Vn.element?A(D):null;if(pe)for(let me=pe.length-1;me>=0;--me){const De=pe[me],qe=De&&De.name;typeof qe=="string"&&Of(D,De,qe)}},wi=function(D,G,pe){if(!pe)try{pe=G.getAttributeNode(D)}catch{pe=null}Oh(t.removed,{attribute:pe||null,from:G});try{pe?S(G,pe):G.removeAttribute(D)}catch{try{G.removeAttribute(D)}catch{}}if(D==="is")if(sr||Un)try{zs(G)}catch{}else try{G.setAttribute(D,"")}catch{}},$l=function(D){const G=A(D);if(G)for(let pe=G.length-1;pe>=0;--pe){const me=G[pe],De=me&&me.name;typeof De!="string"||Fe[en(De)]||Of(D,me,De)}},xi=function(D,G){let pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const me=[D];for(;me.length>0;){const De=me.pop();if(G(De)===!1)continue;if(pe&&I(De)===Vn.element){const st=k(De);Us(st)&&me.push(st)}const qe=C(De);if(qe)for(let st=qe.length-1;st>=0;--st)me.push(qe[st])}},yo=function(D){xi(D,G=>{I(G)===Vn.element&&$l(G)})},Ir=function(D){const G=[];return xi(D,pe=>{G.push(pe)},!0),G},Bm=function(D,G){const pe=Cx();La(Ir(D),me=>{I(me)===Vn.element&&Ex(pe,me)}),La(G,me=>{I(me)===Vn.element&&!Nh(pe,me)&&$l(me)})},Hm=function(D,G){let pe=!1;return La(t.removed,me=>{me.element&&(pe=pe||me.element===D,yo(me.element))}),Bm(D,G),pe},Nf=8,qm=function(D,G){const pe=H;let me=null;const De=()=>(me||(me=Cx(),La(G,qe=>{Ex(me,qe)})),me);for(let qe=0;;qe++){const st=Ir(D),xt=[D];let ar=!1;if(La(st,Fn=>{I(Fn)===Vn.documentFragment?Oh(xt,Fn):!ar&&!Nh(pe,Fn)&&(ar=Nh(De(),Fn))}),!ar)return;if(qe>=Nf)throw za("the tree kept changing during in-place sanitization; refusing to return it");La(xt,(Fn,$n)=>{fu(Fn,$n>0,D,De())})}},fu=function(D,G,pe,me){const De=Bl(D);let qe;for(;qe=De.nextNode();)!Nh(me,qe)||Nh(H,qe)||(G&&Kr(ue.uponSanitizeShadowNode,qe,null),ql(qe,pe),ya(qe,pe),Us(qe.content)&&Ur(qe.content))},Xb=function(D){H&&Ex(H,D)},zr=function(D,G){return go?D==="patchsrc"?!0:D==="for"&&G!=="label"&&G!=="output":!1},Mf=function(D){go&&xi(D,G=>{const pe=I(G);if(pe===Vn.processingInstruction||pe===Vn.comment&&Cr(dP,G.data)){try{v(G)}catch{}return!1}if(pe===Vn.element){const me=G,De=en(M(G));try{me.hasAttribute&&me.hasAttribute("patchsrc")&&me.removeAttribute("patchsrc"),me.hasAttribute&&me.hasAttribute("for")&&zr("for",De)&&me.removeAttribute("for")}catch{}}return!0})},Pf=function(D){let G=null,pe=null;if(Tn)D="<remove></remove>"+D;else{const qe=nP(D,/^[\r\n\t ]+/);pe=qe&&qe[0]}Fl==="application/xhtml+xml"&&Ps===vo&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const me=U?Q(D):D;if(Ps===vo)try{G=new d().parseFromString(me,Fl)}catch{}if(!G||!G.documentElement){G=j.createDocument(Ps,"template",null);try{G.documentElement.innerHTML=jl?L:me}catch{}}const De=G.body||G.documentElement;return D&&pe&&De.insertBefore(n.createTextNode(pe),De.childNodes[0]||null),Ps===vo?J.call(G,Gr?"html":"body")[0]:Gr?G.documentElement:De},Bl=function(D){const G=O?O(D):D.ownerDocument;return Y.call(G||D,D,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},ls=function(D){return D=Mh(D,ge," "),D=Mh(D,ee," "),D=Mh(D,Se," "),D},hu=function(D){var G;Df(D);const pe=(G=D.querySelectorAll)===null||G===void 0?void 0:G.call(D,"template");pe&&La(pe,me=>{Us(me.content)&&hu(me.content)})},Df=function(D){D.normalize();const G=O?O(D):D.ownerDocument,pe=Y.call(G||D,D,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let me=pe.nextNode();for(;me;)me.data=ls(me.data),me=pe.nextNode()},cs=function(D){const G=N?N(D):null;return typeof G!="string"||en(G)!=="form"?!1:typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||D.attributes!==A(D)||typeof D.removeAttribute!="function"||typeof D.removeAttributeNode!="function"||typeof D.getAttributeNode!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function"||D.nodeType!==R(D)||D.childNodes!==C(D)},Us=function(D){if(!R||typeof D!="object"||D===null)return!1;try{return R(D)===Vn.documentFragment}catch{return!1}},Ci=function(D){if(!R||typeof D!="object"||D===null)return!1;try{return typeof R(D)=="number"}catch{return!1}};function Kr(be,D,G){be.length!==0&&La(be,pe=>{pe.call(t,D,G,Ls)})}const Lf=function(D,G){return!!(go&&D.hasChildNodes()&&!Ci(D.firstElementChild)&&Cr(Rx,D.textContent)&&Cr(Rx,D.innerHTML)||go&&Xue[G]&&I(D)===Vn.element&&q(D)===vo&&(Ci(D.firstElementChild)||typeof D.textContent=="string"&&Cr(Rx,D.textContent))||D.nodeType===Vn.processingInstruction||go&&D.nodeType===Vn.comment&&Cr(dP,D.data))},pu=function(D,G){if(D instanceof RegExp)return Cr(D,G);if(D instanceof Function){for(var pe=arguments.length,me=new Array(pe>2?pe-2:0),De=2;De<pe;De++)me[De-2]=arguments[De];return!!D(G,...me)}return!1},Qb=function(D,G,pe){if(!dn[G]&&va(G)&&pu(Jt.tagNameCheck,G))return!1;if(as&&!Re[G]&&!Re[dc(G)]){const me=E(D),De=C(D);if(De&&me){const qe=De.length;for(let st=qe-1;st>=0;--st){const xt=D===pe?g(De[st],!0):De[st];me.insertBefore(xt,b(D))}}}return zs(D),!0},Hl=function(D,G,pe,me){return D.length===0?G:G===pe||G===me?Ao(G):G},Rr=function(D,G){return D===G||E(D)!==null?!1:(Ms&&yo(D),!0)},ql=function(D,G){if(Xb(D),Kr(ue.beforeSanitizeElements,D,null),Rr(D,G))return!0;if(cs(D))return zs(D),!0;const pe=en(M(D));if(Oe=Hl(ue.uponSanitizeElement,Oe,yn,vi),Kr(ue.uponSanitizeElement,D,{tagName:pe,allowedTags:Oe}),Rr(D,G))return!0;if(Lf(D,pe))return zs(D),!0;if(dn[pe]||!(gr.tagCheck instanceof Function&&gr.tagCheck(pe))&&!Oe[pe]){const me=Qb(D,pe,G);return me===!1&&(Kr(ue.afterSanitizeElements,D,null),Rr(D,G))?!0:me}if(I(D)===Vn.element&&!Si(D)||(pe==="noscript"||pe==="noembed"||pe==="noframes")&&Cr(Zue,D.innerHTML))return zs(D),!0;if(or&&D.nodeType===Vn.text){const me=ls(D.textContent);D.textContent!==me&&(Oh(t.removed,{element:D.cloneNode()}),D.textContent=me)}return Kr(ue.afterSanitizeElements,D,null),Rr(D,G)},mu=function(D,G,pe){if(mo[G]||zr(G,D)||Dl&&(G==="id"||G==="name")&&(pe in n||pe in bi))return!1;const me=Fe[G]||gr.attributeCheck instanceof Function&&gr.attributeCheck(G,D);return At&&Cr(Pe,G)||kn&&Cr(xe,G)?!0:me?jn[G]||Cr(ot,Mh(pe,ze,""))||(G==="src"||G==="xlink:href"||G==="href")&&D!=="script"&&rP(pe,"data:")===0&&mt[D]||An&&!Cr(Ge,Mh(pe,ze,""))?!0:!pe:va(D)&&pu(Jt.tagNameCheck,D)&&pu(Jt.attributeNameCheck,G,D)||G==="is"&&Jt.allowCustomizedBuiltInElements&&pu(Jt.tagNameCheck,pe)},Ei=Tt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),va=function(D){return!Ei[dc(D)]&&Cr(He,D)},Wm=function(D,G,pe,me){if(U&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!pe)switch(h.getAttributeType(D,G)){case"TrustedHTML":return Q(me);case"TrustedScriptURL":return se(me)}return me},zf=function(D,G,pe,me){try{return pe?D.setAttributeNS(pe,G,me):D.setAttribute(G,me),cs(D)?(zs(D),!1):!0}catch{return wi(G,D),!1}},Uf=function(D,G){return go&&Cr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,G)?!0:dc(D)==="attributename"&&nP(G,"href")!==null},ya=function(D,G){if(Kr(ue.beforeSanitizeAttributes,D,null),Rr(D,G))return;const pe=D.attributes;if(!pe||cs(D))return;Fe=Hl(ue.uponSanitizeAttribute,Fe,zn,Uo);const me={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Fe,forceKeepAttr:void 0};let De=pe.length;const qe=en(D.nodeName);for(;De--;){const st=pe[De],xt=st.name,ar=st.namespaceURI,Fn=st.value,$n=en(xt),_i=Fn;let ir=xt==="value"?_i:Nue(_i),gu=!1;if(me.attrName=$n,me.attrValue=ir,me.keepAttr=!0,me.forceKeepAttr=void 0,Kr(ue.uponSanitizeAttribute,D,me),ir=me.attrValue,Ll&&($n==="id"||$n==="name")&&rP(ir,Ns)!==0&&(wi(xt,D,st),ir=Ns+ir,gu=!0),Uf(xt,ir)){wi(xt,D,st);continue}if(!me.forceKeepAttr){if(!me.keepAttr){wi(xt,D,st);continue}if(!Tr&&Cr(fP,ir)){wi(xt,D,st);continue}if(or&&(ir=ls(ir)),!mu(qe,$n,ir)){wi(xt,D,st);continue}ir=Wm(qe,$n,ar,ir),ir!==_i&&zf(D,xt,ar,ir)&&gu&&tP(t.removed)}}Kr(ue.afterSanitizeAttributes,D,null),Rr(D,G)},Ur=function(D){let G=null;const pe=Bl(D);for(Kr(ue.beforeSanitizeShadowDOM,D,null);G=pe.nextNode();)if(Kr(ue.uponSanitizeShadowNode,G,null),ql(G,D),ya(G,D),Us(G.content)&&Ur(G.content),I(G)===Vn.element){const me=k(G);Us(me)&&(Wl(me),Ur(me))}or&&Df(D),Kr(ue.afterSanitizeShadowDOM,D,null)},Wl=function(D){const G=[{node:D,shadow:null}];for(;G.length>0;){const pe=G.pop();if(pe.shadow){Ur(pe.shadow);continue}const me=pe.node,De=I(me)===Vn.element,qe=C(me);if(qe)for(let st=qe.length-1;st>=0;--st)G.push({node:qe[st],shadow:null});if(De){const st=N?N(me):null;if(typeof st=="string"&&en(st)==="template"){const xt=me.content;Us(xt)&&G.push({node:xt,shadow:null})}}if(De){const st=k(me);Us(st)&&G.push({node:null,shadow:st},{node:st,shadow:null})}}};return t.sanitize=function(be){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=null,pe=null,me=null,De=null;if(jl=!be,jl&&(be="<!-->"),typeof be!="string"&&!Ci(be)&&(be=Lue(be),typeof be!="string"))throw za("dirty is not a string, aborting");if(!t.isSupported)return be;fa?(Oe=vi,Fe=Uo):pa(D),(ue.uponSanitizeElement.length>0||ue.uponSanitizeAttribute.length>0)&&(Oe=Ao(Oe)),ue.uponSanitizeAttribute.length>0&&(Fe=Ao(Fe)),t.removed=[];const qe=Ms&&typeof be!="string"&&Ci(be);let st=[];const xt=H;if(qe){Mf(be);const $n=M(be);if(typeof $n=="string"){const _i=en($n);if(!Oe[_i]||dn[_i])throw du(be),za("root node is forbidden and cannot be sanitized in-place")}if(cs(be))throw du(be),za("root node is clobbered and cannot be sanitized in-place");st=Ir(be),H=Cx()}else if(Ci(be))G=Pf("<!---->"),pe=G.ownerDocument.importNode(be,!0),pe.nodeType===Vn.element&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?G=pe:G.appendChild(pe),Wl(G);else{if(!sr&&!or&&!Gr&&be.indexOf("<")===-1)return U&&yi?Q(be):be;if(G=Pf(be),!G)return sr?null:yi?L:""}G&&Tn&&zs(G.firstChild);const ar=qe?be:G;try{qe&&Wl(be);const $n=Bl(ar);for(;me=$n.nextNode();)ql(me,ar),ya(me,ar),Us(me.content)&&Ur(me.content);qe&&qm(be,st)}catch($n){throw qe&&(du(be),Hm(be,st)),$n}finally{H=xt}if(qe){if(Hm(be,st))throw za("a node selected for removal could not be safely returned; refusing to sanitize in place");return or&&hu(be),be}if(sr){if(or&&hu(G),Un)for(De=X.call(G.ownerDocument);G.firstChild;)De.appendChild(G.firstChild);else De=G;return(Fe.shadowroot||Fe.shadowrootmode)&&(De=ie.call(r,De,!0)),De}let Fn=Gr?G.outerHTML:G.innerHTML;return Gr&&Oe["!doctype"]&&G.ownerDocument&&G.ownerDocument.doctype&&G.ownerDocument.doctype.name&&Cr(Kue,G.ownerDocument.doctype.name)&&(Fn="<!DOCTYPE "+G.ownerDocument.doctype.name+`>
14
14
  `+Fn),or&&(Fn=ls(Fn)),U&&yi?Q(Fn):Fn},t.setConfig=function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pa(be),fa=!0,vi=Oe,Uo=Fe},t.clearConfig=function(){Ls=null,fa=!1,vi=null,Uo=null,U=B,L=""},t.isValidAttribute=function(be,D,G){Ls||pa({});const pe=en(be),me=en(D);return typeof G=="string"&&(Uf(D,G)||!Tr&&Cr(fP,G))?!1:mu(pe,me,G)},t.addHook=function(be,D){typeof D=="function"&&to(ue,be)&&Oh(ue[be],D)},t.removeHook=function(be,D){if(to(ue,be)){if(D!==void 0){const G=Iue(ue[be],D);return G===-1?void 0:Oue(ue[be],G,1)[0]}return tP(ue[be])}},t.removeHooks=function(be){to(ue,be)&&(ue[be]=[])},t.removeAllHooks=function(){ue=hP()},t}var dBe=rB();const pP="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface",ede="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",tde={nav:{base:ke("flex w-full items-center gap-2 rounded-md px-2 py-1 text-sm transition-colors",pP),rest:"text-fg-muted hover:bg-surface hover:text-fg",current:"bg-accent-2-soft font-medium text-accent-2"},row:{base:ke("relative flex w-full items-start text-left transition-colors",ede),rest:"hover:bg-surface-sunken",current:"bg-accent-2-soft"},inline:{base:ke("rounded-sm underline-offset-2 transition-colors hover:underline",pP),rest:"text-accent hover:text-accent-hover",current:"font-medium text-accent"}};function nde(e){return e!==void 0&&e!==!1&&e!=="false"}function fBe({variant:e="nav",current:t,"aria-current":n,className:r,children:o,ref:s,...i}){const c=t??n,u=tde[e];return x.jsx("a",{ref:s,"aria-current":c,className:ke(u.base,nde(c)?u.current:u.rest,r),...i,children:o})}function oB(e){const[t,n]=_.useState(!1),r=t?Rse:Ose,o=t?"Hide password":"Show password";return x.jsx(As,{...e,type:t?"text":"password",trailing:x.jsx("button",{type:"button","aria-label":o,"aria-pressed":t,title:o,onClick:()=>n(s=>!s),className:"-my-1 -mr-2 flex size-11 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg-subtle transition-colors hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:x.jsx(r,{className:"size-4","aria-hidden":!0})})})}const rde={info:"bg-accent-2",success:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function ode({value:e,max:t,tone:n="info",indeterminate:r=!1,className:o}){const s=r?100:t<=0?0:Math.min(100,Math.max(0,e/t*100));return x.jsx("div",{role:"progressbar","aria-valuenow":r?void 0:e,"aria-valuemin":r?void 0:0,"aria-valuemax":r?void 0:t,className:ke("h-1.5 w-full overflow-hidden rounded-full bg-surface-sunken",o),children:x.jsx("div",{className:ke("h-full rounded-full transition-[width] duration-300 ease-out",rde[n],r&&"w-1/3 animate-pulse"),style:r?void 0:{width:`${s}%`}})})}var Lp;(function(e){e[e.UP=-1]="UP",e[e.DOWN=1]="DOWN"})(Lp||(Lp={}));function sde(e){var t=getComputedStyle(e).overflowY;return e===document.scrollingElement&&t==="visible"?!0:!(t!=="scroll"&&t!=="auto")}function ade(e,t){if(!sde(e))return!1;if(t===Lp.DOWN){var n=e.scrollTop+e.clientHeight;return n<e.scrollHeight}if(t===Lp.UP)return e.scrollTop>0;throw new Error("unsupported direction")}function sB(e,t){return ade(e,t)?!0:e.parentElement==null?!1:sB(e.parentElement,t)}function aB(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var ide=`.lds-ellipsis {
15
15
  display: inline-block;
@@ -145,7 +145,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
145
145
  .ptr__loader {
146
146
  margin: 0 auto;
147
147
  text-align: center;
148
- }`;aB(ude);var hBe=function(e){var t=e.isPullable,n=t===void 0?!0:t,r=e.canFetchMore,o=r===void 0?!1:r,s=e.onRefresh,i=e.onFetchMore,c=e.refreshingContent,u=c===void 0?F.createElement(lde,null):c,d=e.pullingContent,h=d===void 0?F.createElement(cde,null):d,m=e.children,g=e.pullDownThreshold,v=g===void 0?67:g,S=e.fetchMoreThreshold,b=S===void 0?100:S,C=e.maxPullDownDistance,E=C===void 0?95:C,k=e.resistance,A=k===void 0?1:k,R=e.backgroundColor,N=e.className,O=N===void 0?"":N,I=_.useRef(null),M=_.useRef(null),z=_.useRef(null),q=_.useRef(null),U=!1,L=!1,B=!1,K=0,le=0;_.useEffect(function(){if(!(!n||!M||!M.current)){var Y=M.current;return Y.addEventListener("touchstart",se,{passive:!0}),Y.addEventListener("mousedown",se),Y.addEventListener("touchmove",de,{passive:!1}),Y.addEventListener("mousemove",de),window.addEventListener("scroll",_e),Y.addEventListener("touchend",j),Y.addEventListener("mouseup",j),document.body.addEventListener("mouseleave",j),function(){Y.removeEventListener("touchstart",se),Y.removeEventListener("mousedown",se),Y.removeEventListener("touchmove",de),Y.removeEventListener("mousemove",de),window.removeEventListener("scroll",_e),Y.removeEventListener("touchend",j),Y.removeEventListener("mouseup",j),document.body.removeEventListener("mouseleave",j)}}},[m,n,s,v,E,o,b]),_.useEffect(function(){var Y;if(!((Y=I)===null||Y===void 0)&&Y.current){var X=I.current.classList.contains("ptr--fetch-more-treshold-breached");X||o&&$()<b&&i&&(I.current.classList.add("ptr--fetch-more-treshold-breached"),L=!0,i().then(Q).catch(Q))}},[o,m]);var $=function(){if(!M||!M.current)return-1;var Y=window.scrollY,X=M.current.scrollHeight;return X-Y-window.innerHeight},Q=function(){requestAnimationFrame(function(){M.current&&(M.current.style.overflowX="hidden",M.current.style.overflowY="auto",M.current.style.transform="unset"),z.current&&(z.current.style.opacity="0"),I.current&&(I.current.classList.remove("ptr--pull-down-treshold-breached"),I.current.classList.remove("ptr--dragging"),I.current.classList.remove("ptr--fetch-more-treshold-breached")),U&&(U=!1),L&&(L=!1)})},se=function(Y){B=!1,Y instanceof MouseEvent&&(K=Y.pageY),window.TouchEvent&&Y instanceof TouchEvent&&(K=Y.touches[0].pageY),le=K,!(Y.type==="touchstart"&&sB(Y.target,Lp.UP))&&(M.current.getBoundingClientRect().top<0||(B=!0))},de=function(Y){if(B){if(window.TouchEvent&&Y instanceof TouchEvent?le=Y.touches[0].pageY:le=Y.pageY,I.current.classList.add("ptr--dragging"),le<K){B=!1;return}Y.cancelable&&Y.preventDefault();var X=Math.min((le-K)/A,E);X>=v&&(B=!0,U=!0,I.current.classList.remove("ptr--dragging"),I.current.classList.add("ptr--pull-down-treshold-breached")),!(X>=E)&&(z.current.style.opacity=(X/65).toString(),M.current.style.overflow="visible",M.current.style.transform="translate(0px, "+X+"px)",z.current.style.visibility="visible")}},_e=function(Y){L||o&&$()<b&&i&&(L=!0,I.current.classList.add("ptr--fetch-more-treshold-breached"),i().then(Q).catch(Q))},j=function(){if(B=!1,K=0,le=0,!U){z.current&&(z.current.style.visibility="hidden"),Q();return}M.current&&(M.current.style.overflow="visible",M.current.style.transform="translate(0px, "+v+"px)"),s().then(Q).catch(Q)};return F.createElement("div",{className:"ptr "+O,style:{backgroundColor:R},ref:I},F.createElement("div",{className:"ptr__pull-down",ref:z},F.createElement("div",{className:"ptr__loader ptr__pull-down--loading"},u),F.createElement("div",{className:"ptr__pull-down--pull-more"},h)),F.createElement("div",{className:"ptr__children",ref:M},m,F.createElement("div",{className:"ptr__fetch-more",ref:q},F.createElement("div",{className:"ptr__loader ptr__fetch-more--loading"},u))))};const dde=e=>e===1?"message":"messages",rv=e=>`${e.toLocaleString()} ${dde(e)}`,Nx=(e,t)=>e.kind==="delete"?`delete ${rv(e.count)}`:t===void 0?"empty it":`empty ${rv(t)}`,iB=e=>e.kind==="delete"?"Nothing has been deleted.":"Nothing has been emptied.",fde=(e,t,n={})=>{const{trashFolderLabel:r,staleFolderLabel:o,selectedCount:s}=n,i=iB(t);if(e==="none")return{title:"No folder is set as Trash",description:`${i} reader files deleted mail in the folder you set as Trash, and this account has none.`,pickerPrompt:"Which folder does this account use for deleted mail?",confirmLabel:`Set as Trash and ${Nx(t,void 0)}`,cancelLabel:"Cancel"};if(e==="stale")return{title:"The Trash folder you chose is gone",description:o?`${i} You set ${o} as this account's Trash and it is no longer on the mail server — another mail app may have renamed or removed it.`:`${i} The folder you set as this account's Trash is no longer on the mail server — another mail app may have renamed or removed it.`,pickerPrompt:"Which folder should reader use instead?",confirmLabel:`Set as Trash and ${Nx(t,void 0)}`,cancelLabel:"Cancel"};const c=t.kind==="delete"?`Deleting ${rv(t.count)} there erases them from the mail server, and that cannot be restored.`:"Emptying a folder erases everything in it from the mail server, and that cannot be restored.";return{title:"Confirm this account's Trash folder",description:r?`${i} reader files this account's deleted mail in ${r} because of its name — you never chose it, and the mail server doesn't mark it as Trash. ${c}`:`${i} reader files this account's deleted mail in a folder it matched by name — you never chose it, and the mail server doesn't mark it as Trash. ${c}`,pickerPrompt:r?`Confirm ${r}, or pick the folder this account really uses.`:"Pick the folder this account really uses for deleted mail.",confirmLabel:`Set as Trash and ${Nx(t,s)}`,cancelLabel:"Cancel"}},hde=(e,t,n,r)=>e.kind==="appointing"?{headline:"Setting the Trash folder…",status:n}:t.kind==="delete"?{headline:`Deleting ${rv(t.count)}…`,status:r?`Erasing them from ${n}. This can't be undone.`:`Moving them to ${n}`}:{headline:`Emptying ${n}…`,status:"This can't be undone."},pde=(e,t,n,r)=>e==="unconfirmed"&&t.kind==="delete"&&n!==void 0&&r===n,mde=(e,t,n)=>e==="mailbox-pending"?`${n} is still being created on the mail server. Wait for it to finish, then try again.`:`Couldn't set that folder as Trash. ${iB(t)} Please try again.`,gde=({open:e,reason:t,action:n,folders:r,delimiter:o,trashFolderLabel:s,guessedMailboxId:i,staleFolderLabel:c,accountEmail:u,phase:d,selectedId:h,onSelect:m,onCreateFolder:g,onConfirm:v,onCancel:S})=>{const b=_.useRef(null),C=d.kind==="appointing"||d.kind==="acting";_.useEffect(()=>{C&&b.current?.focus()},[C]);const E=r.find(N=>N.id===h),k=fde(t,n,{trashFolderLabel:s,staleFolderLabel:c,selectedCount:E?.messageCount}),A=pde(t,n,i,h),R=n.kind==="emptyTrash"||A;if(!e)return null;if(C){const N=hde(d,n,E?.label??"",A);return x.jsx(A3,{open:e,onClose:()=>{},title:k.title,children:x.jsxs("div",{ref:b,"data-escape-owner":!0,tabIndex:-1,className:"flex flex-col items-center gap-3 px-5 py-10 text-center outline-none",children:[x.jsx(Op,{className:"size-8 animate-spin text-accent-2"}),x.jsx("p",{className:"text-sm font-medium text-fg",children:N.headline}),x.jsx("p",{className:"text-xs text-fg-muted",role:"status","aria-live":"polite",children:N.status})]})})}return x.jsxs(A3,{open:e,onClose:S,title:k.title,children:[x.jsxs("header",{className:"flex items-center gap-2 border-b border-line px-5 py-3",children:[x.jsx(Sl,{className:`size-4 shrink-0 ${R?"text-danger":"text-warning"}`}),x.jsx("span",{className:"flex-1 text-sm font-semibold text-fg",children:k.title})]}),x.jsxs("div",{className:"flex max-h-[70vh] flex-col",children:[x.jsxs("div",{className:"space-y-1 px-5 py-4",children:[x.jsx("p",{className:"text-sm text-fg-muted",children:k.description}),u&&x.jsx("p",{className:"text-xs text-fg-subtle",children:u})]}),d.kind==="appoint-failed"&&x.jsx("div",{className:"px-5 pb-3",children:x.jsx(Jo,{tone:"danger",variant:"soft",children:mde(d.cause,n,E?.label??"That folder")})}),x.jsx("p",{className:"px-5 pb-2 text-sm text-fg-muted",children:k.pickerPrompt}),x.jsx("div",{className:"flex h-[26rem] min-h-0 flex-1 overflow-hidden",children:x.jsx(wT,{folders:r,selectedId:h,delimiter:o,onSelect:m,onCreateFolder:t==="none"?g:void 0,onCancel:S,labels:{treeAriaLabel:"Folders on this account",optionLabel:N=>`Set ${N.label}${N.messageCount===void 0?"":`, ${N.messageCount} messages`}, as Trash`}})})]}),x.jsxs("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:[x.jsx(Bt,{variant:"secondary",size:"sm",onClick:S,children:k.cancelLabel}),E&&x.jsx(Bt,{variant:R?"danger":"primary",size:"sm",onClick:()=>v(E.id),children:x.jsx("span",{className:"truncate",children:k.confirmLabel})})]})]})};function vde(e){return e.scopedOutFolder!==void 0||(e.droppedFacets?.length??0)>0}function yde(e){return`Your search was limited to ${e}. This filter matches these messages in any folder — it can't be pinned to one.`}const lB=e=>e.length===1?e[0]:e.length===2?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`;function bde(e){const t=e.length===1?"a filter condition":"filter conditions",n=e.length===1?"isn't":"aren't";return`${lB(e)} ${n} ${t}, so ${e.length===1?"it was":"they were"} left out — the filter still matches everything else you searched for.`}const Mx="add a sender or words to filter on";function pBe(e){if(e.length===0)return`${Mx[0].toUpperCase()}${Mx.slice(1)}`;const t=e.length===1?"isn't":"aren't",n=e.length===1?"a filter condition":"filter conditions";return`${lB(e)} ${t} ${n} — ${Mx}`}function mP({icon:e,children:t}){return x.jsxs("li",{className:"flex items-start gap-2",children:[x.jsx("span",{className:"mt-0.5 shrink-0 text-fg-subtle","aria-hidden":"true",children:e}),x.jsx("span",{children:t})]})}function Sde({notice:e}){return vde(e)?x.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken px-3 py-2.5",children:[x.jsx("p",{className:"text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"From your search"}),x.jsxs("ul",{className:"mt-1.5 space-y-1.5 text-xs text-fg-muted",children:[e.scopedOutFolder!==void 0&&x.jsx(mP,{icon:x.jsx(Pse,{className:"size-3.5"}),children:yde(e.scopedOutFolder)}),e.droppedFacets&&e.droppedFacets.length>0&&x.jsx(mP,{icon:x.jsx(jF,{className:"size-3.5"}),children:bde(e.droppedFacets)})]})]}):null}const wde={delete:{label:"Delete",present:"Deleting",past:"Deleted",destructive:!0},move:{label:"Move",present:"Moving",past:"Moved",destructive:!1},junk:{label:"Junk",present:"Marking as junk",past:"Marked as junk",destructive:!0},markRead:{label:"Mark read",present:"Marking read",past:"Marked read",destructive:!1},organize:{label:"Organize",present:"Organizing",past:"Organized",destructive:!1}},xT=e=>wde[e],xde={match:"Apply to",properties:"Properties",folder:"Folder",rule:"Rule",name:"Name",review:"Review",run:"Run"},cB=e=>xde[e],mBe=({verb:e,mode:t,scope:n,fromSearch:r})=>{const o=r?["properties"]:t==="properties"?["match","properties"]:["match"];return e==="move"?[...o,"folder","review","run"]:e==="organize"?n==="standing"||n==="until"?[...o,"folder","rule","name","review","run"]:[...o,"folder","rule","review","run"]:[...o,"review","run"]},Ny=(e,t)=>Math.max(0,e.indexOf(t)),Cde=(e,t)=>Ny(e,t)===0||t==="run",uB=(e,t)=>({clauses:[...e.clauses],matchOperator:e.matchOperator,moveMailboxId:e.moveMailboxId,scope:t,until:e.until,name:e.name}),dB=e=>N$(uB(e,e.scope??"once")),gP=e=>{if(!(e.scope!=="standing"&&e.scope!=="until")&&!O$(uB(e,e.scope)))return Ro.noMatch},Ede="A rule only works within one account — clear the selection, or pick messages from a single account.",_de="A destination only works within one account — clear the selection, or pick messages from a single account.",kde="Matching beyond the messages you picked only works within one account — clear the selection, or pick messages from a single account.",Ade="A rule only works within one folder — clear the selection, or pick messages from a single folder.",Tde="A destination only works within one folder — clear the selection, or pick messages from a single folder.",Ide={spansAccounts:{rule:Ede,destination:_de},spansFolders:{rule:Ade,destination:Tde}},Rde="A match this wide applies once — use “Make this a filter” above the results to keep doing it.",gBe=(e,t)=>e==="escalated"?Rde:t.rule,vBe=(e,t)=>{const n=e===void 0?"spansAccounts":t;if(!n)return{accountId:e};const r=Ide[n];return{accountId:n==="spansAccounts"?void 0:e,rule:r.rule,destination:r.destination}},Ode=e=>e===void 0?["selected"]:["selected","properties"],Nde="This matches no messages, so there is nothing to do. Go back and change what it applies to.",Mde="Fill in every property, or take the empty one off.",Pde="Pick a destination first.",Dde="Choose one of the three first.",yBe=(e,t,n)=>{if(e==="properties")return t.clauses.length===0?Ro.noMatch:t.clauses.some(r=>r.value.trim()==="")?Mde:void 0;if(e==="folder")return t.moveMailboxId?void 0:Pde;if(e==="rule"){if(!t.scope)return Dde;const r=gP(t);return r||(t.scope==="once"&&dB(t).length>0?Ro.bodyTextOnce:t.scope==="until"&&!t.until?.trim()?Ro.noUntilDate:void 0)}if(e==="name"&&!t.name?.trim())return Ro.unnamed;if(e==="review"){const r=gP(t);return r||(n.status==="uncounted"?void 0:n.status==="ready"&&n.count===0&&!n.stale?Nde:D$(n))}},Lde="Nothing matches this yet. Widen a property, or match on a different one.",CT=({state:e,verb:t,scope:n,matched:r,applied:o,failed:s,failureReason:i})=>{const{label:c,present:u,past:d}=xT(t),h=d.toLowerCase(),m=n==="standing"||n==="until",v={screenTitle:e==="saving"||e==="backApplyRunning"||e==="statusUnknown"||e==="commitFailed"?c:"Done",showProgress:e==="backApplyRunning"||e==="backApplyComplete"||e==="backApplyFailed"||e==="backApplyRestartFailed"||e==="statusUnknown"||e==="runStopped",failureListLabel:`Not ${h}`};return e==="saving"?{...v,title:m?"Saving rule…":"Applying…",detail:"Nothing has been changed yet.",tone:"progress",dismissLabel:"Close"}:e==="backApplyRunning"?{...v,title:m?"Rule saved. Moving the mail already in your mailbox…":`${u} ${r} messages…`,detail:"This keeps running if you close the wizard.",tone:"progress",dismissLabel:"Close",cancelLabel:"Stop the run"}:e==="statusUnknown"?{...v,title:m?"Rule saved. Its progress over your existing mail is unknown":`${u} — progress unknown`,detail:m?"The connection dropped, so the bar shows the last that was read. The pass runs on the mail server, and the rule keeps working on new mail either way. This keeps checking.":"The connection dropped, so the bar shows the last that was read. The run is on the mail server and carries on either way. This keeps checking.",tone:"warning",dismissLabel:"Close",retryLabel:"Check again"}:e==="backApplyComplete"?{...v,title:m?"Rule saved and applied":`${d} ${o}`,detail:m?`${o} of ${r} already in your mailbox ${h}. New mail follows the rule as it arrives.`:`Every message the match reached was ${h}. Your mail server is still catching up, so the list can lag behind.`,tone:"success",dismissLabel:"Done"}:e==="backApplyFailed"?{...v,title:m?"Rule saved — some mail stayed put":`Not everything was ${h}`,detail:`${o} of ${r} ${h} · the mail server rejected ${s}.${m?" The rule itself is saved and keeps working on new mail.":""}`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:e==="runStopped"?{...v,title:`Stopped after ${o}`,detail:`${o} of ${r} ${h}. The rest were not sent, apart from the ones already on their way when you stopped — those may still have gone through.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:e==="backApplyRestartFailed"?{...v,title:m?"Rule saved — the retry didn't start":"The retry didn't start",detail:`${o} of ${r} ${h} · the mail server rejected ${s}, which are still where they were.${m?" The rule itself is saved and keeps working on new mail.":""} Check your connection and try again.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:e==="backApplyStartFailed"?{...v,title:"Rule saved",detail:"New mail follows it automatically. The pass over the mail already in your mailbox never started.",tone:"warning",dismissLabel:"Not now",retryLabel:"Run it over existing mail"}:e==="filterSaved"?{...v,title:"Filter saved",detail:"There is no mail in your mailbox to apply it to yet. New mail follows it as it arrives. You can see it, and when it expires, under Settings › Filters.",tone:"success",dismissLabel:"Done"}:{...v,title:m?"Couldn't save the rule":`Couldn't start ${c.toLowerCase()}`,detail:i??"Nothing has changed.",tone:"danger",dismissLabel:i===void 0?"Not now":"Close",retryLabel:i===void 0?"Try again":void 0}},zde=e=>`${Pd(e.field)} "${e.value}"`,fB=(e,t)=>e.map(zde).join(` ${ST(t)} `),H3=(e,t)=>e==="selected"?`These ${t} messages`:"Its properties",vP=e=>e==="selected"?"Only the messages ticked in the list.":Fle,hB=e=>`Every message ${e}`,ET="the list is showing",Ude="This reaches every match on the mail server, including the ones the list has not loaded. The search is already the match, so there is nothing to widen.",jde="This covers messages not shown in the list, and anything else matching by the time it runs.",Fde=({mode:e,selectedCount:t,clauses:n,matchOperator:r,escalatedScope:o})=>e==="escalated"?hB(o??ET):e==="properties"?fB(n,r):H3(e,t),$de=({mode:e,selectedCount:t,clauses:n,matchOperator:r,escalatedScope:o,escalatedCount:s})=>{if(e==="selected")return`${t} messages`;if(e==="escalated"){const i=o??ET;return s===void 0?`every message ${i}`:`all ${s.toLocaleString()} messages ${i}`}return n.length===0?"every message":`every message where ${fB(n,r)}`};function Bde({title:e,subtitle:t,steps:n,step:r,onBack:o,onExit:s,footer:i,children:c}){return x.jsx(gce,{title:e,subtitle:t,steps:n.map(cB),activeStep:Ny(n,r),onBack:o,onExit:s,footer:i,children:c})}function gp({selected:e,title:t,description:n,unavailable:r,onSelect:o,children:s}){const i=_.useId();return x.jsxs("div",{className:"space-y-1.5",children:[x.jsxs("button",{type:"button",onClick:o,"aria-pressed":e,"aria-describedby":r&&s?i:void 0,className:ke("flex w-full items-start gap-3 rounded-lg border p-3 text-left transition-colors",e?"border-accent bg-accent-soft":"border-line bg-surface hover:bg-surface-sunken",r&&"opacity-55"),children:[x.jsx("span",{className:ke("mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full border",e?"border-accent bg-accent text-accent-fg":"border-line"),children:e&&x.jsx(wy,{className:"size-3"})}),x.jsxs("span",{className:"min-w-0 flex-1",children:[x.jsx("span",{className:"block text-sm font-medium text-fg",children:t}),x.jsx("span",{className:"mt-0.5 block text-xs text-fg-muted",children:n})]})]}),s&&x.jsx("div",{id:i,children:s})]})}const Hde=(e,t)=>e.status==="uncounted"?"The first matches. The total is not known until the run finishes.":e.status==="ready"&&e.count>t&&!e.stale?`and ${e.count-t} more`:M$(e),qde=(e,t)=>t?"Fetching the messages this covers…":e.status==="error"?e.reason:Lde;function ov({messages:e,count:t,label:n,loading:r}){return x.jsxs("section",{className:"flex flex-col rounded-lg border border-line bg-surface",children:[x.jsx("h2",{className:"shrink-0 border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:n}),e.length===0?x.jsx("p",{className:"px-3 py-4 text-xs text-fg-muted",children:qde(t,r)}):x.jsxs(x.Fragment,{children:[x.jsx("ul",{className:"min-h-0 max-h-[45dvh] divide-y divide-line overflow-y-auto overscroll-contain md:max-h-[17rem]",children:e.map(o=>x.jsxs("li",{className:"px-3 py-2",children:[x.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[x.jsx("span",{className:"truncate text-xs font-medium text-fg",children:o.sender}),x.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:o.date})]}),x.jsx("p",{className:"truncate text-xs text-fg-muted",children:o.subject})]},o.id))}),x.jsx("p",{className:"shrink-0 border-t border-line px-3 py-2 text-2xs text-fg-subtle",children:Hde(t,e.length)})]})]})}function yP({onBack:e,nextLabel:t,onNext:n,nextVariant:r="primary",blockedReason:o,nudged:s}){const i=_.useId();return x.jsxs("div",{className:"space-y-2",children:[o&&x.jsx(Xie,{id:i,reason:o,nudged:s,className:"px-1 text-2xs text-warning"}),x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(Bt,{variant:"ghost",size:"touch",onClick:e,icon:x.jsx(DF,{className:"size-4"}),className:"shrink-0",children:"Back"}),x.jsxs(Bt,{variant:r==="danger"?"danger":"primary",size:"touch",onClick:n,"aria-describedby":o?i:void 0,className:ke("flex-1",o&&"opacity-55"),children:[t,r==="primary"&&x.jsx(kse,{className:"size-4"})]})]})]})}function Wde({selectedCount:e,mode:t,accountId:n,onModeChange:r,escalatedScope:o,sample:s}){if(t==="escalated")return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"rounded-lg border border-accent bg-accent-soft p-3",children:[x.jsx("p",{className:"text-sm font-medium text-fg",children:hB(o??ET)}),x.jsx("p",{className:"mt-1 text-xs text-fg-muted",children:Ude})]}),x.jsx("div",{className:"mt-4",children:x.jsx(ov,{...s})})]});const c=Ode(n).length>1;return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"space-y-2",children:[!c&&x.jsx("p",{className:"px-1 text-2xs text-warning",children:kde}),x.jsx(gp,{selected:t==="selected",onSelect:()=>r("selected"),title:H3("selected",e),description:vP("selected")}),c&&x.jsx(gp,{selected:t==="properties",onSelect:()=>r("properties"),title:H3("properties",e),description:vP("properties")})]}),x.jsx("div",{className:"mt-4",children:x.jsx(ov,{...s})})]})}const Vde=[{value:"all",label:tv("all")},{value:"any",label:tv("any")}];function Gde({clauses:e,matchOperator:t,onMatchOperatorChange:n,clauseEdit:r,onStartAddClause:o,onStartEditClause:s,onRemoveClause:i,onChangeDraft:c,onSubmitClause:u,onCancelClause:d,clauseFields:h,clauseSuggestions:m,conversionNotice:g,sample:v}){const S=ST(t);return x.jsxs("div",{className:"space-y-4",children:[g&&x.jsx(Sde,{notice:g}),x.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[e.map((b,C)=>x.jsxs(_.Fragment,{children:[C>0&&x.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:S}),x.jsx(z$,{clause:b,onEdit:()=>s(b.id),onRemove:()=>i(b.id)})]},b.id)),!r&&x.jsx(U$,{label:"Add clause",onClick:o})]}),r&&x.jsx(j$,{draft:r.draft,mode:r.mode,fields:h,suggestions:m,onChangeField:b=>c({...r.draft,field:b}),onChangeValue:b=>c({...r.draft,value:b}),onSubmit:u,onCancel:d}),e.length>1&&x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),x.jsx(j3,{name:"wizard-match-operator",size:"sm","aria-label":"Match operator",options:Vde,value:t,onChange:n})]}),x.jsx("p",{className:"px-1 text-xs text-fg-muted",children:"We started you off from what you were looking at. Change any of it — this is where the rule is decided, not the list behind it."}),x.jsx(ov,{...v})]})}function Kde({folders:e,mailboxId:t,onSelect:n,onCreateFolder:r,delimiter:o,restriction:s}){const i=e.find(c=>c.id===t);return x.jsxs("div",{className:"flex min-h-0 flex-col gap-3",children:[x.jsx("p",{className:ke("px-1 text-xs",s?"text-warning":"text-fg-muted"),children:s??(i?`Moving to ${i.label}.`:"Tap a folder to open it, or make a new one where you want it.")}),x.jsx("div",{className:"flex min-h-0 flex-1 overflow-hidden rounded-lg border border-line bg-surface",children:x.jsx(wT,{folders:e,selectedId:t,onSelect:n,onCreateFolder:r,delimiter:o,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})})]})}function Yde({draft:e,onScopeChange:t,onUntilChange:n,restriction:r}){const o=_.useId(),{scope:s,until:i=""}=e,c=dB(e).length>0,u=r&&x.jsx("p",{className:"px-1 text-2xs text-warning",children:r});return x.jsxs("div",{className:"space-y-2",children:[x.jsx(gp,{selected:s==="once",onSelect:()=>t("once"),title:x1("once"),description:"A one-off tidy-up. Nothing changes for future mail.",children:c&&x.jsx("p",{className:"px-1 text-2xs text-warning",children:Ro.bodyTextOnce})}),x.jsx(gp,{selected:s==="standing",unavailable:!!r,onSelect:()=>t("standing"),title:x1("standing"),description:"Saves a rule and applies it to new mail as it arrives, and to the mail already in your mailbox. You'll name it next.",children:u}),x.jsxs(gp,{selected:s==="until",unavailable:!!r,onSelect:()=>t("until"),title:x1("until"),description:"The same rule, and it stops on a day you pick.",children:[u,s==="until"&&x.jsxs("div",{className:"rounded-lg border border-line bg-surface p-2",children:[x.jsx(bT,{htmlFor:o,children:"Stops on"}),x.jsx(As,{id:o,type:"date",value:i,onChange:d=>n(d.target.value)})]})]})]})}function Zde({name:e,onNameChange:t,nudged:n}){const r=_.useId(),o=_.useRef(null);return _.useEffect(()=>{n&&o.current?.focus()},[n]),x.jsxs(x.Fragment,{children:[x.jsx(bT,{htmlFor:r,children:"Rule name"}),x.jsx(As,{id:r,ref:o,value:e,placeholder:"Travel confirmations",onChange:s=>t(s.target.value),trailing:e?x.jsx("button",{type:"button","aria-label":"Clear name",onClick:()=>{t(""),o.current?.focus()},className:"-mr-1 flex size-7 shrink-0 items-center justify-center rounded-full text-fg-subtle hover:bg-surface hover:text-fg",children:x.jsx(ti,{className:"size-4"})}):void 0}),x.jsx("p",{className:"mt-2 text-xs text-fg-muted",children:"We suggested one from this selection. Clear it and write your own if it doesn't read right."})]})}function Xde({verb:e,mode:t,selectedCount:n,clauses:r,matchOperator:o,folder:s,scope:i,until:c,ruleName:u,escalatedScope:d,sample:h}){const{label:m}=xT(e),g={mode:t,selectedCount:n,clauses:r,matchOperator:o,escalatedScope:d,escalatedCount:h.count.status==="ready"?h.count.count:void 0},v=t!=="selected",S=i==="standing"||i==="until";return x.jsxs("div",{className:"space-y-4",children:[x.jsxs("div",{className:"rounded-lg border border-line bg-surface p-3",children:[x.jsxs("p",{className:"text-sm text-fg",children:[x.jsx("span",{className:"font-semibold",children:m})," ",$de(g),s?` to ${s}`:"",S&&x.jsxs(x.Fragment,{children:[" ","and ",x.jsx("span",{className:"font-medium",children:"save a rule"})," that keeps doing it"]}),i==="until"&&c&&` until ${c}`,"."]}),v&&x.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[x.jsx(Sl,{className:"mt-px size-3.5 shrink-0"}),t==="escalated"?jde:"This covers messages not shown in the list."]})]}),x.jsxs("dl",{className:"divide-y divide-line overflow-hidden rounded-lg border border-line bg-surface text-xs",children:[x.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[x.jsx("dt",{className:"text-fg-muted",children:"Action"}),x.jsx("dd",{className:"font-medium",children:m})]}),x.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[x.jsx("dt",{className:"shrink-0 text-fg-muted",children:"Apply to"}),x.jsx("dd",{className:"truncate font-medium",children:Fde(g)})]}),s&&x.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[x.jsx("dt",{className:"text-fg-muted",children:"Destination"}),x.jsx("dd",{className:"font-medium",children:s})]}),i&&x.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[x.jsx("dt",{className:"text-fg-muted",children:"Scope"}),x.jsxs("dd",{className:"font-medium",children:[x1(i),i==="until"&&c?` · ${c}`:""]})]}),u!==void 0&&x.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[x.jsx("dt",{className:"text-fg-muted",children:"Rule name"}),x.jsx("dd",{className:"truncate font-medium",children:u})]})]}),x.jsx(ov,{...h})]})}const _T=e=>({state:e.state,verb:e.verb,scope:e.scope,matched:e.matched,applied:e.applied,failed:e.failedCount??e.failures.length,failureReason:e.failureReason}),Qde=e=>e==="progress"?x.jsx(Op,{className:"size-10 animate-spin text-accent"}):e==="warning"?x.jsx(Sl,{className:"size-10 text-warning"}):e==="danger"?x.jsx(Sl,{className:"size-10 text-danger"}):x.jsx("span",{className:"flex size-12 items-center justify-center rounded-full bg-accent-soft text-accent",children:x.jsx(wy,{className:"size-6"})});function Jde(e){const{matched:t,applied:n,failures:r}=e,o=_T(e),s=CT(o),i=e.state==="runStopped"?"Not confirmed":"Server rejected";return x.jsxs("div",{className:"space-y-4 pt-2",children:[x.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[Qde(s.tone),x.jsx("p",{className:"text-sm font-medium",children:s.title}),x.jsx("p",{className:"max-w-xs text-xs text-fg-muted",children:s.detail})]}),s.showProgress&&x.jsx(ode,{value:n,max:t,tone:o.failed>0?"warning":"success"}),r.length>0&&x.jsxs("section",{className:"rounded-lg border border-line bg-surface",children:[x.jsx("h2",{className:"border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:s.failureListLabel}),x.jsx("ul",{className:"divide-y divide-line",children:r.map(c=>x.jsxs("li",{className:"px-3 py-2",children:[x.jsx("p",{className:"truncate text-xs font-medium",children:c.sender}),x.jsx("p",{className:"truncate text-xs text-fg-muted",children:c.subject}),x.jsx(_3,{className:"mt-1",tone:"warning",children:i})]},c.id))})]})]})}function efe(e){const{onRetry:t,onDismiss:n,onCancelRun:r}=e,o=CT(_T(e));return o.cancelLabel!==void 0&&r?x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(Bt,{variant:"ghost",size:"md",className:"min-h-11 shrink-0",onClick:r,children:o.cancelLabel}),x.jsx(Bt,{variant:"primary",size:"md",className:"min-h-11 flex-1",onClick:n,children:o.dismissLabel})]}):o.retryLabel===void 0?x.jsx(Bt,{variant:o.tone==="progress"?"ghost":"primary",size:"touch",className:"w-full",onClick:n,children:o.dismissLabel}):x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(Bt,{variant:"ghost",size:"touch",onClick:n,children:o.dismissLabel}),x.jsx(Bt,{variant:"primary",size:"touch",className:"flex-1",onClick:t,children:o.retryLabel})]})}const tfe={match:{subtitle:"What should this apply to?"},properties:{title:"Match properties",subtitle:"Which properties have to match?"},folder:{title:"Move to",subtitle:"Pick a destination"},rule:{title:"Organize",subtitle:"How long should this hold?"},name:{title:"Name the rule",subtitle:"So you can find it later"},review:{title:"Review",subtitle:"Check before it runs"},run:{}},Ws=(e,t)=>{if(e===void 0)throw new Error(`The ${cB(t)} step was rendered without its answers.`);return e};function bBe(e){const{verb:t,steps:n,onExit:r,onContinue:o,onCommit:s}=e,{label:i,destructive:c}=xT(t),u=n[Ny(n,e.step)],d=tfe[u],h=Cde(n,u)?r:e.onBack,m=()=>u==="match"?x.jsx(Wde,{...Ws(e.match,u)}):u==="properties"?x.jsx(Gde,{...Ws(e.properties,u)}):u==="folder"?x.jsx(Kde,{...Ws(e.folder,u)}):u==="rule"?x.jsx(Yde,{...Ws(e.rule,u)}):u==="name"?x.jsx(Zde,{...Ws(e.name,u),nudged:e.nudged}):u==="review"?x.jsx(Xde,{...Ws(e.review,u)}):x.jsx(Jde,{...Ws(e.run,u)}),g=()=>{if(u==="run")return x.jsx(efe,{...Ws(e.run,u)});if(u==="review"){const b=Ws(e.review,u);return x.jsx(yP,{onBack:h,nextLabel:b.scope?P$(b.scope):i,nextVariant:c?"danger":"primary",onNext:s,blockedReason:e.blockedReason,nudged:e.nudged})}return x.jsx(yP,{onBack:h,nextLabel:"Continue",onNext:o,blockedReason:e.blockedReason,nudged:e.nudged})},v=()=>u!=="run"?d.title??i:CT(_T(Ws(e.run,u))).screenTitle,S=u==="match"&&e.match?.mode==="escalated"?"What this applies to":d.subtitle;return x.jsx(Bde,{title:v(),subtitle:S,steps:n,step:u,onBack:h,onExit:r,footer:g(),children:m()})}const nfe={preparing:"Getting the new version ready",restarting:"Restarting Remit",reconnecting:"Waiting for Remit to answer again"};function bP(e){return nfe[e]}function rfe(e){return e<90?"This usually takes about a minute.":e<240?"Longer than usual. Remit is still trying to reach the server.":"Still no answer. Remit keeps trying."}function SBe(e,t=Date.now()){const n=Math.floor((t-e)/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function wBe(e){return new Date(e).toLocaleDateString(void 0,{dateStyle:"medium"})}const SP=["preparing","restarting","reconnecting"],pB="fixed inset-0 z-50 flex flex-col items-center justify-center gap-6 bg-canvas p-6 text-center outline-none";function ofe({target:e,phase:t,elapsedSeconds:n}){const r=_.useRef(null);bm(r,!0),xy({id:"self-update",open:!0});const o=SP.indexOf(t);return x.jsxs("div",{ref:r,role:"dialog","aria-modal":"true","aria-labelledby":"self-update-progress-title",tabIndex:-1,className:pB,children:[x.jsxs("div",{className:"max-w-md space-y-2",children:[x.jsxs("h1",{id:"self-update-progress-title",className:"text-lg font-semibold text-fg",children:["Installing Remit ",e]}),x.jsx("p",{className:"text-sm text-fg-muted",children:"Remit is restarting, so this page has no server to talk to for a moment. Leave this open — it reconnects on its own."})]}),x.jsx("ol",{className:"w-full max-w-sm space-y-2 text-left",children:SP.map((s,i)=>{const c=i<o,u=i===o;return x.jsxs("li",{className:ke("flex items-center gap-3 rounded-sm border px-row-inset py-2 text-sm",u?"border-line-strong bg-surface text-fg":"border-line bg-surface-sunken text-fg-subtle"),children:[c?x.jsx(wy,{className:"size-4 shrink-0 text-positive","aria-hidden":!0}):u?x.jsx(Op,{className:"size-4 shrink-0 animate-spin text-accent-2","aria-hidden":!0}):x.jsx("span",{className:"size-4 shrink-0 rounded-full border border-line-strong"}),bP(s)]},s)})}),x.jsxs("p",{"aria-live":"polite",className:"max-w-md text-xs text-fg-subtle",children:[x.jsx("span",{className:"sr-only",children:`${bP(t)}. `}),rfe(n)]})]})}function sfe({attemptedVersion:e,previousVersion:t,elapsedSeconds:n,logsCommand:r,onRetryConnection:o}){const s=_.useRef(null);bm(s,!0);const i=Math.max(1,Math.round(n/60));return x.jsxs("div",{ref:s,role:"alertdialog","aria-modal":"true","aria-labelledby":"self-update-unreachable-title",tabIndex:-1,className:pB,children:[x.jsx(lT,{className:"size-12 shrink-0 text-danger","aria-hidden":!0}),x.jsxs("div",{className:"max-w-lg space-y-3",children:[x.jsx("h1",{id:"self-update-unreachable-title",className:"text-lg font-semibold text-fg",children:"Remit has not answered since the restart"}),x.jsxs("p",{className:"text-sm text-fg-muted",children:["Installing ",e," started ",i," minute",i===1?"":"s"," ago and the server has been silent since. Your mail is safe at your provider — it was never part of the update."]}),x.jsxs("p",{className:"text-sm text-fg-muted",children:["Remit rolls back to ",t," on its own when the new version fails to start, but this page cannot confirm that from here. Check the server directly:"]}),x.jsx("code",{className:"block rounded-xs bg-surface-sunken px-3 py-2 text-left text-xs text-fg-muted",children:r})]}),x.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:x.jsx(Bt,{size:"sm",onClick:o,children:"Try connecting again"})})]})}function afe(e,t,n){if(!t.allowPrivateDomains&&e.length>3){const r=e.length-1,o=e.charCodeAt(r),s=e.charCodeAt(r-1),i=e.charCodeAt(r-2),c=e.charCodeAt(r-3);if(o===109&&s===111&&i===99&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="com",!0;if(o===103&&s===114&&i===111&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="org",!0;if(o===117&&s===100&&i===101&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="edu",!0;if(o===118&&s===111&&i===103&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="gov",!0;if(o===116&&s===101&&i===110&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="net",!0;if(o===101&&s===100&&i===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="de",!0}return!1}const gc=new Uint8Array([1,2,1,1,1,1,1,1,1,1,1,1,0,2,2,2,0,2,2,0,2,0,0,1,0,0,2,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,0,1,1,1,0,2,0,0,0,0,0,0,0,2,0,2,2,0,0,2,2,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,2,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,2,2,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,1,0,2,2,0,0,0,2,0,1,1,0,2,0,2,2,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,2,2,0,2,2,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,2,0,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,2,2,0,0,0,2,2,1,1,1,1,2,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,2,2,0,0,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,2,2,1,2,1,1,1,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0]),sv=new Uint16Array([0,0,0,10,11,18,106,111,117,124,130,136,145,146,147,148,149,150,151,153,154,155,157,159,226,239,241,242,243,258,265,266,269,270,271,274,276,295,296,298,307,312,313,331,332,335,337,338,340,374,375,377,380,381,385,387,391,394,426,429,442,443,451,452,454,464,478,479,480,489,490,527,532,548,568,574,615,616,643,670,671,819,825,828,829,830,835,840,849,871,872,873,874,875,876,877,895,897,898,901,903,904,906,908,923,938,943,944,946,947,948,949,950,952,955,960,961,962,964,965,968,971,972,973,986,988,1e3,1011,1019,1021,1061,1064,1068,1069,1071,1074,1085,1087,1097,1099,1105,1107,1108,1110,1113,1114,1115,1167,1169,1171,1191,1192,1193,1194,1196,1207,1238,1249,1261,1270,1277,1282,1295,1306,1319,1320,1331,1365,1366,1367,1382,1397,1469,1470,1472,1473,1507,1508,1509,1512,1516,1518,1547,1548,1556,1557,1558,1560,1562,1563,1565,1566,1567,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1594,1595,1596,1598,2053,2056,2057,2059,2066,2073,2083,2087,2098,2099,2100,2112,2113,2115,2117,2118,2125,2126,2128,2129,2131,2132,2133,2134,2135,2209,2211,2232,2233,2234,2236,2262,2263,2314,2315,2317,2324,2330,2340,2350,2403,2404,2405,2415,2429,2430,2433,2440,2441,2449,2450,2451,2452,2453,2464,2465,2466,2468,2469,2470,2471,2473,2483,2495,2501,2533,2537,2539,2540,2542,2543,2554,2555,2557,2565,2572,2578,2583,2584,2590,2593,2599,2606,2607,2614,2622,2623,2624,2662,2668,2683,2684,2689,2707,2738,2756,2758,2761,2769,2771,2778,2830,2854,2855,2856,2857,2858,2859,2860,2861,2868,2869,2870,2871,2872,2873,2875,2876,2880,2964,2977,2978,3414,3418,3432,3484,3512,3534,3592,3614,3629,3692,3743,3781,3817,3842,3984,4030,4081,4100,4134,4149,4169,4199,4230,4253,4284,4314,4346,4373,4448,4470,4508,4518,4552,4571,4597,4639,4689,4715,4784,4785,4787,4810,4833,4869,4900,4917,4974,4987,5011,5040,5042,5076,5092,5120,5425,5434,5443,5450,5467,5471,5477,5516,5518,5525,5532,5541,5548,5549,5560,5563,5578,5579,5588,5589,5598,5607,5613,5615,5616,5617,5653,5654,5656,5664,5671,5684,5688,5690,5691,5697,5704,5718,5728,5733,5741,5749,5755,5756,5760,5762,5763,5775,5776,5777,5778,5780,5781,5784,5786,5789,5793,5794,5800,5801,5802,5804,5806,5808,5809,5810,5813,5815,5818,5819,5821,6019,6026,6027,6037,6042,6059,6073,6082,6083,6084,6088,6089,6091,6093,6099,6100,6103,6104,6106,6107,6108,7008,7009,7013,7031,7040,7043,7050,7051,7053,7054,7055,7057,7109,7110,7113,7114,7231,7232,7243,7254,7261,7264,7273,7274,7275,7290,7345,7536,7538,7539,7541,7546,7559,7574,7581,7590,7593,7596,7603,7611,7615,7616,7617,7631,7635,7644,7645,7646,7650,7685,7686,7703,7710,7718,7719,7724,7732,7776,7777,7783,7786,7797,7802,7803,7806,7839,7840,7846,7853,7854,7863,7872,7887,7891,7943,7944,7949,7951,7954,7956,7957,7958,7967,7981,7989,8003,8015,8016,8018,8020,8042,8053,8059,8060,8072,8084,8171,8183,8185,8194,8197,8203,8228,8231,8232,8233,8235,8238,8241,8252,8254,8256,8284,8358,8365,8369,8370,8379,8401,8402,8407,8408,8487,8489,8491,8500,8504,8510,8516,8522,8532,8537,8538,8556,8567,8572,8577,8587,8593,8597,8603,8609,10217,10218,10219,10226,10228]),av=new Uint8Array([3,3,3,3,3,3,3,3,5,8,8,2,2,3,3,3,3,3,8,5,5,5,5,5,3,3,5,5,9,12,19,8,19,8,11,9,9,8,7,7,6,8,9,16,10,7,7,11,8,6,6,9,7,11,7,14,4,4,4,4,4,4,10,7,6,6,6,6,10,10,6,10,10,22,11,9,10,10,10,9,10,8,7,7,7,8,21,13,11,11,9,10,9,13,10,8,8,9,12,9,7,10,7,7,13,7,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,8,6,3,3,3,3,3,3,2,5,3,3,3,7,2,2,2,2,2,2,3,3,3,1,1,7,8,5,2,2,7,2,2,1,4,1,11,9,9,5,5,8,5,5,5,5,5,5,5,3,3,3,3,3,5,11,9,9,13,7,14,7,6,6,6,7,6,6,6,6,6,10,7,11,9,4,4,4,4,4,4,6,6,6,6,6,8,7,10,9,9,9,8,9,8,10,6,9,9,8,10,10,7,8,1,9,10,12,12,12,10,9,9,10,10,9,9,1,1,5,3,3,3,3,3,3,3,3,3,3,3,3,6,6,6,4,3,3,3,7,4,4,4,3,3,6,7,3,4,1,2,2,2,6,1,2,2,2,2,2,12,5,3,8,9,13,4,4,13,9,9,11,7,3,12,9,2,2,2,3,3,3,3,3,8,2,2,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,7,10,15,7,15,15,20,15,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,7,8,6,8,8,6,8,13,8,8,6,13,8,11,13,8,6,13,8,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,9,9,9,10,14,14,11,13,13,9,9,9,9,9,9,2,6,9,2,2,3,3,3,3,3,3,3,3,3,4,4,4,2,3,3,3,3,3,3,7,7,2,3,2,2,5,3,3,3,3,3,3,4,2,2,2,2,2,2,3,3,3,3,3,3,3,4,5,7,2,2,12,8,10,8,10,7,18,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,2,2,3,3,3,5,5,3,8,8,6,8,6,6,4,6,7,7,7,10,11,2,5,5,3,3,3,3,3,3,5,5,6,11,10,7,7,7,4,4,4,2,3,3,3,3,3,2,7,5,5,3,3,3,3,3,3,3,3,7,7,7,11,7,6,9,6,6,8,10,8,6,8,13,4,4,4,4,4,10,8,11,8,8,8,10,10,7,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,7,10,13,7,8,7,11,8,8,6,9,8,8,6,6,6,8,8,6,6,6,6,6,9,7,6,4,4,4,4,4,4,4,6,6,6,9,7,8,10,8,8,2,3,3,3,3,3,2,8,9,9,2,2,2,3,3,3,2,3,3,3,9,2,2,3,3,3,3,3,3,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,12,5,5,3,5,4,2,3,2,4,3,9,2,2,2,2,2,5,5,3,8,8,13,6,10,9,4,7,9,11,2,3,7,3,3,4,1,3,4,2,9,3,3,12,5,3,7,10,10,7,4,4,6,14,7,9,7,13,2,2,2,2,2,2,3,3,3,3,3,8,15,4,4,2,3,3,3,7,4,9,9,2,3,3,3,5,3,2,2,7,2,7,6,6,7,2,4,2,2,2,2,2,2,8,8,8,9,5,2,3,3,3,3,3,3,10,7,4,4,4,4,3,4,2,3,3,3,3,3,10,7,4,4,4,4,2,3,3,3,3,10,7,4,4,4,4,3,9,6,6,6,9,13,9,2,2,2,8,7,9,5,3,3,3,5,5,12,9,10,7,8,7,6,8,6,11,12,7,9,10,4,4,7,8,11,6,7,9,8,7,10,8,9,15,7,8,5,4,7,2,3,3,3,2,14,10,2,14,10,2,14,3,9,13,13,10,14,16,17,11,2,14,2,14,3,9,13,10,14,16,17,11,14,10,14,2,7,3,10,7,14,10,2,14,10,9,9,17,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,10,10,10,12,9,4,10,11,8,8,8,7,9,5,3,3,3,3,3,3,3,3,5,8,4,4,4,4,4,4,6,16,3,3,14,3,14,2,14,9,13,10,10,14,16,17,11,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,9,9,9,9,9,9,2,14,9,13,10,10,14,16,17,11,6,2,14,9,17,13,10,10,14,16,17,11,6,2,14,9,13,10,14,16,17,11,2,14,9,13,10,16,11,2,14,10,19,7,2,14,9,13,10,19,10,7,14,16,17,11,6,2,14,9,13,10,19,7,14,16,17,11,2,14,9,13,17,13,10,10,14,16,17,11,6,3,2,14,9,13,10,10,14,16,17,11,6,9,10,12,14,14,14,12,12,12,12,12,14,14,14,10,10,10,14,9,9,9,9,14,14,14,13,13,14,9,9,9,9,9,9,4,11,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,9,10,10,7,17,3,3,12,12,16,15,15,12,14,14,14,20,20,13,12,12,12,12,12,12,20,25,14,14,12,12,10,10,10,10,9,9,9,25,4,9,17,10,7,14,16,21,13,13,14,20,14,13,17,24,9,12,13,25,13,21,20,17,9,9,9,9,9,9,12,17,4,4,9,9,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,1,8,7,11,11,1,3,3,3,4,8,9,10,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,7,4,4,4,4,4,4,4,4,4,4,9,12,6,14,4,12,7,2,2,1,2,7,6,4,4,4,6,8,8,7,4,5,6,3,3,3,3,4,16,8,3,5,4,3,3,3,5,2,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,12,7,7,13,9,10,12,8,9,7,8,5,12,10,13,14,5,5,5,13,5,5,5,3,3,3,5,16,5,5,5,5,5,7,12,14,8,12,8,10,12,9,11,7,9,7,10,7,13,9,7,12,8,17,7,7,16,10,13,13,8,10,10,14,17,7,16,16,15,8,10,10,12,17,7,17,14,7,10,17,8,7,7,7,8,15,15,7,14,10,10,10,11,11,7,7,13,8,10,7,16,7,8,7,14,17,12,10,11,21,8,9,7,13,9,8,13,6,12,7,6,13,10,10,10,8,18,9,17,13,10,12,6,13,6,11,8,13,10,13,18,13,11,13,8,16,7,10,8,16,12,10,8,8,6,14,11,8,15,8,8,7,7,12,7,8,9,14,15,8,9,10,9,15,7,8,8,12,13,9,10,15,15,13,7,10,10,20,7,6,9,6,6,14,11,14,11,12,9,10,16,16,12,7,11,28,8,11,10,7,21,8,7,9,4,4,4,17,7,8,6,9,6,6,13,6,6,6,6,18,20,14,8,11,12,9,10,13,15,19,8,9,12,7,10,16,12,9,9,9,14,12,11,9,12,11,18,9,9,9,10,7,7,16,8,9,7,13,12,10,18,7,8,11,7,7,8,8,13,7,7,7,11,15,13,11,7,8,15,11,7,8,18,14,13,18,15,10,12,12,9,7,11,11,8,7,10,8,14,12,10,18,7,10,9,7,8,13,10,14,9,10,8,8,23,7,7,11,12,12,17,7,7,11,11,17,16,16,7,8,11,14,14,8,10,7,7,16,16,13,9,11,9,15,15,11,11,7,7,14,7,9,7,7,16,10,13,10,11,14,7,11,10,11,7,11,10,11,15,11,15,10,12,17,10,14,13,11,11,12,13,10,7,13,10,16,12,21,9,10,10,7,11,14,17,7,7,8,11,12,8,15,14,14,8,17,12,10,10,7,9,11,7,10,7,11,18,7,11,7,12,11,8,8,14,12,7,8,15,3,7,7,5,2,9,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,5,3,3,3,3,3,3,4,4,3,3,3,3,3,3,5,11,6,4,7,10,7,7,11,1,10,2,2,3,3,3,3,3,3,3,3,5,7,3,5,6,3,3,5,2,2,5,3,4,13,11,3,3,6,3,5,14,2,2,3,8,2,2,12,5,18,5,3,3,3,16,5,5,5,10,7,13,12,13,9,12,14,19,9,9,21,9,9,10,6,9,6,15,10,6,12,8,6,10,15,4,4,6,6,9,9,12,16,14,23,7,7,7,14,9,7,7,11,14,10,7,10,10,10,12,6,11,10,13,11,15,11,7,12,10,3,7,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,3,7,2,5,5,3,3,5,5,5,5,7,6,6,6,4,4,4,4,4,4,6,6,6,6,6,7,10,2,2,2,5,5,5,5,3,3,3,3,3,5,5,10,9,11,8,7,12,8,9,7,6,13,11,6,13,7,9,9,4,4,4,4,4,4,6,10,7,8,13,8,8,9,14,8,10,7,7,7,9,6,9,7,2,12,5,3,3,13,4,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,4,4,4,4,4,4,4,4,4,9,3,3,3,3,3,3,3,3,3,3,4,2,2,2,5,3,3,3,3,3,3,3,3,4,4,1,7,6,4,12,3,3,3,3,3,8,7,3,3,3,3,3,3,4,4,11,14,2,8,3,5,5,8,10,8,6,4,7,17,7,4,5,2,6,3,5,2,4,4,2,12,5,5,3,15,13,10,8,11,2,2,3,3,3,3,3,3,3,3,4,4,5,3,3,3,3,4,18,2,12,5,3,3,3,3,3,5,16,8,8,9,6,6,4,4,4,4,31,6,6,10,11,21,10,9,7,10,7,7,2,4,4,4,4,6,5,3,3,4,3,3,3,3,3,3,3,3,3,6,6,6,2,2,2,5,3,3,3,7,7,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,8,2,3,3,3,3,3,5,9,11,3,3,3,3,4,4,3,3,3,3,3,5,10,9,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,11,10,10,10,10,10,11,10,11,10,11,10,9,9,11,3,3,3,3,3,3,5,3,7,8,8,7,6,6,11,4,4,4,7,8,9,9,2,3,7,4,4,2,5,5,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,2,2,5,5,5,5,5,3,3,5,5,5,7,7,6,6,6,4,4,4,4,4,4,4,4,4,4,6,6,8,8,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,6,9,12,3,7,10,7,2,2,3,3,3,3,3,4,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,6,6,8,6,7,4,4,4,4,4,4,6,7,5,5,20,19,8,10,9,7,10,6,8,11,6,6,6,6,13,12,8,6,7,14,11,9,2,5,3,3,6,2,3,2,2,2,2,2,2,2,5,4,3,7,6,4,7,4,3,6,4,7,2,7,7,7,5,5,5,5,3,3,3,3,3,3,3,3,3,3,5,9,10,10,8,11,7,8,20,7,8,9,8,12,6,6,6,8,9,8,12,6,6,8,13,10,12,6,6,7,7,8,9,6,4,4,4,4,4,4,4,10,6,6,6,7,14,11,10,7,8,10,8,11,14,11,11,9,7,9,8,11,9,17,10,9,2,2,2,9,3,3,3,3,15,14,9,5,5,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,15,12,22,19,17,18,18,19,21,7,16,16,5,5,5,5,5,5,5,5,5,5,5,7,5,5,5,5,5,5,5,5,5,5,5,9,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,7,16,11,11,7,7,7,7,17,7,8,12,15,9,19,7,19,8,16,21,11,12,19,14,22,7,7,7,7,7,7,7,7,7,7,7,16,16,19,24,12,7,14,7,12,7,8,10,10,13,7,12,12,7,7,10,18,15,12,16,7,14,12,17,10,16,17,12,17,25,7,7,7,13,6,9,6,9,18,6,6,11,20,10,6,6,6,6,6,6,6,17,6,6,6,15,6,6,6,6,6,8,14,11,12,15,13,19,17,21,7,18,8,13,13,8,12,8,6,6,13,6,15,15,16,6,6,16,6,6,6,14,6,18,6,6,6,17,18,9,13,15,8,19,8,15,15,18,14,16,4,4,4,4,4,4,4,4,4,4,4,4,6,11,10,11,6,21,23,12,17,12,11,14,13,22,15,15,11,12,14,12,7,12,8,14,12,18,10,8,16,19,17,12,14,15,8,9,19,17,12,13,13,15,18,13,23,24,23,21,17,24,8,21,8,14,14,16,14,8,8,15,20,8,19,21,9,8,13,12,13,15,11,8,11,9,9,8,11,8,21,14,21,15,15,13,7,19,7,7,7,7,7,7,16,12,17,18,7,7,11,11,7,9,9,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,4,5,5,5,5,5,5,5,5,3,3,10,10,7,9,7,7,7,6,8,6,6,6,6,6,6,6,7,6,8,6,6,9,7,7,7,4,4,4,4,4,4,4,4,8,9,8,7,8,7,8,10,7,5,5,5,5,5,5,3,9,7,7,8,6,6,6,6,6,6,6,6,9,6,6,9,11,13,7,8,9,9,5,5,5,7,8,6,6,6,6,6,6,6,7,8,9,7,10,9,10,7,8,5,5,5,5,5,5,7,7,9,8,7,7,6,6,6,6,6,6,10,6,6,6,6,6,6,6,6,6,6,6,9,10,4,4,4,4,8,7,7,10,10,9,8,8,15,9,8,8,8,8,8,9,10,9,10,7,8,13,5,5,5,5,5,3,3,7,7,8,6,6,6,4,4,11,9,7,8,9,10,7,5,5,5,5,5,3,3,7,6,6,13,7,9,8,7,5,5,5,5,5,5,5,5,3,3,3,3,7,8,7,8,13,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,6,6,6,6,7,6,7,6,6,9,7,4,4,4,4,4,4,4,7,8,7,8,9,8,8,8,7,10,7,8,5,5,5,5,5,5,5,5,3,7,7,7,7,9,7,10,9,6,6,6,6,6,8,8,6,6,6,7,6,6,6,9,9,4,4,13,7,10,9,9,12,7,8,8,10,8,8,8,8,8,8,5,5,5,5,3,7,7,11,7,9,8,8,6,6,10,6,8,8,8,6,7,6,6,12,4,4,4,4,4,4,4,4,4,9,8,8,16,8,9,8,7,5,5,5,5,5,3,3,7,7,7,10,15,8,9,8,9,9,6,6,6,6,6,6,7,4,8,7,8,8,7,8,11,8,5,5,5,5,5,3,7,7,6,11,16,7,6,4,4,4,4,9,9,8,8,8,13,12,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,7,8,8,9,13,7,7,7,9,8,8,9,12,7,12,7,12,8,7,10,12,9,9,6,6,8,8,6,6,6,6,6,6,6,9,8,9,11,8,6,6,6,6,6,12,7,6,6,6,9,7,7,6,6,6,6,6,11,9,6,6,6,6,6,7,9,4,4,4,4,4,4,4,4,9,9,9,9,7,7,7,7,7,11,7,7,8,8,8,8,8,8,9,8,9,9,7,7,11,11,7,12,8,8,8,8,8,7,8,8,8,8,8,13,12,8,8,8,8,7,7,7,9,5,5,5,5,5,5,5,3,3,7,7,11,7,8,8,8,6,6,6,6,6,6,6,6,6,6,6,10,11,6,7,9,4,4,4,4,4,4,9,9,8,9,8,8,8,7,7,5,5,5,5,5,5,5,5,5,5,3,3,11,7,7,7,9,6,6,11,8,10,6,6,6,12,8,8,7,6,6,8,7,4,4,4,4,4,4,4,4,9,10,9,9,8,10,9,11,8,5,5,5,7,6,6,8,7,4,4,4,4,8,7,7,8,7,8,8,5,5,5,5,7,7,8,8,8,6,6,6,6,6,10,8,9,13,6,7,6,6,8,7,8,4,4,4,4,11,8,8,8,10,5,5,8,7,8,13,8,7,6,8,6,9,7,8,7,5,5,5,5,5,5,3,3,7,8,9,6,4,8,10,10,8,12,9,13,2,7,5,5,5,5,5,7,7,10,6,6,6,6,6,6,6,8,4,4,9,8,8,8,14,8,8,8,9,8,5,5,5,5,5,3,3,9,6,6,6,6,10,12,6,6,6,6,6,6,6,4,4,4,4,11,8,7,8,8,8,5,5,3,3,3,3,7,7,6,8,6,8,11,7,6,6,6,7,4,8,11,9,10,5,5,5,3,3,3,7,7,8,9,8,15,9,6,6,6,6,6,6,11,11,4,4,4,4,4,7,9,9,10,8,7,5,5,5,5,5,5,3,3,8,6,6,6,6,6,6,6,6,6,9,7,4,4,4,4,4,9,9,8,8,10,13,5,5,5,3,17,7,7,7,7,7,8,6,8,13,6,6,6,6,6,6,6,6,4,4,4,9,10,8,8,8,5,5,5,5,3,7,7,7,8,8,6,6,6,8,8,8,9,10,8,4,8,10,9,8,8,8,9,13,10,5,5,5,5,5,5,5,5,5,5,3,3,7,8,9,9,7,7,7,10,9,9,8,9,8,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,8,12,6,6,6,6,6,6,6,6,6,12,4,4,4,4,4,4,4,4,4,4,4,11,8,8,9,9,10,8,9,7,7,5,5,5,5,5,5,3,7,8,7,6,6,8,6,6,10,4,7,8,9,12,8,7,7,5,5,5,5,5,5,3,3,7,14,7,9,8,8,6,6,8,12,12,6,6,7,7,10,4,4,4,4,4,9,9,14,9,13,8,7,5,5,5,6,6,6,7,4,8,7,5,5,5,5,5,5,5,5,3,3,7,7,7,8,6,6,6,6,6,6,12,6,6,6,6,4,4,9,9,8,8,11,7,7,7,5,5,5,3,9,8,6,6,7,4,4,4,4,4,4,8,8,11,5,5,5,7,7,7,9,6,6,6,6,6,6,9,8,4,4,4,4,7,12,9,8,8,8,7,10,10,5,5,5,5,5,5,5,3,11,14,8,7,8,8,6,6,6,6,6,8,7,6,6,6,7,6,8,9,4,4,4,7,8,9,7,9,7,7,9,8,5,5,5,5,5,5,5,5,5,11,3,9,7,7,12,14,8,6,6,12,11,8,6,6,6,6,6,6,6,6,6,15,7,4,4,4,16,9,9,9,8,9,9,9,9,9,8,8,8,13,11,8,5,5,5,5,3,7,6,6,8,8,8,6,6,7,10,7,4,4,4,4,9,7,8,7,7,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,7,7,7,9,6,6,6,6,6,8,8,7,7,9,6,6,6,7,6,6,6,6,6,15,4,4,4,4,4,8,8,7,8,12,9,8,8,8,8,8,9,8,8,10,8,8,8,8,16,9,10,2,5,5,5,5,5,5,5,9,7,6,8,9,4,4,4,4,4,7,8,8,8,9,8,11,10,5,5,5,5,3,7,8,6,6,6,6,6,8,6,6,6,6,4,12,10,12,7,7,7,7,7,7,7,5,5,5,5,3,3,7,7,10,8,9,7,6,10,7,6,6,4,4,8,9,7,9,9,9,9,8,8,8,8,10,5,5,5,5,5,5,8,7,6,6,6,10,6,7,10,7,4,4,4,4,4,4,4,12,9,10,7,7,10,8,10,5,12,9,6,6,6,6,6,7,6,4,4,4,10,9,9,8,7,7,5,5,5,5,5,5,3,3,13,7,7,9,7,7,7,8,9,9,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,15,15,4,4,4,4,4,10,10,9,8,9,8,8,9,7,8,7,8,5,5,7,6,6,6,4,4,4,7,8,11,8,5,5,5,5,5,5,5,7,6,6,6,6,6,6,9,11,10,7,4,4,4,9,8,8,5,5,5,5,5,9,9,6,6,6,6,6,6,6,9,9,4,4,4,4,8,8,8,9,9,8,8,8,13,2,4,2,7,5,5,5,5,5,5,9,9,6,6,6,6,10,8,8,8,6,6,6,4,4,9,8,10,8,9,8,8,8,9,8,8,5,3,3,3,11,6,6,6,7,6,6,6,4,4,9,8,5,5,5,5,5,3,11,8,6,6,6,6,6,9,7,4,4,14,10,9,8,12,8,8,8,11,15,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,11,11,10,10,7,7,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,3,3,3,7,11,7,7,11,11,7,8,9,10,7,7,9,9,9,9,7,7,10,8,13,8,8,8,8,11,10,6,6,8,10,11,14,14,6,6,6,6,6,6,9,11,7,7,6,8,12,11,11,6,6,10,6,6,6,6,6,10,7,7,6,6,11,6,6,6,11,8,9,7,6,10,11,9,10,11,7,11,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,6,6,8,9,10,9,6,6,6,10,6,6,6,6,11,10,11,10,9,8,7,7,7,7,11,14,8,10,9,9,8,8,7,11,8,8,8,11,11,10,10,9,10,8,11,10,8,11,9,12,8,10,8,11,8,9,9,11,11,10,11,13,8,7,8,8,9,7,8,8,8,8,7,8,2,2,2,2,2,2,2,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,8,6,4,4,4,11,7,11,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,5,3,3,3,3,8,7,7,8,8,4,8,7,7,7,9,7,8,9,8,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,6,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,4,5,5,3,8,8,6,9,4,4,10,7,3,3,3,2,5,3,3,3,3,3,3,3,3,3,3,3,3,4,3,2,2,2,3,3,3,3,3,4,10,2,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,2,2,3,3,3,5,2,4,2,6,2,2,9,5,5,3,3,3,3,3,3,3,5,5,5,9,8,7,6,6,11,4,4,4,4,4,4,4,4,6,6,7,7,11,8,8,6,5,11,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,6,4,4,4,4,3,3,3,3,5,7,2,3,3,3,3,3,8,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,6,4,4,4,4,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,2,3,3,3,3,3,6,3,3,8,10,3,4,4,1,1,1,1,1,1,1,8,9,10,7,7,1,1,3,8,7,7,8,8,8,1,6,1,1,6,3,3,4,7,3,5,5,4,4,4,4,4,2,7,7,8,12,3,4,5,1,3,4,4,10,4,3,3,3,8,7,7,2,2,2,2,2,2,2,2,2,12,9,20,7,5,5,5,9,13,5,5,5,5,5,3,3,3,16,5,5,5,13,7,8,8,11,8,7,9,7,11,12,9,9,8,8,11,10,14,7,12,10,11,13,7,9,11,17,17,14,13,7,8,7,10,10,7,16,13,7,8,17,12,9,8,6,7,10,6,6,12,6,8,10,8,8,8,6,8,6,14,6,6,6,13,6,10,6,6,7,14,8,6,6,10,11,10,9,9,7,7,6,6,6,9,9,7,9,10,9,13,12,4,4,4,4,4,4,4,4,4,6,6,6,8,8,6,8,9,10,9,7,10,10,8,7,8,7,10,12,9,8,15,8,7,8,8,7,7,15,13,7,10,9,14,18,16,7,24,7,8,10,11,16,8,14,7,9,9,9,11,13,19,14,15,14,11,7,13,9,10,7,13,9,10,11,12,8,9,2,3,5,8,7,4,4,10,5,3,3,3,3,3,5,4,4,4,2,2,2,2,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,4,2,12,5,3,8,10,15,6,7,2,3,2,5,5,12,2,5,5,5,5,2,2,5,5,12,9,5,2,2,9,5,5,12,12,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,12,5,8,8,9,5,5,5,8,19,7,16,15,14,9,9,9,9,7,11,11,11,7,14,10,10,5,5,5,5,5,5,5,5,5,15,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,14,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,15,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,12,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,12,9,9,12,12,12,15,7,11,7,14,11,18,13,8,18,15,18,12,14,12,8,8,8,8,9,9,9,12,7,10,10,8,8,12,12,12,7,12,12,9,7,7,7,7,7,8,15,12,9,10,10,7,10,10,13,11,10,9,22,11,9,8,8,8,8,8,13,18,13,9,15,19,9,7,7,10,7,7,7,11,8,13,17,7,7,10,10,10,7,20,16,7,7,7,7,7,7,11,21,12,12,13,11,14,16,8,8,13,11,7,7,13,7,7,14,15,15,6,6,6,6,6,6,6,6,6,6,13,10,18,6,6,6,6,6,6,6,6,6,11,8,8,12,12,11,11,8,12,9,9,9,13,13,9,9,9,9,9,9,6,10,12,6,6,6,6,17,11,7,7,7,7,14,14,12,6,7,7,6,6,15,10,13,10,6,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,9,15,13,6,12,12,6,19,11,10,7,7,16,8,19,17,9,9,9,9,9,6,6,6,10,8,16,8,6,6,9,6,6,6,6,6,6,6,6,8,8,8,6,7,6,6,6,6,6,6,6,6,6,6,6,14,6,6,6,6,20,6,9,6,14,9,9,9,6,9,8,8,12,9,8,8,8,8,7,8,12,7,8,8,8,6,8,6,6,6,6,6,6,6,9,8,8,6,6,13,9,12,13,12,14,13,12,11,11,6,8,8,8,6,13,12,11,11,12,6,11,12,11,13,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,15,6,6,6,6,6,6,6,13,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,8,8,6,18,6,12,13,13,13,9,10,15,9,12,6,6,6,6,6,6,6,6,9,15,10,9,10,13,9,19,8,18,17,10,10,8,8,6,6,6,6,6,6,10,14,8,16,16,9,8,15,8,8,10,12,14,7,7,8,8,7,7,7,7,8,13,13,11,9,9,9,12,10,17,8,11,9,7,7,14,8,14,14,7,7,7,7,7,7,14,7,7,7,7,7,10,10,8,14,7,7,7,7,8,8,8,8,8,17,9,7,15,7,8,12,7,9,14,7,7,7,9,13,8,14,7,16,18,13,15,14,12,13,10,15,9,7,7,7,10,13,15,15,9,9,9,9,19,11,7,11,11,13,8,8,8,8,7,12,19,17,9,9,13,7,7,7,9,7,7,7,12,13,15,10,8,8,14,15,12,13,13,8,12,14,7,11,7,14,15,13,12,8,8,8,8,11,13,15,15,8,13,12,8,8,8,13,10,16,14,11,8,8,12,12,9,15,15,12,12,13,8,8,9,12,13,9,8,8,8,8,8,8,8,8,8,8,8,11,12,11,7,14,7,13,13,13,12,18,16,7,12,11,10,10,15,9,9,9,21,7,7,7,11,16,8,8,11,11,7,7,7,7,7,19,7,7,7,7,7,7,7,7,7,12,8,9,12,14,11,9,9,9,22,12,3,8,8,15,4,2,2,5,5,3,3,3,3,3,3,6,6,4,4,4,12,7,10,2,3,3,3,3,3,3,3,6,7,3,7,5,14,4,4,7,8,10,4,1,3,3,6,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,2,2,5,3,4,2,2,2,2,2,2,11,5,5,5,11,5,5,3,5,5,5,5,11,14,13,9,11,9,12,8,11,11,8,11,16,9,9,7,10,9,12,8,15,6,7,6,6,13,10,8,11,8,6,6,6,12,16,6,11,7,8,9,18,6,6,9,4,4,6,13,6,6,6,6,8,8,9,16,7,7,14,7,8,8,8,7,7,7,7,7,7,15,13,7,10,7,7,10,12,16,15,7,9,9,14,11,11,10,9,10,8,12,7,8,7,7,10,12,7,12,8,7,2,3,3,3,3,3,3,3,3,3,3,5,3,3,5,5,5,10,4,8,7,10,3,3,3,3,3,3,3,3,3,3,1,3,3,3,3,3,3,3,7,4,5,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,8,2,2,2,8,12,7,7,5,5,5,5,5,5,5,5,5,5,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,7,11,9,8,8,8,7,8,9,7,7,9,7,7,7,10,7,7,10,9,10,6,6,6,6,6,6,15,7,8,9,9,8,6,6,10,9,6,8,13,9,7,6,6,6,6,6,6,12,6,6,7,6,7,6,6,6,10,10,7,6,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,14,6,6,7,7,9,6,6,6,6,9,9,8,9,10,9,8,9,12,7,7,7,8,7,10,12,11,9,10,7,7,7,9,10,10,8,12,9,7,7,9,8,8,8,10,7,7,8,9,9,7,7,7,8,2,4,6,3,4,2,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,3,3,3,3,3,3,3,3,5,8,6,4,7,3,3,3,3,3,3,3,12,3,3,3,3,3,3,4,4,2,3,5,3,4,7,3,3,3,3,3,3,4,3,3,3,3,3,3,3,4,3,3,6,4,3,4,2,2,2,5,3,3,3,3,3,5,4,4,4,4,7,6,8,9,2,2,2,2,3,3,3,5,7,2,3,3,8,7,7,2,2,8,5,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,7,7,6,10,6,9,7,11,4,6,8,8,7,8,4,5,5,5,3,3,11,8,9,6,6,8,7,4,4,7,8,7,2,2,3,3,3,3,4,3,3,3,3,3,3,3,3,7,2,2,5,3,3,2,3,3,3,3,3,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,12,5,5,3,3,3,5,10,12,6,15,4,6,6,7,14,9,3,3,3,3,3,8,2,2,3,5,3,3,3,3,3,3,8,8,8,7,5,8,4,6,11,2,2,6,7,2,9,8,5,5,3,3,5,5,7,7,6,6,10,6,6,8,9,7,4,4,4,4,7,6,6,7,7,10,9,8,11,8,3,3,3,3,3,4,4,2,3,3,3,3,3,7,6,2,5,6,7,6,4,8,9,11,2,2,3,3,3,3,3,3,3,2,2,5,3,3,3,3,3,9,9,6,4,8,7,7,5,9,8,6,8,7,8,5,5,5,5,5,3,3,3,16,8,7,7,7,8,7,7,7,7,9,6,9,6,10,7,7,7,6,10,8,9,11,11,8,4,4,10,8,8,6,9,6,11,8,8,8,15,7,8,9,5,3,3,3,3,3,5,11,2,2,3,8,9,10,3,2,2,2,2,2,2,3,6,4,2,2,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,11,5,3,3,3,3,3,3,3,3,6,7,4,4,2,3,3,3,3,3,3,3,3,12,7,4,12,4,6,5,4,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,3,4,4,11,10,6,4,6,10,8,3,3,3,3,3,3,3,3,5,4,4,4,2,2,2,2,2,2,2,2,5,3,4,4,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,10,5,5,5,5,5,5,3,3,3,3,3,3,3,3,7,8,8,7,13,12,10,10,8,8,7,7,9,12,11,6,6,8,8,9,7,7,7,10,15,10,4,4,4,4,4,11,8,8,9,7,9,14,14,12,2,2,2,2,2,2,2,3,3,3,3,3,2,2,12,5,5,5,8,11,10,7,9,3,8,7,3,15,13,11,4,4,2,2,2,19,7,5,5,3,3,3,3,3,3,3,5,22,18,6,14,17,4,4,19,16,18,2,3,3,2,3,2,3,3,6,4,2,3,3,2,5,3,3,3,3,3,3,3,9,9,2,3,2,2,2,3,3,3,5,7,14,7,7,12,9,13,6,11,6,10,9,7,7,8,12,12,8,8,8,10,7,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,5,8,10,7,8,11,8,12,9,4,7,7,9,13,2,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,3,3,3,3,5,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,3,2,3,3,3,3,5,2,2,2,2,5,5,5,5,3,3,3,3,3,3,3,3,3,7,7,7,7,7,8,8,8,8,8,12,9,8,8,9,8,6,17,6,6,6,8,8,6,6,6,6,6,6,6,6,6,6,6,7,4,4,8,8,9,9,9,7,7,7,7,7,7,7,9,9,9,7,8,8,8,10,7,13,10,8,9,3,3,5,13,3,3,3,3,3,7,7,6,6,10,13,11,11,8,8,9,8,9,9,10,10,10,11,10,10,13,13,16,15,11,12,9,9,10,9,11,10,9,9,14,7,8,3,10,7,7,3,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,6,7,2,2,3,3,3,3,3,3,3,3,4,11,6,7,4,6,2,2,3,3,3,1,3,3,3,3,3,3,6,4,4,2,2,2,3,3,3,3,4,4,6,6,6,6,5,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,11,6,10,9,12,7,7,11,14,9,7,12,3,3,7,12,11,12,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,5,5,5,5,5,5,5,5,11,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,3,10,3,3,3,11,3,5,9,11,8,12,14,9,7,8,7,7,11,11,7,7,10,9,8,10,9,7,7,7,7,7,7,8,8,7,11,8,8,8,7,7,10,8,7,13,12,7,17,10,8,8,11,7,11,11,14,7,11,7,8,6,9,20,8,7,9,16,7,10,6,11,10,8,9,7,16,11,11,9,8,9,8,8,8,11,8,15,8,8,9,7,8,8,11,10,7,5,7,10,10,15,7,7,7,8,7,8,8,10,11,10,10,10,11,11,7,8,6,8,8,8,10,6,8,6,6,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,16,6,15,6,7,11,11,7,9,10,11,13,10,6,16,8,10,12,11,6,6,6,6,6,6,6,10,6,10,7,7,7,7,11,7,11,6,6,6,6,6,6,17,7,7,6,6,12,22,6,6,6,6,6,8,6,6,6,6,7,6,6,5,6,6,8,11,6,9,14,11,9,11,7,7,8,6,6,6,8,10,9,6,6,6,6,9,7,6,6,6,6,6,15,6,4,4,4,6,4,17,8,11,6,6,9,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,10,6,10,6,6,6,6,12,8,6,6,6,6,6,6,6,6,6,9,6,6,6,6,18,6,6,6,8,9,10,7,8,9,10,11,7,13,6,8,8,6,6,14,7,7,7,7,10,7,14,9,6,6,9,15,9,7,14,6,11,14,13,7,12,8,7,7,7,7,7,12,7,10,9,16,6,8,6,5,17,6,8,10,4,6,4,10,15,17,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,4,4,11,7,4,4,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,19,17,6,10,11,6,6,6,6,18,6,6,11,4,4,4,5,6,6,6,9,5,6,4,6,6,4,6,6,6,6,10,6,6,4,6,6,10,6,10,6,6,6,6,11,6,6,10,6,6,8,6,6,6,8,6,11,4,11,9,10,9,11,4,8,4,11,12,7,9,8,6,7,7,8,12,12,11,13,10,11,7,7,7,9,7,11,10,7,7,7,16,11,10,11,17,9,9,8,8,7,7,7,9,7,7,7,14,7,13,9,11,10,14,10,10,12,11,10,7,10,5,14,8,8,8,9,7,8,7,7,9,8,7,8,7,7,7,7,7,7,7,11,8,10,8,7,8,14,11,8,9,9,9,8,24,10,10,12,7,7,15,11,8,8,12,11,8,9,9,7,8,9,10,11,10,11,7,12,7,7,11,9,8,14,13,12,8,11,10,8,8,7,7,14,9,10,8,9,11,7,14,8,8,13,8,8,12,7,10,14,14,11,9,10,9,9,7,7,11,11,13,9,13,5,5,5,7,9,5,11,12,14,8,7,7,11,10,9,7,8,8,7,10,11,11,5,5,7,5,5,5,7,7,15,7,7,8,7,15,12,12,10,7,8,7,11,7,7,7,23,11,8,8,11,10,7,8,11,7,19,7,7,6,9,9,9,11,3,4,7,8,6,6,4,10,8,2,2]),wP=new Uint16Array([0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,17,1,1,1,12,1,12,1,12,13,1,1,1,1,12,1,12,1,1,1,1,1,14,21,1,1,1,1,1,1,1,19,12,1,1,1,1,1,1,1,20,1,1,1,16,1,18,1,1,15,1,1,1,1,12,1,1,1,1,1,1,22,1,1,1,12,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,1,24,25,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,12,12,12,12,1,32,0,0,0,1,1,1,1,35,34,1,1,1,1,1,33,1,1,1,1,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,38,0,0,0,0,39,40,0,0,0,41,0,12,1,1,12,1,1,1,1,44,45,45,45,44,45,44,44,46,45,44,45,44,44,44,44,44,44,46,44,44,44,44,44,44,45,47,47,45,44,44,44,44,44,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,50,52,50,50,50,52,50,51,50,53,50,51,51,50,50,50,51,53,51,53,50,51,51,12,55,55,54,56,51,53,50,50,48,49,57,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,60,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,67,1,12,1,1,66,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,76,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,12,1,1,1,1,89,1,91,1,1,1,1,1,1,1,1,94,1,1,1,1,1,1,1,1,1,1,1,1,0,1,97,97,1,1,12,1,100,1,1,1,1,1,1,1,98,1,99,1,101,1,1,1,1,1,102,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,110,111,1,1,1,1,1,1,113,113,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,121,122,1,1,1,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,126,123,125,120,1,124,1,1,114,1,1,1,1,117,1,127,1,1,1,1,1,119,1,108,1,109,1,12,128,106,1,112,1,1,1,1,1,107,115,1,12,12,12,118,116,1,1,1,1,1,1,0,0,0,0,1,12,12,1,1,1,1,1,12,134,1,1,1,1,1,1,1,1,1,1,1,12,136,1,1,1,1,1,1,1,1,137,138,12,12,135,133,45,45,140,50,50,139,142,141,1,1,0,0,0,0,0,0,0,0,0,0,0,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0,0,0,1,0,144,132,1,0,1,12,12,1,1,1,1,1,0,0,0,0,0,0,0,1,148,147,20,1,1,12,12,1,20,12,12,1,1,1,1,1,134,1,1,152,1,1,1,1,153,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,1,136,1,1,152,1,1,1,1,153,1,1,134,1,1,1,152,1,1,1,1,153,1,1,134,1,1,1,1,1,1,1,1,134,1,1,1,1,1,1,1,1,1,1,1,160,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,1,1,1,1,1,134,1,1,1,1,152,1,1,1,1,153,1,1,1,134,1,1,152,1,1,1,1,164,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,167,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,154,158,158,12,1,12,166,1,1,1,1,1,158,158,158,154,1,1,1,157,158,161,165,1,1,1,1,157,157,1,1,156,154,154,157,170,156,170,1,1,168,1,156,155,157,1,1,1,1,157,1,159,1,1,1,12,1,162,1,162,1,1,1,162,161,163,169,156,154,1,1,1,1,1,1,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,173,172,173,172,172,172,172,174,174,172,173,172,173,172,172,12,12,12,12,12,1,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,193,1,1,1,1,12,199,200,201,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,151,1,1,1,1,1,1,1,1,1,1,1,196,1,1,1,184,1,210,1,1,1,208,1,1,205,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,12,1,1,1,1,1,1,1,1,190,1,1,1,186,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,182,1,1,1,1,1,1,1,191,1,1,1,1,195,1,1,1,1,171,1,1,189,1,1,1,192,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,180,1,12,1,1,12,1,1,1,1,183,1,1,1,188,1,203,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,209,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,194,1,1,1,1,1,12,1,1,1,1,1,1,1,1,176,12,1,1,1,178,12,1,1,1,1,1,1,1,198,1,1,1,1,1,1,1,1,1,1,177,1,1,1,1,1,1,204,1,1,1,181,1,1,1,187,1,12,1,1,12,1,1,1,1,1,1,1,1,1,1,191,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,175,1,1,1,1,1,1,1,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,206,1,1,1,1,1,1,1,1,1,1,1,1,1,207,1,1,12,1,1,1,1,179,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,197,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,1,1,1,1,1,1,1,1,1,202,1,1,12,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,220,0,0,0,0,0,221,0,0,0,0,0,0,1,12,1,1,1,225,1,1,1,0,226,223,224,1,1,1,1,1,1,231,1,233,1,1,1,1,1,1,1,1,1,1,1,229,1,1,1,1,1,235,1,1,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,234,1,1,1,12,1,1,1,1,230,1,1,1,228,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,232,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,241,13,1,1,1,12,12,238,239,1,1,1,1,240,1,1,12,1,1,1,1,1,1,1,242,1,1,12,16,1,1,1,1,1,1,1,243,1,1,1,12,12,1,1,1,1,1,243,12,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,256,256,1,0,0,0,0,0,1,12,0,0,0,0,0,0,0,0,172,261,262,1,12,1,1,1,1,12,264,1,1,263,1,1,266,1,1,1,1,1,1,1,1,1,0,1,1,1,271,272,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,12,1,0,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,12,0,283,0,0,284,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,12,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,60,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0,308,0,0,0,0,0,0,0,0,0,310,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,327,327,328,327,0,185,1,1,13,323,1,321,0,0,0,0,1,0,0,0,324,1,1,329,1,205,1,1,1,1,1,322,1,319,1,325,1,317,1,326,1,318,1,1,1,1,1,1,1,12,1,1,1,12,1,12,320,320,1,1,1,316,184,1,1,12,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,12,1,1,1,1,315,1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,332,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,266,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,372,372,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,364,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,1,340,351,1,1,339,374,1,345,1,1,337,369,1,1,355,336,341,1,1,1,348,379,357,1,1,1,1,1,1,358,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,367,371,0,0,79,1,1,0,365,342,378,343,346,353,1,368,0,1,0,79,362,360,1,0,0,1,1,1,0,0,0,0,381,1,1,352,1,79,1,0,1,1,1,384,1,0,0,79,359,0,1,338,1,1,1,0,1,1,361,1,0,1,1,1,0,1,386,349,1,1,0,1,0,0,377,0,1,1,1,79,370,1,1,366,363,1,1,1,1,1,1,1,1,1,1,1,344,1,1,1,1,1,1,1,1,1,1,1,376,0,79,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1,380,1,1,1,0,0,383,0,0,0,1,356,1,0,79,382,1,0,0,0,0,385,1,1,0,0,1,0,1,0,354,0,350,0,1,1,1,0,1,1,0,373,347,375,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,1,400,400,1,1,12,12,1,400,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,412,1,1,0,1,1,1,1,205,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,430,430,1,1,0,0,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,442,1,441,1,1,1,1,1,1,1,1,445,1,12,12,1,1,1,1,1,12,1,1,1,1,453,1,1,1,455,1,1,1,1,1,1,1,1,1,1,452,1,447,1,1,1,1,435,1,1,1,1,1,1,1,1,448,12,1,1,1,1,454,1,1,1,449,444,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,317,1,433,1,1,12,451,1,1,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,437,1,1,1,1,1,1,1,1,1,1,1,454,1,1,1,1,317,1,450,1,1,1,439,1,1,1,1,1,440,1,456,443,1,1,1,1,1,438,1,1,1,1,1,1,1,1,1,434,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,446,1,1,1,1,1,1,1,12,1,1,1,1,1,436,1,1,1,1,1,1,1,220,457,1,1,1,1,1,12,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,0,0,462,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,466,466,466,466,466,466,466,0,466,466,466,466,466,1,466,466,466,0,466,466,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,471,470,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,475,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,468,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,469,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,477,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,474,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,478,473,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,472,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,476,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,1,1,1,1,1,1,1,488,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,198,198,1,492,1,1,1,491,1,1,1,1,487,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,489,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,493,1,1,490,1,1,1,1,1,1,1,1,372,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,494,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,505,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,12,1,507,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,12,12,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,1,0,0,0,1,0,0,0,1,60,1,1,12,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,526,1,1,1,1,1,1,1,527,1,1,1,1,1,1,1,525,1,1,12,1,529,239,1,1,12,12,1,1,12,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,533,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,539,1,1,1,1,1,1,1,1,1,1,1,1,1,1,132,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,107,1,1,12,1,1,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,548,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,144,1,1,1,228,1,1,12,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,1,572,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,577,1,220,1,328,1,1,1,1,1,1,1,1,1,0,0,578,1,1,1,1,0,580,0,79,0,579,0,1,1,1,0,1,1,1,1,1,1,12,0,0,0,0,1,0,0,0,0,0,0,586,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,582,582,0,585,583,582,582,582,582,582,587,582,582,591,582,582,582,582,582,582,582,582,582,582,588,585,582,582,585,582,582,582,582,582,582,582,582,582,582,582,582,582,583,582,582,582,582,582,589,582,582,582,582,582,582,0,0,0,1,590,1,1,1,1,584,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,12,595,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,12,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,12,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,65,280,306,411,535,0,4,68,236,254,282,307,334,388,413,0,499,519,536,597,9,0,61,88,398,409,429,575,0,497,518,532,612,0,30,6,0,461,500,602,560,70,0,7,285,255,389,463,416,538,79,598,0,576,309,418,465,9,105,288,506,6,30,0,311,79,391,79,483,10,6,131,248,275,0,613,509,0,563,0,64,6,6,251,95,2,432,399,410,596,0,6,0,6,286,103,6,561,501,540,0,464,390,273,287,8,71,104,599,543,392,312,300,419,146,74,290,546,510,601,564,335,330,479,6,75,149,11,0,249,522,547,565,514,551,570,611,36,6,260,295,333,304,218,30,528,553,218,42,216,265,296,305,406,423,481,274,0,73,562,0,403,417,299,79,247,79,0,581,545,504,292,421,79,393,387,0,0,0,9,555,571,217,0,424,407,531,516,573,615,85,218,43,297,396,425,569,0,511,293,276,79,215,80,28,390,30,6,394,331,303,604,592,524,550,513,0,258,81,30,405,422,0,30,426,0,219,593,517,9,408,427,218,248,86,222,594,574,557,482,428,397,250,227,87,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,620,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,82,0,129,0,0,84,549,0,0,0,0,0,0,0,27,0,552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,503,0,257,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,294,0,0,0,0,0,0,0,617,0,0,0,0,0,616,0,0,0,0,0,0,0,0,0,0,0,0,0,0,395,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,0,0,0,0,0,0,495,0,0,0,0,0,0,404,0,0,0,0,0,0,0,0,0,0,0,0,0,211,0,0,0,0,0,0,0,0,0,0,515,0,0,0,0,0,0,0,0,0,0,0,0,496,0,0,0,0,0,0,0,0,0,0,0,0,0,0,269,281,0,0,0,0,0,530,277,0,0,0,0,0,0,0,0,0,0,0,0,0,512,0,0,0,0,0,0,0,0,0,0,0,458,0,0,0,314,0,0,0,0,0,0,253,0,0,0,0,0,0,23,0,0,0,0,568,0,0,0,0,600,521,0,0,0,0,244,0,0,0,0,0,0,0,0,0,480,0,0,0,0,0,62,0,0,0,267,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,0,279,610,0,72,0,0,0,0,0,0,0,0,0,619,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,278,0,0,0,0,0,0,567,0,0,0,0,0,0,523,0,0,0,0,0,0,0,0,0,566,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,0,502,0,0,0,0,0,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,83,0,0,0,0,0,0,0,0,0,0,0,0,486,0,485,0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,459,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,289,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,537,0,0,0,0,0,0,0,0,298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,237,0,0,0,0,0,0,0,0,0,0,84,0,606,0,0,0,0,0,0,0,0,0,0,0,0,245,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,609,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,520,0,0,0,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,498,0,614,0,0,431,0,0,0,0,0,0,0,0,0,0,0,0,402,0,0,0,544,0,93,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,29,92,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,214,0,0,0,0,0,0,558,0,270,0,0,130,0,0,0,0,0,559,0,0,0,0,0,0,0,414,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,313,0,0,0,0,0,5,0,0,0,0,0,0,0,301,0,0,0,0,0,0,0,0,0,0,0,0,0,534,0,0,0,415,0,0,401,0,0,0,0,0,0,603,0,0,0,541,0,0,90,0,542,0,0,0,0,0,0,0,0,0,0,508,460,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,268,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,608,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,618,0,0,0,0,0,556,0,0,0,0,0,0,0,0,0,0,302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,605,0,0,212,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,623,623,623,623,623,623,623,622,624]),q3="orgmilcomschnetedugovdrrformsfeedbackofficialaccoorgmilschnetgovmagazinemediaunioncargopilotgroupcaarespressworksaerodromeworkinggroupair-traffic-controlaircraftaccident-preventioneducatormarketplaceambulanceinsurancecateringairportrepbodyenginesoftwaremodellingair-surveillanceconsultingchartertrainermaintenanceservicesdesignflightskydivingfreightassociationstudentgroundhandlingdgcafuelclubtaxicrewshowballooningexpresstraderbrokerauthoragentsairtrafficjournalistsafetyconsultantmicrolightaccident-investigationparachutingequipmentproductionfederationrecreationscientistnavigationengineertradingglidingleasingresearchpassenger-associationentertainmentparaglidinghangglidingaerobaticrotorcraftemergencycertificationgovernmentaeroclubexchangelogisticschampionshiphomebuiltcouncilconferencecontrolairlinecivilaviationjournalorgcomnetedugovcoorgcomnomnetobjofforgcomnetuwukiloappsframerorgmilcomnetedugovcoradioorgcomnetcommuneedogpbcoitgvorgedugov*spreviewfrontendrelayononstagingupid*mtls*privatelinktypedreamdeveloperbravemochawindsurfaivenmirenupsunwnextbegetngrokclerkwale2bwebcsbrunputerflutterflowspawnbaseshiptodaymagicpatternsnetlifyondigitaloceanrailwayhostedclaudehasurabotdashvercelgithubluyanigadgetreplitcloudflaretelebitedgecomputeevervaultdetaexponyatnoopencrpplxzeaburwasmerframerzeropsconvexmedusajsspritesonherculeseasypanelstreamlitsnowflakemesserliloginlinehackclubnorthflankbase44corespeedadaptableleapcellngrok-freeclerkstagelovableon-fleek*us-west-3ap-south-2us-central-2us-central-1eu-central-1ap-south-1us-west-2us-east-2eu-north-1ap-north-1us-west-1us-east-1*rcloudintsegorgmilcomgobbetnetintedugovturmusicasenasamutualcoopip6uriurnin-addre164homeirisgovdixdaemoncloudnssthwien*inexexkunden4accogvormymyspreadshop4lima2ixortsinfofuturecmsfuturehosting12hpprivfuturemailinglima-cityfunkfeuer123webseitednshomemelmyspreadshopcloudletswasantqldvicactnswtascatholicwasaqldvictasvpsidwasantozqldorgcomvicasnactnetedugovnswtasconfhrsncomairflowlambda-urltransfer-webappairflowtransfer-webapptransfer-webapptransfer-webapp-fipstransfer-webappeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1privatenotebookstudiolabelingnotebookstudionotebooknotebook-fipslabelingnotebookstudionotebook-fipsnotebookstudio-fipsnotebook-fipsnotebookstudionotebook-fipsnotebookstudioeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2experimentsus-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1onrepostsagemakercopporgmilcompronetintedugovbiznameinfoshoprsorgmilcomnetedugovbrendlyresolvenzauscotvstoreorgcomnetedugovbizinfoidacaicoittvorgmilcomschnetedugovinfocloudezproxyacmymyspreadshopkuleuvenwebhostingtransurl123websitecloudnsinterhostsolutionsddns5476103298edgfacbmlonihkjutwvqpsryxzbarsycoororgcomedumyftpno-iporxcloud-ipfor-somemmafanfor-morewebhopselfipjozidyndnscloudnsdscloudfor-thefor-betteractivetrailcoeconorestooteorgcomeconeteduassurmoneyafricaarchitectesrestaurantloisirstourismavocatsinfoagrounivcoorgcomnetedugovtvdeportesaludtksatorgmilcomwebgobnetinteducienciaboliviarevistacooperativaempresanombreindustriamusicapatriamedicinademocraciapoliticapuebloindigenaplurinacionalarteblogwikiinfoagrotransportenoticiasprofesionalacademiaeconomiaecologiamovimientotecnologianaturalsimplesitecepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesmscepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesms*biaamfmtcmptvfeirasampajampanatalbelemananiradiog12medindfndbmdtrdthepoaggfjdfdefinfenflegsegongengcngorgzlgslglogppgmillelqslcimcomnomadmjabimbbibbsbabcrectecsjcetcpscpvhudieticriapipsiecnbiorioecogeoteoodoproatoartfstmatvetdetbetnetcntnotfotgrueduajuespappreptmpemparqsrvadvdevgovntrturagrjorfarjusmusdesvixxyzcozfozslzbhzmaringasantamariacampinagrandegoianiasorocabafloripasaobernardocuritibaboavistarecifeaparecidasaogoncasalvadorcuiabamorenamacapalondrinacontagemsocialfortalmaceioleilaoosascoriobranconiteroi9guacutcheblogflogvlogwikitaxicoopmanauspalmascaxiasjoinvillebaruericampinassantoandreribeiraoriopretoweorgcomnetedugovv0windsurfshiptodaycloudsitecoaccoorgnetgovofmilcomgovmediatechzacoorgcomnetedugsjgovmydnspenfnlabnbmbgcbcqconcontnuyksknsmyspreadshopno-ipawdevboxbarsyonidatemfuinabusavinstanceseceuguukussryzespawncsxcloud-ipmyphotosfantasyleaguetwmailcleverappsscrappingccwucloudnsftpaccessgame-serverccgovobjectsrmalpgcust*svcalp1aeappenginermalpgmyspreadshop4lima2ixsquare7cloudscale123websitefirenet12hpflowgotdnslinkyard-cloudcloudnslima-citydnskingobjectstorageedaccogoorusorgcomnetinteduaéroportxn--aroport-byaassogouvcomilgobgovcloudnses-1eu-west-1us-east-1euvipit1eurarubait1s3lbwebsites3websiteru-spbru-mskelasticcsrunstnukukcaukusnl-ams-1fr-par-1fr-par-2functionsnodess3ddlwhmrdbfnck8sifrs3-websitecockpitscblmgdbdtwhkafkpubprivs3ddlwhmrdbk8sifrs3-websitecockpitscblmgdbdtwhkafks3ddlrdbk8sifrs3-websitecockpitscblmgdbdtwhkafkk8sscalebookpl-wawfr-parnl-amsbaremetalsmartlabelinginstancesdechk2kuleuvenlaravelvoorloperurownoxazapscwhstgrvaporobservablehqelementorantagonistreclaimjoteluluencowaydiademjelasticmatlabmagentositetrendhostingaxarnetperspectajenv-arubajelejoteravendbemergenttrafficplexconvexkeliwebserveboltbegetcdnstaticson-rancherprimetelonstackitunison-servicesdnshomelinkyardbarsyjelecloudnscocomnetgovmycn-northwest-1cn-north-1s3s3-accesspoints3-websites3s3-accesspointrdsdualstacks3-deprecatedemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspoints3s3-accesspointrdsdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicn-northwest-1cn-north-1cn-northwest-1ebcomputeelbcn-north-1airflowcn-northwest-1cn-north-1oncn-northwest-1cn-north-1amazonawssagemakeramazonwebservicesdirectasgdsdhehahljlnmhbacscahqhshhihnlnynsnmofjbjzjxjtjhkcqtwgsjssxnxjxgxxzgz網絡网络公司orgmilcomnetedugovxn--55qx5dcanva-appsxn--io0a7iquickconnectcanvasitekhsjxn--od0algmyqnapcloudsrvrlessclustersrealtimestorageleadpagescarrdcrdorgmilcomnomnetedugovhidnssupabaserdpareplmypiumsoxmitotaplpagesfirewalledreplitowodevwebview-assetsvfswebview-assetss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecateds3-websites3-object-lambdaexecute-apis3s3-accesspoints3-websites3-accesspoint-fipss3-fipss3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipss3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9vfss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1us-northeast-1ap-southeast-1me-south-1af-south-1ap-south-1ap-southeast-7us-west-2eu-west-2ap-east-2us-east-2ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ap-southeast-6ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1mrapaccesspoints3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3eu-west-3ap-south-2eu-south-2computes3-ap-northeast-2elbrdss3-ap-east-1s3-sa-east-1s3-us-gov-west-1s3-eu-central-1s3-ca-central-1eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3s3-website-us-west-2s3-website-eu-west-1s3-external-1eu-central-1me-central-1ca-central-1il-central-1s3-us-west-1s3-eu-west-1s3-website-sa-east-1s3-website-ap-southeast-2ap-northeast-1ap-southeast-1s3-us-west-2s3-eu-west-2me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2s3-website-ap-southeast-1s3-1s3-globals3-ap-northeast-3eu-north-1airflowap-southeast-2s3-us-gov-east-1s3-fips-us-gov-east-1s3-me-south-1s3-ap-south-1ap-northeast-2s3-website-us-west-1ap-southeast-5s3-eu-north-1s3-ap-southeast-1s3-website-us-gov-west-1compute-1s3-eu-west-3us-gov-west-1s3-website-ap-northeast-1us-gov-east-1s3-fips-us-gov-west-1s3-website-us-east-1s3-ap-southeast-2ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3-us-east-2s3-ap-northeast-1authauthauth-fipsauth-fipseu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1rservicesbuilderstg-builderdev-builder*ociocpocsdemoinstanceeu-west-3eu-south-2ap-southeast-3ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1previeweu-4us-4us-1eu-1us-2eu-2us-3eu-3appspaasrag-cloudrag-cloud-chjcloudjcloud-ver-jpcdemonodebalancermembersipeuxvsoncillaocelotonzayalilynxsphinxfentigercustomercaracalo365cloudstaticxendevapp001testcode-builder-stgplatformapimediasiteprojedrydpagesjsu2u2-localx0desazacncoitrueu4uhkukgrbrushatenadiarymyspreadshopfrom-flfrom-wvwebspace-hosttheworkpchatenablogservesarcasmapplinzisakuratanwixsiteappchizigiizeis-into-carsdnsiskinkyadobeaemcloudis-a-therapistpgfogmyvncdojinis-an-actress1kappfldrvkozowqa2jpnmexprgmrfirewall-gatewaydynnscafjsfbsbxooguyxnbayfrom-gawoltlab-demois-a-anarchistwiardwebteaches-yogadattowebtb-hostinglive-websiteservegamegotpantheonfrom-nhsubsc-payfrom-ohvipsinaappfrom-cadyndns-officehomelinuxfrom-mahercules-appservebbsstreakusercontentfrom-okfrom-wyfastly-terrariumis-a-llamaqualyhqportalserveexchangeon-vaporvivenushopciscofreakgrayjayleaguesmetaaiusercontentfrom-iais-a-libertariansaves-the-whalestaveusercontentyolasiteoperaunitepoint2thisis-a-catererlinodeusercontentfrom-vagithubusercontentsells-for-lesshosteurcanva-appsplaystation-cloudddnsfreefrom-pafrom-prfrom-waddnskingoutsystemscloudhotelwithflightmydattois-a-nascarfanmydbserverminiserverdamnserverservehumouris-a-playerfrom-nvfrom-nmemergentagentgentappsamplifyappfrom-kyis-an-accountantnfshostserveircfrom-akpythonanywherestackhero-networkpostman-echolikescandydyndns-mailobservableusercontentserveftpfreeboxosfrom-utcdn77-storageamazonawsneat-urldyndns-serverlinodeis-a-teacherfrom-vtgleezemythic-beastsus1-pleniteu1-plenitla1-plenitpaywhirlservecounterstrikejdevcloudhealth-carereformis-into-animegoogleapisis-a-painterafricaisa-hockeynutatmetais-an-actora2hostedis-a-democratdatadetectest-le-patrondigitaloceanspacesis-a-designeris-a-hunterlinodeobjectstemp-dnsissmarterthanyoufrom-arsimplesiteevennodetownnews-stagingis-a-liberalgooglecodejelasticservemp3stdlibqualyhqpartnerdyndns-free1cooldnsest-a-la-masiondrayddnsdynuddnsfrom-orfrom-miis-a-bloggerfrom-himydobisscanvacodeis-an-engineerest-a-la-maisonupsunappdevinappswafflecellmyasustorwpenginepoweredfrom-ctservep2psame-appmyshopblocksthingdustdatalikes-piediscordsezis-with-thebanddev-myqnapcloudlpusercontentis-leetshopitsite3utilitiesis-a-personaltrainersinaappladeskis-a-cheflogoipselfipbase44-sandboxnospamproxyalibabacloudcsmesswithdnsauthgearappsiamallamawithgooglelutrausercontentmochausercontentframercanvasmytabitdyndns-homew-credentialless-staticblitzcpserverdiscordsaysis-a-nurseappspotatlassian-isolated-3premotewdfrom-mtwixstudiocode0emm180rmyactivedirectoryawsappsmytuleapdnsabrpolyspaceqbuserrenderbuiltwithdarkboutirgotdnsabrdnsdopaascanva-hosted-embedawsglobalacceleratorhomesecuritypcmyiphostditchyouripclever-clouddyndns-ipon-aptibleis-a-musiciansecuritytacticsappspaceusercontenthomeunixstrapiappsame-previewcf-ipfsmycloudnaselasticbeanstalkis-certifieddontexistkasserverik-serverdrive-platformatlassian-3pfirebaseappherokuappawsapprunnerbarsycenteris-a-cubicle-slaveservehttpmyshopifyis-a-guruquicksytessiiitesorsitesmagicpatternsappis-a-cpameteorappfrom-wiis-a-rockstarbumbleshrimpdattolocalreadthedocs-hostedfrom-rifamilydsdyndns-picsplesknsbplaceddnsaliasdynaliasdyndns-remotedoomdnsip-ddnsblogdnsis-a-doctorroutingthecloudamazoncognitobarsyonlinedsmynasddnsgurucloudflare-ipfsdeus-canvasfrom-idsmushcdnpagespeedmobilizerdyndns-at-homeunusualpersonhosted-by-previderis-a-republicandyn-o-saurstreamlitappworkisboringonthewificprapidqualifioappis-uberleetis-slickgetmyipwpdevcloudtypeformdyndns-at-workgentlentapismynascloudw-corp-staticblitzfrom-ingeekgalaxyservebeerfrom-mdonrenderspace-to-rentaivencloudappspacehostedonfabricawafaicloudcodespotblogspotatlassian-3p-us-gov-modfrom-ndfrom-msis-a-techieis-a-studentcustomer-ociis-a-photographerdurumisfrom-ksmassivegriddyndns-wikiis-an-entertaineris-a-hard-workermysecuritycamerafrom-mnrackmazedyndns-blogis-a-bulls-fanwritesthisblogfreemyipsimple-urlfrom-sdreservdauthgear-stagingest-mon-blogueuris-into-gamesrice-labsxtooldevicesakurawebis-an-anarchistoraclecloudappsdyndns-worksells-for-urhcloudfrom-dcfastvps-serverwpmucdnis-a-geekscrysecfrom-txis-into-cartoonsmodelscapetrycloudflarelocaltonetstreak-linkbalena-devicesfrom-njforgeblocksfreebox-oswebadorsitefrom-ncdoesntexisthobby-sitestreaklinkshomesecuritymacownprovidertuleap-partnersdattorelaywphostedmailalpha-myqnapcloudservequakeis-a-socialistservehalflifepivohostingdynuhostingquipelementsw-staticblitzdyndns-webfrom-deproject-studyaliases121is-not-certifiedhercules-devis-a-financialadvisorservepicsis-a-greenloseyouripfrom-ilwithyoutubemwcloudnonprodwiredbladehostingdnsdojofrom-tnpixolinomyqnapcloudis-an-artisthostedpiis-a-landscaperauiusercontentoaiusercontenton-forgeis-a-conservativedreamhostersnet-freaksapps-1and1is-goneencoreapifastly-edgefrom-nesalesforcefrom-scdeployagentoraclegovcloudappsfrom-alis-a-lawyercechirevultrobjectsstufftoreadisa-geekddnsgeeklovableprojecttry-snowplowfrom-moblogsyteis-a-bookkeepernogmyforumravendbmyboxdeelementoredsaacficogoorinforgcomgobnatneteduidstoreorgcomnetintedudevnomepublorgcomneteduathgovtestscalculatorspaynowinfoquizzesresearchedcloudnsfunnelsassessmentsjscaleforcetmacltdorgmilcompronetgovbizpresseklogesrsccloudcustomfltusrcloude4corealmgovmunicontentproxy9metacentrumdyndyndyndnsdynpagespages-researchitionoccustomercomymyspreadshopipv64diskussionsbereich4limacomrub2ixfirewall-gatewayddnssspdnsbarsykeymachinesquare7myhome-serverspeedpartnercommunity-proschuldockxenonconnectgünstigliefernbwcloud-os-instancedyndnssecmy-routerxn--gnstigliefern-wobin-butterl-o-g-i-nisteingeekin-dslin-berlinin-brbfuettertdasnetzleitungsenin-vpnlcube-serverdyn-ip24logoipdyn-berlinruhr-uni-bochum12hpgoipsrvdnsfruskygit-repossvn-reposinternet-dnsgünstigbestellenhome-webserverxn--gnstigbestellen-zvbbplacedheimdnscosidnswebspaceconfiglima-citydyndns1istmeinvirtualuserschulplattformmy-gatewayddnsseclebtimnetztest-iservmein-iservvirtual-userhome64iservschuletaifun-dnstraeumtgeradeschulserverdynamisches-dns123webseitednshomehs-heilbronndnsupdaterbssgraphicdwadpdwdaepeweaawapaafpfwfabwbpbacwcpcciwebuserapiobjectsidsiskospockkimodorikerbonesteamsparisjanewaypicardglobaltarpitreedpikekiraworfsulukirkarchertuckerhackercanarywesleystagingprereleaset3r2lpbravepanelngrokiservstglclcrmerpflypagesbarsyvivenushoplocalcertlocalplayerbearbloggatewaydeno-stagingis-not-ais-a-goodbotdashvercelmocha-sandboxplatter-appreplitgithubpreviewworkersinbrowserevervaultdetais-ahrsndenoxmitmodxmyaddrstorageapipayloadgrebedocruncontainersstgstagelclstageloginlineis-a-fullstackleapcellngrok-freeis-coolstoragewebharemediatechlibp2pdiscourseimaginecomyspreadshopstoreregbiz123hjemmesidefirmcoorgcomnetedugovsldorgmilcomwebgobartnetedugovtmorgpolcomsocartnetedugovassoagrondiscoodontk12medcuegyecpaabgengorgmilgalsaltulcomadmesmgobpubdocmonfindgnriouioproartlatvetnetfotedulojgovntrturibrbarxxxofficialbasechefprofmktgpsictechinfoarqtcontdentrrpppsiqgit-pagesritmedfieorgcomlibprieduaipgovriikmeactvsportorgmilcomscieunnetedugovnameinfopintouchtawktotawkmyspreadshoporgcomnomgobedu123miwebcomputeorgcomnetedugovbiznameinfocognito-idpeusc-de-east-1onjelasticnxaspdnsbarsydirectwpdeuxfleurstransurldogadoprvwcloudnsamazonwebservicesdnshomeuserpartycokoobinmkmstorjfidemopaasdymyspreadshopalandkapsiikixn--hkkinen-5wacloudplatformdatacenterhäkkinen123kotisivuidacorgmilcompronetedugovbiznameinforadioorgcomneteduuserexperts-comptablestmmyspreadshopgretaprdcomnomynhccifbxoshuissier-justicenotairesaeroportfreeboxoson-webavocatassoportgouvkdnschirurgiens-dentistes-en-franceavouesfbx-os123sitewebveterinairechirurgiens-dentistespharmacienchambagrimedecinfreebox-osdediboxgoupilemszicpyicpvicppleysheezypagesedugovcnpyorgcomcybllcpvtnetedugovtnxonlineschooldaemond6atcopanelorgnetplybotdashstackitkaasorgmilcomnetedugovbizmodltdorgcomedugovcoorgcomneteduappwriteacorgcomnetedugovcloudtranslateusercontentorgcomnetedumobiassoorgcomnetedugovbarsysimplesitediscourseindorgmilcomgobneteduorgcomwebnetedugovguaminfonxhra教育敎育網絡网絡组織組織网络網络组织組织公司政府個人个人箇人ltdorgcomincneteduidvgovxn--uc0ay4axn--55qx5dxn--mk0axixn--io0a7ixn--uc0atvxn--zf0avxxn--lcvr32dxn--od0algxn--wcvs22dxn--gmqw5axn--od0aq3bxn--mxtq1mxn--ciqpnxn--tn0agxn--gmq050iorgmilcomgobneteduiservwp2tempurlmircloudfreesitewpmudevmyfastgadgetcloudaccessjelehalfboltfastvpsemergenteasypanelopencraftizcombrendlynamefromrtpersoadultmedorgpolrelcomproartnetedufirminfoassoshopcoopgouvtmcomediahotelforumvideosportorgsexagrargameslakaseroticaerotikatozsdereklamcasino2000filmsuliinfoboltshopprivnewsszexcityutazasjogaszkonyveloingatlaneacaicogoormyᬩᬮᬶmilwebschnetkopbizzonedesaponpesxn--9tfkymyspreadshopgovmytabittabitorderravpageaccok12idforgnetgovmuniltdplcaccotttvorgcomnetmeca6g5gpgamubacaicniocoukuptverdruscsdelhiindorgmilcomwebnicfingenpronetintedugovresbizbiharbarsyinternetbusinessschooltravelsupabasealumnigujaratfirminfoaeropostbankcoopindevscloudnsno-ipbarsybarrell-of-knowledgebarrel-of-knowledgensupdategroks-thisdnsupdatefor-ourknowsitalldvrcammittwalddynamic-dnsv-infowebhopselfipdyndnshere-for-moreilovecollegemayfirstforumzcloudnsmittwaldservertypo3servergroks-theeusekd1uk0cdndyndnsidrawsainaueuapjpusstagemocksysdevicesclientcustreservdcustdevdisrecprodtestingcobeebyteutwenteboxfusebravepstmndedynngrokorgmilcomnomhzcnetedugovqcxqzzbarsythingdustmo-siemensrb-hostingprotonetfh-muenstergitbookbluebitecloudbeesusercontentnodeartkiloappsforgerockdarklangresinstagingapigeebubbleb-datascryptedhypernodedappnodepantheonsitegitlabgithubkeeneticvirtualservercleverappshostyhostingon-rioedugitticketstelebiton-acornwixstudioon-k3sicp0icp12038jeleqotobigvlairbubbleappsmyaddrstolosmyrdbxwebflowdrive-platformbeagleboardhasura-applolipopdefinimavaporcloudmusicianwebflowtestazurecontainerresindevicereadthedocsloginlineeditorxmoonscalesandcatsbasicserverwebthingsbrowsersafetymarkbeebyteappbitbucketidaccovistablogorgschnetgovxn--mgba3a4f16axn--mgba3a4fraarvanedgeايرانایرانjclaspeziapdudcefegelemeperetevebacanatavaparasabgagfgogrgpgalclblimfmrmcbmbvbfclcmcvcrcpcchlimifibicivipirisimncnbnanenrnpntnnolomobocoaogorosopotoptvtatctbtmtltotpulunutpspapaqsvpvvvtvavvrtrsrprgrfrcrbrarorkrvstsssbscsmsispzczbzbozen-suedtirolmyspreadshopxn--bulsan-sdtirol-nsbxn--valledaoste-ebbtrentinoaltoadigetrentin-sued-tirolxn--forlcesena-c8axn--forl-cesena-fcbxn--bozen-sdtirol-2obtriestetrentinsuedtiroltrentino-s-tirollecceudineaostesienaparmaluccapaviagenoapaduaaostamonzaabruzzoternirietiturinmilanbozenlaziofermoleccocuneonuoropratola-speziavdataaligfvgpugmolcalcamlomumbsicpmnvenvaoedugovabrsarmaremrbastoslazibxosfirenzetrentinosüdtirolval-d-aostavalle-aostamessinacremonaravennatoscanatrentin-suedtirolbolognacalabriaurbinopesarofriuli-v-giuliaogliastraxn--valle-aoste-ebblaquilaandriatranibarlettasyncloudtrentinosudtirolxn--valle-d-aoste-ehbaostavalleyvalled-aostatrentino-alto-adigevallee-d-aostexn--balsan-sdtirol-nsbpistoiasicilialucaniacataniaiserniaperugiabresciaveneziagorizialiguriaimperiabulsan-suedtirolbalsan-suedtirolbarlettatraniandriaxn--trentino-sdtirol-szbforlì-cesenatuscanyvallée-d-aostemantovavallée-aostecasertapiemontevalleaostaval-daostafriulivgiuliatrevisoforli-cesenavalléedaosteferrarapescaravald-aostatrentino-altoadigefriuli-vegiuliavallee-aostecarboniaiglesiastarantomediocampidanovalleedaostetrentinosud-tirolcampobassotrentinsüd-tiroltrentinosüd-tirolmonzabrianzatrentino-südtirolxn--trentino-sd-tirol-c3bpotenzacosenzavicenzaemiliaromagnavenicefrosinonemarchepordenonetrentinosued-tirolvaresemolisevalléeaostefriuli-veneziagiuliabasilicatalatinaanconasavonaveronamodenaaquilabiellabolzano-altoadigepugliafoggiaumbriatrentino-stirolgenovapadovamateranovararagusapiacenzatrentinostirolvalleeaostetempio-olbiatrentinsudtirolmassa-carrarafriuliveneziagiuliatrentinosuedtirolandria-barletta-tranitrapanixn--cesenaforl-i8amaceratacaltanissettaascoli-picenobrindisicarraramassacagliaririmininapolivibo-valentiachietibulsan-sudtirolbalsan-sudtiroltrentino-a-adigebulsanbalsaniglesiascarboniamilanotorinoteramodell-ogliastraarezzotrentinoalto-adigerovigotrentovenetoiglesias-carboniatrentino-sud-tirolaltoadigereggio-emiliareggio-calabriasardegnatranibarlettaandriapiedmontxn--sdtirol-n2amedio-campidanotrentino-süd-tirolfriuli-vgiuliafriuli-ve-giuliaromeennaromapisa32-b16-b64-blodiastibarineencomonaplesforlicesenailiadboxosalessandriasicilytrani-barletta-andriaxn--trentin-sdtirol-7vbpesarourbinotrentinsued-tirolcesena-forliforlìcesenaemilia-romagnamonzaebrianzaxn--trentinsdtirol-nsbtrentinos-tiroltrentinsüdtirolvalledaostaolbia-tempiocampidanomediovibovalentiasassarivalle-daostalombardyfriulivegiuliareggioemiliamonzaedellabrianzaalto-adigevercellitrentin-sudtiroltraniandriabarlettatrentino-sudtirolascolipicenobozen-südtirolfriulive-giuliaflorencevaldaostaxn--cesena-forl-mcbcarbonia-iglesiasaosta-valleycarrara-massadellogliastratrentinoa-adigexn--valleaoste-e7apesaro-urbinoxn--trentinosdtirol-7vbxn--trentin-sd-tirol-rzbxn--trentinsd-tirol-6vbtrani-andria-barlettatrentin-süd-tirolxn--trentinosd-tirol-rzbgrossetomonza-e-della-brianzasüdtirolreggiocalabriatrentinoaadigetrentin-südtirolfriuliv-giuliaverbaniacampaniatrentino-aadigefriulivenezia-giuliasardiniaandriabarlettatranibarletta-trani-andriacatanzarooristanourbino-pesarocesena-forlìvalle-d-aostacampidano-medio123homepagesiracusatempioolbiasuedtirollombardiaavellinocesenaforlìtrentinofriuli-venezia-giuliabozen-sudtirolandria-trani-barlettabulsan-südtirolbalsan-südtirolmonza-brianzabolzanotrentino-sued-tirolbellunosalernolivornocrotonesondriodnshometrentinsud-tirolmassacarraratrentin-sud-tiroltrentino-suedtirolviterbobergamocesenaforliolbiatempiopalermobeneventoagrigentoofcoorgnetfmaitvphdengorgmilcomschnetedugovperagrikanieasukehandachitatokaiaisaikonanoharuamaobuhigashiuraowariasahiinuyamatobishimaiwakurashitarainazawatoyonegamagorimihamatoyotataharakariyayatomioguchikomakimiyoshinishiotokonamekiyosuchiryutoyohashiokazakiisshikikasugaikotakiratoeianjotogofusosetohazutsushimashinshirotakahamanisshinshikatsuhekinantoyokawaichinomiyatoyoakeodateogataakitaikawakyowahonjoogayurihonjonoshirokamiokakatagamimitanegojomeyokotekosakadaisenkazunonikahohonjyomoriyoshimisatohappoukamikoanihachirogatahigashinarusesembokufujisatokitaakitaitayanagiowanitakkomutsutsurutahirosakigonoheoirasetowadamisawanohejiaomorishingohiranairokunohehashikamitsugarushichinohehachinohenakadomarisannohekuroishisakaeisumiasahiotakiinzaiabikomatsudoyachiyomutsuzawakujukuriomigawakashiwatoganemihamanaritasakuranagaramobarahanamigawachoshishiroichoseikozakishisuikatorimidorichonankyonanfuttsuonjukufunabashinagareyamanodasosatakochuotohnoshourayasukimitsuyokaichibayotsukaidosodegauratateyamakamagayayokoshibahikariyachimatakatsuuratomisatokisarazukamogawaichikawanarashinoichinomiyashimofusaminamibososhirakoichiharaoamishirasatoikatahonaiainansaijoseiyoiyoozuuwajimaniihamanamikatamasakiuchikokihokutobetoonshikokuchuomatsuyamaimabarikamijimakumakogenyawatahamamatsunosabaeikedaobamasakaifukuiohionotsurugamihamawakasaminamiechizeneiheijikatsuyamatakahamaechizensoedaukihaomutaokawanishiogoribuzenonojosueumiokiotochikugosasagurisaigawamizumakishinyoshitomikurumekurateyamadakasuganakamamiyamanogatatakatahakataiizukakawaratagawakasuyaashiyainatsukimunakataminamitsuikishonaikurogifukuchikeisenhigashimiyakoshinguyukuhashiokagakiyamekogaongausuikahotohochuotoyotsumiyawakadazaifuhisayamatachiaraiyanagawanakagawahirokawachikujochikushinochikuhochikuzennamieotamaokumashowateneiiwakikoorinangoononishigoshimogoomotegomishimafukushimaasakawakagamiishishirakawaiitatefutabahiratayugawahanawakitakatakawamatakunimiyabukibandaihigashihironoyamatomiharuyamatsuriaizubangedatesomaaizuwakamatsuyanaizuaizumisatonishiaizuizumizakikitashiobarataishinkaneyamakoriyamainawashirotanagurafurudonosamegawasukagawaishikawatamakawaikedaogakitaruiginanenahashimahichisonakatsugawaibigawashirakawamizunamiminokamomitakekawauesekigaharatomikasakahogikitagatayamagatatajimianpachimotosuyaotsukakamigaharahidakanisekitokigujominogodoyorogifukasamatsutakayamawanouchihigashishirakawakasaharashimonitatsumagoichiyodakannakanrashowameiwakiryuotaoratomiokafujiokaitakuranaganoharahigashiagatsumatakasakishibukawaminakamikatashinatsukiyonokawabanumataannakaoizumimidorishintoisesakiuenoyoshiokakusatsutakayamanakanojonanmokutamamuratatebayashimaebashiotakekaitadaiwahongofuchukuietajimashobaramiharahatsukaichihigashihiroshimamiyoshikumanokurenakasakaseraseranishiasaminamifukuyamashinichionomichiosakikamijimajinsekikogentakeharaotobenanaeikedatohmaozoraobiraabirakyowaeniwataikibibaisharirebunerimohiroooketootarupippunishiokoppechitosefurubirahakodateshiranukakitahiroshimakushiroobihironanporoiwamizawaniikappukunneppufukushimanakasatsunaitoyourakuromatsunaiakabirakamisunagawashibechaurakawakamifuranonakatombetsuasahikawashimokawakayabeokoppebiratoriabashirisaromaatsumanumatahidakabifukamukawamikasahorokanaitoyotomisarufutsuhigashikawaishikarikitamiyoichiesashiiwanaitomariminamifuranoakkeshifuranotoyakoyakumootoineppushikaoishiraoinemuronayorohaboroashorobihororishirifujiutashinaihokutotakasuebetsuurausuassabukikonaishimamakinaiedatetoyabieinikiesanuryuoumuteshikagarikubetsuashibetsukimobetsuaibetsutobetsusobetsuembetsushimizuchippubetsurishirihokuryuhoronobeshintokutsubetsushibetsuhonbetsumombetsutsukigatakuriyamakoshimizushiriuchikutchanmurorannoboribetsukamishihorowassamushinshinotsukembuchiwakkanaikamoenaikiyosatotakinoueshikabesunagawafukagawanakagawatakikawakamikawahigashikagurahamatonbetsumatsumaemoseushirankoshishakotanimakanemashikeotofuketomakomaisandatambaitamiawajikasaiasagoshisoonoakoyashirotoyookaminamiawajiinagawafukusakitakasagokamigorikasugaharimayokawaashiyahimejiakashitaishiaogakisannantakinosumototakarazukanishinomiyashingugoshikinishiwakiyokatakaaioimikisayoyabukawanishiamagasakisasayamashinonsenkakogawaichikawakamikawatatsunotsukubaiwamaogawaasahisakaitokaioaraiitakobandodaigosuifuinaamikasumigaurakashimaomitamayachiyoshimodatetomobetoridehitachinakainashikisakuragawakasamayawaramoriyahitachiomiyanamegatayamagatahitachikamisuushikutakahagiibarakitonekoganakasowayukimihojosomitoryugasakishimotsumafujishirotsuchiurachikuseihitachiotashirosatotamatsukuriuchiharashikahakuinanaotsubatawajimakahokukawakitatsurugikaganominotosuzuuchinadakomatsuanamizunakanotohakusannonoichikanazawaiwateshiwafudaikawaimoriokaofunatohanamakikuzumakikitakamininohekunoheyamadayahabasumitaichinosekitanohatahiraizumirikuzentakatajobojiotsuchihironomiyakoiwaizumikarumaiichinohenodakujitonooshushizukuishifujisawamizusawakamaishikanegasakimannoutazukotohiraayagawazentsujihigashikagawauchinomikanonjisanukimarugamemitoyotakamatsutadotsunaoshimatonoshoakuneamamiizumihiokiyusuikinkoisasookouyamanakatanekagoshimakanoyaisenkawanabeminamitanemakurazakitarumizunishinoomotematsumotosatsumasendaioimatsudaayaseebinamiurazushinakaiodawaraiseharasagamiharahakoneaikawakaiseiatsugitsukuihadanoyamatoyamakitazamaoisochigasakininomiyayokosukakamakuraminamiashigarafujisawasamukawakiyokawahiratsukayugawaraokawaumajikochitsunootoyoakiinonishitosayasudahidakamiharasakawaniyodogawahigashitsunokagamigeiseisusakiotsukinaharisukumomurototosakamiochitoyotosashimizumotoyamanankokunakamurakitagawayusuharaogunichoyoukiasoutoozugyokutoamakusamifunetakamoriyamagaminamataminamiogunikikuchisumotoyamatonagasumashikiaraokumamotokamiamakusanishiharayatsushiroayabeseikasakyoideineujinakagyokameokakyotangokyotanabekyotambaminamiyamashiroyamashinatanabeyawatawazukaminaminantanmiyazuhigashiyamafukuchiyamakitamukokamojoyokizumaizuruujitawaraoyamazakinagaokakyokumiyamakawagoeinabeshimameiwaasahitaikiudonoisetsukisosakikuwanamihamamiyamasuzukatamakimisuginabarikumanokomonominamiisewataraitobakiwatakikihotadomatsusakayokkaichikameyamaureshinoishinomakishichikashukuohirataiwaosakizaohigashimatsushimashikamaiwanumashibataogawaraonagawakawasakiseminemarumoriminamisanrikukakudamuratawakuyatomiyanatoriwataritagajomisatotomekamirifushiroishimatsushimayamamotoshiogamafurukawahyugaebinotsunosaitoayakushimanobeokakitauramiyazakitakazakigokaseshiibamimatashintomikunitomikitakatakobayashikawaminamitakaharukijotakanabemiyakonojonishimeranichinankitagawakadogawamorotsukakisofukushimaminamimakisakaeobuseikedaogawamiasaokayaasahiotakiotarichinoinaomichikumakomaganechikuhokukaruizawayasuokaooshikaikusakaminamiaikitogakushimatsukawakawakamitateshinatakamorikitaaikishiojirimiyadahakubaiizunaiijimaiiyamamiyotasuzakayasakatoguraookuwanagawaminowahirayayamagataminamiminowafujimiomachisakakitakaginaganonakanosakuhokomoronagisoshinanomachiwadauedaiidaharasuwatomiachiaokianankisosakunozawaonsenagematsutakayamashimosuwamatsumotoyamanouchinakagawamochizukiazuminotatsunoobamaomuraseihiunzenosetofutsuikichijiwanagasakiisahayahasamisaikaikawatanasasebohiradokuchinotsugototogitsutsushimashimabarashinkamigotomatsuurayamazoekashibaikomakawaitenrioyodosangokoryoudaojiikarugayamatokoriyamatenkawakatsuragikurotakikawakamimiyakemitsuetakatorikamikitayamayamatotakadahegurishinjokanmakisakuraitawaramotogoseoudanarasoniandokawanishishimoichihigashiyoshinokashiharashimokitayamanosegawayoshinomintsivorytopazsakuragehirnsumomoaseinetopalmail-boxmokurenyoitamuikaojiyagosensanjoaganomyokoseiroagaomishibataniigatanagaokamurakamiuonumayuzawakariwatagamitainaitsunanminamiuonumatochioyahikojoetsuseiroukamosadoizumozakitokamachiitoigawasekikawakashiwazakitsubamemitsukekokonoesaikiusukibeppuusahimeshimakunisakihasamataketatsukumihitaoitahijikusuyufukujukamitsuebungoonobungotakadaibaraniimibizentsuyamaokayamakasaokahayashimayakagemaniwaakaiwamisakishinjotamanotakahashikibichuowakesojanagishookumenannishiawakurakurashikiasakuchisetouchikagaminosatoshotomigusukunakagusukuyaeseizenaurumaiheyaaguniogiminanjokinminamidaitokitanakagusukuyonaguniokinawaishigakikunigamiurasoekadenataramahiraraginozataketomishimojizamamitonakiitomanhigashimotobuyonabarugushikamionnanahanagohaebarukumejimakitadaitonakijinnishiharayomitanginowantokashikiishikawaikedasuitaminohizuminishisakaikananabenodaitoosakasayamayaokishiwadatadaokakaizukatondabayashichihayaakasakakumatorikadomasayamahigashiosakashijonawatehirakatataishimisakitajirihannansennankatanotoyonominatosettsuhigashiyodogawaibarakinosekitachuohigashisumiyoshifujiiderakashiwaraizumiotsutoyonakamatsubaramoriguchiizumisanoshimamototakatsukineyagawahabikinotakaishikawachinaganoyoshinogarikamiminearitaouchiimarihizenogikashimaariakekiyamafukudomikitagatakitahataomachigenkaikanzakinishiaritakyuragisagataratosutakushiroishikaratsuhamatamakouhokukawagoeyoshidasatteogoseirumaasakaurawaogawaniizaomiyayoriiotakishikihonjooganohannohanyuinasaitamaokegawaarakawayoshikawayokozehasudasayamahidakafukayachichibuiwatsukiryokamiyoshimikamiizumifujimiwarabiranzanmiyoshiminanoyashiosakadosugitomisatohigashichichibutodasokakukiyonokazoshiraokakasukabekounosukawajimatsurugashimamiyashirokitamotohatoyamamoroyamahatogayakumagayakawaguchinagatorokamisatomatsubushinamegawatokigawakamikawafujiminohigashimatsuyamakoshigayatokorozawas3isk01isk02ryuohkoseikonanaishorittotakashimamaibarahikonetorahimenishiazaikokagamokotoyasuotsukusatsunagahamamoriyamatoyosatotakatsukinotogawaomihachimanhigashiomiakagiunnanizumogotsuamayatsukakakinokimatsuehamadamasudahikawahikimiokuizumoyasugiyakumomisatotamayuohdahigashiizumookinoshimanishinoshimatsuwanoshimaneshimadafujiedayoshidashimodagotembaiwataatamikosaiyaizuitoizumishimahaibaramakinoharaomaezakikawanehonkannamisusonohigashiizufukuroinumazukawazufujiaraishizuokahamamatsushimizuizunokunimatsuzakimorimachiminamiizunishiizukikugawakakegawafujikawafujinomiyaujiietsugaoyamayaitaohiranikkoashikagakuroisokanumasakurashioyakarasuyamamotegiichikaikaminokawatochigihagamokanogisanobatonasumibunasushiobaranishikatautsunomiyaiwafunemashikoshimotsukeohtawaratakanezawaitanokomatsushimatokushimaichibaminamiaizumiwajikikainanmiyoshinarutomimamugiananmatsushigesanagochishishikuinakagawamachidachiyodakomaefussainagitaitochofufuchuomeotahigashiyamatotoshimaokutamaaogashimakodairaedogawaarakawahachiojishinagawatachikawashibuyasuginamihinodekiyosesumidaoshimanerimamitakahamuraadachinakanomizuhobunkyomegurominatokoganeihigashikurumekokubunjihigashimurayamamusashimurayamatamakitahinochuokotokatsushikakouzushimaogasawaraakishimakunitachishinjukusetagayamusashinohachijoitabashiakirunohinoharachizunanbukotouramisasawakasayonagokogehinoyazutottorinichinansakaiminatokawaharaoyabetairainamiasahinantoimizufuchutakaokakurobeyamadajohanatoyamatonaminyuzenfunahashinakaniikawanamerikawaunazukitogahimiuozufukumitsutateyamakamiichiiwadearidayuasainamitaijikatsuragiaridagawatanabemihamahidakakainankiminomisatoshingushirahamakamitondayurakozakoyagobokitayamawakayamakudoyamahashimotokushimotokozagawahirogawakinokawanachikatsuurarsuseroeoishidasagaeoguniasahinagaitendonanyoobanazawanishikawasakataohkuratozawamikawamamurogawayamagatafunagatatakahatashonaishinjokahokuiideyuzakawanishitsuruokakaminoyamayamanobeshiratakamurayamanakayamakaneyamahigashineyonezawasakegawamitouubeyuuabushimonosekitabuseoshimatoyotaiwakunihikarishunannagatohagihofukudamatsutokuyamashowadoshitsurunanbukoshukaiminami-alpsnirasakikosugeotsukioshinohokutominobuyamanashifuefukichuokofuichikawamisatoyamanakakonakamichitabayamanishikatsuranarusawafujikawahayakawafujiyoshidafujikawaguchikouenohara長野京都岐阜大阪三重群馬千葉滋賀佐賀奈良adednelgaccogogror秋田愛知高知埼玉沖縄栃木熊本岩手青森山梨新潟島根鳥取長崎香川宮城石川大分宮崎茨城山口兵庫山形徳島広島福島福岡岡山富山静岡愛媛福井東京xn--4it168dhatenadiaryxn--vgu402ckawaiishophatenablogcocottenamaste北海道penneehimeiwateversestabachibashigagonnagunmapermahaccaakitaosakauh-ohblushkochiaichifukuikuroncapooitigohyogotokyokyotopunyuthickcheap0t00g00j0mie2-ddaapyawjg0amfemsubxiiboomoobutchueekpgwrgrherskrboyrdyupperunderflierchipsmydnsheavyangryhippygirlyrulez神奈川鹿児島和歌山bambinaxn--nit225kokayamasaitamaxn--k7yn95exn--1lqs03nsapporoparasitelolipopmcxn--efvn9sniigatafukuokatokushimafukushimahiroshimakagoshimafakefurokinawaxn--8pvr4ucoolblogxn--0trq7p7nnkawasakinagasakimiyazakichilloutxn--8ltr62kxn--klty5xpeeweezombiecutegirlxn--rny31hxn--uuwu58axn--ntso0iqx3axn--djrs72d6uytoyamanikitanyantakagawamimozanagoyaboyfriendxn--2m4a15egreaterchowderegoismyamagatafashionstorexn--elqq16hxn--pssu33lsendaimiyagixn--rht27zpecoriaomorisaloonwatsonvivianxn--djty4knobushipigboatnaganopinokoxn--f6qx53asadistvelvetsecretxn--5js045dchicappayamanashiibarakidigickgirlfriendxn--1lqs71dmongolianxn--c3s14mxn--qqqt11mtochigixn--5rtq34kparallelo0o0mondkobesagabonadecaoitanarafoolkilldecimainhiholomosblokilociaoundopupugifutankcrapflopnooroopsmodsholyjeezstripperpepperbittershizuokaxn--rht3dkitakyushureadymadeicurusversusmatrixxn--rht61ehungryfloppygloomycrankyhandcraftedlittlestarxn--klt787dxn--kltx9awhitesnowsunnydaytottorilovepoptheshopbuyshopxn--5rtp49cxn--d5qv7z876cwebaccelxn--kbrq7oxn--4pvxsxn--1ctwolovesickkumamotocatfoodxn--tor131oyokohamawakayamatonkotsuxn--ehqz56nxn--uist22hxn--6btw5axn--kltp7dyamaguchifrenchkisspussycatxn--4it797kxn--uisz3gbabybluexn--zbx025dnetgamersxn--7t0a264ckanagawaxn--6orx2rishikawaxn--ntsq17ghalfmoonschoolbusjellybeanxn--mkru45iusercontentlolitapunkxn--32vp30hsakurastoragehokkaidoshimanecandypopbabymilksupersaleweblikeraindropbackdropwebsozaikikirarahateblodaynightmeneacsccogoormobiinfoaeusxxorgmilcomnetedugovorgcomnetedugovbizinfotmprdorgmilcomnomedugovassnotairespresseassocoopgouvveterinairemedecinpharmaciensorgnetedugovtraorgcomedurepgovmeneperekgacscaiiocogoitoresmshsseoulbusanulsandaeguc01milvkimmvchungnamjeonnamjeonbukeliv-dnsgyeonggijejueliv-cdnincheondaejeongangwongyeongbukgwangjuchungbukgyeongnameliv-apicoeduindorgcomembnetedugovorgmilcomnetedugovjcloudorgcomnetintedugovperbnrinfocooyorgcomnetedugovipfscanvamypepw3sstorachakeeneticjoinmcinbrowserdwebcyonnftstoragemyfritzaemewphlxachotelltdorgcomwebsocschngonetintedugrpgovassnomgacsccoorgnetedugovbizinfo123websiteidorgmilcomasnnetedugovconfidmedorgcomplcschnetedugovaccoorgnetgovpresstmassoirseproxaccosoundcasthoptocraftvp4c66orgnetedugovitsmcdirmyboxbarsyedgestacksynologylogintonohostwebhopdiskstationi234tcp4hoocgroknoipprivmydsddnsdnsforlohmustransipdscloudfilegear-sgbrasiliafilegearframerbarsybarsyonlinecoprdorgmilcomnomedugovinforgcomnetedugovnameacprorgcomartnetedugovpresseinfoassoinstgouvorgnycedugovbarsydscloudjuorgcomnetedugovminisiteaccoororgcomnetgovorgmilcompronetintedugovbizmuseumnameinfoaerocoopaccoorgcomnetintedugovbizcooporgcomgobneteduorgmilcomnetedugovbiznameaccoorgmilneteduadvgovcoorgcomnetaltgovforgotherhiskeeneticispmanagernomassoprod5476132eastasiacentraluswesteuropewestus2eastus2rucdnwest1-usfra1-desandboxjls-sto1jls-sto3jls-sto2aglobalabglobalsslmapprodfreetlsmaplon-1lon-2ny-1fr-1sg-1ny-2paassnwebpaashostingjelasticnordeste-idcsocuserpagescwebfileblobservicebuscoreatlricnjsjelasticwebsitestoragesezagbinruhuukjptsmyspreadshopmynetnameakamaiorigin-stagingfrom-coipv64dynv6cdn77serveblogadobeaemcloudhicamsprytdnsupno-ipownipde5ovhicpfirewall-gatewaysytesmypsxbarsyusgovcloudapimyamazemyradwebakamaihdsaveincloudfastlylbfrom-lasubsc-paysquare7in-the-bandblackbaudcdnhomelinuxoninfernoctfcloudservebbsdns-dynamiccloudfrontakamai-stagingipifonyham-radio-opsenseeringclickrisingcommunity-profrom-nylocalcertgrafana-devedgesuite-stagingcloudflareanycasteating-organicatlassian-devmydattofeste-iplocaltotorprojectknx-serveredgekeycloudflareglobalcloudyclustercasacamserveftpakamaized-stagingakamaiorigindns-cloudmyeffectboomlabotdashbuyshousestwmailhetemlazure-mobilein-dslthruhereredirectmedynuddnsbouncemesupabaseluyanicloudappakamaicloudfunctionsdebiannhlfanpgafanstatic-accessin-vpnmysynologymafeloappudohomeftptrafficmanagersiteleafseidatmemsetcloudflarecloudaccesskeyword-onazure-apiis-a-chefdoes-itgets-itwebhopselfiphomeipkicks-assedgesuitewindowsserver-ontunnelmolemydissentscrapper-sitecloudflarecnuni5srcfggffiobbzabcdenodynuopikddnsvpndnsakadnselastxkinghostvps-hostfastlyhomeunixazureedgeshopselectdontexistmyfritzcloudjiffyalwaysdatasells-itsquaresbroke-itazurefddattolocalat-band-campmeinforumfamilydsazurestaticappsdefinimabplaceddnsaliasdynaliasnow-dnsblogdnsroutingthecloudendofinternetdsmynasakamaiedgemymediapcadobeio-staticakamaiedge-stagingakamaihd-stagingddns-ipprivatizehealthinsurancelive-onkrellianschokokeksmassivegridmysecuritycamerarackmazeserveminecraftfrom-azis-a-geekakamaizedmoonscalecryptonomicoffice-on-theusgovtrafficmanageradobeioruntimeedgekey-stagingreserve-onlinechannelsdvrdnsdojousgovcloudappcdn77-sslapps-1and1podzoneazurewebsitesdynathomescaleforceyandexcloudvusercontentisa-geekcdn-edgescoaemalcesappwriteazimuthtlonarvonoticeablestorecomwebrecnetperotherfirminfoartslgdloncogoiltdorgmilcolcomplcschgenngonetedugovbiznamefirmmobiacincoorgmilcomnomwebgobnetintedubizinfocomyspreadshopdemongovtransurl123websitehosting-clusterkhplaycistrongsnesosvalervålerxn--vler-qoaossandeheroysandeherøybøboheroyherøyxn--hery-iraxn--b-5gavalerbøboxn--b-5gasandesandexn--hery-iraxn--vler-qoavålerhåreålaahavaofsfvfhlolnlalrlhmfmtmahcostntbuåstrmreigersundmyspreadshopgálsáeidsvolltingvollgildeskalflorøvadsøvardøvanylvenxn--bhccavuotna-k7astrandaxn--kvnangen-k0axn--sknland-fxaxn--mosjen-eyarakkestadhyllestadnannestadvevelstadvaapstenordre-landsondre-landsøndre-landtjieltexn--vrggt-xqadsør-aurdalsor-aurdalheradstordmoldefordeførdeseljefedjeryggehemnexn--krehamn-dxasognegranesøgnebrynetjomevallebykletokkegiskedovretjømehobølvoldasaudatolgasømnaviknadønnasomnadonnatranafrananesnaraumasmolatrænafrænalesjasmølaørstaorstahitrafloraaukraloppafrøyarissasnasahalsagalsaromsaraisaráisafroyasnåsagronghobolfjelltydalårdalardalaskimharamkraanghkekråanghkesorumbarumhurumbærumsørummodumsálátbálátfrognbjugnvåganvagangulenskienløtenlotenstrynvefsnxn--merker-kuaskaunsveiobømlobomloskjåkvardoflorovadsosalatbalatsálatklæbuklabuselbubarduulvikskjakklepprisørxn--nttery-byaeflåeidflahofmilgolholsellomskifetvikdepvgsfhsaskerrisorhamarasnesåsnesrørosrorosxn--slat-5namasoynaroyvaroyluroydyroyaskoyradoyandoyrodoymeloyradøyandøyrødøymeløyaskøylurøydyrøymåsøyværøynærøyhoylandethøylandetdivtasvuodnalørenskoglorenskognesoddtangenxn--tjme-hraxn--smla-hraxn--stjrdal-s1aunjargalillehammerunjárgaxn--hamary-fyadavvenjargaxn--bearalvhki-y4a123hjemmesidegjerdrumxn--brnnysund-m8acxn--tnsberg-q1axn--mlatvuopmi-s4axn--snsa-roaxn--skierv-utaxn--brum-voatysfjordkvafjordeidfjordkvæfjordsongdalenmjondalenmjøndalenxn--gls-elackragerogáŋgaviikagangaviikasørreisasorreisasør-varangersor-varangerxn--risr-iraskiervaxn--frna-woaxn--trna-woakvinesdalleksvikleirvikrøyrvikroyrviksvelvikvenneslaevje-og-hornnessandnessjøenmarnardalvindafjordsandefjordenebakksnillfjordullensvangxn--trany-yuabrønnøysundnamsskoganaustevollxn--stjrdalshalsen-sqbnord-aurdalnord-frontrøgstadtrogstadgrimstadflakstadgjerstadxn--sandy-yuaxn--leagaviika-52bnore-og-uvdalvegarsheixn--rlingen-mxaxn--ggaviika-8ya47hvegårsheikarlsoykvitsoymasfjordenhamaroyinderoyosteroydavvenjárgasauheradguovdageaidnuxn--vre-eiker-k8abronnoysiellakkrødsheradkrodsheradkvinnheradbrønnøyxn--mtta-vrjjat-k7afxn--lrenskog-54akvitsøyvárggátkarlsøyosterøyinderøyhamarøybronnoysundxn--aurskog-hland-jnbbahccavuotnabáhccavuotnagiehtavuoatnastor-elvdalmidtre-gauldalxn--gildeskl-g0akarasjokevenassixn--bievt-0qaxn--yer-znalebesbynessebyxn--hbmer-xqamalselvmålselvxn--unjrga-rtamøre-og-romsdalmore-og-romsdalhareidmelandørlandorlandstrandålgårdsolundalgardafjordåfjorddielddanuorrikautokeinoxn--stre-toten-zcbskodjeaejriestangeliernebamblestokkefauskesnåasesnaasekongsvingerlangevagberlevagxn--flor-jrahattfjelldalostre-totenøstre-totenvestfoldxn--mely-iraálaheadjualaheadjunordreisaxn--troms-zuaxn--lgrd-poacporsangerflatangerstavangerleikangerbremangersamnangergieldakarasjohkaxn--rdy-0nabfrostautsirasnoasatromsaxn--sr-aurdal-l8aflekkefjordjølsterjolsteraremarkhedmarknååmesjevuemienaamesjevuemiexn--vard-jrarollagmeråkermerakerorskogørskogxn--bdddj-mrabdákŋoluoktaxn--osyro-wuaaknoluoktatrysilskjervøymandaljondalbindalrindalmeldalsuldalorkdalsigdalalvdallærdalhurdalsirdalverdallerdallardaloppdalåseralaseralhadselkragerødivttasvuotnaoverhallasteinkjerxn--hnefoss-q1askedsmokorsettromsøxn--dyry-iravestre-totenmuseumxn--sandnessjen-ogbrahkkeravjufylkesbiblbájddarbajddarxn--laheadju-7yarennesøyxn--koluokta-7ya57hxn--hgebostad-g3aleirfjordstorfjordbalsfjordbåtsfjordbatsfjordmuosátbievátloabátkárášjohkanøtterøyxn--mjndalen-64anordkappláhppilahppialstahaugsiljanverranrøykenroykenhaldenlyngenbergenhortenhønefosshonefosstroandinbeiarnvarggatosoyroosøyrotromsoidrettmuosatbievatruovatloabatvoagattynsetnessetxn--indery-fyaskánitskanitraholtråholtxn--ystre-slidre-ujbandebusarpsborgbearduxn--karlsy-fyahordalandjorpelandjørpelanddeatnuringsakersør-odalsor-odalxn--slt-elabringerikeaudnedalnittedalnissedalhemsedalslattumsurnadalxn--blt-elabelverumstjørdalnaustdalhjartdalgjøvikfyresdalhasviknarviklarvikgjovikmalvikgamviklenvikporsgrunnstjordalengerdaldrobakdrøbakxn--msy-ula0hvestvagoyxn--vgan-qoaxn--ryken-vuaxn--lten-graxn--stfold-9xaxn--hpmir-xqaxn--lury-iramálatvuopmimalatvuopmitysværkirkenesbirkenesmoskenesbáidárxn--fjord-lraxn--rdal-poabahcavuotnabáhcavuotnaxn--frde-gralindåsbearalvahkixn--hobl-iraráhkkerávjuxn--loabt-0qavågåáltábodøsundlundraderådeetnetimeholeauregrueoddavagavegaranatanaarnasolasulaaltalekafusavangbergkvamåmliamlibokntinnroangranosenoslobodorøstroststatåmotamotivguprivøyeroyerliermossvossxn--nvuotna-hwalusterlunnermarkerhábmerhabmerhvalerfjalerxn--rholt-mratysvarbaidarfitjargaularhápmirhapmirmelhusfosnesøksnesoksnestysneshemnesevenesflesbergeidsbergtonsbergtønsberglindasxn--sndre-land-0cbnamsosxn--srum-graøystre-slidreoystre-slidrevestre-slidretrondheimbalestrandxn--langevg-jxaaustrheimxn--skjk-soavagsoyaveroysandoykarmoyfinnoytranoyvestbytranbysykkylvenxn--hyanger-q1aspjelkavikandasuoloxn--fl-ziaxn--drbak-wuastathellexn--sr-varanger-ggbtelemarkxn--bhcavuotna-s4axn--porsgu-sta26fčáhcesuolocahcesuoloakrehamnåkrehamnsandøykarmøyfinnøytranøyvågsøyaverøynamdalseidxn--lesund-huabadaddjaxn--vegrshei-c0axn--btsfjord-9zagildeskålporsanguxn--trgstad-r1anávuotnanavuotnahammerfestxn--sgne-graxn--brnny-wuacibestadharstadnarviikaevenáššivestnesgjemnessandnesagdenesrennesoyxn--avery-yuaxn--tysvr-vrabearalváhkikongsbergspydebergrandabergxn--andy-iradavvesiidaxn--krdsherad-m8aporsáŋgufredrikstadbjerkreimringeburennebuaurskog-holandnotteroyxn--vgsy-qoa0jxn--rmskog-byaskierváivelandbyglandfrolandaurlandforsandxn--bjddar-ptamidsundålesundalesundfetsundfarsundovre-eikerøvre-eikerakershusxn--moreke-juasørfoldøstfoldostfoldsorfoldhøyangerhoyangerlevangerorkangertanangerxn--vestvgy-ixa6olillesandulsteinxn--rennesy-v1agranvinskjervoyxn--klbu-woalavagisxn--h-2faxn--ryrvik-byakafjordkåfjordseljordfolkebiblxn--gjvik-wuajevnakerxn--kfjord-iuabudejjuxn--kranghke-b0axn--davvenjrga-y4axn--rland-uuaxn--ldingen-q1axn--mlselv-iuaxn--rady-iraxn--linds-prabrumunddalxn--ygarden-p1amo-i-ranaeidskogrømskogromskoghjelmelandxn--finny-yuaxn--sr-odal-q1axn--skjervy-v1aballangenkvanangenkvænangengratangenxn--hmmrfeasta-s4acvossevangensuohkanxn--rde-ulaxn--mli-tlaxn--ksnes-uuanordlandskanlandskånlandsortlandfuoiskuxn--rros-graxn--hcesuolo-7ya35bxn--eveni-0qa01gagaivuotnagáivuotnaxn--seral-lradrammenmodalenmosjoenjan-mayentorskensteigengloppenxn--snes-poamatta-varjjatxn--sr-fron-q1aomasvuotnajessheimbådåddjåxn--krager-gyaxn--kvfjord-nxaxn--asky-iraxn--snase-nraxn--bidr-5nacholtålenxn--vads-jraxn--jlster-byamosjøenxn--rst-0nastavernxn--ostery-fyaxn--oppegrd-ixaxn--sknit-yqaxn--risa-5naoppegårdskiptvetrendalenholtalenxn--mot-tlaxn--lhppi-xqaxn--holtlen-hxaxn--srreisa-q1akopervikxn--muost-0qaxn--bmlo-grahokksundkvalsundegersundxn--karmy-yuaullensakerxn--hylandet-54axn--kvitsy-fyaxn--bod-2nalangevågberlevågkristiansandxn--rsta-frahornindalstjørdalshalsenstjordalshalsensandnessjoenhámmárfeastaxn--lrdal-srasør-fronsor-fronnord-odalkristiansundmátta-várjjatvestvågøynesoddennotoddenbuskerudøygardenoygardensalangenlavangenralingenrælingenlodingenlødingenleaŋgaviikalaakesvuemieleangaviikauenorgexn--srfold-byaaskvollxn--rskog-uuaxn--nry-yla5gxn--vry-yla5ghammarfeastaxn--rhkkervju-01afxn--givuotna-8yakommunekrokstadelvanedre-eikerhagebostadhægebostadxn--berlevg-jxakviteseidxn--s-1faxn--l-1faxn--nmesjevuemie-tcbafuosskomoårekemoarekexn--lt-liacxn--jrpeland-54asvalbardoppegardholmestrandtvedestrandsogndalsokndalarendalsunndalfolldalxn--krjohka-hwab49jlyngdaletnedalnorddalsaltdalgausdalskedsmovaksdalgjesdalstordalxn--frya-hraaarbortedrangedalxn--smna-graaurskog-hølandxn--vg-yiabtjeldsundhaugesundlindesnesxn--mre-og-romsdal-qqbxn--dnna-gradynmerseineshacknetenterprisecloudmineaccomaorimāoriorgmilcriiwigennetschoolhealthkiwigovtgeekxn--mori-qsacloudnsparliamentcomedorgcompronetedugovmuseumwebsitekinservicebarsywebsitebuildereerobookheimdnsleapcelleero-stagetechcrscsslorigingohomecdbedeeeiemesecabgngilnlalplchfisiincnnoroptatitmtltruauhulumkdkukskjplvtrgrfrkrhrusesismycynzcznetinteduassoososcloudstgbetaaezaeuhkusjshatenadiarycdn77hoptozaptois-a-knightmyftpno-ipjpnddnssdpdnsspdnsbarsysweetpepperis-a-bruinsfanis-very-sweetservegameis-a-soxfanhomelinuxcdn77-secureservebbsmisconfusedwebredirectblogsitefreedesktopcouchpotatofriestoolforgeaccesscamis-lostreadmyblogsmall-webfedorapeopleserveftpis-a-celticsfanmywirepotagertwmailin-dslsellsyourhomeread-booksfreeddnscable-modemis-savednflfanufcfanmlbfanstuff-4-saleendoftheinternetin-vpnmy-firewallhomeftpis-localis-a-chefboldlygoingnowherewebhopselfipkicks-assroxatunkcamdvrfedoraprojectgotdnsdvrdnsdyndnspubtlspimientahomeunixdontexistfedorainfracloudwmflabsfspagesbmoattachmentsteckidsfamilydsdnsaliasdynaliasnow-dnscloudnsdoomdnsduckdnsblogdnshomednsroutingthecloudendofinternetdsmynasip-dynamicpoivronhttpbinmyfirewallis-very-evilmysecuritycamerais-a-linux-userwmcloudis-a-geektuxfamilyis-a-candidatedoesntexistis-very-badhobby-sitegame-hostaltervistais-foundis-a-patsfandnsdojohepforgepodzonedynservcollegefanis-very-goodfrom-meis-very-niceisa-geeknerdpolacmedsldingorgcomnomgobabonetedupleskaemhlxmyboxrockyprvcydeuxfleurspdnscodebergheyflowstatichostorgmilcomnomgobneteduorgcomeduiorgmilcomngonetedugovcloudns1337ngrokacorggogfamcomwebgobnetedugokgopgkpgovgosbizpasaugumicsopozpapuwmwsrprusiskwpspkppspkmpspokeoiawsawifoumsdnskokwpmuppuppsppiwwiwoowuzswkzoschrzpisdnwzmiuwwitdpssewsseumigugimoirmpinbwinbwiihupporzgwgriwupowwskrwioswuozstarostwokonsulattmpccopruszkowmyspreadshopostrodakartuzyopolegminamediaustkazgorajgoraolawailawalomzawloclradombytomjaworznotargilubinkoninzagantorunkutnokepnonakloczestsopotsanokturekplockslasksklepzarowlukowmedaidgdaorgmilrelcomnomatmgsmartneteduelkgovwawsossexbiztgorysejnytychypomorzeboleslawiechomesklepsdscloudunicloudzakopanelegnicarawa-mazbydgoszczswidnikkrasnikwloclawekbielawamragowograjeworealestatebeskidykaszubymalopolskaprzeworskswiebodzinlecznadfirmaszkolawarmiagdyniamiastakazimierz-dolnymalborkswidnicadlugolekaostrolekapodlasieelblagtravelsimplesitezachpomormielecszczecinnieruchomosciwalbrzychlezajsklublinbedzinpoznanwielunmielnooleckostarachowicedkontopowiatwroclawrybniksuwalkileborkslupskgdanskostrowwlkptarnobrzegtourismwegrowkrakowglogowyou2pilanysamailwrocinfoagroautobeepshopprivlapypiszlodzcfolksecommerce-shopmazurypulawyskoczowrzeszowpomorskiezgierzkaliszolkuszlowiczostrowiecsosnowiecmazowszewodzislawbialowiezazgorzeleckatowicepabianicejelenia-gorawolominkarpaczsieradznowarudaczeladzkonskowolaskierniewiceswinoujscieturystykabieszczadycieszynketrzynolsztynbialystokbabia-goraprochowicewarszawastalowa-wolapolkowicegorlicegliwiceponiatowalimanowalubartowaugustowkobierzyceopocznognieznoszczytnokolobrzegshoparenapodhalebielskoklodzkostargardatwithplayitownnamecoorgnetedugovacorgcomproestnetedugovbiznameislaprofinforechtngrokmedaaaacacpaenglawjurbarbarsykeeneticavocatacctcloudnsorgcomsecplonetedugov123paginaweborgcomnetintedugovnomepublidkinbarsygovx443cloudnsorgmilcomnetedugovcooporgmilcomschnetedugovnamecomcannetlibassoaemclantmcontstoreorgcomnomrecwwwbarsyfirminfoshopartsstackitmyddnswebspacelima-cityacincooxorgedugovbarsybrendlyhbvpsvpsspectrumlandinghostingacppmordoviamcprecbgorgmilcomspbnetintedumsknovgovbirrasmcdirmytismircloudvladimirnalchikadygeyamarinepyatigorskmyjinobashkiriaeurodirvladikavkazna4ugroznykustanaikalmykiacldmaildagestaniranbuildcanvaliaravalwixdevelopmentappwritemigrationneedleverceldatabasestackitcodereplravendbonporterlovableaccoorgmilnetgovcoopmedorgcompubschnetedugovservicemecomygovorggovtvmedorgcomnetedugovinfoedgfacbmlonihkutwpsryxzbdtmacfhppmyspreadshopbrandpartiorgcomfhvpress123minsidaitcouldbeworlanbibkommunalforbundfhskiopsyskomvuxkomforbnaturbruksgymnloginlineorgcomnetedugovenscaledeuusentbotdaorgmilcomnetgovnowteleporthashbangplatformlovablebarsyshopwarebasehoplixbarsyonlinemsf5gitappgitpagecofigma-govcaffeinefigmacanvasoltstputerbarsysupportchatgptsquareomniweopensocialcpanelnotionnovecorewpsquaredpreviewjelecyonbyensrhtfastvpspieboxconvexjouwwebheyflowplatformshloginlinemadethissourcecraftclouderaorgorgcomartedugouvunivmeorgcomnetedugovsurveysstatichfheiyuxs4allprojectmyfastubervibehostapp-ionosdeployagentmecoorgcomschnetedugovbizcncostoreorgmilcomneteduembaixadaconsuladokiraranohoprincipesaotomeheliohobarsystorebaseshopwaresellfyabkhaziavologdamordoviapenzalenugsochinavoiexnetspbmsknovnorth-kazakhstanashgabadkareliaarmeniageorgiavladimirnalchikivanovobukharaadygeyakhakassiakalugakrasnodarjambylaktyubinsktroitskbryanskobninskkurganazerbaijanpokrovskbashkiriatselinogradvladikavkazmurmansktulatuvamangyshlaktashkentchimkentgroznykaragandatermezarkhangelskkustanaikalmykiabalashoveast-kazakhstankaracoldagestantogliattibarsyredorgcomgobedumirenknightpointaccoorgjelasticdiscoursecleverappsschacmiincogoornetonlineshopcogoorgmilcomwebnicnetintedugovbiznametestcoorgmilcomnomnetedugovorangecloudpersoindorgcomfinnatnetgovensmincomtourismintlinfox0611oyaorgmilcomnetedugovquickconnectvpnplusnettprequalifymeaddrmyaddrntdllwadlnctvavdrk12orgmilpolbeltelcomwebgennetedutskkepgovbbsbiznameinfocoorgmilcompronetedugovbiznameinfobetter-thanworse-thansakurafromdyndnson-the-webmymailerorgmilurlcomneteduidvgovmydnsgameclubebizmeneacsccogotvorhotelmilmobiinfovodteiflgplkmsmsbcckhincndnvncoztltmkckppzpdprvcvkvlvcrkrkscxuzchernovtsyrivneyaltaodesavolynrovnolutskltdinforgcomnetedugovbizvinnicazhitomirternopilpoltavakropyvnytskyizaporizhzhiasevastopolsebastopoluzhgoroduzhhorodkharkovkharkivvinnytsiakhmelnytskyizaporizhzhecrimeaodessazhytomyrnikolaevcherkassydonetskluganskluhanskkirovogradivano-frankivskchernivtsikrymkievkyivlvivsumyzakarpattiamykolaivcherkasychernigovkhersonchernihivdnipropetrovskdnepropetrovskkhmelnitskiyneacsccogoorusorgmilcomedugovvmdhmyspreadshopadimono-ipbarsybytemarkbarsyonlinelayershiftnh-servretrosnubapicampaignservicelugaffinitylotteryweeklylotteryraffleentrygluglugsmeaccoindependent-inquestnimsitecopropymntltdorgplcschnetgovnhsbarsyindependent-commissionindependent-reviewpolicepublic-inquiryindependent-panelconnhospindependent-inquiryroyal-commissionoraclegovcloudappscck12libccphxcclibpvtparochchtrcck12libcceatonk12coglibtecgendstmusann-arborwashtenawcck12glghcck12sealibforksolympiabainbridge-islkeyporthoquiamyarrow-pointcentraliaport-townsendsequimport-ludlowrentonsilverdalebremertonredmondsheltonbellevueport-orchardport-angeleskingstonchehalisaberdeengig-harborseattlepoulsboidmdndsddemenegacalamaiavawapailalflnmdcncscohnhmihiviwiriinmntnmocoutvtctmtgunjokakwvnvprarorasmskstxwynykyazisadninsnngosrvis-bymircloudservernamepointtoenscaledland-4-salefreeddnsstuff-4-saleazure-apinoipcloudnsgolffanheliohostazurewebsitesgvorgmilcomgubneteducoorgcomnetd0egvorgmilcomnetedugovmydnsiacostoree12orgmilcomnomwebgobbibrectecnetintedugovraremprendefirminfoartseducok12orgcomnethidnsidacaiiosonlahanamhanoicamauhueorgcompronetintedugovbizbacninhtayninhhoabinhnamdinhtravinhhaiphongvinhlonghaiduongquangnamquangtrithuathienhuequangninhbacgianghaugiangquangbinhsoctrangbentrethanhphohochiminhdanangkontumhatinhkhanhhoathanhhoahealthgialailaocaiyenbaibackanngheanlonganphuyenphuthocanthodaklakdongnainameinfovinhphucdongthapkiengiangtiengiangquangngailaichaulangsonlamdongdaknonghagiangangiangcaobangbinhduongninhthuanbinhthuanbaclieuthaibinhninhbinhbinhdinhtuyenquanghungyenbaria-vungtauthainguyendienbienbinhphuocschbizputerimagine-proxyorgcomnetedugovcloud66advisormypetsdyndnsxn--8dbq2axn--4dbgdty6cxn--5dbhl8dxn--hebda8bxn--80auxn--d1atxn--c1avgxn--o1acxn--o1achxn--90azhxn--55qx5dxn--uc0atvxn--od0algxn--wcvs22dxn--gmqw5axn--mxtq1mxn--12c1fe0brxn--h3cuzk1dixn--12co0c3b4evaxn--12cfi8ixb8lxn--o3cyx2axn--m3ch0j3axn--j1adpxn--90amcxn--90a1afxn--h1ahnxn--j1ael8bxn--h1alizxn--c1avgxn--j1aefxn--80aaa0cvacxn--41acaffeineexeopentunnelbotdashtelebitorgtmaccoagricorgmilnomwebnicngonetaltedugovlawnisschoolgrondaraccoorgmilcomschnetedugovbizinfoprg1-zeropstritonstackitlimazeropsaccoorgmilgovяспборгкоммскбизмирсамаракрымсочиакодпроргобрупрצהלממשלישובאקדמיהองค์กรธุรกิจรัฐบาลศึกษาทหารเน็ต教育網絡組織公司政府個人닷넷한국澳门新闻澳門联通家電嘉里招聘通販닷컴삼성コムგეбгрфеюadcdbdgdidmdsdtdaebedeeegeiejekemenepereseveyegabacalamanauavapaqasazacfbfafgfnfpfwftfbgcgagggegkgngmgsgpgvgtgugilmlnlalclglplsltlhmimjmkmmmomambmcmdmfmgmzmpmsmtmgbbblbsbecccacnclcmcvctcscmhkhghchbhthphshlinikifigiaibicivisikninhnmncnbngnsnpnvntnjoionomobocoaofodorosotoptstttytatbtetgtithtmtltrusuvuaucueuguhulumunufjdjbjtjsjlkmkhkfkdkcktkukskpkgpmpnpkpjpgqaqmqiqsvtvcvbvmvlvrwpwtwzwbwcwawgwkwmwtrsrprgrfrercrbrarnrmrlrkrirhrwsusrssspsgsesbsaslsmsissxmxaxcxuypysylymykygybycyuztzsznzmzkzdzczbzazελευ世界台灣购物公益点看臺灣网络書籍在线网站手机机构大拿游戏信息台湾谷歌慈善商标香港中国餐厅网址中國商城食品微博政务移动集团公司八卦商店健康网店政府时尚佛山中信娱乐广东企业homedepotengineeringاماراتrepublicankuokgroupversicherungchannelcitadelxn--pgbs0dhxn--b4w605ferdstatebankwebsitexn--mgb9awbf亚马逊淡马锡alibabaxn--ngbc5azdxn--mgbbh1axn--45br5cyltoshibabuildworldcloudtradeguideplacespacedancemoviephoneprimesmilebiblestyleappleazurestoreskypegripexn--l1accdrivelottehorsehouseleasechasereisestadahondaomegaaetnaamicaninjanokiamediadeltavodkaedekaosakapizzaslingemailgmailtirolshelltmallfinallegaltotalhotelamfamforumrehabmusicciticricohcoachwatchboschearthfaithirishmiamiarchidubaiguccipraxiみんなストアセールcanonsalononionnikonepsonkoelngreensevencrownikanoradioaudioweiboglobopromogalloyahoociscorodeovideomangobingotokyovolvolottokyotophotosmartsportquesttrusthyattjetztadultcymrubaidutushuxn--kprw13dubankclickblackmerckgroupsharpcheapnowtvxn--h2brj9cקוםհայоргсрбмонкомбелмкдқазрусукрمصرقطرعربكومdadcfdmedwedredphdthdbidpidkrdmsdltdiceonewmeglemoerwecfageacbanbambaaaammakianraspacpaaxawtfbcgaegongingaigvigorgdogdhlmilrilonlaolloluoljllcalgalnflafltelsrlfrllplkimibmcamcombommomifmabbjcbscbcabnabtabmlbpubabcbbcnecincpncllcstcwtcpwcnyckfhbzhovhmoiskiobisbitcifyituipinvinwinxincbnbcnmanfangdnmenrenkpnmtnyunrunfununobiojioriohbogmofooboooooacoecoceongoproartistottnttbbtcateatlatvetpetbetnethktmitfitintjothotgotdotbotprueduicujnjyouinknhktdkappsapgapmapdnptopgopllpjmpzipvipripesqtrvdtvitvdevmovgovhivnrwlawsewnewbmwwownowhowdvrftrmtrsfrbarcartvscrseusawsupsubssbsadsddsldssasbmsmlsxxxboxfoxgmxtjxsextaxbuyflydiysoyjoyskypaydaygayxyzanzbizwebersenerpokerlameractortatarsolarລາວคอมไทยtourslocusnexuslexusgiftsbeatsboatspartspressglassswissकॉमनेटtiresgivescodeshomesgamestunesshoescardswalesloansvegastoolsdealsautosparisファッションworkssucksrocksxeroxforexfedexpartylillymoneystudyrugbytoraytoday中文网xn--unup4y天主教飞利浦新加坡enterprises我爱你嘉里大酒店christmasxn--fct429kholdingsxn--8y0a063axn--mgbx4cd0ablifestyleabogadoallstatenetbankكاثوليكxn--s9brj9cxn--gk3at1ebestbuycharityxn--55qx5dmicrosoftpropertybasketballhomegoodscorsicajewelrygallerygrocerysurgerycountrybrusselsverisignferreroxn--czr694bhdfcbankcommbanksoftbankپاكستانپاکستانnextdirectالسعوديهالعليانxn--h2brj9c8cxn--80adxhksshikshaxn--mgbai9azgqp6jcuisinellabarclayscatholicxn--kpry57dcompanyxn--xhq521bblackfridayxn--mgba3a3ejtsandvikxn--d1acj3bacademydownloadمليسياxn--j1amhxn--w4r85el8fhu5dnraipirangaathletaxn--fhbeixn--mgbqly7cvafrzuerichxn--c2br7gஇலங்கைcontractorsxn--io0a7igraphicsinsurancetemasekxn--xkc2al3hye2amotorcyclesphotographydirectoryplumbingxn--vhquvclothingtrainingcleaningwilliamhilllightingxn--mgba3a4f16ashoppingcateringeducationokinawapicturesventuresproductionsxn--9et52uwalmartഭാരതംsupportrealestatecapitalonexn--nqv7fs00emaauspostfloristdentistxn--qxamgodaddybradescobargainsmitsubishikerryhotelsxn--9dbq2axn--3pxu8kimmobilienxn--fjq720axn--mgbtx2bholidaymckinseymadridbusinessbuildershelsinkixn--4gbrimмоскваالسعودیةcoffeedegreelacaixapartnersalsaceofficeabbvievoyageorangegeorgeonlinechromemobilekindlegoogleoraclecircleschulesecureinsurexn--mgba7c0bbn0aestatexn--mgbc0a9azcgcruisehangoutxn--vuq861bxn--42c2d9arexrothfirestoneuniversityxn--nnx388alifeinsuranceextraspaceонлайнvermögensberatersoftwarexn--fiqs8sxn--mgbab2bdxn--w4rs40ltiendaभारतम्africatoyotaotsukasakuracameracreditcardnagoyaconsultingnetworkjunipertheatermonsterprogressivepioneerxn--55qw42gracingdatingvotingvikinglivinggivingxn--bck1b9a5dre4cbrotherweatherjoburgفلسطينlplfinancialxn--clchc0ea0b2g2a9gcdfutbolschoolsocialglobaldentalwoodsidechanelairtelmatteltravelrealtorwebcamstreamభారత్unicomalstomxn--nodexn--6frz82gmuseumfurniturexn--rvc1e0am3exn--mix891faccenturexn--11b4c3dismailineustardiscountquebeccomsecclinicservicesxn--y9a3aqxn--c1avgswatchchurchsearchالاردنmarketingcontacthealthmonashshoujisanofitaipeiamericanexpresssuzukiアマゾンクラウドポイントbhartiグーグルxn--mgberp4a5d4armemorialxn--1qqw23alondonmormoninstitutevisionbostonnortoncouponmaisonamazonvirginberlindesigndurbanolayannissananquanxihuanhitachikaufengardenreisenbayerntechnologydatsunxn--90a3aclatinocasinostudiophysioxn--ngbe9e0apharmacytattootaobaoaramcoexpertreportabbottdirectselectimamatfairwindspictettargetmarketintuittravelersinsurancecreditdupontryukyusuppliesxn--tckwebnpparibasschmidtmerckmsdyodobashirestaurantbridgestonecricketxn--fpcrj9c3dbostikbroadwayattorneylefrakemerckxn--fiq228c5hscareersfarmerswinnersflowersxn--wgbh1cguitarsxn--54b7fta0ccxn--p1acfmakeupgalluplandroverxn--kcrx77d1x4agoldpointbauhausxn--mgbayh7gpahiphopplaystationxn--mgba3a4fraxn--eckvdtc9dhyundaixn--gckr3f0fistanbulticketsmarketsflightschintaireviewsxn--3e0b707ewindowsxn--fiqz9sfinancialxn--fzys8d69uvgmابوظبيdiscoverreviewবাংলাxn--5su34j936bgsgmoscowobserverapartmentsдетиارامكوсайтeurovisionxn--i1b6b1a6a2exn--xkc2dl3a5ee0hتونسموقعبارتڀارتشبكةعمانبيتكعراقreadkredbondlandbandfundfoodprodgoldfordtubecafesafelifeggeeieeefreefagepagegugezonewinememenamegamesaleablebikenikelikecarecbreherefiresaveloveliveblueartedatesitevotecaseluxebofamodaltdaasdatiaayogasinavanashiaasiajavabbvatevavivadatazaraarpacasavisasncfprofmaifsurfgolfdvagsongbingpingwangkpmggoogblogpohlfailcooldellcalldeallidlsarlfilmteamroomfarmimdbarabclubhdfcicbchsbcgmbhrichtechfishdishcashminiernikddiaudiwikimobitaxicitikiwidesiqponskinloanakdnwienopenporncerntownimmolimoolloinfonicofidolegosaxozeroaerovivoautovotomotofastbestresthostpostnextlgbtchatseatgiftmeetdietreitmintrentgentspotscotguruitausohumenucyoubanklinkpinkdclktalksilkbookseekworkrsvpaarpjeepshopcoophelpcamppccwshowbeerstarruhrflirweirhaircarsparsjprshausplusnewstipstoysjobskidsfanspicsdocsxboxamexsexynavycitysonyarmyallybabyplaydeliverybuzzgbizlamborghiniphilipsලංකාಭಾರತfitnessexpresslanxesspfizercenterwalterlawyersoccercareerkosherbrokerlockerdealerdoctorauthorxn--mgbqly7c0a67fbcvermögensberatungjaguarxn--pssy2uxn--hxt814eflickrrepairrogersairbusxn--mgbai9a5eva00beventsyachtsxn--t60b56aভাৰতভারতभारतभारोतviajeshermeshughesxn--j1aefसंगठनvillasଭାରତclaimshotelsભારતzapposphotosjuegoscondostatamotorsgratistennisਭਾਰਤtkmaxxtjmaxxschaeffleryandexxn--80aswgrealtysafetybeautyluxuryxn--3ds443gsupplyfamilyxn--o3cw4hhockeysydneyxn--90aenissayalipayenergycomputeragencyxn--rovu88b電訊盈科xn--gecrj9cstatefarmaccountantaquarelleolayangroup香格里拉xn--p1ai组织机构xn--1ck2e1bxn--mgbt3dhdschwarzموريتانياabudhabinowruzkomatsufujitsuhospitalxn--80asehdbxn--mgbtf8flxn--j6w193gxn--yfro4i67oprudentialxn--flw351ecruisescoursesrecipesxn--e1a4cferrarixn--ses554gxn--wgbl6awatchesstaplessinglesxn--mgbcpq6gpa1axn--otu796dpropertiescreditunionxn--mgbah1a3hjkrdstockholmhisamitsuالسعوديةstcgroupdomainsoriginscouponsbloombergclubmedfroganslimitedxn--80aqecdr1aexposedinternationalequipmentbarclaycardxn--q7ce6axn--mgbi4ecexpprotectionassociatesconstructionxn--cck2b3bxn--45q11candroidfoundationישראלxn--mgbca7dzdocliniqueboutiqueengineerxn--qxa6asystemsfirmdalefashionauctionxn--nqv7finfinitirentalsreliancetradingweddingfishinghostinggentingbookingcookingxn--3hcrj9cgraingerxn--czrs0tdemocratsamsungyokohamaxn--h2breg3evexn--nyqy26alundbeckmelbournevacationssolutionsfrontierxn--vermgensberatung-pwbmanagementxn--cg4bkixn--mgb2ddeslincolnhamburgsandvikcoromantblockbusterairforcebarefootxn--4dbrk0ceinvestmentsfeedbackcommunityxn--ngbrxالبحرينdiamondsamsterdamhealthcareredumbrellaxn--mxtq1mxn--2scrj9cagakhanxn--mgbpl2fhкатоликcaravanசிங்கப்பூர்richardlimortgageamericanfamilyxn--fzc2c9e2cscholarshipssaarlandxn--imr513nvlaanderensamsclubgoodyearkitchenஇந்தியாweatherchannelallfinanzxn--kput3iالسعودیۃxn--90aisxn--efvy88hالجزائرxn--mgbaam7a8hexchangejpmorganxn--tiq49xqyjfidelitysecurityxn--mk1bu44cwanggouxn--fiq64bxn--6qq986b3xlxn--mgbbh1a71exn--80ao21amarshallsxn--5tzm5gtravelerspanasoniclatrobeyoutubeaccountantsxn--rhqv96gxn--cckwcxetdanalyticsxn--ygbi2ammxبازاربھارتسوريةorganicfreseniusسورياxn--9krt00axn--qcka1pmcxn--jlq480n2rgdeloittesciencefinancexn--jvr189mxn--30rr7yhomesensehotmailbaseballfootballleclercboehringerxn--q9jyb4cxn--mix082fاليمنهمراهpolitieسودانايرانایرانnetflixyamaxunxn--lgbbat1ad8jcollegestoragecapetowncolognekerrypropertiesxn--mgbgu82axn--ogbpf8flxn--czru2dwhoswhociprianilasallexn--g2xx48cforsalebanamexaudiblexn--vermgensberater-ctbxn--zfr164bericssonvanguardxn--45brj9cindustriestheatremarriottxn--3bst00mcomparexn--mgberp4a5d4a87gcapitaldigitalالمغربbarcelonashangrilaxn--d1alfcalvinkleinwwwcitysapporokawasakinagoyasendaikobekitakyushuyokohamackjp",ife=621,lfe=625,mB=gc.length,gB=av.length,vB=new Uint32Array(gB),E1=new Uint32Array(gB),W3=new Int32Array(mB).fill(-1);for(let e=0,t=0;e<mB;e+=1)for(let n=sv[e];n<sv[e+1];n+=1){vB[n]=t;const r=t+av[n];let o=5381;for(let s=r-1;s>=t;s-=1)o=o*33^q3.charCodeAt(s);E1[n]=o>>>0,av[n]===1&&q3.charCodeAt(t)===42&&(W3[e]=n),t=r}let Va=-1,V3=0,G3=0;function xP(e,t,n,r){if(av[e]!==r)return!1;const o=vB[e];for(let s=0;s<r;s+=1)if(q3.charCodeAt(o+s)!==t.charCodeAt(n+s))return!1;return!0}function CP(e,t,n,r,o){let s=sv[e],i=sv[e+1];for(;s<i;){const c=s+i>>>1,u=E1[c];if(u<t)s=c+1;else if(u>t)i=c;else{for(let d=c;d>=s&&E1[d]===t;d-=1)if(xP(d,n,r,o))return d;for(let d=c+1;d<i&&E1[d]===t;d+=1)if(xP(d,n,r,o))return d;return-1}}return-1}function EP(e,t,n){let r=t,o=e.length,s=5381;Va=-1;for(let c=e.length-1;c>=0;c-=1){const u=e.charCodeAt(c);if(u===46){const d=c+1;let h=CP(r,s>>>0,e,d,o-d);if(h===-1&&(h=W3[r]),h===-1)return Va!==-1;r=wP[h],(gc[r]&n)!==0&&(Va=r,V3=d,G3=o),o=c,s=5381}else s=s*33^u}let i=CP(r,s>>>0,e,0,o);return i===-1&&(i=W3[r]),i!==-1&&(r=wP[i],(gc[r]&n)!==0&&(Va=r,V3=0,G3=o)),Va!==-1}function xBe(e,t,n){if(afe(e,t,n))return;const r=(t.allowPrivateDomains?2:0)|(t.allowIcannDomains?1:0);if(EP(e,lfe,r)){n.isIcann=(gc[Va]&1)!==0,n.isPrivate=(gc[Va]&2)!==0,n.publicSuffix=e.slice(G3+1);return}if(EP(e,ife,r)){n.isIcann=(gc[Va]&1)!==0,n.isPrivate=(gc[Va]&2)!==0,n.publicSuffix=e.slice(V3);return}n.isIcann=!1,n.isPrivate=!1;const o=e.lastIndexOf(".");n.publicSuffix=o===-1?e:e.slice(o+1)}const cfe=()=>x.jsxs("div",{className:"hidden h-full w-[17%] min-w-40 max-w-64 shrink-0 flex-col gap-1 border-r border-line p-3 md:flex",children:[x.jsx("div",{className:"mb-3 h-6 w-24 rounded bg-surface-sunken"}),Array.from({length:6}).map((e,t)=>x.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[x.jsx("div",{className:"size-5 shrink-0 rounded bg-surface-sunken"}),x.jsx("div",{className:"h-3.5 flex-1 rounded bg-surface-sunken"})]},t))]}),ufe=()=>x.jsx("div",{className:"min-w-0 flex-1",children:Array.from({length:8}).map((e,t)=>x.jsxs("div",{className:"flex items-start gap-3 border-b border-line py-2 pl-5 pr-4",children:[x.jsx("div",{className:"mt-0.5 size-7 shrink-0 rounded-full bg-surface-sunken"}),x.jsxs("div",{className:"flex-1 space-y-1.5",children:[x.jsxs("div",{className:"flex justify-between gap-2",children:[x.jsx("div",{className:"h-3.5 w-28 rounded bg-surface-sunken"}),x.jsx("div",{className:"h-3 w-12 rounded bg-surface-sunken"})]}),x.jsx("div",{className:"h-3.5 w-48 rounded bg-surface-sunken"}),x.jsx("div",{className:"h-3 w-full rounded bg-surface-sunken"})]})]},t))}),My=()=>x.jsxs("div",{className:"flex h-full animate-pulse bg-canvas","aria-hidden":"true",children:[x.jsx(cfe,{}),x.jsx(ufe,{})]}),Py="12b934deb3144a96ab4c45e17f0523c239d39d2e",dfe="2026-11-07T11:37:30.780Z",ffe=Py.slice(0,7),hfe=/^[0-9a-f]{40}$/.test(Py),pfe=hfe?`https://github.com/remit-mail/reader/commit/${Py}`:void 0;class Dy extends Error{constructor(t,n,r){super(t),this.status=n,this.body=r,this.name="ApiError"}status;body}const K3=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Qc=e=>{const t=e instanceof Dy?e.body:e;if(!K3(t))return;const{code:n,details:r}=t;if(typeof n=="string")return{code:n,details:K3(r)?r:void 0}},mfe=(e,t)=>{if(K3(e)&&e.message!==void 0&&e.message!==null){const n=String(e.message);if(n)return n}return`Request failed with status ${t}`},gfe=(e,t)=>new Dy(mfe(e,t),t,e),Qn=e=>{if(e instanceof Dy)return e.status;if(e&&typeof e=="object"){const t=e;if(typeof t.status=="number")return t.status;if(typeof t.statusCode=="number")return t.statusCode}},yB=e=>Qn(e)!==void 0,Ly=e=>{const t=Qn(e);return t!==void 0&&t>=500&&t<=599},zy=e=>!!(typeof DOMException<"u"&&e instanceof DOMException&&e.name==="AbortError"||e&&typeof e=="object"&&"name"in e&&e.name==="AbortError"),vfe=()=>typeof navigator<"u"&&navigator.onLine===!1,Uy=e=>zy(e)||yB(e)?!1:e instanceof oT?!0:vfe(),yfe=e=>!yB(e)&&!zy(e)&&!Uy(e),bB=e=>Ly(e)||yfe(e),bfe=e=>e instanceof Error&&e.name==="AuthTokenError"&&Qn(e)===403,jy=e=>Qn(e)===401||bfe(e),Sfe=(e,t)=>{if(t?.softError===!0)return!0;const n=t?.softErrorStatuses;if(!Array.isArray(n))return!1;const r=Qn(e);return r!==void 0&&n.includes(r)},wfe=[502,503,504],xfe=(e,t)=>{if(t?.restartExpected!==!0)return!1;const n=Qn(e);return n!==void 0&&wfe.includes(n)},Cfe=(e,t)=>Ly(e)?!xfe(e,t)&&t?.ownsServerErrors!==!0:zy(e)||Uy(e)||jy(e)?!1:bB(e)?!0:!Sfe(e,t),kT={softError:!0},Fy=(...e)=>({softErrorStatuses:e}),Efe={restartExpected:!0},_fe={ownsServerErrors:!0},SB=e=>Qn(e)===404,kfe=e=>Ly(e),Y3=new Set;let wB=null,xB=null;const Afe=e=>{xB=e},Tfe=e=>e instanceof Error?e:new Error(CB(e)),CB=e=>e instanceof Error?e.message||e.name:typeof e=="string"?e:e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"?e.message:"An unexpected server error occurred.",Ife=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`fatal-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,Wd=(e,t)=>{const n={error:e,message:CB(e),correlationId:Ife(),at:Date.now(),recoverable:t?.recoverable??kfe(e),stack:e instanceof Error?e.stack:void 0,componentStack:t?.componentStack};wB=n,Dfe(`Fatal: ${n.message} [${n.correlationId}]`),xB?.recordError(Tfe(e),{fatal:"true",correlationId:n.correlationId});for(const r of Y3)r(n);return n},Rfe=e=>(Y3.add(e),()=>{Y3.delete(e)}),Ofe=()=>wB,Nfe=20,_1=[],Mfe=new Set(["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"]);function Pfe(e){return typeof e!="string"?!1:Mfe.has(e.replace(/\.\s*$/,""))}function k1(e){_1.push(e),_1.length>Nfe&&_1.shift()}function Dfe(e){k1(e)}function Lfe(e){return e.map(t=>{if(typeof t=="string")return t;if(t instanceof Error)return`${t.name}: ${t.message}`;try{return JSON.stringify(t)}catch{return String(t)}}).join(" ")}function zfe(){const e=console.error.bind(console);console.error=(...t)=>{k1(Lfe(t)),e(...t)},window.addEventListener("error",t=>{Pfe(t.message)||(k1(`Uncaught ${t.error instanceof Error?`${t.error.name}: ${t.error.message}`:String(t.message)} (${t.filename}:${t.lineno})`),Wd(t.error??t.message))}),window.addEventListener("unhandledrejection",t=>{const n=t.reason,r=n instanceof Error?`${n.name}: ${n.message}`:String(n);k1(`Unhandled rejection: ${r}`),Wd(n)})}function Ufe(){return _1.slice()}const jfe=8,fd=[];function Ffe(e){const t=e.split(/[?#]/)[0],n=fd[fd.length-1];n&&n.path===t||(fd.push({path:t,timestamp:new Date().toISOString()}),fd.length>jfe&&fd.shift())}function $fe(){return fd.slice()}const Px=7500,_P=`
148
+ }`;aB(ude);var hBe=function(e){var t=e.isPullable,n=t===void 0?!0:t,r=e.canFetchMore,o=r===void 0?!1:r,s=e.onRefresh,i=e.onFetchMore,c=e.refreshingContent,u=c===void 0?F.createElement(lde,null):c,d=e.pullingContent,h=d===void 0?F.createElement(cde,null):d,m=e.children,g=e.pullDownThreshold,v=g===void 0?67:g,S=e.fetchMoreThreshold,b=S===void 0?100:S,C=e.maxPullDownDistance,E=C===void 0?95:C,k=e.resistance,A=k===void 0?1:k,R=e.backgroundColor,N=e.className,O=N===void 0?"":N,I=_.useRef(null),M=_.useRef(null),z=_.useRef(null),q=_.useRef(null),U=!1,L=!1,B=!1,K=0,le=0;_.useEffect(function(){if(!(!n||!M||!M.current)){var Y=M.current;return Y.addEventListener("touchstart",se,{passive:!0}),Y.addEventListener("mousedown",se),Y.addEventListener("touchmove",de,{passive:!1}),Y.addEventListener("mousemove",de),window.addEventListener("scroll",_e),Y.addEventListener("touchend",j),Y.addEventListener("mouseup",j),document.body.addEventListener("mouseleave",j),function(){Y.removeEventListener("touchstart",se),Y.removeEventListener("mousedown",se),Y.removeEventListener("touchmove",de),Y.removeEventListener("mousemove",de),window.removeEventListener("scroll",_e),Y.removeEventListener("touchend",j),Y.removeEventListener("mouseup",j),document.body.removeEventListener("mouseleave",j)}}},[m,n,s,v,E,o,b]),_.useEffect(function(){var Y;if(!((Y=I)===null||Y===void 0)&&Y.current){var X=I.current.classList.contains("ptr--fetch-more-treshold-breached");X||o&&$()<b&&i&&(I.current.classList.add("ptr--fetch-more-treshold-breached"),L=!0,i().then(Q).catch(Q))}},[o,m]);var $=function(){if(!M||!M.current)return-1;var Y=window.scrollY,X=M.current.scrollHeight;return X-Y-window.innerHeight},Q=function(){requestAnimationFrame(function(){M.current&&(M.current.style.overflowX="hidden",M.current.style.overflowY="auto",M.current.style.transform="unset"),z.current&&(z.current.style.opacity="0"),I.current&&(I.current.classList.remove("ptr--pull-down-treshold-breached"),I.current.classList.remove("ptr--dragging"),I.current.classList.remove("ptr--fetch-more-treshold-breached")),U&&(U=!1),L&&(L=!1)})},se=function(Y){B=!1,Y instanceof MouseEvent&&(K=Y.pageY),window.TouchEvent&&Y instanceof TouchEvent&&(K=Y.touches[0].pageY),le=K,!(Y.type==="touchstart"&&sB(Y.target,Lp.UP))&&(M.current.getBoundingClientRect().top<0||(B=!0))},de=function(Y){if(B){if(window.TouchEvent&&Y instanceof TouchEvent?le=Y.touches[0].pageY:le=Y.pageY,I.current.classList.add("ptr--dragging"),le<K){B=!1;return}Y.cancelable&&Y.preventDefault();var X=Math.min((le-K)/A,E);X>=v&&(B=!0,U=!0,I.current.classList.remove("ptr--dragging"),I.current.classList.add("ptr--pull-down-treshold-breached")),!(X>=E)&&(z.current.style.opacity=(X/65).toString(),M.current.style.overflow="visible",M.current.style.transform="translate(0px, "+X+"px)",z.current.style.visibility="visible")}},_e=function(Y){L||o&&$()<b&&i&&(L=!0,I.current.classList.add("ptr--fetch-more-treshold-breached"),i().then(Q).catch(Q))},j=function(){if(B=!1,K=0,le=0,!U){z.current&&(z.current.style.visibility="hidden"),Q();return}M.current&&(M.current.style.overflow="visible",M.current.style.transform="translate(0px, "+v+"px)"),s().then(Q).catch(Q)};return F.createElement("div",{className:"ptr "+O,style:{backgroundColor:R},ref:I},F.createElement("div",{className:"ptr__pull-down",ref:z},F.createElement("div",{className:"ptr__loader ptr__pull-down--loading"},u),F.createElement("div",{className:"ptr__pull-down--pull-more"},h)),F.createElement("div",{className:"ptr__children",ref:M},m,F.createElement("div",{className:"ptr__fetch-more",ref:q},F.createElement("div",{className:"ptr__loader ptr__fetch-more--loading"},u))))};const dde=e=>e===1?"message":"messages",rv=e=>`${e.toLocaleString()} ${dde(e)}`,Nx=(e,t)=>e.kind==="delete"?`delete ${rv(e.count)}`:t===void 0?"empty it":`empty ${rv(t)}`,iB=e=>e.kind==="delete"?"Nothing has been deleted.":"Nothing has been emptied.",fde=(e,t,n={})=>{const{trashFolderLabel:r,staleFolderLabel:o,selectedCount:s}=n,i=iB(t);if(e==="none")return{title:"No folder is set as Trash",description:`${i} reader files deleted mail in the folder you set as Trash, and this account has none.`,pickerPrompt:"Which folder does this account use for deleted mail?",confirmLabel:`Set as Trash and ${Nx(t,void 0)}`,cancelLabel:"Cancel"};if(e==="stale")return{title:"The Trash folder you chose is gone",description:o?`${i} You set ${o} as this account's Trash and it is no longer on the mail server — another mail app may have renamed or removed it.`:`${i} The folder you set as this account's Trash is no longer on the mail server — another mail app may have renamed or removed it.`,pickerPrompt:"Which folder should reader use instead?",confirmLabel:`Set as Trash and ${Nx(t,void 0)}`,cancelLabel:"Cancel"};const c=t.kind==="delete"?`Deleting ${rv(t.count)} there erases them from the mail server, and that cannot be restored.`:"Emptying a folder erases everything in it from the mail server, and that cannot be restored.";return{title:"Confirm this account's Trash folder",description:r?`${i} reader files this account's deleted mail in ${r} because of its name — you never chose it, and the mail server doesn't mark it as Trash. ${c}`:`${i} reader files this account's deleted mail in a folder it matched by name — you never chose it, and the mail server doesn't mark it as Trash. ${c}`,pickerPrompt:r?`Confirm ${r}, or pick the folder this account really uses.`:"Pick the folder this account really uses for deleted mail.",confirmLabel:`Set as Trash and ${Nx(t,s)}`,cancelLabel:"Cancel"}},hde=(e,t,n,r)=>e.kind==="appointing"?{headline:"Setting the Trash folder…",status:n}:t.kind==="delete"?{headline:`Deleting ${rv(t.count)}…`,status:r?`Erasing them from ${n}. This can't be undone.`:`Moving them to ${n}`}:{headline:`Emptying ${n}…`,status:"This can't be undone."},pde=(e,t,n,r)=>e==="unconfirmed"&&t.kind==="delete"&&n!==void 0&&r===n,mde=(e,t,n)=>e==="mailbox-pending"?`${n} is still being created on the mail server. Wait for it to finish, then try again.`:`Couldn't set that folder as Trash. ${iB(t)} Please try again.`,gde=({open:e,reason:t,action:n,folders:r,delimiter:o,trashFolderLabel:s,guessedMailboxId:i,staleFolderLabel:c,accountEmail:u,phase:d,selectedId:h,onSelect:m,onCreateFolder:g,onConfirm:v,onCancel:S})=>{const b=_.useRef(null),C=d.kind==="appointing"||d.kind==="acting";_.useEffect(()=>{C&&b.current?.focus()},[C]);const E=r.find(N=>N.id===h),k=fde(t,n,{trashFolderLabel:s,staleFolderLabel:c,selectedCount:E?.messageCount}),A=pde(t,n,i,h),R=n.kind==="emptyTrash"||A;if(!e)return null;if(C){const N=hde(d,n,E?.label??"",A);return x.jsx(A3,{open:e,onClose:()=>{},title:k.title,children:x.jsxs("div",{ref:b,"data-escape-owner":!0,tabIndex:-1,className:"flex flex-col items-center gap-3 px-5 py-10 text-center outline-none",children:[x.jsx(Op,{className:"size-8 animate-spin text-accent-2"}),x.jsx("p",{className:"text-sm font-medium text-fg",children:N.headline}),x.jsx("p",{className:"text-xs text-fg-muted",role:"status","aria-live":"polite",children:N.status})]})})}return x.jsxs(A3,{open:e,onClose:S,title:k.title,children:[x.jsxs("header",{className:"flex items-center gap-2 border-b border-line px-5 py-3",children:[x.jsx(Sl,{className:`size-4 shrink-0 ${R?"text-danger":"text-warning"}`}),x.jsx("span",{className:"flex-1 text-sm font-semibold text-fg",children:k.title})]}),x.jsxs("div",{className:"flex max-h-[70vh] flex-col",children:[x.jsxs("div",{className:"space-y-1 px-5 py-4",children:[x.jsx("p",{className:"text-sm text-fg-muted",children:k.description}),u&&x.jsx("p",{className:"text-xs text-fg-subtle",children:u})]}),d.kind==="appoint-failed"&&x.jsx("div",{className:"px-5 pb-3",children:x.jsx(Jo,{tone:"danger",variant:"soft",children:mde(d.cause,n,E?.label??"That folder")})}),x.jsx("p",{className:"px-5 pb-2 text-sm text-fg-muted",children:k.pickerPrompt}),x.jsx("div",{className:"flex h-[26rem] min-h-0 flex-1 overflow-hidden",children:x.jsx(wT,{folders:r,selectedId:h,delimiter:o,onSelect:m,onCreateFolder:t==="none"?g:void 0,onCancel:S,labels:{treeAriaLabel:"Folders on this account",optionLabel:N=>`Set ${N.label}${N.messageCount===void 0?"":`, ${N.messageCount} messages`}, as Trash`}})})]}),x.jsxs("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:[x.jsx(Bt,{variant:"secondary",size:"sm",onClick:S,children:k.cancelLabel}),E&&x.jsx(Bt,{variant:R?"danger":"primary",size:"sm",onClick:()=>v(E.id),children:x.jsx("span",{className:"truncate",children:k.confirmLabel})})]})]})};function vde(e){return e.scopedOutFolder!==void 0||(e.droppedFacets?.length??0)>0}function yde(e){return`Your search was limited to ${e}. This filter matches these messages in any folder — it can't be pinned to one.`}const lB=e=>e.length===1?e[0]:e.length===2?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`;function bde(e){const t=e.length===1?"a filter condition":"filter conditions",n=e.length===1?"isn't":"aren't";return`${lB(e)} ${n} ${t}, so ${e.length===1?"it was":"they were"} left out — the filter still matches everything else you searched for.`}const Mx="add a sender or words to filter on";function pBe(e){if(e.length===0)return`${Mx[0].toUpperCase()}${Mx.slice(1)}`;const t=e.length===1?"isn't":"aren't",n=e.length===1?"a filter condition":"filter conditions";return`${lB(e)} ${t} ${n} — ${Mx}`}function mP({icon:e,children:t}){return x.jsxs("li",{className:"flex items-start gap-2",children:[x.jsx("span",{className:"mt-0.5 shrink-0 text-fg-subtle","aria-hidden":"true",children:e}),x.jsx("span",{children:t})]})}function Sde({notice:e}){return vde(e)?x.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken px-3 py-2.5",children:[x.jsx("p",{className:"text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"From your search"}),x.jsxs("ul",{className:"mt-1.5 space-y-1.5 text-xs text-fg-muted",children:[e.scopedOutFolder!==void 0&&x.jsx(mP,{icon:x.jsx(Pse,{className:"size-3.5"}),children:yde(e.scopedOutFolder)}),e.droppedFacets&&e.droppedFacets.length>0&&x.jsx(mP,{icon:x.jsx(jF,{className:"size-3.5"}),children:bde(e.droppedFacets)})]})]}):null}const wde={delete:{label:"Delete",present:"Deleting",past:"Deleted",destructive:!0},move:{label:"Move",present:"Moving",past:"Moved",destructive:!1},junk:{label:"Junk",present:"Marking as junk",past:"Marked as junk",destructive:!0},markRead:{label:"Mark read",present:"Marking read",past:"Marked read",destructive:!1},organize:{label:"Organize",present:"Organizing",past:"Organized",destructive:!1}},xT=e=>wde[e],xde={match:"Apply to",properties:"Properties",folder:"Folder",rule:"Rule",name:"Name",review:"Review",run:"Run"},cB=e=>xde[e],mBe=({verb:e,mode:t,scope:n,fromSearch:r})=>{const o=r?["properties"]:t==="properties"?["match","properties"]:["match"];return e==="move"?[...o,"folder","review","run"]:e==="organize"?n==="standing"||n==="until"?[...o,"folder","rule","name","review","run"]:[...o,"folder","rule","review","run"]:[...o,"review","run"]},Ny=(e,t)=>Math.max(0,e.indexOf(t)),Cde=(e,t)=>Ny(e,t)===0||t==="run",uB=(e,t)=>({clauses:[...e.clauses],matchOperator:e.matchOperator,moveMailboxId:e.moveMailboxId,scope:t,until:e.until,name:e.name}),dB=e=>N$(uB(e,e.scope??"once")),gP=e=>{if(!(e.scope!=="standing"&&e.scope!=="until")&&!O$(uB(e,e.scope)))return Ro.noMatch},Ede="A rule only works within one account — clear the selection, or pick messages from a single account.",_de="A destination only works within one account — clear the selection, or pick messages from a single account.",kde="Matching beyond the messages you picked only works within one account — clear the selection, or pick messages from a single account.",Ade="A rule only works within one folder — clear the selection, or pick messages from a single folder.",Tde="A destination only works within one folder — clear the selection, or pick messages from a single folder.",Ide={spansAccounts:{rule:Ede,destination:_de},spansFolders:{rule:Ade,destination:Tde}},Rde="A match this wide applies once — use “Make this a filter” above the results to keep doing it.",gBe=(e,t)=>e==="escalated"?Rde:t.rule,vBe=(e,t)=>{const n=e===void 0?"spansAccounts":t;if(!n)return{accountId:e};const r=Ide[n];return{accountId:n==="spansAccounts"?void 0:e,rule:r.rule,destination:r.destination}},Ode=e=>e===void 0?["selected"]:["selected","properties"],Nde="This matches no messages, so there is nothing to do. Go back and change what it applies to.",Mde="Fill in every property, or take the empty one off.",Pde="Pick a destination first.",Dde="Choose one of the three first.",yBe=(e,t,n)=>{if(e==="properties")return t.clauses.length===0?Ro.noMatch:t.clauses.some(r=>r.value.trim()==="")?Mde:void 0;if(e==="folder")return t.moveMailboxId?void 0:Pde;if(e==="rule"){if(!t.scope)return Dde;const r=gP(t);return r||(t.scope==="once"&&dB(t).length>0?Ro.bodyTextOnce:t.scope==="until"&&!t.until?.trim()?Ro.noUntilDate:void 0)}if(e==="name"&&!t.name?.trim())return Ro.unnamed;if(e==="review"){const r=gP(t);return r||(n.status==="uncounted"?void 0:n.status==="ready"&&n.count===0&&!n.stale?Nde:D$(n))}},Lde="Nothing matches this yet. Widen a property, or match on a different one.",CT=({state:e,verb:t,scope:n,matched:r,applied:o,failed:s,failureReason:i})=>{const{label:c,present:u,past:d}=xT(t),h=d.toLowerCase(),m=n==="standing"||n==="until",v={screenTitle:e==="saving"||e==="backApplyRunning"||e==="statusUnknown"||e==="commitFailed"?c:"Done",showProgress:e==="backApplyRunning"||e==="backApplyComplete"||e==="backApplyFailed"||e==="backApplyRestartFailed"||e==="statusUnknown"||e==="runStopped",failureListLabel:`Not ${h}`};return e==="saving"?{...v,title:m?"Saving rule…":"Applying…",detail:"Nothing has been changed yet.",tone:"progress",dismissLabel:"Close"}:e==="backApplyRunning"?{...v,title:m?"Rule saved. Moving the mail already in your mailbox…":`${u} ${r} messages…`,detail:"This keeps running if you close the wizard.",tone:"progress",dismissLabel:"Close",cancelLabel:"Stop the run"}:e==="statusUnknown"?{...v,title:m?"Rule saved. Its progress over your existing mail is unknown":`${u} — progress unknown`,detail:m?"The connection dropped, so the bar shows the last that was read. The pass runs on the mail server, and the rule keeps working on new mail either way. This keeps checking.":"The connection dropped, so the bar shows the last that was read. The run is on the mail server and carries on either way. This keeps checking.",tone:"warning",dismissLabel:"Close",retryLabel:"Check again"}:e==="backApplyComplete"?{...v,title:m?"Rule saved and applied":`${d} ${o}`,detail:m?`${o} of ${r} already in your mailbox ${h}. New mail follows the rule as it arrives.`:`Every message the match reached was ${h}. Your mail server is still catching up, so the list can lag behind.`,tone:"success",dismissLabel:"Done"}:e==="backApplyFailed"?{...v,title:m?"Rule saved — some mail stayed put":`Not everything was ${h}`,detail:`${o} of ${r} ${h} · the mail server rejected ${s}.${m?" The rule itself is saved and keeps working on new mail.":""}`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:e==="runStopped"?{...v,title:`Stopped after ${o}`,detail:`${o} of ${r} ${h}. The rest were not sent, apart from the ones already on their way when you stopped — those may still have gone through.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:e==="backApplyRestartFailed"?{...v,title:m?"Rule saved — the retry didn't start":"The retry didn't start",detail:`${o} of ${r} ${h} · the mail server rejected ${s}, which are still where they were.${m?" The rule itself is saved and keeps working on new mail.":""} Check your connection and try again.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:e==="backApplyStartFailed"?{...v,title:"Rule saved",detail:"New mail follows it automatically. The pass over the mail already in your mailbox never started.",tone:"warning",dismissLabel:"Not now",retryLabel:"Run it over existing mail"}:e==="filterSaved"?{...v,title:"Filter saved",detail:"There is no mail in your mailbox to apply it to yet. New mail follows it as it arrives. You can see it, and when it expires, under Settings › Filters.",tone:"success",dismissLabel:"Done"}:{...v,title:m?"Couldn't save the rule":`Couldn't start ${c.toLowerCase()}`,detail:i??"Nothing has changed.",tone:"danger",dismissLabel:i===void 0?"Not now":"Close",retryLabel:i===void 0?"Try again":void 0}},zde=e=>`${Pd(e.field)} "${e.value}"`,fB=(e,t)=>e.map(zde).join(` ${ST(t)} `),H3=(e,t)=>e==="selected"?`These ${t} messages`:"Its properties",vP=e=>e==="selected"?"Only the messages ticked in the list.":Fle,hB=e=>`Every message ${e}`,ET="the list is showing",Ude="This reaches every match on the mail server, including the ones the list has not loaded. The search is already the match, so there is nothing to widen.",jde="This covers messages not shown in the list, and anything else matching by the time it runs.",Fde=({mode:e,selectedCount:t,clauses:n,matchOperator:r,escalatedScope:o})=>e==="escalated"?hB(o??ET):e==="properties"?fB(n,r):H3(e,t),$de=({mode:e,selectedCount:t,clauses:n,matchOperator:r,escalatedScope:o,escalatedCount:s})=>{if(e==="selected")return`${t} messages`;if(e==="escalated"){const i=o??ET;return s===void 0?`every message ${i}`:`all ${s.toLocaleString()} messages ${i}`}return n.length===0?"every message":`every message where ${fB(n,r)}`};function Bde({title:e,subtitle:t,steps:n,step:r,onBack:o,onExit:s,footer:i,children:c}){return x.jsx(gce,{title:e,subtitle:t,steps:n.map(cB),activeStep:Ny(n,r),onBack:o,onExit:s,footer:i,children:c})}function gp({selected:e,title:t,description:n,unavailable:r,onSelect:o,children:s}){const i=_.useId();return x.jsxs("div",{className:"space-y-1.5",children:[x.jsxs("button",{type:"button",onClick:o,"aria-pressed":e,"aria-describedby":r&&s?i:void 0,className:ke("flex w-full items-start gap-3 rounded-lg border p-3 text-left transition-colors",e?"border-accent bg-accent-soft":"border-line bg-surface hover:bg-surface-sunken",r&&"opacity-55"),children:[x.jsx("span",{className:ke("mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full border",e?"border-accent bg-accent text-accent-fg":"border-line"),children:e&&x.jsx(wy,{className:"size-3"})}),x.jsxs("span",{className:"min-w-0 flex-1",children:[x.jsx("span",{className:"block text-sm font-medium text-fg",children:t}),x.jsx("span",{className:"mt-0.5 block text-xs text-fg-muted",children:n})]})]}),s&&x.jsx("div",{id:i,children:s})]})}const Hde=(e,t)=>e.status==="uncounted"?"The first matches. The total is not known until the run finishes.":e.status==="ready"&&e.count>t&&!e.stale?`and ${e.count-t} more`:M$(e),qde=(e,t)=>t?"Fetching the messages this covers…":e.status==="error"?e.reason:Lde;function ov({messages:e,count:t,label:n,loading:r}){return x.jsxs("section",{className:"flex flex-col rounded-lg border border-line bg-surface",children:[x.jsx("h2",{className:"shrink-0 border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:n}),e.length===0?x.jsx("p",{className:"px-3 py-4 text-xs text-fg-muted",children:qde(t,r)}):x.jsxs(x.Fragment,{children:[x.jsx("ul",{className:"min-h-0 max-h-[45dvh] divide-y divide-line overflow-y-auto overscroll-contain md:max-h-[17rem]",children:e.map(o=>x.jsxs("li",{className:"px-3 py-2",children:[x.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[x.jsx("span",{className:"truncate text-xs font-medium text-fg",children:o.sender}),x.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:o.date})]}),x.jsx("p",{className:"truncate text-xs text-fg-muted",children:o.subject})]},o.id))}),x.jsx("p",{className:"shrink-0 border-t border-line px-3 py-2 text-2xs text-fg-subtle",children:Hde(t,e.length)})]})]})}function yP({onBack:e,nextLabel:t,onNext:n,nextVariant:r="primary",blockedReason:o,nudged:s}){const i=_.useId();return x.jsxs("div",{className:"space-y-2",children:[o&&x.jsx(Xie,{id:i,reason:o,nudged:s,className:"px-1 text-2xs text-warning"}),x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(Bt,{variant:"ghost",size:"touch",onClick:e,icon:x.jsx(DF,{className:"size-4"}),className:"shrink-0",children:"Back"}),x.jsxs(Bt,{variant:r==="danger"?"danger":"primary",size:"touch",onClick:n,"aria-describedby":o?i:void 0,className:ke("flex-1",o&&"opacity-55"),children:[t,r==="primary"&&x.jsx(kse,{className:"size-4"})]})]})]})}function Wde({selectedCount:e,mode:t,accountId:n,onModeChange:r,escalatedScope:o,sample:s}){if(t==="escalated")return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"rounded-lg border border-accent bg-accent-soft p-3",children:[x.jsx("p",{className:"text-sm font-medium text-fg",children:hB(o??ET)}),x.jsx("p",{className:"mt-1 text-xs text-fg-muted",children:Ude})]}),x.jsx("div",{className:"mt-4",children:x.jsx(ov,{...s})})]});const c=Ode(n).length>1;return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"space-y-2",children:[!c&&x.jsx("p",{className:"px-1 text-2xs text-warning",children:kde}),x.jsx(gp,{selected:t==="selected",onSelect:()=>r("selected"),title:H3("selected",e),description:vP("selected")}),c&&x.jsx(gp,{selected:t==="properties",onSelect:()=>r("properties"),title:H3("properties",e),description:vP("properties")})]}),x.jsx("div",{className:"mt-4",children:x.jsx(ov,{...s})})]})}const Vde=[{value:"all",label:tv("all")},{value:"any",label:tv("any")}];function Gde({clauses:e,matchOperator:t,onMatchOperatorChange:n,clauseEdit:r,onStartAddClause:o,onStartEditClause:s,onRemoveClause:i,onChangeDraft:c,onSubmitClause:u,onCancelClause:d,clauseFields:h,clauseSuggestions:m,conversionNotice:g,sample:v}){const S=ST(t);return x.jsxs("div",{className:"space-y-4",children:[g&&x.jsx(Sde,{notice:g}),x.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[e.map((b,C)=>x.jsxs(_.Fragment,{children:[C>0&&x.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:S}),x.jsx(z$,{clause:b,onEdit:()=>s(b.id),onRemove:()=>i(b.id)})]},b.id)),!r&&x.jsx(U$,{label:"Add clause",onClick:o})]}),r&&x.jsx(j$,{draft:r.draft,mode:r.mode,fields:h,suggestions:m,onChangeField:b=>c({...r.draft,field:b}),onChangeValue:b=>c({...r.draft,value:b}),onSubmit:u,onCancel:d}),e.length>1&&x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),x.jsx(j3,{name:"wizard-match-operator",size:"sm","aria-label":"Match operator",options:Vde,value:t,onChange:n})]}),x.jsx("p",{className:"px-1 text-xs text-fg-muted",children:"We started you off from what you were looking at. Change any of it — this is where the rule is decided, not the list behind it."}),x.jsx(ov,{...v})]})}function Kde({folders:e,mailboxId:t,onSelect:n,onCreateFolder:r,delimiter:o,restriction:s}){const i=e.find(c=>c.id===t);return x.jsxs("div",{className:"flex min-h-0 flex-col gap-3",children:[x.jsx("p",{className:ke("px-1 text-xs",s?"text-warning":"text-fg-muted"),children:s??(i?`Moving to ${i.label}.`:"Tap a folder to open it, or make a new one where you want it.")}),x.jsx("div",{className:"flex min-h-0 flex-1 overflow-hidden rounded-lg border border-line bg-surface",children:x.jsx(wT,{folders:e,selectedId:t,onSelect:n,onCreateFolder:r,delimiter:o,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})})]})}function Yde({draft:e,onScopeChange:t,onUntilChange:n,restriction:r}){const o=_.useId(),{scope:s,until:i=""}=e,c=dB(e).length>0,u=r&&x.jsx("p",{className:"px-1 text-2xs text-warning",children:r});return x.jsxs("div",{className:"space-y-2",children:[x.jsx(gp,{selected:s==="once",onSelect:()=>t("once"),title:x1("once"),description:"A one-off tidy-up. Nothing changes for future mail.",children:c&&x.jsx("p",{className:"px-1 text-2xs text-warning",children:Ro.bodyTextOnce})}),x.jsx(gp,{selected:s==="standing",unavailable:!!r,onSelect:()=>t("standing"),title:x1("standing"),description:"Saves a rule and applies it to new mail as it arrives, and to the mail already in your mailbox. You'll name it next.",children:u}),x.jsxs(gp,{selected:s==="until",unavailable:!!r,onSelect:()=>t("until"),title:x1("until"),description:"The same rule, and it stops on a day you pick.",children:[u,s==="until"&&x.jsxs("div",{className:"rounded-lg border border-line bg-surface p-2",children:[x.jsx(bT,{htmlFor:o,children:"Stops on"}),x.jsx(As,{id:o,type:"date",value:i,onChange:d=>n(d.target.value)})]})]})]})}function Zde({name:e,onNameChange:t,nudged:n}){const r=_.useId(),o=_.useRef(null);return _.useEffect(()=>{n&&o.current?.focus()},[n]),x.jsxs(x.Fragment,{children:[x.jsx(bT,{htmlFor:r,children:"Rule name"}),x.jsx(As,{id:r,ref:o,value:e,placeholder:"Travel confirmations",onChange:s=>t(s.target.value),trailing:e?x.jsx("button",{type:"button","aria-label":"Clear name",onClick:()=>{t(""),o.current?.focus()},className:"-mr-1 flex size-7 shrink-0 items-center justify-center rounded-full text-fg-subtle hover:bg-surface hover:text-fg",children:x.jsx(ti,{className:"size-4"})}):void 0}),x.jsx("p",{className:"mt-2 text-xs text-fg-muted",children:"We suggested one from this selection. Clear it and write your own if it doesn't read right."})]})}function Xde({verb:e,mode:t,selectedCount:n,clauses:r,matchOperator:o,folder:s,scope:i,until:c,ruleName:u,escalatedScope:d,sample:h}){const{label:m}=xT(e),g={mode:t,selectedCount:n,clauses:r,matchOperator:o,escalatedScope:d,escalatedCount:h.count.status==="ready"?h.count.count:void 0},v=t!=="selected",S=i==="standing"||i==="until";return x.jsxs("div",{className:"space-y-4",children:[x.jsxs("div",{className:"rounded-lg border border-line bg-surface p-3",children:[x.jsxs("p",{className:"text-sm text-fg",children:[x.jsx("span",{className:"font-semibold",children:m})," ",$de(g),s?` to ${s}`:"",S&&x.jsxs(x.Fragment,{children:[" ","and ",x.jsx("span",{className:"font-medium",children:"save a rule"})," that keeps doing it"]}),i==="until"&&c&&` until ${c}`,"."]}),v&&x.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[x.jsx(Sl,{className:"mt-px size-3.5 shrink-0"}),t==="escalated"?jde:"This covers messages not shown in the list."]})]}),x.jsxs("dl",{className:"divide-y divide-line overflow-hidden rounded-lg border border-line bg-surface text-xs",children:[x.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[x.jsx("dt",{className:"text-fg-muted",children:"Action"}),x.jsx("dd",{className:"font-medium",children:m})]}),x.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[x.jsx("dt",{className:"shrink-0 text-fg-muted",children:"Apply to"}),x.jsx("dd",{className:"truncate font-medium",children:Fde(g)})]}),s&&x.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[x.jsx("dt",{className:"text-fg-muted",children:"Destination"}),x.jsx("dd",{className:"font-medium",children:s})]}),i&&x.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[x.jsx("dt",{className:"text-fg-muted",children:"Scope"}),x.jsxs("dd",{className:"font-medium",children:[x1(i),i==="until"&&c?` · ${c}`:""]})]}),u!==void 0&&x.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[x.jsx("dt",{className:"text-fg-muted",children:"Rule name"}),x.jsx("dd",{className:"truncate font-medium",children:u})]})]}),x.jsx(ov,{...h})]})}const _T=e=>({state:e.state,verb:e.verb,scope:e.scope,matched:e.matched,applied:e.applied,failed:e.failedCount??e.failures.length,failureReason:e.failureReason}),Qde=e=>e==="progress"?x.jsx(Op,{className:"size-10 animate-spin text-accent"}):e==="warning"?x.jsx(Sl,{className:"size-10 text-warning"}):e==="danger"?x.jsx(Sl,{className:"size-10 text-danger"}):x.jsx("span",{className:"flex size-12 items-center justify-center rounded-full bg-accent-soft text-accent",children:x.jsx(wy,{className:"size-6"})});function Jde(e){const{matched:t,applied:n,failures:r}=e,o=_T(e),s=CT(o),i=e.state==="runStopped"?"Not confirmed":"Server rejected";return x.jsxs("div",{className:"space-y-4 pt-2",children:[x.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[Qde(s.tone),x.jsx("p",{className:"text-sm font-medium",children:s.title}),x.jsx("p",{className:"max-w-xs text-xs text-fg-muted",children:s.detail})]}),s.showProgress&&x.jsx(ode,{value:n,max:t,tone:o.failed>0?"warning":"success"}),r.length>0&&x.jsxs("section",{className:"rounded-lg border border-line bg-surface",children:[x.jsx("h2",{className:"border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:s.failureListLabel}),x.jsx("ul",{className:"divide-y divide-line",children:r.map(c=>x.jsxs("li",{className:"px-3 py-2",children:[x.jsx("p",{className:"truncate text-xs font-medium",children:c.sender}),x.jsx("p",{className:"truncate text-xs text-fg-muted",children:c.subject}),x.jsx(_3,{className:"mt-1",tone:"warning",children:i})]},c.id))})]})]})}function efe(e){const{onRetry:t,onDismiss:n,onCancelRun:r}=e,o=CT(_T(e));return o.cancelLabel!==void 0&&r?x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(Bt,{variant:"ghost",size:"md",className:"min-h-11 shrink-0",onClick:r,children:o.cancelLabel}),x.jsx(Bt,{variant:"primary",size:"md",className:"min-h-11 flex-1",onClick:n,children:o.dismissLabel})]}):o.retryLabel===void 0?x.jsx(Bt,{variant:o.tone==="progress"?"ghost":"primary",size:"touch",className:"w-full",onClick:n,children:o.dismissLabel}):x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(Bt,{variant:"ghost",size:"touch",onClick:n,children:o.dismissLabel}),x.jsx(Bt,{variant:"primary",size:"touch",className:"flex-1",onClick:t,children:o.retryLabel})]})}const tfe={match:{subtitle:"What should this apply to?"},properties:{title:"Match properties",subtitle:"Which properties have to match?"},folder:{title:"Move to",subtitle:"Pick a destination"},rule:{title:"Organize",subtitle:"How long should this hold?"},name:{title:"Name the rule",subtitle:"So you can find it later"},review:{title:"Review",subtitle:"Check before it runs"},run:{}},Ws=(e,t)=>{if(e===void 0)throw new Error(`The ${cB(t)} step was rendered without its answers.`);return e};function bBe(e){const{verb:t,steps:n,onExit:r,onContinue:o,onCommit:s}=e,{label:i,destructive:c}=xT(t),u=n[Ny(n,e.step)],d=tfe[u],h=Cde(n,u)?r:e.onBack,m=()=>u==="match"?x.jsx(Wde,{...Ws(e.match,u)}):u==="properties"?x.jsx(Gde,{...Ws(e.properties,u)}):u==="folder"?x.jsx(Kde,{...Ws(e.folder,u)}):u==="rule"?x.jsx(Yde,{...Ws(e.rule,u)}):u==="name"?x.jsx(Zde,{...Ws(e.name,u),nudged:e.nudged}):u==="review"?x.jsx(Xde,{...Ws(e.review,u)}):x.jsx(Jde,{...Ws(e.run,u)}),g=()=>{if(u==="run")return x.jsx(efe,{...Ws(e.run,u)});if(u==="review"){const b=Ws(e.review,u);return x.jsx(yP,{onBack:h,nextLabel:b.scope?P$(b.scope):i,nextVariant:c?"danger":"primary",onNext:s,blockedReason:e.blockedReason,nudged:e.nudged})}return x.jsx(yP,{onBack:h,nextLabel:"Continue",onNext:o,blockedReason:e.blockedReason,nudged:e.nudged})},v=()=>u!=="run"?d.title??i:CT(_T(Ws(e.run,u))).screenTitle,S=u==="match"&&e.match?.mode==="escalated"?"What this applies to":d.subtitle;return x.jsx(Bde,{title:v(),subtitle:S,steps:n,step:u,onBack:h,onExit:r,footer:g(),children:m()})}const nfe={preparing:"Getting the new version ready",restarting:"Restarting Remit",reconnecting:"Waiting for Remit to answer again"};function bP(e){return nfe[e]}function rfe(e){return e<90?"This usually takes about a minute.":e<240?"Longer than usual. Remit is still trying to reach the server.":"Still no answer. Remit keeps trying."}function SBe(e,t=Date.now()){const n=Math.floor((t-e)/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function wBe(e){return new Date(e).toLocaleDateString(void 0,{dateStyle:"medium"})}const SP=["preparing","restarting","reconnecting"],pB="fixed inset-0 z-50 flex flex-col items-center justify-center gap-6 bg-canvas p-6 text-center outline-none";function ofe({target:e,phase:t,elapsedSeconds:n}){const r=_.useRef(null);bm(r,!0),xy({id:"self-update",open:!0});const o=SP.indexOf(t);return x.jsxs("div",{ref:r,role:"dialog","aria-modal":"true","aria-labelledby":"self-update-progress-title",tabIndex:-1,className:pB,children:[x.jsxs("div",{className:"max-w-md space-y-2",children:[x.jsxs("h1",{id:"self-update-progress-title",className:"text-lg font-semibold text-fg",children:["Installing Remit ",e]}),x.jsx("p",{className:"text-sm text-fg-muted",children:"Remit is restarting, so this page has no server to talk to for a moment. Leave this open — it reconnects on its own."})]}),x.jsx("ol",{className:"w-full max-w-sm space-y-2 text-left",children:SP.map((s,i)=>{const c=i<o,u=i===o;return x.jsxs("li",{className:ke("flex items-center gap-3 rounded-sm border px-row-inset py-2 text-sm",u?"border-line-strong bg-surface text-fg":"border-line bg-surface-sunken text-fg-subtle"),children:[c?x.jsx(wy,{className:"size-4 shrink-0 text-positive","aria-hidden":!0}):u?x.jsx(Op,{className:"size-4 shrink-0 animate-spin text-accent-2","aria-hidden":!0}):x.jsx("span",{className:"size-4 shrink-0 rounded-full border border-line-strong"}),bP(s)]},s)})}),x.jsxs("p",{"aria-live":"polite",className:"max-w-md text-xs text-fg-subtle",children:[x.jsx("span",{className:"sr-only",children:`${bP(t)}. `}),rfe(n)]})]})}function sfe({attemptedVersion:e,previousVersion:t,elapsedSeconds:n,logsCommand:r,onRetryConnection:o}){const s=_.useRef(null);bm(s,!0);const i=Math.max(1,Math.round(n/60));return x.jsxs("div",{ref:s,role:"alertdialog","aria-modal":"true","aria-labelledby":"self-update-unreachable-title",tabIndex:-1,className:pB,children:[x.jsx(lT,{className:"size-12 shrink-0 text-danger","aria-hidden":!0}),x.jsxs("div",{className:"max-w-lg space-y-3",children:[x.jsx("h1",{id:"self-update-unreachable-title",className:"text-lg font-semibold text-fg",children:"Remit has not answered since the restart"}),x.jsxs("p",{className:"text-sm text-fg-muted",children:["Installing ",e," started ",i," minute",i===1?"":"s"," ago and the server has been silent since. Your mail is safe at your provider — it was never part of the update."]}),x.jsxs("p",{className:"text-sm text-fg-muted",children:["Remit rolls back to ",t," on its own when the new version fails to start, but this page cannot confirm that from here. Check the server directly:"]}),x.jsx("code",{className:"block rounded-xs bg-surface-sunken px-3 py-2 text-left text-xs text-fg-muted",children:r})]}),x.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:x.jsx(Bt,{size:"sm",onClick:o,children:"Try connecting again"})})]})}function afe(e,t,n){if(!t.allowPrivateDomains&&e.length>3){const r=e.length-1,o=e.charCodeAt(r),s=e.charCodeAt(r-1),i=e.charCodeAt(r-2),c=e.charCodeAt(r-3);if(o===109&&s===111&&i===99&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="com",!0;if(o===103&&s===114&&i===111&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="org",!0;if(o===117&&s===100&&i===101&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="edu",!0;if(o===118&&s===111&&i===103&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="gov",!0;if(o===116&&s===101&&i===110&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="net",!0;if(o===101&&s===100&&i===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="de",!0}return!1}const gc=new Uint8Array([1,2,1,1,1,1,1,1,1,1,1,1,0,2,2,2,0,2,2,0,2,0,0,1,0,0,2,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,0,1,1,1,0,2,0,0,0,0,0,0,0,2,0,2,2,0,0,2,2,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,2,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,2,2,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,1,0,2,2,0,0,0,2,0,1,1,0,2,0,2,2,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,2,2,0,2,2,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,2,0,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,2,2,0,0,0,2,2,1,1,1,1,2,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,2,2,0,0,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,2,2,1,2,1,1,1,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0]),sv=new Uint16Array([0,0,0,10,11,18,106,111,117,124,130,136,145,146,147,148,149,150,151,153,154,155,157,159,226,239,241,242,243,258,265,266,269,270,271,274,276,295,296,298,307,312,313,331,332,335,337,338,340,374,375,377,380,381,385,387,391,394,426,429,442,443,451,452,454,464,478,479,480,489,490,527,532,548,568,574,615,616,643,670,671,819,825,828,829,830,835,840,849,871,872,873,874,875,876,877,895,897,898,901,903,904,906,908,923,938,943,944,946,947,948,949,950,952,955,960,961,962,964,965,968,971,972,973,986,988,1e3,1011,1019,1021,1061,1064,1068,1069,1071,1074,1085,1087,1097,1099,1105,1107,1108,1110,1113,1114,1115,1167,1169,1171,1191,1192,1193,1194,1196,1207,1238,1249,1261,1270,1277,1282,1295,1306,1319,1320,1331,1365,1366,1367,1382,1397,1469,1470,1472,1473,1507,1508,1509,1512,1516,1518,1547,1548,1556,1557,1558,1560,1562,1563,1565,1566,1567,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1594,1595,1596,1598,2053,2056,2057,2059,2066,2073,2083,2087,2098,2099,2100,2112,2113,2115,2117,2118,2125,2126,2128,2129,2131,2132,2133,2134,2135,2209,2211,2232,2233,2234,2236,2262,2263,2314,2315,2317,2324,2330,2340,2350,2403,2404,2405,2415,2429,2430,2433,2440,2441,2449,2450,2451,2452,2453,2464,2465,2466,2468,2469,2470,2471,2473,2483,2495,2501,2533,2537,2539,2540,2542,2543,2554,2555,2557,2565,2572,2578,2583,2584,2590,2593,2599,2606,2607,2614,2622,2623,2624,2662,2668,2683,2684,2689,2707,2738,2756,2758,2761,2769,2771,2778,2830,2854,2855,2856,2857,2858,2859,2860,2861,2868,2869,2870,2871,2872,2873,2875,2876,2880,2964,2977,2978,3414,3418,3432,3484,3512,3534,3592,3614,3629,3692,3743,3781,3817,3842,3984,4030,4081,4100,4134,4149,4169,4199,4230,4253,4284,4314,4346,4373,4448,4470,4508,4518,4552,4571,4597,4639,4689,4715,4784,4785,4787,4810,4833,4869,4900,4917,4974,4987,5011,5040,5042,5076,5092,5120,5425,5434,5443,5450,5467,5471,5477,5516,5518,5525,5532,5541,5548,5549,5560,5563,5578,5579,5588,5589,5598,5607,5613,5615,5616,5617,5653,5654,5656,5664,5671,5684,5688,5690,5691,5697,5704,5718,5728,5733,5741,5749,5755,5756,5760,5762,5763,5775,5776,5777,5778,5780,5781,5784,5786,5789,5793,5794,5800,5801,5802,5804,5806,5808,5809,5810,5813,5815,5818,5819,5821,6019,6026,6027,6037,6042,6059,6073,6082,6083,6084,6088,6089,6091,6093,6099,6100,6103,6104,6106,6107,6108,7008,7009,7013,7031,7040,7043,7050,7051,7053,7054,7055,7057,7109,7110,7113,7114,7231,7232,7243,7254,7261,7264,7273,7274,7275,7290,7345,7536,7538,7539,7541,7546,7559,7574,7581,7590,7593,7596,7603,7611,7615,7616,7617,7631,7635,7644,7645,7646,7650,7685,7686,7703,7710,7718,7719,7724,7732,7776,7777,7783,7786,7797,7802,7803,7806,7839,7840,7846,7853,7854,7863,7872,7887,7891,7943,7944,7949,7951,7954,7956,7957,7958,7967,7981,7989,8003,8015,8016,8018,8020,8042,8053,8059,8060,8072,8084,8171,8183,8185,8194,8197,8203,8228,8231,8232,8233,8235,8238,8241,8252,8254,8256,8284,8358,8365,8369,8370,8379,8401,8402,8407,8408,8487,8489,8491,8500,8504,8510,8516,8522,8532,8537,8538,8556,8567,8572,8577,8587,8593,8597,8603,8609,10217,10218,10219,10226,10228]),av=new Uint8Array([3,3,3,3,3,3,3,3,5,8,8,2,2,3,3,3,3,3,8,5,5,5,5,5,3,3,5,5,9,12,19,8,19,8,11,9,9,8,7,7,6,8,9,16,10,7,7,11,8,6,6,9,7,11,7,14,4,4,4,4,4,4,10,7,6,6,6,6,10,10,6,10,10,22,11,9,10,10,10,9,10,8,7,7,7,8,21,13,11,11,9,10,9,13,10,8,8,9,12,9,7,10,7,7,13,7,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,8,6,3,3,3,3,3,3,2,5,3,3,3,7,2,2,2,2,2,2,3,3,3,1,1,7,8,5,2,2,7,2,2,1,4,1,11,9,9,5,5,8,5,5,5,5,5,5,5,3,3,3,3,3,5,11,9,9,13,7,14,7,6,6,6,7,6,6,6,6,6,10,7,11,9,4,4,4,4,4,4,6,6,6,6,6,8,7,10,9,9,9,8,9,8,10,6,9,9,8,10,10,7,8,1,9,10,12,12,12,10,9,9,10,10,9,9,1,1,5,3,3,3,3,3,3,3,3,3,3,3,3,6,6,6,4,3,3,3,7,4,4,4,3,3,6,7,3,4,1,2,2,2,6,1,2,2,2,2,2,12,5,3,8,9,13,4,4,13,9,9,11,7,3,12,9,2,2,2,3,3,3,3,3,8,2,2,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,7,10,15,7,15,15,20,15,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,7,8,6,8,8,6,8,13,8,8,6,13,8,11,13,8,6,13,8,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,9,9,9,10,14,14,11,13,13,9,9,9,9,9,9,2,6,9,2,2,3,3,3,3,3,3,3,3,3,4,4,4,2,3,3,3,3,3,3,7,7,2,3,2,2,5,3,3,3,3,3,3,4,2,2,2,2,2,2,3,3,3,3,3,3,3,4,5,7,2,2,12,8,10,8,10,7,18,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,2,2,3,3,3,5,5,3,8,8,6,8,6,6,4,6,7,7,7,10,11,2,5,5,3,3,3,3,3,3,5,5,6,11,10,7,7,7,4,4,4,2,3,3,3,3,3,2,7,5,5,3,3,3,3,3,3,3,3,7,7,7,11,7,6,9,6,6,8,10,8,6,8,13,4,4,4,4,4,10,8,11,8,8,8,10,10,7,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,7,10,13,7,8,7,11,8,8,6,9,8,8,6,6,6,8,8,6,6,6,6,6,9,7,6,4,4,4,4,4,4,4,6,6,6,9,7,8,10,8,8,2,3,3,3,3,3,2,8,9,9,2,2,2,3,3,3,2,3,3,3,9,2,2,3,3,3,3,3,3,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,12,5,5,3,5,4,2,3,2,4,3,9,2,2,2,2,2,5,5,3,8,8,13,6,10,9,4,7,9,11,2,3,7,3,3,4,1,3,4,2,9,3,3,12,5,3,7,10,10,7,4,4,6,14,7,9,7,13,2,2,2,2,2,2,3,3,3,3,3,8,15,4,4,2,3,3,3,7,4,9,9,2,3,3,3,5,3,2,2,7,2,7,6,6,7,2,4,2,2,2,2,2,2,8,8,8,9,5,2,3,3,3,3,3,3,10,7,4,4,4,4,3,4,2,3,3,3,3,3,10,7,4,4,4,4,2,3,3,3,3,10,7,4,4,4,4,3,9,6,6,6,9,13,9,2,2,2,8,7,9,5,3,3,3,5,5,12,9,10,7,8,7,6,8,6,11,12,7,9,10,4,4,7,8,11,6,7,9,8,7,10,8,9,15,7,8,5,4,7,2,3,3,3,2,14,10,2,14,10,2,14,3,9,13,13,10,14,16,17,11,2,14,2,14,3,9,13,10,14,16,17,11,14,10,14,2,7,3,10,7,14,10,2,14,10,9,9,17,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,10,10,10,12,9,4,10,11,8,8,8,7,9,5,3,3,3,3,3,3,3,3,5,8,4,4,4,4,4,4,6,16,3,3,14,3,14,2,14,9,13,10,10,14,16,17,11,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,9,9,9,9,9,9,2,14,9,13,10,10,14,16,17,11,6,2,14,9,17,13,10,10,14,16,17,11,6,2,14,9,13,10,14,16,17,11,2,14,9,13,10,16,11,2,14,10,19,7,2,14,9,13,10,19,10,7,14,16,17,11,6,2,14,9,13,10,19,7,14,16,17,11,2,14,9,13,17,13,10,10,14,16,17,11,6,3,2,14,9,13,10,10,14,16,17,11,6,9,10,12,14,14,14,12,12,12,12,12,14,14,14,10,10,10,14,9,9,9,9,14,14,14,13,13,14,9,9,9,9,9,9,4,11,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,9,10,10,7,17,3,3,12,12,16,15,15,12,14,14,14,20,20,13,12,12,12,12,12,12,20,25,14,14,12,12,10,10,10,10,9,9,9,25,4,9,17,10,7,14,16,21,13,13,14,20,14,13,17,24,9,12,13,25,13,21,20,17,9,9,9,9,9,9,12,17,4,4,9,9,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,1,8,7,11,11,1,3,3,3,4,8,9,10,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,7,4,4,4,4,4,4,4,4,4,4,9,12,6,14,4,12,7,2,2,1,2,7,6,4,4,4,6,8,8,7,4,5,6,3,3,3,3,4,16,8,3,5,4,3,3,3,5,2,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,12,7,7,13,9,10,12,8,9,7,8,5,12,10,13,14,5,5,5,13,5,5,5,3,3,3,5,16,5,5,5,5,5,7,12,14,8,12,8,10,12,9,11,7,9,7,10,7,13,9,7,12,8,17,7,7,16,10,13,13,8,10,10,14,17,7,16,16,15,8,10,10,12,17,7,17,14,7,10,17,8,7,7,7,8,15,15,7,14,10,10,10,11,11,7,7,13,8,10,7,16,7,8,7,14,17,12,10,11,21,8,9,7,13,9,8,13,6,12,7,6,13,10,10,10,8,18,9,17,13,10,12,6,13,6,11,8,13,10,13,18,13,11,13,8,16,7,10,8,16,12,10,8,8,6,14,11,8,15,8,8,7,7,12,7,8,9,14,15,8,9,10,9,15,7,8,8,12,13,9,10,15,15,13,7,10,10,20,7,6,9,6,6,14,11,14,11,12,9,10,16,16,12,7,11,28,8,11,10,7,21,8,7,9,4,4,4,17,7,8,6,9,6,6,13,6,6,6,6,18,20,14,8,11,12,9,10,13,15,19,8,9,12,7,10,16,12,9,9,9,14,12,11,9,12,11,18,9,9,9,10,7,7,16,8,9,7,13,12,10,18,7,8,11,7,7,8,8,13,7,7,7,11,15,13,11,7,8,15,11,7,8,18,14,13,18,15,10,12,12,9,7,11,11,8,7,10,8,14,12,10,18,7,10,9,7,8,13,10,14,9,10,8,8,23,7,7,11,12,12,17,7,7,11,11,17,16,16,7,8,11,14,14,8,10,7,7,16,16,13,9,11,9,15,15,11,11,7,7,14,7,9,7,7,16,10,13,10,11,14,7,11,10,11,7,11,10,11,15,11,15,10,12,17,10,14,13,11,11,12,13,10,7,13,10,16,12,21,9,10,10,7,11,14,17,7,7,8,11,12,8,15,14,14,8,17,12,10,10,7,9,11,7,10,7,11,18,7,11,7,12,11,8,8,14,12,7,8,15,3,7,7,5,2,9,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,5,3,3,3,3,3,3,4,4,3,3,3,3,3,3,5,11,6,4,7,10,7,7,11,1,10,2,2,3,3,3,3,3,3,3,3,5,7,3,5,6,3,3,5,2,2,5,3,4,13,11,3,3,6,3,5,14,2,2,3,8,2,2,12,5,18,5,3,3,3,16,5,5,5,10,7,13,12,13,9,12,14,19,9,9,21,9,9,10,6,9,6,15,10,6,12,8,6,10,15,4,4,6,6,9,9,12,16,14,23,7,7,7,14,9,7,7,11,14,10,7,10,10,10,12,6,11,10,13,11,15,11,7,12,10,3,7,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,3,7,2,5,5,3,3,5,5,5,5,7,6,6,6,4,4,4,4,4,4,6,6,6,6,6,7,10,2,2,2,5,5,5,5,3,3,3,3,3,5,5,10,9,11,8,7,12,8,9,7,6,13,11,6,13,7,9,9,4,4,4,4,4,4,6,10,7,8,13,8,8,9,14,8,10,7,7,7,9,6,9,7,2,12,5,3,3,13,4,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,4,4,4,4,4,4,4,4,4,9,3,3,3,3,3,3,3,3,3,3,4,2,2,2,5,3,3,3,3,3,3,3,3,4,4,1,7,6,4,12,3,3,3,3,3,8,7,3,3,3,3,3,3,4,4,11,14,2,8,3,5,5,8,10,8,6,4,7,17,7,4,5,2,6,3,5,2,4,4,2,12,5,5,3,15,13,10,8,11,2,2,3,3,3,3,3,3,3,3,4,4,5,3,3,3,3,4,18,2,12,5,3,3,3,3,3,5,16,8,8,9,6,6,4,4,4,4,31,6,6,10,11,21,10,9,7,10,7,7,2,4,4,4,4,6,5,3,3,4,3,3,3,3,3,3,3,3,3,6,6,6,2,2,2,5,3,3,3,7,7,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,8,2,3,3,3,3,3,5,9,11,3,3,3,3,4,4,3,3,3,3,3,5,10,9,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,11,10,10,10,10,10,11,10,11,10,11,10,9,9,11,3,3,3,3,3,3,5,3,7,8,8,7,6,6,11,4,4,4,7,8,9,9,2,3,7,4,4,2,5,5,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,2,2,5,5,5,5,5,3,3,5,5,5,7,7,6,6,6,4,4,4,4,4,4,4,4,4,4,6,6,8,8,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,6,9,12,3,7,10,7,2,2,3,3,3,3,3,4,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,6,6,8,6,7,4,4,4,4,4,4,6,7,5,5,20,19,8,10,9,7,10,6,8,11,6,6,6,6,13,12,8,6,7,14,11,9,2,5,3,3,6,2,3,2,2,2,2,2,2,2,5,4,3,7,6,4,7,4,3,6,4,7,2,7,7,7,5,5,5,5,3,3,3,3,3,3,3,3,3,3,5,9,10,10,8,11,7,8,20,7,8,9,8,12,6,6,6,8,9,8,12,6,6,8,13,10,12,6,6,7,7,8,9,6,4,4,4,4,4,4,4,10,6,6,6,7,14,11,10,7,8,10,8,11,14,11,11,9,7,9,8,11,9,17,10,9,2,2,2,9,3,3,3,3,15,14,9,5,5,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,15,12,22,19,17,18,18,19,21,7,16,16,5,5,5,5,5,5,5,5,5,5,5,7,5,5,5,5,5,5,5,5,5,5,5,9,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,7,16,11,11,7,7,7,7,17,7,8,12,15,9,19,7,19,8,16,21,11,12,19,14,22,7,7,7,7,7,7,7,7,7,7,7,16,16,19,24,12,7,14,7,12,7,8,10,10,13,7,12,12,7,7,10,18,15,12,16,7,14,12,17,10,16,17,12,17,25,7,7,7,13,6,9,6,9,18,6,6,11,20,10,6,6,6,6,6,6,6,17,6,6,6,15,6,6,6,6,6,8,14,11,12,15,13,19,17,21,7,18,8,13,13,8,12,8,6,6,13,6,15,15,16,6,6,16,6,6,6,14,6,18,6,6,6,17,18,9,13,15,8,19,8,15,15,18,14,16,4,4,4,4,4,4,4,4,4,4,4,4,6,11,10,11,6,21,23,12,17,12,11,14,13,22,15,15,11,12,14,12,7,12,8,14,12,18,10,8,16,19,17,12,14,15,8,9,19,17,12,13,13,15,18,13,23,24,23,21,17,24,8,21,8,14,14,16,14,8,8,15,20,8,19,21,9,8,13,12,13,15,11,8,11,9,9,8,11,8,21,14,21,15,15,13,7,19,7,7,7,7,7,7,16,12,17,18,7,7,11,11,7,9,9,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,4,5,5,5,5,5,5,5,5,3,3,10,10,7,9,7,7,7,6,8,6,6,6,6,6,6,6,7,6,8,6,6,9,7,7,7,4,4,4,4,4,4,4,4,8,9,8,7,8,7,8,10,7,5,5,5,5,5,5,3,9,7,7,8,6,6,6,6,6,6,6,6,9,6,6,9,11,13,7,8,9,9,5,5,5,7,8,6,6,6,6,6,6,6,7,8,9,7,10,9,10,7,8,5,5,5,5,5,5,7,7,9,8,7,7,6,6,6,6,6,6,10,6,6,6,6,6,6,6,6,6,6,6,9,10,4,4,4,4,8,7,7,10,10,9,8,8,15,9,8,8,8,8,8,9,10,9,10,7,8,13,5,5,5,5,5,3,3,7,7,8,6,6,6,4,4,11,9,7,8,9,10,7,5,5,5,5,5,3,3,7,6,6,13,7,9,8,7,5,5,5,5,5,5,5,5,3,3,3,3,7,8,7,8,13,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,6,6,6,6,7,6,7,6,6,9,7,4,4,4,4,4,4,4,7,8,7,8,9,8,8,8,7,10,7,8,5,5,5,5,5,5,5,5,3,7,7,7,7,9,7,10,9,6,6,6,6,6,8,8,6,6,6,7,6,6,6,9,9,4,4,13,7,10,9,9,12,7,8,8,10,8,8,8,8,8,8,5,5,5,5,3,7,7,11,7,9,8,8,6,6,10,6,8,8,8,6,7,6,6,12,4,4,4,4,4,4,4,4,4,9,8,8,16,8,9,8,7,5,5,5,5,5,3,3,7,7,7,10,15,8,9,8,9,9,6,6,6,6,6,6,7,4,8,7,8,8,7,8,11,8,5,5,5,5,5,3,7,7,6,11,16,7,6,4,4,4,4,9,9,8,8,8,13,12,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,7,8,8,9,13,7,7,7,9,8,8,9,12,7,12,7,12,8,7,10,12,9,9,6,6,8,8,6,6,6,6,6,6,6,9,8,9,11,8,6,6,6,6,6,12,7,6,6,6,9,7,7,6,6,6,6,6,11,9,6,6,6,6,6,7,9,4,4,4,4,4,4,4,4,9,9,9,9,7,7,7,7,7,11,7,7,8,8,8,8,8,8,9,8,9,9,7,7,11,11,7,12,8,8,8,8,8,7,8,8,8,8,8,13,12,8,8,8,8,7,7,7,9,5,5,5,5,5,5,5,3,3,7,7,11,7,8,8,8,6,6,6,6,6,6,6,6,6,6,6,10,11,6,7,9,4,4,4,4,4,4,9,9,8,9,8,8,8,7,7,5,5,5,5,5,5,5,5,5,5,3,3,11,7,7,7,9,6,6,11,8,10,6,6,6,12,8,8,7,6,6,8,7,4,4,4,4,4,4,4,4,9,10,9,9,8,10,9,11,8,5,5,5,7,6,6,8,7,4,4,4,4,8,7,7,8,7,8,8,5,5,5,5,7,7,8,8,8,6,6,6,6,6,10,8,9,13,6,7,6,6,8,7,8,4,4,4,4,11,8,8,8,10,5,5,8,7,8,13,8,7,6,8,6,9,7,8,7,5,5,5,5,5,5,3,3,7,8,9,6,4,8,10,10,8,12,9,13,2,7,5,5,5,5,5,7,7,10,6,6,6,6,6,6,6,8,4,4,9,8,8,8,14,8,8,8,9,8,5,5,5,5,5,3,3,9,6,6,6,6,10,12,6,6,6,6,6,6,6,4,4,4,4,11,8,7,8,8,8,5,5,3,3,3,3,7,7,6,8,6,8,11,7,6,6,6,7,4,8,11,9,10,5,5,5,3,3,3,7,7,8,9,8,15,9,6,6,6,6,6,6,11,11,4,4,4,4,4,7,9,9,10,8,7,5,5,5,5,5,5,3,3,8,6,6,6,6,6,6,6,6,6,9,7,4,4,4,4,4,9,9,8,8,10,13,5,5,5,3,17,7,7,7,7,7,8,6,8,13,6,6,6,6,6,6,6,6,4,4,4,9,10,8,8,8,5,5,5,5,3,7,7,7,8,8,6,6,6,8,8,8,9,10,8,4,8,10,9,8,8,8,9,13,10,5,5,5,5,5,5,5,5,5,5,3,3,7,8,9,9,7,7,7,10,9,9,8,9,8,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,8,12,6,6,6,6,6,6,6,6,6,12,4,4,4,4,4,4,4,4,4,4,4,11,8,8,9,9,10,8,9,7,7,5,5,5,5,5,5,3,7,8,7,6,6,8,6,6,10,4,7,8,9,12,8,7,7,5,5,5,5,5,5,3,3,7,14,7,9,8,8,6,6,8,12,12,6,6,7,7,10,4,4,4,4,4,9,9,14,9,13,8,7,5,5,5,6,6,6,7,4,8,7,5,5,5,5,5,5,5,5,3,3,7,7,7,8,6,6,6,6,6,6,12,6,6,6,6,4,4,9,9,8,8,11,7,7,7,5,5,5,3,9,8,6,6,7,4,4,4,4,4,4,8,8,11,5,5,5,7,7,7,9,6,6,6,6,6,6,9,8,4,4,4,4,7,12,9,8,8,8,7,10,10,5,5,5,5,5,5,5,3,11,14,8,7,8,8,6,6,6,6,6,8,7,6,6,6,7,6,8,9,4,4,4,7,8,9,7,9,7,7,9,8,5,5,5,5,5,5,5,5,5,11,3,9,7,7,12,14,8,6,6,12,11,8,6,6,6,6,6,6,6,6,6,15,7,4,4,4,16,9,9,9,8,9,9,9,9,9,8,8,8,13,11,8,5,5,5,5,3,7,6,6,8,8,8,6,6,7,10,7,4,4,4,4,9,7,8,7,7,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,7,7,7,9,6,6,6,6,6,8,8,7,7,9,6,6,6,7,6,6,6,6,6,15,4,4,4,4,4,8,8,7,8,12,9,8,8,8,8,8,9,8,8,10,8,8,8,8,16,9,10,2,5,5,5,5,5,5,5,9,7,6,8,9,4,4,4,4,4,7,8,8,8,9,8,11,10,5,5,5,5,3,7,8,6,6,6,6,6,8,6,6,6,6,4,12,10,12,7,7,7,7,7,7,7,5,5,5,5,3,3,7,7,10,8,9,7,6,10,7,6,6,4,4,8,9,7,9,9,9,9,8,8,8,8,10,5,5,5,5,5,5,8,7,6,6,6,10,6,7,10,7,4,4,4,4,4,4,4,12,9,10,7,7,10,8,10,5,12,9,6,6,6,6,6,7,6,4,4,4,10,9,9,8,7,7,5,5,5,5,5,5,3,3,13,7,7,9,7,7,7,8,9,9,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,15,15,4,4,4,4,4,10,10,9,8,9,8,8,9,7,8,7,8,5,5,7,6,6,6,4,4,4,7,8,11,8,5,5,5,5,5,5,5,7,6,6,6,6,6,6,9,11,10,7,4,4,4,9,8,8,5,5,5,5,5,9,9,6,6,6,6,6,6,6,9,9,4,4,4,4,8,8,8,9,9,8,8,8,13,2,4,2,7,5,5,5,5,5,5,9,9,6,6,6,6,10,8,8,8,6,6,6,4,4,9,8,10,8,9,8,8,8,9,8,8,5,3,3,3,11,6,6,6,7,6,6,6,4,4,9,8,5,5,5,5,5,3,11,8,6,6,6,6,6,9,7,4,4,14,10,9,8,12,8,8,8,11,15,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,11,11,10,10,7,7,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,3,3,3,7,11,7,7,11,11,7,8,9,10,7,7,9,9,9,9,7,7,10,8,13,8,8,8,8,11,10,6,6,8,10,11,14,14,6,6,6,6,6,6,9,11,7,7,6,8,12,11,11,6,6,10,6,6,6,6,6,10,7,7,6,6,11,6,6,6,11,8,9,7,6,10,11,9,10,11,7,11,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,6,6,8,9,10,9,6,6,6,10,6,6,6,6,11,10,11,10,9,8,7,7,7,7,11,14,8,10,9,9,8,8,7,11,8,8,8,11,11,10,10,9,10,8,11,10,8,11,9,12,8,10,8,11,8,9,9,11,11,10,11,13,8,7,8,8,9,7,8,8,8,8,7,8,2,2,2,2,2,2,2,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,8,6,4,4,4,11,7,11,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,5,3,3,3,3,8,7,7,8,8,4,8,7,7,7,9,7,8,9,8,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,6,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,4,5,5,3,8,8,6,9,4,4,10,7,3,3,3,2,5,3,3,3,3,3,3,3,3,3,3,3,3,4,3,2,2,2,3,3,3,3,3,4,10,2,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,2,2,3,3,3,5,2,4,2,6,2,2,9,5,5,3,3,3,3,3,3,3,5,5,5,9,8,7,6,6,11,4,4,4,4,4,4,4,4,6,6,7,7,11,8,8,6,5,11,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,6,4,4,4,4,3,3,3,3,5,7,2,3,3,3,3,3,8,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,6,4,4,4,4,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,2,3,3,3,3,3,6,3,3,8,10,3,4,4,1,1,1,1,1,1,1,8,9,10,7,7,1,1,3,8,7,7,8,8,8,1,6,1,1,6,3,3,4,7,3,5,5,4,4,4,4,4,2,7,7,8,12,3,4,5,1,3,4,4,10,4,3,3,3,8,7,7,2,2,2,2,2,2,2,2,2,12,9,20,7,5,5,5,9,13,5,5,5,5,5,3,3,3,16,5,5,5,13,7,8,8,11,8,7,9,7,11,12,9,9,8,8,11,10,14,7,12,10,11,13,7,9,11,17,17,14,13,7,8,7,10,10,7,16,13,7,8,17,12,9,8,6,7,10,6,6,12,6,8,10,8,8,8,6,8,6,14,6,6,6,13,6,10,6,6,7,14,8,6,6,10,11,10,9,9,7,7,6,6,6,9,9,7,9,10,9,13,12,4,4,4,4,4,4,4,4,4,6,6,6,8,8,6,8,9,10,9,7,10,10,8,7,8,7,10,12,9,8,15,8,7,8,8,7,7,15,13,7,10,9,14,18,16,7,24,7,8,10,11,16,8,14,7,9,9,9,11,13,19,14,15,14,11,7,13,9,10,7,13,9,10,11,12,8,9,2,3,5,8,7,4,4,10,5,3,3,3,3,3,5,4,4,4,2,2,2,2,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,4,2,12,5,3,8,10,15,6,7,2,3,2,5,5,12,2,5,5,5,5,2,2,5,5,12,9,5,2,2,9,5,5,12,12,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,12,5,8,8,9,5,5,5,8,19,7,16,15,14,9,9,9,9,7,11,11,11,7,14,10,10,5,5,5,5,5,5,5,5,5,15,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,14,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,15,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,12,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,12,9,9,12,12,12,15,7,11,7,14,11,18,13,8,18,15,18,12,14,12,8,8,8,8,9,9,9,12,7,10,10,8,8,12,12,12,7,12,12,9,7,7,7,7,7,8,15,12,9,10,10,7,10,10,13,11,10,9,22,11,9,8,8,8,8,8,13,18,13,9,15,19,9,7,7,10,7,7,7,11,8,13,17,7,7,10,10,10,7,20,16,7,7,7,7,7,7,11,21,12,12,13,11,14,16,8,8,13,11,7,7,13,7,7,14,15,15,6,6,6,6,6,6,6,6,6,6,13,10,18,6,6,6,6,6,6,6,6,6,11,8,8,12,12,11,11,8,12,9,9,9,13,13,9,9,9,9,9,9,6,10,12,6,6,6,6,17,11,7,7,7,7,14,14,12,6,7,7,6,6,15,10,13,10,6,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,9,15,13,6,12,12,6,19,11,10,7,7,16,8,19,17,9,9,9,9,9,6,6,6,10,8,16,8,6,6,9,6,6,6,6,6,6,6,6,8,8,8,6,7,6,6,6,6,6,6,6,6,6,6,6,14,6,6,6,6,20,6,9,6,14,9,9,9,6,9,8,8,12,9,8,8,8,8,7,8,12,7,8,8,8,6,8,6,6,6,6,6,6,6,9,8,8,6,6,13,9,12,13,12,14,13,12,11,11,6,8,8,8,6,13,12,11,11,12,6,11,12,11,13,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,15,6,6,6,6,6,6,6,13,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,8,8,6,18,6,12,13,13,13,9,10,15,9,12,6,6,6,6,6,6,6,6,9,15,10,9,10,13,9,19,8,18,17,10,10,8,8,6,6,6,6,6,6,10,14,8,16,16,9,8,15,8,8,10,12,14,7,7,8,8,7,7,7,7,8,13,13,11,9,9,9,12,10,17,8,11,9,7,7,14,8,14,14,7,7,7,7,7,7,14,7,7,7,7,7,10,10,8,14,7,7,7,7,8,8,8,8,8,17,9,7,15,7,8,12,7,9,14,7,7,7,9,13,8,14,7,16,18,13,15,14,12,13,10,15,9,7,7,7,10,13,15,15,9,9,9,9,19,11,7,11,11,13,8,8,8,8,7,12,19,17,9,9,13,7,7,7,9,7,7,7,12,13,15,10,8,8,14,15,12,13,13,8,12,14,7,11,7,14,15,13,12,8,8,8,8,11,13,15,15,8,13,12,8,8,8,13,10,16,14,11,8,8,12,12,9,15,15,12,12,13,8,8,9,12,13,9,8,8,8,8,8,8,8,8,8,8,8,11,12,11,7,14,7,13,13,13,12,18,16,7,12,11,10,10,15,9,9,9,21,7,7,7,11,16,8,8,11,11,7,7,7,7,7,19,7,7,7,7,7,7,7,7,7,12,8,9,12,14,11,9,9,9,22,12,3,8,8,15,4,2,2,5,5,3,3,3,3,3,3,6,6,4,4,4,12,7,10,2,3,3,3,3,3,3,3,6,7,3,7,5,14,4,4,7,8,10,4,1,3,3,6,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,2,2,5,3,4,2,2,2,2,2,2,11,5,5,5,11,5,5,3,5,5,5,5,11,14,13,9,11,9,12,8,11,11,8,11,16,9,9,7,10,9,12,8,15,6,7,6,6,13,10,8,11,8,6,6,6,12,16,6,11,7,8,9,18,6,6,9,4,4,6,13,6,6,6,6,8,8,9,16,7,7,14,7,8,8,8,7,7,7,7,7,7,15,13,7,10,7,7,10,12,16,15,7,9,9,14,11,11,10,9,10,8,12,7,8,7,7,10,12,7,12,8,7,2,3,3,3,3,3,3,3,3,3,3,5,3,3,5,5,5,10,4,8,7,10,3,3,3,3,3,3,3,3,3,3,1,3,3,3,3,3,3,3,7,4,5,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,8,2,2,2,8,12,7,7,5,5,5,5,5,5,5,5,5,5,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,7,11,9,8,8,8,7,8,9,7,7,9,7,7,7,10,7,7,10,9,10,6,6,6,6,6,6,15,7,8,9,9,8,6,6,10,9,6,8,13,9,7,6,6,6,6,6,6,12,6,6,7,6,7,6,6,6,10,10,7,6,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,14,6,6,7,7,9,6,6,6,6,9,9,8,9,10,9,8,9,12,7,7,7,8,7,10,12,11,9,10,7,7,7,9,10,10,8,12,9,7,7,9,8,8,8,10,7,7,8,9,9,7,7,7,8,2,4,6,3,4,2,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,3,3,3,3,3,3,3,3,5,8,6,4,7,3,3,3,3,3,3,3,12,3,3,3,3,3,3,4,4,2,3,5,3,4,7,3,3,3,3,3,3,4,3,3,3,3,3,3,3,4,3,3,6,4,3,4,2,2,2,5,3,3,3,3,3,5,4,4,4,4,7,6,8,9,2,2,2,2,3,3,3,5,7,2,3,3,8,7,7,2,2,8,5,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,7,7,6,10,6,9,7,11,4,6,8,8,7,8,4,5,5,5,3,3,11,8,9,6,6,8,7,4,4,7,8,7,2,2,3,3,3,3,4,3,3,3,3,3,3,3,3,7,2,2,5,3,3,2,3,3,3,3,3,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,12,5,5,3,3,3,5,10,12,6,15,4,6,6,7,14,9,3,3,3,3,3,8,2,2,3,5,3,3,3,3,3,3,8,8,8,7,5,8,4,6,11,2,2,6,7,2,9,8,5,5,3,3,5,5,7,7,6,6,10,6,6,8,9,7,4,4,4,4,7,6,6,7,7,10,9,8,11,8,3,3,3,3,3,4,4,2,3,3,3,3,3,7,6,2,5,6,7,6,4,8,9,11,2,2,3,3,3,3,3,3,3,2,2,5,3,3,3,3,3,9,9,6,4,8,7,7,5,9,8,6,8,7,8,5,5,5,5,5,3,3,3,16,8,7,7,7,8,7,7,7,7,9,6,9,6,10,7,7,7,6,10,8,9,11,11,8,4,4,10,8,8,6,9,6,11,8,8,8,15,7,8,9,5,3,3,3,3,3,5,11,2,2,3,8,9,10,3,2,2,2,2,2,2,3,6,4,2,2,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,11,5,3,3,3,3,3,3,3,3,6,7,4,4,2,3,3,3,3,3,3,3,3,12,7,4,12,4,6,5,4,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,3,4,4,11,10,6,4,6,10,8,3,3,3,3,3,3,3,3,5,4,4,4,2,2,2,2,2,2,2,2,5,3,4,4,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,10,5,5,5,5,5,5,3,3,3,3,3,3,3,3,7,8,8,7,13,12,10,10,8,8,7,7,9,12,11,6,6,8,8,9,7,7,7,10,15,10,4,4,4,4,4,11,8,8,9,7,9,14,14,12,2,2,2,2,2,2,2,3,3,3,3,3,2,2,12,5,5,5,8,11,10,7,9,3,8,7,3,15,13,11,4,4,2,2,2,19,7,5,5,3,3,3,3,3,3,3,5,22,18,6,14,17,4,4,19,16,18,2,3,3,2,3,2,3,3,6,4,2,3,3,2,5,3,3,3,3,3,3,3,9,9,2,3,2,2,2,3,3,3,5,7,14,7,7,12,9,13,6,11,6,10,9,7,7,8,12,12,8,8,8,10,7,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,5,8,10,7,8,11,8,12,9,4,7,7,9,13,2,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,3,3,3,3,5,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,3,2,3,3,3,3,5,2,2,2,2,5,5,5,5,3,3,3,3,3,3,3,3,3,7,7,7,7,7,8,8,8,8,8,12,9,8,8,9,8,6,17,6,6,6,8,8,6,6,6,6,6,6,6,6,6,6,6,7,4,4,8,8,9,9,9,7,7,7,7,7,7,7,9,9,9,7,8,8,8,10,7,13,10,8,9,3,3,5,13,3,3,3,3,3,7,7,6,6,10,13,11,11,8,8,9,8,9,9,10,10,10,11,10,10,13,13,16,15,11,12,9,9,10,9,11,10,9,9,14,7,8,3,10,7,7,3,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,6,7,2,2,3,3,3,3,3,3,3,3,4,11,6,7,4,6,2,2,3,3,3,1,3,3,3,3,3,3,6,4,4,2,2,2,3,3,3,3,4,4,6,6,6,6,5,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,11,6,10,9,12,7,7,11,14,9,7,12,3,3,7,12,11,12,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,5,5,5,5,5,5,5,5,11,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,3,10,3,3,3,11,3,5,9,11,8,12,14,9,7,8,7,7,11,11,7,7,10,9,8,10,9,7,7,7,7,7,7,8,8,7,11,8,8,8,7,7,10,8,7,13,12,7,17,10,8,8,11,7,11,11,14,7,11,7,8,6,9,20,8,7,9,16,7,10,6,11,10,8,9,7,16,11,11,9,8,9,8,8,8,11,8,15,8,8,9,7,8,8,11,10,7,5,7,10,10,15,7,7,7,8,7,8,8,10,11,10,10,10,11,11,7,8,6,8,8,8,10,6,8,6,6,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,16,6,15,6,7,11,11,7,9,10,11,13,10,6,16,8,10,12,11,6,6,6,6,6,6,6,10,6,10,7,7,7,7,11,7,11,6,6,6,6,6,6,17,7,7,6,6,12,22,6,6,6,6,6,8,6,6,6,6,7,6,6,5,6,6,8,11,6,9,14,11,9,11,7,7,8,6,6,6,8,10,9,6,6,6,6,9,7,6,6,6,6,6,15,6,4,4,4,6,4,17,8,11,6,6,9,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,10,6,10,6,6,6,6,12,8,6,6,6,6,6,6,6,6,6,9,6,6,6,6,18,6,6,6,8,9,10,7,8,9,10,11,7,13,6,8,8,6,6,14,7,7,7,7,10,7,14,9,6,6,9,15,9,7,14,6,11,14,13,7,12,8,7,7,7,7,7,12,7,10,9,16,6,8,6,5,17,6,8,10,4,6,4,10,15,17,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,4,4,11,7,4,4,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,19,17,6,10,11,6,6,6,6,18,6,6,11,4,4,4,5,6,6,6,9,5,6,4,6,6,4,6,6,6,6,10,6,6,4,6,6,10,6,10,6,6,6,6,11,6,6,10,6,6,8,6,6,6,8,6,11,4,11,9,10,9,11,4,8,4,11,12,7,9,8,6,7,7,8,12,12,11,13,10,11,7,7,7,9,7,11,10,7,7,7,16,11,10,11,17,9,9,8,8,7,7,7,9,7,7,7,14,7,13,9,11,10,14,10,10,12,11,10,7,10,5,14,8,8,8,9,7,8,7,7,9,8,7,8,7,7,7,7,7,7,7,11,8,10,8,7,8,14,11,8,9,9,9,8,24,10,10,12,7,7,15,11,8,8,12,11,8,9,9,7,8,9,10,11,10,11,7,12,7,7,11,9,8,14,13,12,8,11,10,8,8,7,7,14,9,10,8,9,11,7,14,8,8,13,8,8,12,7,10,14,14,11,9,10,9,9,7,7,11,11,13,9,13,5,5,5,7,9,5,11,12,14,8,7,7,11,10,9,7,8,8,7,10,11,11,5,5,7,5,5,5,7,7,15,7,7,8,7,15,12,12,10,7,8,7,11,7,7,7,23,11,8,8,11,10,7,8,11,7,19,7,7,6,9,9,9,11,3,4,7,8,6,6,4,10,8,2,2]),wP=new Uint16Array([0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,17,1,1,1,12,1,12,1,12,13,1,1,1,1,12,1,12,1,1,1,1,1,14,21,1,1,1,1,1,1,1,19,12,1,1,1,1,1,1,1,20,1,1,1,16,1,18,1,1,15,1,1,1,1,12,1,1,1,1,1,1,22,1,1,1,12,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,1,24,25,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,12,12,12,12,1,32,0,0,0,1,1,1,1,35,34,1,1,1,1,1,33,1,1,1,1,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,38,0,0,0,0,39,40,0,0,0,41,0,12,1,1,12,1,1,1,1,44,45,45,45,44,45,44,44,46,45,44,45,44,44,44,44,44,44,46,44,44,44,44,44,44,45,47,47,45,44,44,44,44,44,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,50,52,50,50,50,52,50,51,50,53,50,51,51,50,50,50,51,53,51,53,50,51,51,12,55,55,54,56,51,53,50,50,48,49,57,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,60,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,67,1,12,1,1,66,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,76,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,12,1,1,1,1,89,1,91,1,1,1,1,1,1,1,1,94,1,1,1,1,1,1,1,1,1,1,1,1,0,1,97,97,1,1,12,1,100,1,1,1,1,1,1,1,98,1,99,1,101,1,1,1,1,1,102,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,110,111,1,1,1,1,1,1,113,113,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,121,122,1,1,1,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,126,123,125,120,1,124,1,1,114,1,1,1,1,117,1,127,1,1,1,1,1,119,1,108,1,109,1,12,128,106,1,112,1,1,1,1,1,107,115,1,12,12,12,118,116,1,1,1,1,1,1,0,0,0,0,1,12,12,1,1,1,1,1,12,134,1,1,1,1,1,1,1,1,1,1,1,12,136,1,1,1,1,1,1,1,1,137,138,12,12,135,133,45,45,140,50,50,139,142,141,1,1,0,0,0,0,0,0,0,0,0,0,0,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0,0,0,1,0,144,132,1,0,1,12,12,1,1,1,1,1,0,0,0,0,0,0,0,1,148,147,20,1,1,12,12,1,20,12,12,1,1,1,1,1,134,1,1,152,1,1,1,1,153,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,1,136,1,1,152,1,1,1,1,153,1,1,134,1,1,1,152,1,1,1,1,153,1,1,134,1,1,1,1,1,1,1,1,134,1,1,1,1,1,1,1,1,1,1,1,160,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,1,1,1,1,1,134,1,1,1,1,152,1,1,1,1,153,1,1,1,134,1,1,152,1,1,1,1,164,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,167,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,154,158,158,12,1,12,166,1,1,1,1,1,158,158,158,154,1,1,1,157,158,161,165,1,1,1,1,157,157,1,1,156,154,154,157,170,156,170,1,1,168,1,156,155,157,1,1,1,1,157,1,159,1,1,1,12,1,162,1,162,1,1,1,162,161,163,169,156,154,1,1,1,1,1,1,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,173,172,173,172,172,172,172,174,174,172,173,172,173,172,172,12,12,12,12,12,1,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,193,1,1,1,1,12,199,200,201,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,151,1,1,1,1,1,1,1,1,1,1,1,196,1,1,1,184,1,210,1,1,1,208,1,1,205,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,12,1,1,1,1,1,1,1,1,190,1,1,1,186,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,182,1,1,1,1,1,1,1,191,1,1,1,1,195,1,1,1,1,171,1,1,189,1,1,1,192,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,180,1,12,1,1,12,1,1,1,1,183,1,1,1,188,1,203,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,209,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,194,1,1,1,1,1,12,1,1,1,1,1,1,1,1,176,12,1,1,1,178,12,1,1,1,1,1,1,1,198,1,1,1,1,1,1,1,1,1,1,177,1,1,1,1,1,1,204,1,1,1,181,1,1,1,187,1,12,1,1,12,1,1,1,1,1,1,1,1,1,1,191,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,175,1,1,1,1,1,1,1,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,206,1,1,1,1,1,1,1,1,1,1,1,1,1,207,1,1,12,1,1,1,1,179,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,197,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,1,1,1,1,1,1,1,1,1,202,1,1,12,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,220,0,0,0,0,0,221,0,0,0,0,0,0,1,12,1,1,1,225,1,1,1,0,226,223,224,1,1,1,1,1,1,231,1,233,1,1,1,1,1,1,1,1,1,1,1,229,1,1,1,1,1,235,1,1,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,234,1,1,1,12,1,1,1,1,230,1,1,1,228,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,232,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,241,13,1,1,1,12,12,238,239,1,1,1,1,240,1,1,12,1,1,1,1,1,1,1,242,1,1,12,16,1,1,1,1,1,1,1,243,1,1,1,12,12,1,1,1,1,1,243,12,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,256,256,1,0,0,0,0,0,1,12,0,0,0,0,0,0,0,0,172,261,262,1,12,1,1,1,1,12,264,1,1,263,1,1,266,1,1,1,1,1,1,1,1,1,0,1,1,1,271,272,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,12,1,0,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,12,0,283,0,0,284,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,12,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,60,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0,308,0,0,0,0,0,0,0,0,0,310,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,327,327,328,327,0,185,1,1,13,323,1,321,0,0,0,0,1,0,0,0,324,1,1,329,1,205,1,1,1,1,1,322,1,319,1,325,1,317,1,326,1,318,1,1,1,1,1,1,1,12,1,1,1,12,1,12,320,320,1,1,1,316,184,1,1,12,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,12,1,1,1,1,315,1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,332,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,266,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,372,372,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,364,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,1,340,351,1,1,339,374,1,345,1,1,337,369,1,1,355,336,341,1,1,1,348,379,357,1,1,1,1,1,1,358,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,367,371,0,0,79,1,1,0,365,342,378,343,346,353,1,368,0,1,0,79,362,360,1,0,0,1,1,1,0,0,0,0,381,1,1,352,1,79,1,0,1,1,1,384,1,0,0,79,359,0,1,338,1,1,1,0,1,1,361,1,0,1,1,1,0,1,386,349,1,1,0,1,0,0,377,0,1,1,1,79,370,1,1,366,363,1,1,1,1,1,1,1,1,1,1,1,344,1,1,1,1,1,1,1,1,1,1,1,376,0,79,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1,380,1,1,1,0,0,383,0,0,0,1,356,1,0,79,382,1,0,0,0,0,385,1,1,0,0,1,0,1,0,354,0,350,0,1,1,1,0,1,1,0,373,347,375,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,1,400,400,1,1,12,12,1,400,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,412,1,1,0,1,1,1,1,205,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,430,430,1,1,0,0,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,442,1,441,1,1,1,1,1,1,1,1,445,1,12,12,1,1,1,1,1,12,1,1,1,1,453,1,1,1,455,1,1,1,1,1,1,1,1,1,1,452,1,447,1,1,1,1,435,1,1,1,1,1,1,1,1,448,12,1,1,1,1,454,1,1,1,449,444,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,317,1,433,1,1,12,451,1,1,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,437,1,1,1,1,1,1,1,1,1,1,1,454,1,1,1,1,317,1,450,1,1,1,439,1,1,1,1,1,440,1,456,443,1,1,1,1,1,438,1,1,1,1,1,1,1,1,1,434,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,446,1,1,1,1,1,1,1,12,1,1,1,1,1,436,1,1,1,1,1,1,1,220,457,1,1,1,1,1,12,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,0,0,462,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,466,466,466,466,466,466,466,0,466,466,466,466,466,1,466,466,466,0,466,466,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,471,470,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,475,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,468,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,469,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,477,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,474,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,478,473,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,472,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,476,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,1,1,1,1,1,1,1,488,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,198,198,1,492,1,1,1,491,1,1,1,1,487,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,489,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,493,1,1,490,1,1,1,1,1,1,1,1,372,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,494,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,505,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,12,1,507,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,12,12,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,1,0,0,0,1,0,0,0,1,60,1,1,12,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,526,1,1,1,1,1,1,1,527,1,1,1,1,1,1,1,525,1,1,12,1,529,239,1,1,12,12,1,1,12,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,533,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,539,1,1,1,1,1,1,1,1,1,1,1,1,1,1,132,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,107,1,1,12,1,1,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,548,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,144,1,1,1,228,1,1,12,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,1,572,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,577,1,220,1,328,1,1,1,1,1,1,1,1,1,0,0,578,1,1,1,1,0,580,0,79,0,579,0,1,1,1,0,1,1,1,1,1,1,12,0,0,0,0,1,0,0,0,0,0,0,586,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,582,582,0,585,583,582,582,582,582,582,587,582,582,591,582,582,582,582,582,582,582,582,582,582,588,585,582,582,585,582,582,582,582,582,582,582,582,582,582,582,582,582,583,582,582,582,582,582,589,582,582,582,582,582,582,0,0,0,1,590,1,1,1,1,584,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,12,595,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,12,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,12,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,65,280,306,411,535,0,4,68,236,254,282,307,334,388,413,0,499,519,536,597,9,0,61,88,398,409,429,575,0,497,518,532,612,0,30,6,0,461,500,602,560,70,0,7,285,255,389,463,416,538,79,598,0,576,309,418,465,9,105,288,506,6,30,0,311,79,391,79,483,10,6,131,248,275,0,613,509,0,563,0,64,6,6,251,95,2,432,399,410,596,0,6,0,6,286,103,6,561,501,540,0,464,390,273,287,8,71,104,599,543,392,312,300,419,146,74,290,546,510,601,564,335,330,479,6,75,149,11,0,249,522,547,565,514,551,570,611,36,6,260,295,333,304,218,30,528,553,218,42,216,265,296,305,406,423,481,274,0,73,562,0,403,417,299,79,247,79,0,581,545,504,292,421,79,393,387,0,0,0,9,555,571,217,0,424,407,531,516,573,615,85,218,43,297,396,425,569,0,511,293,276,79,215,80,28,390,30,6,394,331,303,604,592,524,550,513,0,258,81,30,405,422,0,30,426,0,219,593,517,9,408,427,218,248,86,222,594,574,557,482,428,397,250,227,87,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,620,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,82,0,129,0,0,84,549,0,0,0,0,0,0,0,27,0,552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,503,0,257,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,294,0,0,0,0,0,0,0,617,0,0,0,0,0,616,0,0,0,0,0,0,0,0,0,0,0,0,0,0,395,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,0,0,0,0,0,0,495,0,0,0,0,0,0,404,0,0,0,0,0,0,0,0,0,0,0,0,0,211,0,0,0,0,0,0,0,0,0,0,515,0,0,0,0,0,0,0,0,0,0,0,0,496,0,0,0,0,0,0,0,0,0,0,0,0,0,0,269,281,0,0,0,0,0,530,277,0,0,0,0,0,0,0,0,0,0,0,0,0,512,0,0,0,0,0,0,0,0,0,0,0,458,0,0,0,314,0,0,0,0,0,0,253,0,0,0,0,0,0,23,0,0,0,0,568,0,0,0,0,600,521,0,0,0,0,244,0,0,0,0,0,0,0,0,0,480,0,0,0,0,0,62,0,0,0,267,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,0,279,610,0,72,0,0,0,0,0,0,0,0,0,619,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,278,0,0,0,0,0,0,567,0,0,0,0,0,0,523,0,0,0,0,0,0,0,0,0,566,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,0,502,0,0,0,0,0,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,83,0,0,0,0,0,0,0,0,0,0,0,0,486,0,485,0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,459,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,289,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,537,0,0,0,0,0,0,0,0,298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,237,0,0,0,0,0,0,0,0,0,0,84,0,606,0,0,0,0,0,0,0,0,0,0,0,0,245,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,609,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,520,0,0,0,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,498,0,614,0,0,431,0,0,0,0,0,0,0,0,0,0,0,0,402,0,0,0,544,0,93,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,29,92,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,214,0,0,0,0,0,0,558,0,270,0,0,130,0,0,0,0,0,559,0,0,0,0,0,0,0,414,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,313,0,0,0,0,0,5,0,0,0,0,0,0,0,301,0,0,0,0,0,0,0,0,0,0,0,0,0,534,0,0,0,415,0,0,401,0,0,0,0,0,0,603,0,0,0,541,0,0,90,0,542,0,0,0,0,0,0,0,0,0,0,508,460,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,268,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,608,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,618,0,0,0,0,0,556,0,0,0,0,0,0,0,0,0,0,302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,605,0,0,212,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,623,623,623,623,623,623,623,622,624]),q3="orgmilcomschnetedugovdrrformsfeedbackofficialaccoorgmilschnetgovmagazinemediaunioncargopilotgroupcaarespressworksaerodromeworkinggroupair-traffic-controlaircraftaccident-preventioneducatormarketplaceambulanceinsurancecateringairportrepbodyenginesoftwaremodellingair-surveillanceconsultingchartertrainermaintenanceservicesdesignflightskydivingfreightassociationstudentgroundhandlingdgcafuelclubtaxicrewshowballooningexpresstraderbrokerauthoragentsairtrafficjournalistsafetyconsultantmicrolightaccident-investigationparachutingequipmentproductionfederationrecreationscientistnavigationengineertradingglidingleasingresearchpassenger-associationentertainmentparaglidinghangglidingaerobaticrotorcraftemergencycertificationgovernmentaeroclubexchangelogisticschampionshiphomebuiltcouncilconferencecontrolairlinecivilaviationjournalorgcomnetedugovcoorgcomnomnetobjofforgcomnetuwukiloappsframerorgmilcomnetedugovcoradioorgcomnetcommuneedogpbcoitgvorgedugov*spreviewfrontendrelayononstagingupid*mtls*privatelinktypedreamdeveloperbravemochawindsurfaivenmirenupsunwnextbegetngrokclerkwale2bwebcsbrunputerflutterflowspawnbaseshiptodaymagicpatternsnetlifyondigitaloceanrailwayhostedclaudehasurabotdashvercelgithubluyanigadgetreplitcloudflaretelebitedgecomputeevervaultdetaexponyatnoopencrpplxzeaburwasmerframerzeropsconvexmedusajsspritesonherculeseasypanelstreamlitsnowflakemesserliloginlinehackclubnorthflankbase44corespeedadaptableleapcellngrok-freeclerkstagelovableon-fleek*us-west-3ap-south-2us-central-2us-central-1eu-central-1ap-south-1us-west-2us-east-2eu-north-1ap-north-1us-west-1us-east-1*rcloudintsegorgmilcomgobbetnetintedugovturmusicasenasamutualcoopip6uriurnin-addre164homeirisgovdixdaemoncloudnssthwien*inexexkunden4accogvormymyspreadshop4lima2ixortsinfofuturecmsfuturehosting12hpprivfuturemailinglima-cityfunkfeuer123webseitednshomemelmyspreadshopcloudletswasantqldvicactnswtascatholicwasaqldvictasvpsidwasantozqldorgcomvicasnactnetedugovnswtasconfhrsncomairflowlambda-urltransfer-webappairflowtransfer-webapptransfer-webapptransfer-webapp-fipstransfer-webappeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1privatenotebookstudiolabelingnotebookstudionotebooknotebook-fipslabelingnotebookstudionotebook-fipsnotebookstudio-fipsnotebook-fipsnotebookstudionotebook-fipsnotebookstudioeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2experimentsus-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1onrepostsagemakercopporgmilcompronetintedugovbiznameinfoshoprsorgmilcomnetedugovbrendlyresolvenzauscotvstoreorgcomnetedugovbizinfoidacaicoittvorgmilcomschnetedugovinfocloudezproxyacmymyspreadshopkuleuvenwebhostingtransurl123websitecloudnsinterhostsolutionsddns5476103298edgfacbmlonihkjutwvqpsryxzbarsycoororgcomedumyftpno-iporxcloud-ipfor-somemmafanfor-morewebhopselfipjozidyndnscloudnsdscloudfor-thefor-betteractivetrailcoeconorestooteorgcomeconeteduassurmoneyafricaarchitectesrestaurantloisirstourismavocatsinfoagrounivcoorgcomnetedugovtvdeportesaludtksatorgmilcomwebgobnetinteducienciaboliviarevistacooperativaempresanombreindustriamusicapatriamedicinademocraciapoliticapuebloindigenaplurinacionalarteblogwikiinfoagrotransportenoticiasprofesionalacademiaeconomiaecologiamovimientotecnologianaturalsimplesitecepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesmscepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesms*biaamfmtcmptvfeirasampajampanatalbelemananiradiog12medindfndbmdtrdthepoaggfjdfdefinfenflegsegongengcngorgzlgslglogppgmillelqslcimcomnomadmjabimbbibbsbabcrectecsjcetcpscpvhudieticriapipsiecnbiorioecogeoteoodoproatoartfstmatvetdetbetnetcntnotfotgrueduajuespappreptmpemparqsrvadvdevgovntrturagrjorfarjusmusdesvixxyzcozfozslzbhzmaringasantamariacampinagrandegoianiasorocabafloripasaobernardocuritibaboavistarecifeaparecidasaogoncasalvadorcuiabamorenamacapalondrinacontagemsocialfortalmaceioleilaoosascoriobranconiteroi9guacutcheblogflogvlogwikitaxicoopmanauspalmascaxiasjoinvillebaruericampinassantoandreribeiraoriopretoweorgcomnetedugovv0windsurfshiptodaycloudsitecoaccoorgnetgovofmilcomgovmediatechzacoorgcomnetedugsjgovmydnspenfnlabnbmbgcbcqconcontnuyksknsmyspreadshopno-ipawdevboxbarsyonidatemfuinabusavinstanceseceuguukussryzespawncsxcloud-ipmyphotosfantasyleaguetwmailcleverappsscrappingccwucloudnsftpaccessgame-serverccgovobjectsrmalpgcust*svcalp1aeappenginermalpgmyspreadshop4lima2ixsquare7cloudscale123websitefirenet12hpflowgotdnslinkyard-cloudcloudnslima-citydnskingobjectstorageedaccogoorusorgcomnetinteduaéroportxn--aroport-byaassogouvcomilgobgovcloudnses-1eu-west-1us-east-1euvipit1eurarubait1s3lbwebsites3websiteru-spbru-mskelasticcsrunstnukukcaukusnl-ams-1fr-par-1fr-par-2functionsnodess3ddlwhmrdbfnck8sifrs3-websitecockpitscblmgdbdtwhkafkpubprivs3ddlwhmrdbk8sifrs3-websitecockpitscblmgdbdtwhkafks3ddlrdbk8sifrs3-websitecockpitscblmgdbdtwhkafkk8sscalebookpl-wawfr-parnl-amsbaremetalsmartlabelinginstancesdechk2kuleuvenlaravelvoorloperurownoxazapscwhstgrvaporobservablehqelementorantagonistreclaimjoteluluencowaydiademjelasticmatlabmagentositetrendhostingaxarnetperspectajenv-arubajelejoteravendbemergenttrafficplexconvexkeliwebserveboltbegetcdnstaticson-rancherprimetelonstackitunison-servicesdnshomelinkyardbarsyjelecloudnscocomnetgovmycn-northwest-1cn-north-1s3s3-accesspoints3-websites3s3-accesspointrdsdualstacks3-deprecatedemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspoints3s3-accesspointrdsdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicn-northwest-1cn-north-1cn-northwest-1ebcomputeelbcn-north-1airflowcn-northwest-1cn-north-1oncn-northwest-1cn-north-1amazonawssagemakeramazonwebservicesdirectasgdsdhehahljlnmhbacscahqhshhihnlnynsnmofjbjzjxjtjhkcqtwgsjssxnxjxgxxzgz網絡网络公司orgmilcomnetedugovxn--55qx5dcanva-appsxn--io0a7iquickconnectcanvasitekhsjxn--od0algmyqnapcloudsrvrlessclustersrealtimestorageleadpagescarrdcrdorgmilcomnomnetedugovhidnssupabaserdpareplmypiumsoxmitotaplpagesfirewalledreplitowodevwebview-assetsvfswebview-assetss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecateds3-websites3-object-lambdaexecute-apis3s3-accesspoints3-websites3-accesspoint-fipss3-fipss3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipss3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9vfss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1us-northeast-1ap-southeast-1me-south-1af-south-1ap-south-1ap-southeast-7us-west-2eu-west-2ap-east-2us-east-2ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ap-southeast-6ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1mrapaccesspoints3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3eu-west-3ap-south-2eu-south-2computes3-ap-northeast-2elbrdss3-ap-east-1s3-sa-east-1s3-us-gov-west-1s3-eu-central-1s3-ca-central-1eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3s3-website-us-west-2s3-website-eu-west-1s3-external-1eu-central-1me-central-1ca-central-1il-central-1s3-us-west-1s3-eu-west-1s3-website-sa-east-1s3-website-ap-southeast-2ap-northeast-1ap-southeast-1s3-us-west-2s3-eu-west-2me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2s3-website-ap-southeast-1s3-1s3-globals3-ap-northeast-3eu-north-1airflowap-southeast-2s3-us-gov-east-1s3-fips-us-gov-east-1s3-me-south-1s3-ap-south-1ap-northeast-2s3-website-us-west-1ap-southeast-5s3-eu-north-1s3-ap-southeast-1s3-website-us-gov-west-1compute-1s3-eu-west-3us-gov-west-1s3-website-ap-northeast-1us-gov-east-1s3-fips-us-gov-west-1s3-website-us-east-1s3-ap-southeast-2ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3-us-east-2s3-ap-northeast-1authauthauth-fipsauth-fipseu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1rservicesbuilderstg-builderdev-builder*ociocpocsdemoinstanceeu-west-3eu-south-2ap-southeast-3ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1previeweu-4us-4us-1eu-1us-2eu-2us-3eu-3appspaasrag-cloudrag-cloud-chjcloudjcloud-ver-jpcdemonodebalancermembersipeuxvsoncillaocelotonzayalilynxsphinxfentigercustomercaracalo365cloudstaticxendevapp001testcode-builder-stgplatformapimediasiteprojedrydpagesjsu2u2-localx0desazacncoitrueu4uhkukgrbrushatenadiarymyspreadshopfrom-flfrom-wvwebspace-hosttheworkpchatenablogservesarcasmapplinzisakuratanwixsiteappchizigiizeis-into-carsdnsiskinkyadobeaemcloudis-a-therapistpgfogmyvncdojinis-an-actress1kappfldrvkozowqa2jpnmexprgmrfirewall-gatewaydynnscafjsfbsbxooguyxnbayfrom-gawoltlab-demois-a-anarchistwiardwebteaches-yogadattowebtb-hostinglive-websiteservegamegotpantheonfrom-nhsubsc-payfrom-ohvipsinaappfrom-cadyndns-officehomelinuxfrom-mahercules-appservebbsstreakusercontentfrom-okfrom-wyfastly-terrariumis-a-llamaqualyhqportalserveexchangeon-vaporvivenushopciscofreakgrayjayleaguesmetaaiusercontentfrom-iais-a-libertariansaves-the-whalestaveusercontentyolasiteoperaunitepoint2thisis-a-catererlinodeusercontentfrom-vagithubusercontentsells-for-lesshosteurcanva-appsplaystation-cloudddnsfreefrom-pafrom-prfrom-waddnskingoutsystemscloudhotelwithflightmydattois-a-nascarfanmydbserverminiserverdamnserverservehumouris-a-playerfrom-nvfrom-nmemergentagentgentappsamplifyappfrom-kyis-an-accountantnfshostserveircfrom-akpythonanywherestackhero-networkpostman-echolikescandydyndns-mailobservableusercontentserveftpfreeboxosfrom-utcdn77-storageamazonawsneat-urldyndns-serverlinodeis-a-teacherfrom-vtgleezemythic-beastsus1-pleniteu1-plenitla1-plenitpaywhirlservecounterstrikejdevcloudhealth-carereformis-into-animegoogleapisis-a-painterafricaisa-hockeynutatmetais-an-actora2hostedis-a-democratdatadetectest-le-patrondigitaloceanspacesis-a-designeris-a-hunterlinodeobjectstemp-dnsissmarterthanyoufrom-arsimplesiteevennodetownnews-stagingis-a-liberalgooglecodejelasticservemp3stdlibqualyhqpartnerdyndns-free1cooldnsest-a-la-masiondrayddnsdynuddnsfrom-orfrom-miis-a-bloggerfrom-himydobisscanvacodeis-an-engineerest-a-la-maisonupsunappdevinappswafflecellmyasustorwpenginepoweredfrom-ctservep2psame-appmyshopblocksthingdustdatalikes-piediscordsezis-with-thebanddev-myqnapcloudlpusercontentis-leetshopitsite3utilitiesis-a-personaltrainersinaappladeskis-a-cheflogoipselfipbase44-sandboxnospamproxyalibabacloudcsmesswithdnsauthgearappsiamallamawithgooglelutrausercontentmochausercontentframercanvasmytabitdyndns-homew-credentialless-staticblitzcpserverdiscordsaysis-a-nurseappspotatlassian-isolated-3premotewdfrom-mtwixstudiocode0emm180rmyactivedirectoryawsappsmytuleapdnsabrpolyspaceqbuserrenderbuiltwithdarkboutirgotdnsabrdnsdopaascanva-hosted-embedawsglobalacceleratorhomesecuritypcmyiphostditchyouripclever-clouddyndns-ipon-aptibleis-a-musiciansecuritytacticsappspaceusercontenthomeunixstrapiappsame-previewcf-ipfsmycloudnaselasticbeanstalkis-certifieddontexistkasserverik-serverdrive-platformatlassian-3pfirebaseappherokuappawsapprunnerbarsycenteris-a-cubicle-slaveservehttpmyshopifyis-a-guruquicksytessiiitesorsitesmagicpatternsappis-a-cpameteorappfrom-wiis-a-rockstarbumbleshrimpdattolocalreadthedocs-hostedfrom-rifamilydsdyndns-picsplesknsbplaceddnsaliasdynaliasdyndns-remotedoomdnsip-ddnsblogdnsis-a-doctorroutingthecloudamazoncognitobarsyonlinedsmynasddnsgurucloudflare-ipfsdeus-canvasfrom-idsmushcdnpagespeedmobilizerdyndns-at-homeunusualpersonhosted-by-previderis-a-republicandyn-o-saurstreamlitappworkisboringonthewificprapidqualifioappis-uberleetis-slickgetmyipwpdevcloudtypeformdyndns-at-workgentlentapismynascloudw-corp-staticblitzfrom-ingeekgalaxyservebeerfrom-mdonrenderspace-to-rentaivencloudappspacehostedonfabricawafaicloudcodespotblogspotatlassian-3p-us-gov-modfrom-ndfrom-msis-a-techieis-a-studentcustomer-ociis-a-photographerdurumisfrom-ksmassivegriddyndns-wikiis-an-entertaineris-a-hard-workermysecuritycamerafrom-mnrackmazedyndns-blogis-a-bulls-fanwritesthisblogfreemyipsimple-urlfrom-sdreservdauthgear-stagingest-mon-blogueuris-into-gamesrice-labsxtooldevicesakurawebis-an-anarchistoraclecloudappsdyndns-worksells-for-urhcloudfrom-dcfastvps-serverwpmucdnis-a-geekscrysecfrom-txis-into-cartoonsmodelscapetrycloudflarelocaltonetstreak-linkbalena-devicesfrom-njforgeblocksfreebox-oswebadorsitefrom-ncdoesntexisthobby-sitestreaklinkshomesecuritymacownprovidertuleap-partnersdattorelaywphostedmailalpha-myqnapcloudservequakeis-a-socialistservehalflifepivohostingdynuhostingquipelementsw-staticblitzdyndns-webfrom-deproject-studyaliases121is-not-certifiedhercules-devis-a-financialadvisorservepicsis-a-greenloseyouripfrom-ilwithyoutubemwcloudnonprodwiredbladehostingdnsdojofrom-tnpixolinomyqnapcloudis-an-artisthostedpiis-a-landscaperauiusercontentoaiusercontenton-forgeis-a-conservativedreamhostersnet-freaksapps-1and1is-goneencoreapifastly-edgefrom-nesalesforcefrom-scdeployagentoraclegovcloudappsfrom-alis-a-lawyercechirevultrobjectsstufftoreadisa-geekddnsgeeklovableprojecttry-snowplowfrom-moblogsyteis-a-bookkeepernogmyforumravendbmyboxdeelementoredsaacficogoorinforgcomgobnatneteduidstoreorgcomnetintedudevnomepublorgcomneteduathgovtestscalculatorspaynowinfoquizzesresearchedcloudnsfunnelsassessmentsjscaleforcetmacltdorgmilcompronetgovbizpresseklogesrsccloudcustomfltusrcloude4corealmgovmunicontentproxy9metacentrumdyndyndyndnsdynpagespages-researchitionoccustomercomymyspreadshopipv64diskussionsbereich4limacomrub2ixfirewall-gatewayddnssspdnsbarsykeymachinesquare7myhome-serverspeedpartnercommunity-proschuldockxenonconnectgünstigliefernbwcloud-os-instancedyndnssecmy-routerxn--gnstigliefern-wobin-butterl-o-g-i-nisteingeekin-dslin-berlinin-brbfuettertdasnetzleitungsenin-vpnlcube-serverdyn-ip24logoipdyn-berlinruhr-uni-bochum12hpgoipsrvdnsfruskygit-repossvn-reposinternet-dnsgünstigbestellenhome-webserverxn--gnstigbestellen-zvbbplacedheimdnscosidnswebspaceconfiglima-citydyndns1istmeinvirtualuserschulplattformmy-gatewayddnsseclebtimnetztest-iservmein-iservvirtual-userhome64iservschuletaifun-dnstraeumtgeradeschulserverdynamisches-dns123webseitednshomehs-heilbronndnsupdaterbssgraphicdwadpdwdaepeweaawapaafpfwfabwbpbacwcpcciwebuserapiobjectsidsiskospockkimodorikerbonesteamsparisjanewaypicardglobaltarpitreedpikekiraworfsulukirkarchertuckerhackercanarywesleystagingprereleaset3r2lpbravepanelngrokiservstglclcrmerpflypagesbarsyvivenushoplocalcertlocalplayerbearbloggatewaydeno-stagingis-not-ais-a-goodbotdashvercelmocha-sandboxplatter-appreplitgithubpreviewworkersinbrowserevervaultdetais-ahrsndenoxmitmodxmyaddrstorageapipayloadgrebedocruncontainersstgstagelclstageloginlineis-a-fullstackleapcellngrok-freeis-coolstoragewebharemediatechlibp2pdiscourseimaginecomyspreadshopstoreregbiz123hjemmesidefirmcoorgcomnetedugovsldorgmilcomwebgobartnetedugovtmorgpolcomsocartnetedugovassoagrondiscoodontk12medcuegyecpaabgengorgmilgalsaltulcomadmesmgobpubdocmonfindgnriouioproartlatvetnetfotedulojgovntrturibrbarxxxofficialbasechefprofmktgpsictechinfoarqtcontdentrrpppsiqgit-pagesritmedfieorgcomlibprieduaipgovriikmeactvsportorgmilcomscieunnetedugovnameinfopintouchtawktotawkmyspreadshoporgcomnomgobedu123miwebcomputeorgcomnetedugovbiznameinfocognito-idpeusc-de-east-1onjelasticnxaspdnsbarsydirectwpdeuxfleurstransurldogadoprvwcloudnsamazonwebservicesdnshomeuserpartycokoobinmkmstorjfidemopaasdymyspreadshopalandkapsiikixn--hkkinen-5wacloudplatformdatacenterhäkkinen123kotisivuidacorgmilcompronetedugovbiznameinforadioorgcomneteduuserexperts-comptablestmmyspreadshopgretaprdcomnomynhccifbxoshuissier-justicenotairesaeroportfreeboxoson-webavocatassoportgouvkdnschirurgiens-dentistes-en-franceavouesfbx-os123sitewebveterinairechirurgiens-dentistespharmacienchambagrimedecinfreebox-osdediboxgoupilemszicpyicpvicppleysheezypagesedugovcnpyorgcomcybllcpvtnetedugovtnxonlineschooldaemond6atcopanelorgnetplybotdashstackitkaasorgmilcomnetedugovbizmodltdorgcomedugovcoorgcomneteduappwriteacorgcomnetedugovcloudtranslateusercontentorgcomnetedumobiassoorgcomnetedugovbarsysimplesitediscourseindorgmilcomgobneteduorgcomwebnetedugovguaminfonxhra教育敎育網絡网絡组織組織网络網络组织組织公司政府個人个人箇人ltdorgcomincneteduidvgovxn--uc0ay4axn--55qx5dxn--mk0axixn--io0a7ixn--uc0atvxn--zf0avxxn--lcvr32dxn--od0algxn--wcvs22dxn--gmqw5axn--od0aq3bxn--mxtq1mxn--ciqpnxn--tn0agxn--gmq050iorgmilcomgobneteduiservwp2tempurlmircloudfreesitewpmudevmyfastgadgetcloudaccessjelehalfboltfastvpsemergenteasypanelopencraftizcombrendlynamefromrtpersoadultmedorgpolrelcomproartnetedufirminfoassoshopcoopgouvtmcomediahotelforumvideosportorgsexagrargameslakaseroticaerotikatozsdereklamcasino2000filmsuliinfoboltshopprivnewsszexcityutazasjogaszkonyveloingatlaneacaicogoormyᬩᬮᬶmilwebschnetkopbizzonedesaponpesxn--9tfkymyspreadshopgovmytabittabitorderravpageaccok12idforgnetgovmuniltdplcaccotttvorgcomnetmeca6g5gpgamubacaicniocoukuptverdruscsdelhiindorgmilcomwebnicfingenpronetintedugovresbizbiharbarsyinternetbusinessschooltravelsupabasealumnigujaratfirminfoaeropostbankcoopindevscloudnsno-ipbarsybarrell-of-knowledgebarrel-of-knowledgensupdategroks-thisdnsupdatefor-ourknowsitalldvrcammittwalddynamic-dnsv-infowebhopselfipdyndnshere-for-moreilovecollegemayfirstforumzcloudnsmittwaldservertypo3servergroks-theeusekd1uk0cdndyndnsidrawsainaueuapjpusstagemocksysdevicesclientcustreservdcustdevdisrecprodtestingcobeebyteutwenteboxfusebravepstmndedynngrokorgmilcomnomhzcnetedugovqcxqzzbarsythingdustmo-siemensrb-hostingprotonetfh-muenstergitbookbluebitecloudbeesusercontentnodeartkiloappsforgerockdarklangresinstagingapigeebubbleb-datascryptedhypernodedappnodepantheonsitegitlabgithubkeeneticvirtualservercleverappshostyhostingon-rioedugitticketstelebiton-acornwixstudioon-k3sicp0icp12038jeleqotobigvlairbubbleappsmyaddrstolosmyrdbxwebflowdrive-platformbeagleboardhasura-applolipopdefinimavaporcloudmusicianwebflowtestazurecontainerresindevicereadthedocsloginlineeditorxmoonscalesandcatsbasicserverwebthingsbrowsersafetymarkbeebyteappbitbucketidaccovistablogorgschnetgovxn--mgba3a4f16axn--mgba3a4fraarvanedgeايرانایرانjclaspeziapdudcefegelemeperetevebacanatavaparasabgagfgogrgpgalclblimfmrmcbmbvbfclcmcvcrcpcchlimifibicivipirisimncnbnanenrnpntnnolomobocoaogorosopotoptvtatctbtmtltotpulunutpspapaqsvpvvvtvavvrtrsrprgrfrcrbrarorkrvstsssbscsmsispzczbzbozen-suedtirolmyspreadshopxn--bulsan-sdtirol-nsbxn--valledaoste-ebbtrentinoaltoadigetrentin-sued-tirolxn--forlcesena-c8axn--forl-cesena-fcbxn--bozen-sdtirol-2obtriestetrentinsuedtiroltrentino-s-tirollecceudineaostesienaparmaluccapaviagenoapaduaaostamonzaabruzzoternirietiturinmilanbozenlaziofermoleccocuneonuoropratola-speziavdataaligfvgpugmolcalcamlomumbsicpmnvenvaoedugovabrsarmaremrbastoslazibxosfirenzetrentinosüdtirolval-d-aostavalle-aostamessinacremonaravennatoscanatrentin-suedtirolbolognacalabriaurbinopesarofriuli-v-giuliaogliastraxn--valle-aoste-ebblaquilaandriatranibarlettasyncloudtrentinosudtirolxn--valle-d-aoste-ehbaostavalleyvalled-aostatrentino-alto-adigevallee-d-aostexn--balsan-sdtirol-nsbpistoiasicilialucaniacataniaiserniaperugiabresciaveneziagorizialiguriaimperiabulsan-suedtirolbalsan-suedtirolbarlettatraniandriaxn--trentino-sdtirol-szbforlì-cesenatuscanyvallée-d-aostemantovavallée-aostecasertapiemontevalleaostaval-daostafriulivgiuliatrevisoforli-cesenavalléedaosteferrarapescaravald-aostatrentino-altoadigefriuli-vegiuliavallee-aostecarboniaiglesiastarantomediocampidanovalleedaostetrentinosud-tirolcampobassotrentinsüd-tiroltrentinosüd-tirolmonzabrianzatrentino-südtirolxn--trentino-sd-tirol-c3bpotenzacosenzavicenzaemiliaromagnavenicefrosinonemarchepordenonetrentinosued-tirolvaresemolisevalléeaostefriuli-veneziagiuliabasilicatalatinaanconasavonaveronamodenaaquilabiellabolzano-altoadigepugliafoggiaumbriatrentino-stirolgenovapadovamateranovararagusapiacenzatrentinostirolvalleeaostetempio-olbiatrentinsudtirolmassa-carrarafriuliveneziagiuliatrentinosuedtirolandria-barletta-tranitrapanixn--cesenaforl-i8amaceratacaltanissettaascoli-picenobrindisicarraramassacagliaririmininapolivibo-valentiachietibulsan-sudtirolbalsan-sudtiroltrentino-a-adigebulsanbalsaniglesiascarboniamilanotorinoteramodell-ogliastraarezzotrentinoalto-adigerovigotrentovenetoiglesias-carboniatrentino-sud-tirolaltoadigereggio-emiliareggio-calabriasardegnatranibarlettaandriapiedmontxn--sdtirol-n2amedio-campidanotrentino-süd-tirolfriuli-vgiuliafriuli-ve-giuliaromeennaromapisa32-b16-b64-blodiastibarineencomonaplesforlicesenailiadboxosalessandriasicilytrani-barletta-andriaxn--trentin-sdtirol-7vbpesarourbinotrentinsued-tirolcesena-forliforlìcesenaemilia-romagnamonzaebrianzaxn--trentinsdtirol-nsbtrentinos-tiroltrentinsüdtirolvalledaostaolbia-tempiocampidanomediovibovalentiasassarivalle-daostalombardyfriulivegiuliareggioemiliamonzaedellabrianzaalto-adigevercellitrentin-sudtiroltraniandriabarlettatrentino-sudtirolascolipicenobozen-südtirolfriulive-giuliaflorencevaldaostaxn--cesena-forl-mcbcarbonia-iglesiasaosta-valleycarrara-massadellogliastratrentinoa-adigexn--valleaoste-e7apesaro-urbinoxn--trentinosdtirol-7vbxn--trentin-sd-tirol-rzbxn--trentinsd-tirol-6vbtrani-andria-barlettatrentin-süd-tirolxn--trentinosd-tirol-rzbgrossetomonza-e-della-brianzasüdtirolreggiocalabriatrentinoaadigetrentin-südtirolfriuliv-giuliaverbaniacampaniatrentino-aadigefriulivenezia-giuliasardiniaandriabarlettatranibarletta-trani-andriacatanzarooristanourbino-pesarocesena-forlìvalle-d-aostacampidano-medio123homepagesiracusatempioolbiasuedtirollombardiaavellinocesenaforlìtrentinofriuli-venezia-giuliabozen-sudtirolandria-trani-barlettabulsan-südtirolbalsan-südtirolmonza-brianzabolzanotrentino-sued-tirolbellunosalernolivornocrotonesondriodnshometrentinsud-tirolmassacarraratrentin-sud-tiroltrentino-suedtirolviterbobergamocesenaforliolbiatempiopalermobeneventoagrigentoofcoorgnetfmaitvphdengorgmilcomschnetedugovperagrikanieasukehandachitatokaiaisaikonanoharuamaobuhigashiuraowariasahiinuyamatobishimaiwakurashitarainazawatoyonegamagorimihamatoyotataharakariyayatomioguchikomakimiyoshinishiotokonamekiyosuchiryutoyohashiokazakiisshikikasugaikotakiratoeianjotogofusosetohazutsushimashinshirotakahamanisshinshikatsuhekinantoyokawaichinomiyatoyoakeodateogataakitaikawakyowahonjoogayurihonjonoshirokamiokakatagamimitanegojomeyokotekosakadaisenkazunonikahohonjyomoriyoshimisatohappoukamikoanihachirogatahigashinarusesembokufujisatokitaakitaitayanagiowanitakkomutsutsurutahirosakigonoheoirasetowadamisawanohejiaomorishingohiranairokunohehashikamitsugarushichinohehachinohenakadomarisannohekuroishisakaeisumiasahiotakiinzaiabikomatsudoyachiyomutsuzawakujukuriomigawakashiwatoganemihamanaritasakuranagaramobarahanamigawachoshishiroichoseikozakishisuikatorimidorichonankyonanfuttsuonjukufunabashinagareyamanodasosatakochuotohnoshourayasukimitsuyokaichibayotsukaidosodegauratateyamakamagayayokoshibahikariyachimatakatsuuratomisatokisarazukamogawaichikawanarashinoichinomiyashimofusaminamibososhirakoichiharaoamishirasatoikatahonaiainansaijoseiyoiyoozuuwajimaniihamanamikatamasakiuchikokihokutobetoonshikokuchuomatsuyamaimabarikamijimakumakogenyawatahamamatsunosabaeikedaobamasakaifukuiohionotsurugamihamawakasaminamiechizeneiheijikatsuyamatakahamaechizensoedaukihaomutaokawanishiogoribuzenonojosueumiokiotochikugosasagurisaigawamizumakishinyoshitomikurumekurateyamadakasuganakamamiyamanogatatakatahakataiizukakawaratagawakasuyaashiyainatsukimunakataminamitsuikishonaikurogifukuchikeisenhigashimiyakoshinguyukuhashiokagakiyamekogaongausuikahotohochuotoyotsumiyawakadazaifuhisayamatachiaraiyanagawanakagawahirokawachikujochikushinochikuhochikuzennamieotamaokumashowateneiiwakikoorinangoononishigoshimogoomotegomishimafukushimaasakawakagamiishishirakawaiitatefutabahiratayugawahanawakitakatakawamatakunimiyabukibandaihigashihironoyamatomiharuyamatsuriaizubangedatesomaaizuwakamatsuyanaizuaizumisatonishiaizuizumizakikitashiobarataishinkaneyamakoriyamainawashirotanagurafurudonosamegawasukagawaishikawatamakawaikedaogakitaruiginanenahashimahichisonakatsugawaibigawashirakawamizunamiminokamomitakekawauesekigaharatomikasakahogikitagatayamagatatajimianpachimotosuyaotsukakamigaharahidakanisekitokigujominogodoyorogifukasamatsutakayamawanouchihigashishirakawakasaharashimonitatsumagoichiyodakannakanrashowameiwakiryuotaoratomiokafujiokaitakuranaganoharahigashiagatsumatakasakishibukawaminakamikatashinatsukiyonokawabanumataannakaoizumimidorishintoisesakiuenoyoshiokakusatsutakayamanakanojonanmokutamamuratatebayashimaebashiotakekaitadaiwahongofuchukuietajimashobaramiharahatsukaichihigashihiroshimamiyoshikumanokurenakasakaseraseranishiasaminamifukuyamashinichionomichiosakikamijimajinsekikogentakeharaotobenanaeikedatohmaozoraobiraabirakyowaeniwataikibibaisharirebunerimohiroooketootarupippunishiokoppechitosefurubirahakodateshiranukakitahiroshimakushiroobihironanporoiwamizawaniikappukunneppufukushimanakasatsunaitoyourakuromatsunaiakabirakamisunagawashibechaurakawakamifuranonakatombetsuasahikawashimokawakayabeokoppebiratoriabashirisaromaatsumanumatahidakabifukamukawamikasahorokanaitoyotomisarufutsuhigashikawaishikarikitamiyoichiesashiiwanaitomariminamifuranoakkeshifuranotoyakoyakumootoineppushikaoishiraoinemuronayorohaboroashorobihororishirifujiutashinaihokutotakasuebetsuurausuassabukikonaishimamakinaiedatetoyabieinikiesanuryuoumuteshikagarikubetsuashibetsukimobetsuaibetsutobetsusobetsuembetsushimizuchippubetsurishirihokuryuhoronobeshintokutsubetsushibetsuhonbetsumombetsutsukigatakuriyamakoshimizushiriuchikutchanmurorannoboribetsukamishihorowassamushinshinotsukembuchiwakkanaikamoenaikiyosatotakinoueshikabesunagawafukagawanakagawatakikawakamikawahigashikagurahamatonbetsumatsumaemoseushirankoshishakotanimakanemashikeotofuketomakomaisandatambaitamiawajikasaiasagoshisoonoakoyashirotoyookaminamiawajiinagawafukusakitakasagokamigorikasugaharimayokawaashiyahimejiakashitaishiaogakisannantakinosumototakarazukanishinomiyashingugoshikinishiwakiyokatakaaioimikisayoyabukawanishiamagasakisasayamashinonsenkakogawaichikawakamikawatatsunotsukubaiwamaogawaasahisakaitokaioaraiitakobandodaigosuifuinaamikasumigaurakashimaomitamayachiyoshimodatetomobetoridehitachinakainashikisakuragawakasamayawaramoriyahitachiomiyanamegatayamagatahitachikamisuushikutakahagiibarakitonekoganakasowayukimihojosomitoryugasakishimotsumafujishirotsuchiurachikuseihitachiotashirosatotamatsukuriuchiharashikahakuinanaotsubatawajimakahokukawakitatsurugikaganominotosuzuuchinadakomatsuanamizunakanotohakusannonoichikanazawaiwateshiwafudaikawaimoriokaofunatohanamakikuzumakikitakamininohekunoheyamadayahabasumitaichinosekitanohatahiraizumirikuzentakatajobojiotsuchihironomiyakoiwaizumikarumaiichinohenodakujitonooshushizukuishifujisawamizusawakamaishikanegasakimannoutazukotohiraayagawazentsujihigashikagawauchinomikanonjisanukimarugamemitoyotakamatsutadotsunaoshimatonoshoakuneamamiizumihiokiyusuikinkoisasookouyamanakatanekagoshimakanoyaisenkawanabeminamitanemakurazakitarumizunishinoomotematsumotosatsumasendaioimatsudaayaseebinamiurazushinakaiodawaraiseharasagamiharahakoneaikawakaiseiatsugitsukuihadanoyamatoyamakitazamaoisochigasakininomiyayokosukakamakuraminamiashigarafujisawasamukawakiyokawahiratsukayugawaraokawaumajikochitsunootoyoakiinonishitosayasudahidakamiharasakawaniyodogawahigashitsunokagamigeiseisusakiotsukinaharisukumomurototosakamiochitoyotosashimizumotoyamanankokunakamurakitagawayusuharaogunichoyoukiasoutoozugyokutoamakusamifunetakamoriyamagaminamataminamiogunikikuchisumotoyamatonagasumashikiaraokumamotokamiamakusanishiharayatsushiroayabeseikasakyoideineujinakagyokameokakyotangokyotanabekyotambaminamiyamashiroyamashinatanabeyawatawazukaminaminantanmiyazuhigashiyamafukuchiyamakitamukokamojoyokizumaizuruujitawaraoyamazakinagaokakyokumiyamakawagoeinabeshimameiwaasahitaikiudonoisetsukisosakikuwanamihamamiyamasuzukatamakimisuginabarikumanokomonominamiisewataraitobakiwatakikihotadomatsusakayokkaichikameyamaureshinoishinomakishichikashukuohirataiwaosakizaohigashimatsushimashikamaiwanumashibataogawaraonagawakawasakiseminemarumoriminamisanrikukakudamuratawakuyatomiyanatoriwataritagajomisatotomekamirifushiroishimatsushimayamamotoshiogamafurukawahyugaebinotsunosaitoayakushimanobeokakitauramiyazakitakazakigokaseshiibamimatashintomikunitomikitakatakobayashikawaminamitakaharukijotakanabemiyakonojonishimeranichinankitagawakadogawamorotsukakisofukushimaminamimakisakaeobuseikedaogawamiasaokayaasahiotakiotarichinoinaomichikumakomaganechikuhokukaruizawayasuokaooshikaikusakaminamiaikitogakushimatsukawakawakamitateshinatakamorikitaaikishiojirimiyadahakubaiizunaiijimaiiyamamiyotasuzakayasakatoguraookuwanagawaminowahirayayamagataminamiminowafujimiomachisakakitakaginaganonakanosakuhokomoronagisoshinanomachiwadauedaiidaharasuwatomiachiaokianankisosakunozawaonsenagematsutakayamashimosuwamatsumotoyamanouchinakagawamochizukiazuminotatsunoobamaomuraseihiunzenosetofutsuikichijiwanagasakiisahayahasamisaikaikawatanasasebohiradokuchinotsugototogitsutsushimashimabarashinkamigotomatsuurayamazoekashibaikomakawaitenrioyodosangokoryoudaojiikarugayamatokoriyamatenkawakatsuragikurotakikawakamimiyakemitsuetakatorikamikitayamayamatotakadahegurishinjokanmakisakuraitawaramotogoseoudanarasoniandokawanishishimoichihigashiyoshinokashiharashimokitayamanosegawayoshinomintsivorytopazsakuragehirnsumomoaseinetopalmail-boxmokurenyoitamuikaojiyagosensanjoaganomyokoseiroagaomishibataniigatanagaokamurakamiuonumayuzawakariwatagamitainaitsunanminamiuonumatochioyahikojoetsuseiroukamosadoizumozakitokamachiitoigawasekikawakashiwazakitsubamemitsukekokonoesaikiusukibeppuusahimeshimakunisakihasamataketatsukumihitaoitahijikusuyufukujukamitsuebungoonobungotakadaibaraniimibizentsuyamaokayamakasaokahayashimayakagemaniwaakaiwamisakishinjotamanotakahashikibichuowakesojanagishookumenannishiawakurakurashikiasakuchisetouchikagaminosatoshotomigusukunakagusukuyaeseizenaurumaiheyaaguniogiminanjokinminamidaitokitanakagusukuyonaguniokinawaishigakikunigamiurasoekadenataramahiraraginozataketomishimojizamamitonakiitomanhigashimotobuyonabarugushikamionnanahanagohaebarukumejimakitadaitonakijinnishiharayomitanginowantokashikiishikawaikedasuitaminohizuminishisakaikananabenodaitoosakasayamayaokishiwadatadaokakaizukatondabayashichihayaakasakakumatorikadomasayamahigashiosakashijonawatehirakatataishimisakitajirihannansennankatanotoyonominatosettsuhigashiyodogawaibarakinosekitachuohigashisumiyoshifujiiderakashiwaraizumiotsutoyonakamatsubaramoriguchiizumisanoshimamototakatsukineyagawahabikinotakaishikawachinaganoyoshinogarikamiminearitaouchiimarihizenogikashimaariakekiyamafukudomikitagatakitahataomachigenkaikanzakinishiaritakyuragisagataratosutakushiroishikaratsuhamatamakouhokukawagoeyoshidasatteogoseirumaasakaurawaogawaniizaomiyayoriiotakishikihonjooganohannohanyuinasaitamaokegawaarakawayoshikawayokozehasudasayamahidakafukayachichibuiwatsukiryokamiyoshimikamiizumifujimiwarabiranzanmiyoshiminanoyashiosakadosugitomisatohigashichichibutodasokakukiyonokazoshiraokakasukabekounosukawajimatsurugashimamiyashirokitamotohatoyamamoroyamahatogayakumagayakawaguchinagatorokamisatomatsubushinamegawatokigawakamikawafujiminohigashimatsuyamakoshigayatokorozawas3isk01isk02ryuohkoseikonanaishorittotakashimamaibarahikonetorahimenishiazaikokagamokotoyasuotsukusatsunagahamamoriyamatoyosatotakatsukinotogawaomihachimanhigashiomiakagiunnanizumogotsuamayatsukakakinokimatsuehamadamasudahikawahikimiokuizumoyasugiyakumomisatotamayuohdahigashiizumookinoshimanishinoshimatsuwanoshimaneshimadafujiedayoshidashimodagotembaiwataatamikosaiyaizuitoizumishimahaibaramakinoharaomaezakikawanehonkannamisusonohigashiizufukuroinumazukawazufujiaraishizuokahamamatsushimizuizunokunimatsuzakimorimachiminamiizunishiizukikugawakakegawafujikawafujinomiyaujiietsugaoyamayaitaohiranikkoashikagakuroisokanumasakurashioyakarasuyamamotegiichikaikaminokawatochigihagamokanogisanobatonasumibunasushiobaranishikatautsunomiyaiwafunemashikoshimotsukeohtawaratakanezawaitanokomatsushimatokushimaichibaminamiaizumiwajikikainanmiyoshinarutomimamugiananmatsushigesanagochishishikuinakagawamachidachiyodakomaefussainagitaitochofufuchuomeotahigashiyamatotoshimaokutamaaogashimakodairaedogawaarakawahachiojishinagawatachikawashibuyasuginamihinodekiyosesumidaoshimanerimamitakahamuraadachinakanomizuhobunkyomegurominatokoganeihigashikurumekokubunjihigashimurayamamusashimurayamatamakitahinochuokotokatsushikakouzushimaogasawaraakishimakunitachishinjukusetagayamusashinohachijoitabashiakirunohinoharachizunanbukotouramisasawakasayonagokogehinoyazutottorinichinansakaiminatokawaharaoyabetairainamiasahinantoimizufuchutakaokakurobeyamadajohanatoyamatonaminyuzenfunahashinakaniikawanamerikawaunazukitogahimiuozufukumitsutateyamakamiichiiwadearidayuasainamitaijikatsuragiaridagawatanabemihamahidakakainankiminomisatoshingushirahamakamitondayurakozakoyagobokitayamawakayamakudoyamahashimotokushimotokozagawahirogawakinokawanachikatsuurarsuseroeoishidasagaeoguniasahinagaitendonanyoobanazawanishikawasakataohkuratozawamikawamamurogawayamagatafunagatatakahatashonaishinjokahokuiideyuzakawanishitsuruokakaminoyamayamanobeshiratakamurayamanakayamakaneyamahigashineyonezawasakegawamitouubeyuuabushimonosekitabuseoshimatoyotaiwakunihikarishunannagatohagihofukudamatsutokuyamashowadoshitsurunanbukoshukaiminami-alpsnirasakikosugeotsukioshinohokutominobuyamanashifuefukichuokofuichikawamisatoyamanakakonakamichitabayamanishikatsuranarusawafujikawahayakawafujiyoshidafujikawaguchikouenohara長野京都岐阜大阪三重群馬千葉滋賀佐賀奈良adednelgaccogogror秋田愛知高知埼玉沖縄栃木熊本岩手青森山梨新潟島根鳥取長崎香川宮城石川大分宮崎茨城山口兵庫山形徳島広島福島福岡岡山富山静岡愛媛福井東京xn--4it168dhatenadiaryxn--vgu402ckawaiishophatenablogcocottenamaste北海道penneehimeiwateversestabachibashigagonnagunmapermahaccaakitaosakauh-ohblushkochiaichifukuikuroncapooitigohyogotokyokyotopunyuthickcheap0t00g00j0mie2-ddaapyawjg0amfemsubxiiboomoobutchueekpgwrgrherskrboyrdyupperunderflierchipsmydnsheavyangryhippygirlyrulez神奈川鹿児島和歌山bambinaxn--nit225kokayamasaitamaxn--k7yn95exn--1lqs03nsapporoparasitelolipopmcxn--efvn9sniigatafukuokatokushimafukushimahiroshimakagoshimafakefurokinawaxn--8pvr4ucoolblogxn--0trq7p7nnkawasakinagasakimiyazakichilloutxn--8ltr62kxn--klty5xpeeweezombiecutegirlxn--rny31hxn--uuwu58axn--ntso0iqx3axn--djrs72d6uytoyamanikitanyantakagawamimozanagoyaboyfriendxn--2m4a15egreaterchowderegoismyamagatafashionstorexn--elqq16hxn--pssu33lsendaimiyagixn--rht27zpecoriaomorisaloonwatsonvivianxn--djty4knobushipigboatnaganopinokoxn--f6qx53asadistvelvetsecretxn--5js045dchicappayamanashiibarakidigickgirlfriendxn--1lqs71dmongolianxn--c3s14mxn--qqqt11mtochigixn--5rtq34kparallelo0o0mondkobesagabonadecaoitanarafoolkilldecimainhiholomosblokilociaoundopupugifutankcrapflopnooroopsmodsholyjeezstripperpepperbittershizuokaxn--rht3dkitakyushureadymadeicurusversusmatrixxn--rht61ehungryfloppygloomycrankyhandcraftedlittlestarxn--klt787dxn--kltx9awhitesnowsunnydaytottorilovepoptheshopbuyshopxn--5rtp49cxn--d5qv7z876cwebaccelxn--kbrq7oxn--4pvxsxn--1ctwolovesickkumamotocatfoodxn--tor131oyokohamawakayamatonkotsuxn--ehqz56nxn--uist22hxn--6btw5axn--kltp7dyamaguchifrenchkisspussycatxn--4it797kxn--uisz3gbabybluexn--zbx025dnetgamersxn--7t0a264ckanagawaxn--6orx2rishikawaxn--ntsq17ghalfmoonschoolbusjellybeanxn--mkru45iusercontentlolitapunkxn--32vp30hsakurastoragehokkaidoshimanecandypopbabymilksupersaleweblikeraindropbackdropwebsozaikikirarahateblodaynightmeneacsccogoormobiinfoaeusxxorgmilcomnetedugovorgcomnetedugovbizinfotmprdorgmilcomnomedugovassnotairespresseassocoopgouvveterinairemedecinpharmaciensorgnetedugovtraorgcomedurepgovmeneperekgacscaiiocogoitoresmshsseoulbusanulsandaeguc01milvkimmvchungnamjeonnamjeonbukeliv-dnsgyeonggijejueliv-cdnincheondaejeongangwongyeongbukgwangjuchungbukgyeongnameliv-apicoeduindorgcomembnetedugovorgmilcomnetedugovjcloudorgcomnetintedugovperbnrinfocooyorgcomnetedugovipfscanvamypepw3sstorachakeeneticjoinmcinbrowserdwebcyonnftstoragemyfritzaemewphlxachotelltdorgcomwebsocschngonetintedugrpgovassnomgacsccoorgnetedugovbizinfo123websiteidorgmilcomasnnetedugovconfidmedorgcomplcschnetedugovaccoorgnetgovpresstmassoirseproxaccosoundcasthoptocraftvp4c66orgnetedugovitsmcdirmyboxbarsyedgestacksynologylogintonohostwebhopdiskstationi234tcp4hoocgroknoipprivmydsddnsdnsforlohmustransipdscloudfilegear-sgbrasiliafilegearframerbarsybarsyonlinecoprdorgmilcomnomedugovinforgcomnetedugovnameacprorgcomartnetedugovpresseinfoassoinstgouvorgnycedugovbarsydscloudjuorgcomnetedugovminisiteaccoororgcomnetgovorgmilcompronetintedugovbizmuseumnameinfoaerocoopaccoorgcomnetintedugovbizcooporgcomgobneteduorgmilcomnetedugovbiznameaccoorgmilneteduadvgovcoorgcomnetaltgovforgotherhiskeeneticispmanagernomassoprod5476132eastasiacentraluswesteuropewestus2eastus2rucdnwest1-usfra1-desandboxjls-sto1jls-sto3jls-sto2aglobalabglobalsslmapprodfreetlsmaplon-1lon-2ny-1fr-1sg-1ny-2paassnwebpaashostingjelasticnordeste-idcsocuserpagescwebfileblobservicebuscoreatlricnjsjelasticwebsitestoragesezagbinruhuukjptsmyspreadshopmynetnameakamaiorigin-stagingfrom-coipv64dynv6cdn77serveblogadobeaemcloudhicamsprytdnsupno-ipownipde5ovhicpfirewall-gatewaysytesmypsxbarsyusgovcloudapimyamazemyradwebakamaihdsaveincloudfastlylbfrom-lasubsc-paysquare7in-the-bandblackbaudcdnhomelinuxoninfernoctfcloudservebbsdns-dynamiccloudfrontakamai-stagingipifonyham-radio-opsenseeringclickrisingcommunity-profrom-nylocalcertgrafana-devedgesuite-stagingcloudflareanycasteating-organicatlassian-devmydattofeste-iplocaltotorprojectknx-serveredgekeycloudflareglobalcloudyclustercasacamserveftpakamaized-stagingakamaiorigindns-cloudmyeffectboomlabotdashbuyshousestwmailhetemlazure-mobilein-dslthruhereredirectmedynuddnsbouncemesupabaseluyanicloudappakamaicloudfunctionsdebiannhlfanpgafanstatic-accessin-vpnmysynologymafeloappudohomeftptrafficmanagersiteleafseidatmemsetcloudflarecloudaccesskeyword-onazure-apiis-a-chefdoes-itgets-itwebhopselfiphomeipkicks-assedgesuitewindowsserver-ontunnelmolemydissentscrapper-sitecloudflarecnuni5srcfggffiobbzabcdenodynuopikddnsvpndnsakadnselastxkinghostvps-hostfastlyhomeunixazureedgeshopselectdontexistmyfritzcloudjiffyalwaysdatasells-itsquaresbroke-itazurefddattolocalat-band-campmeinforumfamilydsazurestaticappsdefinimabplaceddnsaliasdynaliasnow-dnsblogdnsroutingthecloudendofinternetdsmynasakamaiedgemymediapcadobeio-staticakamaiedge-stagingakamaihd-stagingddns-ipprivatizehealthinsurancelive-onkrellianschokokeksmassivegridmysecuritycamerarackmazeserveminecraftfrom-azis-a-geekakamaizedmoonscalecryptonomicoffice-on-theusgovtrafficmanageradobeioruntimeedgekey-stagingreserve-onlinechannelsdvrdnsdojousgovcloudappcdn77-sslapps-1and1podzoneazurewebsitesdynathomescaleforceyandexcloudvusercontentisa-geekcdn-edgescoaemalcesappwriteazimuthtlonarvonoticeablestorecomwebrecnetperotherfirminfoartslgdloncogoiltdorgmilcolcomplcschgenngonetedugovbiznamefirmmobiacincoorgmilcomnomwebgobnetintedubizinfocomyspreadshopdemongovtransurl123websitehosting-clusterkhplaycistrongsnesosvalervålerxn--vler-qoaossandeheroysandeherøybøboheroyherøyxn--hery-iraxn--b-5gavalerbøboxn--b-5gasandesandexn--hery-iraxn--vler-qoavålerhåreålaahavaofsfvfhlolnlalrlhmfmtmahcostntbuåstrmreigersundmyspreadshopgálsáeidsvolltingvollgildeskalflorøvadsøvardøvanylvenxn--bhccavuotna-k7astrandaxn--kvnangen-k0axn--sknland-fxaxn--mosjen-eyarakkestadhyllestadnannestadvevelstadvaapstenordre-landsondre-landsøndre-landtjieltexn--vrggt-xqadsør-aurdalsor-aurdalheradstordmoldefordeførdeseljefedjeryggehemnexn--krehamn-dxasognegranesøgnebrynetjomevallebykletokkegiskedovretjømehobølvoldasaudatolgasømnaviknadønnasomnadonnatranafrananesnaraumasmolatrænafrænalesjasmølaørstaorstahitrafloraaukraloppafrøyarissasnasahalsagalsaromsaraisaráisafroyasnåsagronghobolfjelltydalårdalardalaskimharamkraanghkekråanghkesorumbarumhurumbærumsørummodumsálátbálátfrognbjugnvåganvagangulenskienløtenlotenstrynvefsnxn--merker-kuaskaunsveiobømlobomloskjåkvardoflorovadsosalatbalatsálatklæbuklabuselbubarduulvikskjakklepprisørxn--nttery-byaeflåeidflahofmilgolholsellomskifetvikdepvgsfhsaskerrisorhamarasnesåsnesrørosrorosxn--slat-5namasoynaroyvaroyluroydyroyaskoyradoyandoyrodoymeloyradøyandøyrødøymeløyaskøylurøydyrøymåsøyværøynærøyhoylandethøylandetdivtasvuodnalørenskoglorenskognesoddtangenxn--tjme-hraxn--smla-hraxn--stjrdal-s1aunjargalillehammerunjárgaxn--hamary-fyadavvenjargaxn--bearalvhki-y4a123hjemmesidegjerdrumxn--brnnysund-m8acxn--tnsberg-q1axn--mlatvuopmi-s4axn--snsa-roaxn--skierv-utaxn--brum-voatysfjordkvafjordeidfjordkvæfjordsongdalenmjondalenmjøndalenxn--gls-elackragerogáŋgaviikagangaviikasørreisasorreisasør-varangersor-varangerxn--risr-iraskiervaxn--frna-woaxn--trna-woakvinesdalleksvikleirvikrøyrvikroyrviksvelvikvenneslaevje-og-hornnessandnessjøenmarnardalvindafjordsandefjordenebakksnillfjordullensvangxn--trany-yuabrønnøysundnamsskoganaustevollxn--stjrdalshalsen-sqbnord-aurdalnord-frontrøgstadtrogstadgrimstadflakstadgjerstadxn--sandy-yuaxn--leagaviika-52bnore-og-uvdalvegarsheixn--rlingen-mxaxn--ggaviika-8ya47hvegårsheikarlsoykvitsoymasfjordenhamaroyinderoyosteroydavvenjárgasauheradguovdageaidnuxn--vre-eiker-k8abronnoysiellakkrødsheradkrodsheradkvinnheradbrønnøyxn--mtta-vrjjat-k7afxn--lrenskog-54akvitsøyvárggátkarlsøyosterøyinderøyhamarøybronnoysundxn--aurskog-hland-jnbbahccavuotnabáhccavuotnagiehtavuoatnastor-elvdalmidtre-gauldalxn--gildeskl-g0akarasjokevenassixn--bievt-0qaxn--yer-znalebesbynessebyxn--hbmer-xqamalselvmålselvxn--unjrga-rtamøre-og-romsdalmore-og-romsdalhareidmelandørlandorlandstrandålgårdsolundalgardafjordåfjorddielddanuorrikautokeinoxn--stre-toten-zcbskodjeaejriestangeliernebamblestokkefauskesnåasesnaasekongsvingerlangevagberlevagxn--flor-jrahattfjelldalostre-totenøstre-totenvestfoldxn--mely-iraálaheadjualaheadjunordreisaxn--troms-zuaxn--lgrd-poacporsangerflatangerstavangerleikangerbremangersamnangergieldakarasjohkaxn--rdy-0nabfrostautsirasnoasatromsaxn--sr-aurdal-l8aflekkefjordjølsterjolsteraremarkhedmarknååmesjevuemienaamesjevuemiexn--vard-jrarollagmeråkermerakerorskogørskogxn--bdddj-mrabdákŋoluoktaxn--osyro-wuaaknoluoktatrysilskjervøymandaljondalbindalrindalmeldalsuldalorkdalsigdalalvdallærdalhurdalsirdalverdallerdallardaloppdalåseralaseralhadselkragerødivttasvuotnaoverhallasteinkjerxn--hnefoss-q1askedsmokorsettromsøxn--dyry-iravestre-totenmuseumxn--sandnessjen-ogbrahkkeravjufylkesbiblbájddarbajddarxn--laheadju-7yarennesøyxn--koluokta-7ya57hxn--hgebostad-g3aleirfjordstorfjordbalsfjordbåtsfjordbatsfjordmuosátbievátloabátkárášjohkanøtterøyxn--mjndalen-64anordkappláhppilahppialstahaugsiljanverranrøykenroykenhaldenlyngenbergenhortenhønefosshonefosstroandinbeiarnvarggatosoyroosøyrotromsoidrettmuosatbievatruovatloabatvoagattynsetnessetxn--indery-fyaskánitskanitraholtråholtxn--ystre-slidre-ujbandebusarpsborgbearduxn--karlsy-fyahordalandjorpelandjørpelanddeatnuringsakersør-odalsor-odalxn--slt-elabringerikeaudnedalnittedalnissedalhemsedalslattumsurnadalxn--blt-elabelverumstjørdalnaustdalhjartdalgjøvikfyresdalhasviknarviklarvikgjovikmalvikgamviklenvikporsgrunnstjordalengerdaldrobakdrøbakxn--msy-ula0hvestvagoyxn--vgan-qoaxn--ryken-vuaxn--lten-graxn--stfold-9xaxn--hpmir-xqaxn--lury-iramálatvuopmimalatvuopmitysværkirkenesbirkenesmoskenesbáidárxn--fjord-lraxn--rdal-poabahcavuotnabáhcavuotnaxn--frde-gralindåsbearalvahkixn--hobl-iraráhkkerávjuxn--loabt-0qavågåáltábodøsundlundraderådeetnetimeholeauregrueoddavagavegaranatanaarnasolasulaaltalekafusavangbergkvamåmliamlibokntinnroangranosenoslobodorøstroststatåmotamotivguprivøyeroyerliermossvossxn--nvuotna-hwalusterlunnermarkerhábmerhabmerhvalerfjalerxn--rholt-mratysvarbaidarfitjargaularhápmirhapmirmelhusfosnesøksnesoksnestysneshemnesevenesflesbergeidsbergtonsbergtønsberglindasxn--sndre-land-0cbnamsosxn--srum-graøystre-slidreoystre-slidrevestre-slidretrondheimbalestrandxn--langevg-jxaaustrheimxn--skjk-soavagsoyaveroysandoykarmoyfinnoytranoyvestbytranbysykkylvenxn--hyanger-q1aspjelkavikandasuoloxn--fl-ziaxn--drbak-wuastathellexn--sr-varanger-ggbtelemarkxn--bhcavuotna-s4axn--porsgu-sta26fčáhcesuolocahcesuoloakrehamnåkrehamnsandøykarmøyfinnøytranøyvågsøyaverøynamdalseidxn--lesund-huabadaddjaxn--vegrshei-c0axn--btsfjord-9zagildeskålporsanguxn--trgstad-r1anávuotnanavuotnahammerfestxn--sgne-graxn--brnny-wuacibestadharstadnarviikaevenáššivestnesgjemnessandnesagdenesrennesoyxn--avery-yuaxn--tysvr-vrabearalváhkikongsbergspydebergrandabergxn--andy-iradavvesiidaxn--krdsherad-m8aporsáŋgufredrikstadbjerkreimringeburennebuaurskog-holandnotteroyxn--vgsy-qoa0jxn--rmskog-byaskierváivelandbyglandfrolandaurlandforsandxn--bjddar-ptamidsundålesundalesundfetsundfarsundovre-eikerøvre-eikerakershusxn--moreke-juasørfoldøstfoldostfoldsorfoldhøyangerhoyangerlevangerorkangertanangerxn--vestvgy-ixa6olillesandulsteinxn--rennesy-v1agranvinskjervoyxn--klbu-woalavagisxn--h-2faxn--ryrvik-byakafjordkåfjordseljordfolkebiblxn--gjvik-wuajevnakerxn--kfjord-iuabudejjuxn--kranghke-b0axn--davvenjrga-y4axn--rland-uuaxn--ldingen-q1axn--mlselv-iuaxn--rady-iraxn--linds-prabrumunddalxn--ygarden-p1amo-i-ranaeidskogrømskogromskoghjelmelandxn--finny-yuaxn--sr-odal-q1axn--skjervy-v1aballangenkvanangenkvænangengratangenxn--hmmrfeasta-s4acvossevangensuohkanxn--rde-ulaxn--mli-tlaxn--ksnes-uuanordlandskanlandskånlandsortlandfuoiskuxn--rros-graxn--hcesuolo-7ya35bxn--eveni-0qa01gagaivuotnagáivuotnaxn--seral-lradrammenmodalenmosjoenjan-mayentorskensteigengloppenxn--snes-poamatta-varjjatxn--sr-fron-q1aomasvuotnajessheimbådåddjåxn--krager-gyaxn--kvfjord-nxaxn--asky-iraxn--snase-nraxn--bidr-5nacholtålenxn--vads-jraxn--jlster-byamosjøenxn--rst-0nastavernxn--ostery-fyaxn--oppegrd-ixaxn--sknit-yqaxn--risa-5naoppegårdskiptvetrendalenholtalenxn--mot-tlaxn--lhppi-xqaxn--holtlen-hxaxn--srreisa-q1akopervikxn--muost-0qaxn--bmlo-grahokksundkvalsundegersundxn--karmy-yuaullensakerxn--hylandet-54axn--kvitsy-fyaxn--bod-2nalangevågberlevågkristiansandxn--rsta-frahornindalstjørdalshalsenstjordalshalsensandnessjoenhámmárfeastaxn--lrdal-srasør-fronsor-fronnord-odalkristiansundmátta-várjjatvestvågøynesoddennotoddenbuskerudøygardenoygardensalangenlavangenralingenrælingenlodingenlødingenleaŋgaviikalaakesvuemieleangaviikauenorgexn--srfold-byaaskvollxn--rskog-uuaxn--nry-yla5gxn--vry-yla5ghammarfeastaxn--rhkkervju-01afxn--givuotna-8yakommunekrokstadelvanedre-eikerhagebostadhægebostadxn--berlevg-jxakviteseidxn--s-1faxn--l-1faxn--nmesjevuemie-tcbafuosskomoårekemoarekexn--lt-liacxn--jrpeland-54asvalbardoppegardholmestrandtvedestrandsogndalsokndalarendalsunndalfolldalxn--krjohka-hwab49jlyngdaletnedalnorddalsaltdalgausdalskedsmovaksdalgjesdalstordalxn--frya-hraaarbortedrangedalxn--smna-graaurskog-hølandxn--vg-yiabtjeldsundhaugesundlindesnesxn--mre-og-romsdal-qqbxn--dnna-gradynmerseineshacknetenterprisecloudmineaccomaorimāoriorgmilcriiwigennetschoolhealthkiwigovtgeekxn--mori-qsacloudnsparliamentcomedorgcompronetedugovmuseumwebsitekinservicebarsywebsitebuildereerobookheimdnsleapcelleero-stagetechcrscsslorigingohomecdbedeeeiemesecabgngilnlalplchfisiincnnoroptatitmtltruauhulumkdkukskjplvtrgrfrkrhrusesismycynzcznetinteduassoososcloudstgbetaaezaeuhkusjshatenadiarycdn77hoptozaptois-a-knightmyftpno-ipjpnddnssdpdnsspdnsbarsysweetpepperis-a-bruinsfanis-very-sweetservegameis-a-soxfanhomelinuxcdn77-secureservebbsmisconfusedwebredirectblogsitefreedesktopcouchpotatofriestoolforgeaccesscamis-lostreadmyblogsmall-webfedorapeopleserveftpis-a-celticsfanmywirepotagertwmailin-dslsellsyourhomeread-booksfreeddnscable-modemis-savednflfanufcfanmlbfanstuff-4-saleendoftheinternetin-vpnmy-firewallhomeftpis-localis-a-chefboldlygoingnowherewebhopselfipkicks-assroxatunkcamdvrfedoraprojectgotdnsdvrdnsdyndnspubtlspimientahomeunixdontexistfedorainfracloudwmflabsfspagesbmoattachmentsteckidsfamilydsdnsaliasdynaliasnow-dnscloudnsdoomdnsduckdnsblogdnshomednsroutingthecloudendofinternetdsmynasip-dynamicpoivronhttpbinmyfirewallis-very-evilmysecuritycamerais-a-linux-userwmcloudis-a-geektuxfamilyis-a-candidatedoesntexistis-very-badhobby-sitegame-hostaltervistais-foundis-a-patsfandnsdojohepforgepodzonedynservcollegefanis-very-goodfrom-meis-very-niceisa-geeknerdpolacmedsldingorgcomnomgobabonetedupleskaemhlxmyboxrockyprvcydeuxfleurspdnscodebergheyflowstatichostorgmilcomnomgobneteduorgcomeduiorgmilcomngonetedugovcloudns1337ngrokacorggogfamcomwebgobnetedugokgopgkpgovgosbizpasaugumicsopozpapuwmwsrprusiskwpspkppspkmpspokeoiawsawifoumsdnskokwpmuppuppsppiwwiwoowuzswkzoschrzpisdnwzmiuwwitdpssewsseumigugimoirmpinbwinbwiihupporzgwgriwupowwskrwioswuozstarostwokonsulattmpccopruszkowmyspreadshopostrodakartuzyopolegminamediaustkazgorajgoraolawailawalomzawloclradombytomjaworznotargilubinkoninzagantorunkutnokepnonakloczestsopotsanokturekplockslasksklepzarowlukowmedaidgdaorgmilrelcomnomatmgsmartneteduelkgovwawsossexbiztgorysejnytychypomorzeboleslawiechomesklepsdscloudunicloudzakopanelegnicarawa-mazbydgoszczswidnikkrasnikwloclawekbielawamragowograjeworealestatebeskidykaszubymalopolskaprzeworskswiebodzinlecznadfirmaszkolawarmiagdyniamiastakazimierz-dolnymalborkswidnicadlugolekaostrolekapodlasieelblagtravelsimplesitezachpomormielecszczecinnieruchomosciwalbrzychlezajsklublinbedzinpoznanwielunmielnooleckostarachowicedkontopowiatwroclawrybniksuwalkileborkslupskgdanskostrowwlkptarnobrzegtourismwegrowkrakowglogowyou2pilanysamailwrocinfoagroautobeepshopprivlapypiszlodzcfolksecommerce-shopmazurypulawyskoczowrzeszowpomorskiezgierzkaliszolkuszlowiczostrowiecsosnowiecmazowszewodzislawbialowiezazgorzeleckatowicepabianicejelenia-gorawolominkarpaczsieradznowarudaczeladzkonskowolaskierniewiceswinoujscieturystykabieszczadycieszynketrzynolsztynbialystokbabia-goraprochowicewarszawastalowa-wolapolkowicegorlicegliwiceponiatowalimanowalubartowaugustowkobierzyceopocznognieznoszczytnokolobrzegshoparenapodhalebielskoklodzkostargardatwithplayitownnamecoorgnetedugovacorgcomproestnetedugovbiznameislaprofinforechtngrokmedaaaacacpaenglawjurbarbarsykeeneticavocatacctcloudnsorgcomsecplonetedugov123paginaweborgcomnetintedugovnomepublidkinbarsygovx443cloudnsorgmilcomnetedugovcooporgmilcomschnetedugovnamecomcannetlibassoaemclantmcontstoreorgcomnomrecwwwbarsyfirminfoshopartsstackitmyddnswebspacelima-cityacincooxorgedugovbarsybrendlyhbvpsvpsspectrumlandinghostingacppmordoviamcprecbgorgmilcomspbnetintedumsknovgovbirrasmcdirmytismircloudvladimirnalchikadygeyamarinepyatigorskmyjinobashkiriaeurodirvladikavkazna4ugroznykustanaikalmykiacldmaildagestaniranbuildcanvaliaravalwixdevelopmentappwritemigrationneedleverceldatabasestackitcodereplravendbonporterlovableaccoorgmilnetgovcoopmedorgcompubschnetedugovservicemecomygovorggovtvmedorgcomnetedugovinfoedgfacbmlonihkutwpsryxzbdtmacfhppmyspreadshopbrandpartiorgcomfhvpress123minsidaitcouldbeworlanbibkommunalforbundfhskiopsyskomvuxkomforbnaturbruksgymnloginlineorgcomnetedugovenscaledeuusentbotdaorgmilcomnetgovnowteleporthashbangplatformlovablebarsyshopwarebasehoplixbarsyonlinemsf5gitappgitpagecofigma-govcaffeinefigmacanvasoltstputerbarsysupportchatgptsquareomniweopensocialcpanelnotionnovecorewpsquaredpreviewjelecyonbyensrhtfastvpspieboxconvexjouwwebheyflowplatformshloginlinemadethissourcecraftclouderaorgorgcomartedugouvunivmeorgcomnetedugovsurveysstatichfheiyuxs4allprojectmyfastubervibehostapp-ionosdeployagentmecoorgcomschnetedugovbizcncostoreorgmilcomneteduembaixadaconsuladokiraranohoprincipesaotomeheliohobarsystorebaseshopwaresellfyabkhaziavologdamordoviapenzalenugsochinavoiexnetspbmsknovnorth-kazakhstanashgabadkareliaarmeniageorgiavladimirnalchikivanovobukharaadygeyakhakassiakalugakrasnodarjambylaktyubinsktroitskbryanskobninskkurganazerbaijanpokrovskbashkiriatselinogradvladikavkazmurmansktulatuvamangyshlaktashkentchimkentgroznykaragandatermezarkhangelskkustanaikalmykiabalashoveast-kazakhstankaracoldagestantogliattibarsyredorgcomgobedumirenknightpointaccoorgjelasticdiscoursecleverappsschacmiincogoornetonlineshopcogoorgmilcomwebnicnetintedugovbiznametestcoorgmilcomnomnetedugovorangecloudpersoindorgcomfinnatnetgovensmincomtourismintlinfox0611oyaorgmilcomnetedugovquickconnectvpnplusnettprequalifymeaddrmyaddrntdllwadlnctvavdrk12orgmilpolbeltelcomwebgennetedutskkepgovbbsbiznameinfocoorgmilcompronetedugovbiznameinfobetter-thanworse-thansakurafromdyndnson-the-webmymailerorgmilurlcomneteduidvgovmydnsgameclubebizmeneacsccogotvorhotelmilmobiinfovodteiflgplkmsmsbcckhincndnvncoztltmkckppzpdprvcvkvlvcrkrkscxuzchernovtsyrivneyaltaodesavolynrovnolutskltdinforgcomnetedugovbizvinnicazhitomirternopilpoltavakropyvnytskyizaporizhzhiasevastopolsebastopoluzhgoroduzhhorodkharkovkharkivvinnytsiakhmelnytskyizaporizhzhecrimeaodessazhytomyrnikolaevcherkassydonetskluganskluhanskkirovogradivano-frankivskchernivtsikrymkievkyivlvivsumyzakarpattiamykolaivcherkasychernigovkhersonchernihivdnipropetrovskdnepropetrovskkhmelnitskiyneacsccogoorusorgmilcomedugovvmdhmyspreadshopadimono-ipbarsybytemarkbarsyonlinelayershiftnh-servretrosnubapicampaignservicelugaffinitylotteryweeklylotteryraffleentrygluglugsmeaccoindependent-inquestnimsitecopropymntltdorgplcschnetgovnhsbarsyindependent-commissionindependent-reviewpolicepublic-inquiryindependent-panelconnhospindependent-inquiryroyal-commissionoraclegovcloudappscck12libccphxcclibpvtparochchtrcck12libcceatonk12coglibtecgendstmusann-arborwashtenawcck12glghcck12sealibforksolympiabainbridge-islkeyporthoquiamyarrow-pointcentraliaport-townsendsequimport-ludlowrentonsilverdalebremertonredmondsheltonbellevueport-orchardport-angeleskingstonchehalisaberdeengig-harborseattlepoulsboidmdndsddemenegacalamaiavawapailalflnmdcncscohnhmihiviwiriinmntnmocoutvtctmtgunjokakwvnvprarorasmskstxwynykyazisadninsnngosrvis-bymircloudservernamepointtoenscaledland-4-salefreeddnsstuff-4-saleazure-apinoipcloudnsgolffanheliohostazurewebsitesgvorgmilcomgubneteducoorgcomnetd0egvorgmilcomnetedugovmydnsiacostoree12orgmilcomnomwebgobbibrectecnetintedugovraremprendefirminfoartseducok12orgcomnethidnsidacaiiosonlahanamhanoicamauhueorgcompronetintedugovbizbacninhtayninhhoabinhnamdinhtravinhhaiphongvinhlonghaiduongquangnamquangtrithuathienhuequangninhbacgianghaugiangquangbinhsoctrangbentrethanhphohochiminhdanangkontumhatinhkhanhhoathanhhoahealthgialailaocaiyenbaibackanngheanlonganphuyenphuthocanthodaklakdongnainameinfovinhphucdongthapkiengiangtiengiangquangngailaichaulangsonlamdongdaknonghagiangangiangcaobangbinhduongninhthuanbinhthuanbaclieuthaibinhninhbinhbinhdinhtuyenquanghungyenbaria-vungtauthainguyendienbienbinhphuocschbizputerimagine-proxyorgcomnetedugovcloud66advisormypetsdyndnsxn--8dbq2axn--4dbgdty6cxn--5dbhl8dxn--hebda8bxn--80auxn--d1atxn--c1avgxn--o1acxn--o1achxn--90azhxn--55qx5dxn--uc0atvxn--od0algxn--wcvs22dxn--gmqw5axn--mxtq1mxn--12c1fe0brxn--h3cuzk1dixn--12co0c3b4evaxn--12cfi8ixb8lxn--o3cyx2axn--m3ch0j3axn--j1adpxn--90amcxn--90a1afxn--h1ahnxn--j1ael8bxn--h1alizxn--c1avgxn--j1aefxn--80aaa0cvacxn--41acaffeineexeopentunnelbotdashtelebitorgtmaccoagricorgmilnomwebnicngonetaltedugovlawnisschoolgrondaraccoorgmilcomschnetedugovbizinfoprg1-zeropstritonstackitlimazeropsaccoorgmilgovяспборгкоммскбизмирсамаракрымсочиакодпроргобрупрצהלממשלישובאקדמיהองค์กรธุรกิจรัฐบาลศึกษาทหารเน็ต教育網絡組織公司政府個人닷넷한국澳门新闻澳門联通家電嘉里招聘通販닷컴삼성コムგეбгрфеюadcdbdgdidmdsdtdaebedeeegeiejekemenepereseveyegabacalamanauavapaqasazacfbfafgfnfpfwftfbgcgagggegkgngmgsgpgvgtgugilmlnlalclglplsltlhmimjmkmmmomambmcmdmfmgmzmpmsmtmgbbblbsbecccacnclcmcvctcscmhkhghchbhthphshlinikifigiaibicivisikninhnmncnbngnsnpnvntnjoionomobocoaofodorosotoptstttytatbtetgtithtmtltrusuvuaucueuguhulumunufjdjbjtjsjlkmkhkfkdkcktkukskpkgpmpnpkpjpgqaqmqiqsvtvcvbvmvlvrwpwtwzwbwcwawgwkwmwtrsrprgrfrercrbrarnrmrlrkrirhrwsusrssspsgsesbsaslsmsissxmxaxcxuypysylymykygybycyuztzsznzmzkzdzczbzazελευ世界台灣购物公益点看臺灣网络書籍在线网站手机机构大拿游戏信息台湾谷歌慈善商标香港中国餐厅网址中國商城食品微博政务移动集团公司八卦商店健康网店政府时尚佛山中信娱乐广东企业homedepotengineeringاماراتrepublicankuokgroupversicherungchannelcitadelxn--pgbs0dhxn--b4w605ferdstatebankwebsitexn--mgb9awbf亚马逊淡马锡alibabaxn--ngbc5azdxn--mgbbh1axn--45br5cyltoshibabuildworldcloudtradeguideplacespacedancemoviephoneprimesmilebiblestyleappleazurestoreskypegripexn--l1accdrivelottehorsehouseleasechasereisestadahondaomegaaetnaamicaninjanokiamediadeltavodkaedekaosakapizzaslingemailgmailtirolshelltmallfinallegaltotalhotelamfamforumrehabmusicciticricohcoachwatchboschearthfaithirishmiamiarchidubaiguccipraxiみんなストアセールcanonsalononionnikonepsonkoelngreensevencrownikanoradioaudioweiboglobopromogalloyahoociscorodeovideomangobingotokyovolvolottokyotophotosmartsportquesttrusthyattjetztadultcymrubaidutushuxn--kprw13dubankclickblackmerckgroupsharpcheapnowtvxn--h2brj9cקוםհայоргсрбмонкомбелмкдқазрусукрمصرقطرعربكومdadcfdmedwedredphdthdbidpidkrdmsdltdiceonewmeglemoerwecfageacbanbambaaaammakianraspacpaaxawtfbcgaegongingaigvigorgdogdhlmilrilonlaolloluoljllcalgalnflafltelsrlfrllplkimibmcamcombommomifmabbjcbscbcabnabtabmlbpubabcbbcnecincpncllcstcwtcpwcnyckfhbzhovhmoiskiobisbitcifyituipinvinwinxincbnbcnmanfangdnmenrenkpnmtnyunrunfununobiojioriohbogmofooboooooacoecoceongoproartistottnttbbtcateatlatvetpetbetnethktmitfitintjothotgotdotbotprueduicujnjyouinknhktdkappsapgapmapdnptopgopllpjmpzipvipripesqtrvdtvitvdevmovgovhivnrwlawsewnewbmwwownowhowdvrftrmtrsfrbarcartvscrseusawsupsubssbsadsddsldssasbmsmlsxxxboxfoxgmxtjxsextaxbuyflydiysoyjoyskypaydaygayxyzanzbizwebersenerpokerlameractortatarsolarລາວคอมไทยtourslocusnexuslexusgiftsbeatsboatspartspressglassswissकॉमनेटtiresgivescodeshomesgamestunesshoescardswalesloansvegastoolsdealsautosparisファッションworkssucksrocksxeroxforexfedexpartylillymoneystudyrugbytoraytoday中文网xn--unup4y天主教飞利浦新加坡enterprises我爱你嘉里大酒店christmasxn--fct429kholdingsxn--8y0a063axn--mgbx4cd0ablifestyleabogadoallstatenetbankكاثوليكxn--s9brj9cxn--gk3at1ebestbuycharityxn--55qx5dmicrosoftpropertybasketballhomegoodscorsicajewelrygallerygrocerysurgerycountrybrusselsverisignferreroxn--czr694bhdfcbankcommbanksoftbankپاكستانپاکستانnextdirectالسعوديهالعليانxn--h2brj9c8cxn--80adxhksshikshaxn--mgbai9azgqp6jcuisinellabarclayscatholicxn--kpry57dcompanyxn--xhq521bblackfridayxn--mgba3a3ejtsandvikxn--d1acj3bacademydownloadمليسياxn--j1amhxn--w4r85el8fhu5dnraipirangaathletaxn--fhbeixn--mgbqly7cvafrzuerichxn--c2br7gஇலங்கைcontractorsxn--io0a7igraphicsinsurancetemasekxn--xkc2al3hye2amotorcyclesphotographydirectoryplumbingxn--vhquvclothingtrainingcleaningwilliamhilllightingxn--mgba3a4f16ashoppingcateringeducationokinawapicturesventuresproductionsxn--9et52uwalmartഭാരതംsupportrealestatecapitalonexn--nqv7fs00emaauspostfloristdentistxn--qxamgodaddybradescobargainsmitsubishikerryhotelsxn--9dbq2axn--3pxu8kimmobilienxn--fjq720axn--mgbtx2bholidaymckinseymadridbusinessbuildershelsinkixn--4gbrimмоскваالسعودیةcoffeedegreelacaixapartnersalsaceofficeabbvievoyageorangegeorgeonlinechromemobilekindlegoogleoraclecircleschulesecureinsurexn--mgba7c0bbn0aestatexn--mgbc0a9azcgcruisehangoutxn--vuq861bxn--42c2d9arexrothfirestoneuniversityxn--nnx388alifeinsuranceextraspaceонлайнvermögensberatersoftwarexn--fiqs8sxn--mgbab2bdxn--w4rs40ltiendaभारतम्africatoyotaotsukasakuracameracreditcardnagoyaconsultingnetworkjunipertheatermonsterprogressivepioneerxn--55qw42gracingdatingvotingvikinglivinggivingxn--bck1b9a5dre4cbrotherweatherjoburgفلسطينlplfinancialxn--clchc0ea0b2g2a9gcdfutbolschoolsocialglobaldentalwoodsidechanelairtelmatteltravelrealtorwebcamstreamభారత్unicomalstomxn--nodexn--6frz82gmuseumfurniturexn--rvc1e0am3exn--mix891faccenturexn--11b4c3dismailineustardiscountquebeccomsecclinicservicesxn--y9a3aqxn--c1avgswatchchurchsearchالاردنmarketingcontacthealthmonashshoujisanofitaipeiamericanexpresssuzukiアマゾンクラウドポイントbhartiグーグルxn--mgberp4a5d4armemorialxn--1qqw23alondonmormoninstitutevisionbostonnortoncouponmaisonamazonvirginberlindesigndurbanolayannissananquanxihuanhitachikaufengardenreisenbayerntechnologydatsunxn--90a3aclatinocasinostudiophysioxn--ngbe9e0apharmacytattootaobaoaramcoexpertreportabbottdirectselectimamatfairwindspictettargetmarketintuittravelersinsurancecreditdupontryukyusuppliesxn--tckwebnpparibasschmidtmerckmsdyodobashirestaurantbridgestonecricketxn--fpcrj9c3dbostikbroadwayattorneylefrakemerckxn--fiq228c5hscareersfarmerswinnersflowersxn--wgbh1cguitarsxn--54b7fta0ccxn--p1acfmakeupgalluplandroverxn--kcrx77d1x4agoldpointbauhausxn--mgbayh7gpahiphopplaystationxn--mgba3a4fraxn--eckvdtc9dhyundaixn--gckr3f0fistanbulticketsmarketsflightschintaireviewsxn--3e0b707ewindowsxn--fiqz9sfinancialxn--fzys8d69uvgmابوظبيdiscoverreviewবাংলাxn--5su34j936bgsgmoscowobserverapartmentsдетиارامكوсайтeurovisionxn--i1b6b1a6a2exn--xkc2dl3a5ee0hتونسموقعبارتڀارتشبكةعمانبيتكعراقreadkredbondlandbandfundfoodprodgoldfordtubecafesafelifeggeeieeefreefagepagegugezonewinememenamegamesaleablebikenikelikecarecbreherefiresaveloveliveblueartedatesitevotecaseluxebofamodaltdaasdatiaayogasinavanashiaasiajavabbvatevavivadatazaraarpacasavisasncfprofmaifsurfgolfdvagsongbingpingwangkpmggoogblogpohlfailcooldellcalldeallidlsarlfilmteamroomfarmimdbarabclubhdfcicbchsbcgmbhrichtechfishdishcashminiernikddiaudiwikimobitaxicitikiwidesiqponskinloanakdnwienopenporncerntownimmolimoolloinfonicofidolegosaxozeroaerovivoautovotomotofastbestresthostpostnextlgbtchatseatgiftmeetdietreitmintrentgentspotscotguruitausohumenucyoubanklinkpinkdclktalksilkbookseekworkrsvpaarpjeepshopcoophelpcamppccwshowbeerstarruhrflirweirhaircarsparsjprshausplusnewstipstoysjobskidsfanspicsdocsxboxamexsexynavycitysonyarmyallybabyplaydeliverybuzzgbizlamborghiniphilipsලංකාಭಾರತfitnessexpresslanxesspfizercenterwalterlawyersoccercareerkosherbrokerlockerdealerdoctorauthorxn--mgbqly7c0a67fbcvermögensberatungjaguarxn--pssy2uxn--hxt814eflickrrepairrogersairbusxn--mgbai9a5eva00beventsyachtsxn--t60b56aভাৰতভারতभारतभारोतviajeshermeshughesxn--j1aefसंगठनvillasଭାରତclaimshotelsભારતzapposphotosjuegoscondostatamotorsgratistennisਭਾਰਤtkmaxxtjmaxxschaeffleryandexxn--80aswgrealtysafetybeautyluxuryxn--3ds443gsupplyfamilyxn--o3cw4hhockeysydneyxn--90aenissayalipayenergycomputeragencyxn--rovu88b電訊盈科xn--gecrj9cstatefarmaccountantaquarelleolayangroup香格里拉xn--p1ai组织机构xn--1ck2e1bxn--mgbt3dhdschwarzموريتانياabudhabinowruzkomatsufujitsuhospitalxn--80asehdbxn--mgbtf8flxn--j6w193gxn--yfro4i67oprudentialxn--flw351ecruisescoursesrecipesxn--e1a4cferrarixn--ses554gxn--wgbl6awatchesstaplessinglesxn--mgbcpq6gpa1axn--otu796dpropertiescreditunionxn--mgbah1a3hjkrdstockholmhisamitsuالسعوديةstcgroupdomainsoriginscouponsbloombergclubmedfroganslimitedxn--80aqecdr1aexposedinternationalequipmentbarclaycardxn--q7ce6axn--mgbi4ecexpprotectionassociatesconstructionxn--cck2b3bxn--45q11candroidfoundationישראלxn--mgbca7dzdocliniqueboutiqueengineerxn--qxa6asystemsfirmdalefashionauctionxn--nqv7finfinitirentalsreliancetradingweddingfishinghostinggentingbookingcookingxn--3hcrj9cgraingerxn--czrs0tdemocratsamsungyokohamaxn--h2breg3evexn--nyqy26alundbeckmelbournevacationssolutionsfrontierxn--vermgensberatung-pwbmanagementxn--cg4bkixn--mgb2ddeslincolnhamburgsandvikcoromantblockbusterairforcebarefootxn--4dbrk0ceinvestmentsfeedbackcommunityxn--ngbrxالبحرينdiamondsamsterdamhealthcareredumbrellaxn--mxtq1mxn--2scrj9cagakhanxn--mgbpl2fhкатоликcaravanசிங்கப்பூர்richardlimortgageamericanfamilyxn--fzc2c9e2cscholarshipssaarlandxn--imr513nvlaanderensamsclubgoodyearkitchenஇந்தியாweatherchannelallfinanzxn--kput3iالسعودیۃxn--90aisxn--efvy88hالجزائرxn--mgbaam7a8hexchangejpmorganxn--tiq49xqyjfidelitysecurityxn--mk1bu44cwanggouxn--fiq64bxn--6qq986b3xlxn--mgbbh1a71exn--80ao21amarshallsxn--5tzm5gtravelerspanasoniclatrobeyoutubeaccountantsxn--rhqv96gxn--cckwcxetdanalyticsxn--ygbi2ammxبازاربھارتسوريةorganicfreseniusسورياxn--9krt00axn--qcka1pmcxn--jlq480n2rgdeloittesciencefinancexn--jvr189mxn--30rr7yhomesensehotmailbaseballfootballleclercboehringerxn--q9jyb4cxn--mix082fاليمنهمراهpolitieسودانايرانایرانnetflixyamaxunxn--lgbbat1ad8jcollegestoragecapetowncolognekerrypropertiesxn--mgbgu82axn--ogbpf8flxn--czru2dwhoswhociprianilasallexn--g2xx48cforsalebanamexaudiblexn--vermgensberater-ctbxn--zfr164bericssonvanguardxn--45brj9cindustriestheatremarriottxn--3bst00mcomparexn--mgberp4a5d4a87gcapitaldigitalالمغربbarcelonashangrilaxn--d1alfcalvinkleinwwwcitysapporokawasakinagoyasendaikobekitakyushuyokohamackjp",ife=621,lfe=625,mB=gc.length,gB=av.length,vB=new Uint32Array(gB),E1=new Uint32Array(gB),W3=new Int32Array(mB).fill(-1);for(let e=0,t=0;e<mB;e+=1)for(let n=sv[e];n<sv[e+1];n+=1){vB[n]=t;const r=t+av[n];let o=5381;for(let s=r-1;s>=t;s-=1)o=o*33^q3.charCodeAt(s);E1[n]=o>>>0,av[n]===1&&q3.charCodeAt(t)===42&&(W3[e]=n),t=r}let Va=-1,V3=0,G3=0;function xP(e,t,n,r){if(av[e]!==r)return!1;const o=vB[e];for(let s=0;s<r;s+=1)if(q3.charCodeAt(o+s)!==t.charCodeAt(n+s))return!1;return!0}function CP(e,t,n,r,o){let s=sv[e],i=sv[e+1];for(;s<i;){const c=s+i>>>1,u=E1[c];if(u<t)s=c+1;else if(u>t)i=c;else{for(let d=c;d>=s&&E1[d]===t;d-=1)if(xP(d,n,r,o))return d;for(let d=c+1;d<i&&E1[d]===t;d+=1)if(xP(d,n,r,o))return d;return-1}}return-1}function EP(e,t,n){let r=t,o=e.length,s=5381;Va=-1;for(let c=e.length-1;c>=0;c-=1){const u=e.charCodeAt(c);if(u===46){const d=c+1;let h=CP(r,s>>>0,e,d,o-d);if(h===-1&&(h=W3[r]),h===-1)return Va!==-1;r=wP[h],(gc[r]&n)!==0&&(Va=r,V3=d,G3=o),o=c,s=5381}else s=s*33^u}let i=CP(r,s>>>0,e,0,o);return i===-1&&(i=W3[r]),i!==-1&&(r=wP[i],(gc[r]&n)!==0&&(Va=r,V3=0,G3=o)),Va!==-1}function xBe(e,t,n){if(afe(e,t,n))return;const r=(t.allowPrivateDomains?2:0)|(t.allowIcannDomains?1:0);if(EP(e,lfe,r)){n.isIcann=(gc[Va]&1)!==0,n.isPrivate=(gc[Va]&2)!==0,n.publicSuffix=e.slice(G3+1);return}if(EP(e,ife,r)){n.isIcann=(gc[Va]&1)!==0,n.isPrivate=(gc[Va]&2)!==0,n.publicSuffix=e.slice(V3);return}n.isIcann=!1,n.isPrivate=!1;const o=e.lastIndexOf(".");n.publicSuffix=o===-1?e:e.slice(o+1)}const cfe=()=>x.jsxs("div",{className:"hidden h-full w-[17%] min-w-40 max-w-64 shrink-0 flex-col gap-1 border-r border-line p-3 md:flex",children:[x.jsx("div",{className:"mb-3 h-6 w-24 rounded bg-surface-sunken"}),Array.from({length:6}).map((e,t)=>x.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[x.jsx("div",{className:"size-5 shrink-0 rounded bg-surface-sunken"}),x.jsx("div",{className:"h-3.5 flex-1 rounded bg-surface-sunken"})]},t))]}),ufe=()=>x.jsx("div",{className:"min-w-0 flex-1",children:Array.from({length:8}).map((e,t)=>x.jsxs("div",{className:"flex items-start gap-3 border-b border-line py-2 pl-5 pr-4",children:[x.jsx("div",{className:"mt-0.5 size-7 shrink-0 rounded-full bg-surface-sunken"}),x.jsxs("div",{className:"flex-1 space-y-1.5",children:[x.jsxs("div",{className:"flex justify-between gap-2",children:[x.jsx("div",{className:"h-3.5 w-28 rounded bg-surface-sunken"}),x.jsx("div",{className:"h-3 w-12 rounded bg-surface-sunken"})]}),x.jsx("div",{className:"h-3.5 w-48 rounded bg-surface-sunken"}),x.jsx("div",{className:"h-3 w-full rounded bg-surface-sunken"})]})]},t))}),My=()=>x.jsxs("div",{className:"flex h-full animate-pulse bg-canvas","aria-hidden":"true",children:[x.jsx(cfe,{}),x.jsx(ufe,{})]}),Py="80c9b2819ba90c6d29d2c946da924d0bbfcec28d",dfe="2026-11-07T15:00:33.237Z",ffe=Py.slice(0,7),hfe=/^[0-9a-f]{40}$/.test(Py),pfe=hfe?`https://github.com/remit-mail/reader/commit/${Py}`:void 0;class Dy extends Error{constructor(t,n,r){super(t),this.status=n,this.body=r,this.name="ApiError"}status;body}const K3=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Qc=e=>{const t=e instanceof Dy?e.body:e;if(!K3(t))return;const{code:n,details:r}=t;if(typeof n=="string")return{code:n,details:K3(r)?r:void 0}},mfe=(e,t)=>{if(K3(e)&&e.message!==void 0&&e.message!==null){const n=String(e.message);if(n)return n}return`Request failed with status ${t}`},gfe=(e,t)=>new Dy(mfe(e,t),t,e),Qn=e=>{if(e instanceof Dy)return e.status;if(e&&typeof e=="object"){const t=e;if(typeof t.status=="number")return t.status;if(typeof t.statusCode=="number")return t.statusCode}},yB=e=>Qn(e)!==void 0,Ly=e=>{const t=Qn(e);return t!==void 0&&t>=500&&t<=599},zy=e=>!!(typeof DOMException<"u"&&e instanceof DOMException&&e.name==="AbortError"||e&&typeof e=="object"&&"name"in e&&e.name==="AbortError"),vfe=()=>typeof navigator<"u"&&navigator.onLine===!1,Uy=e=>zy(e)||yB(e)?!1:e instanceof oT?!0:vfe(),yfe=e=>!yB(e)&&!zy(e)&&!Uy(e),bB=e=>Ly(e)||yfe(e),bfe=e=>e instanceof Error&&e.name==="AuthTokenError"&&Qn(e)===403,jy=e=>Qn(e)===401||bfe(e),Sfe=(e,t)=>{if(t?.softError===!0)return!0;const n=t?.softErrorStatuses;if(!Array.isArray(n))return!1;const r=Qn(e);return r!==void 0&&n.includes(r)},wfe=[502,503,504],xfe=(e,t)=>{if(t?.restartExpected!==!0)return!1;const n=Qn(e);return n!==void 0&&wfe.includes(n)},Cfe=(e,t)=>Ly(e)?!xfe(e,t)&&t?.ownsServerErrors!==!0:zy(e)||Uy(e)||jy(e)?!1:bB(e)?!0:!Sfe(e,t),kT={softError:!0},Fy=(...e)=>({softErrorStatuses:e}),Efe={restartExpected:!0},_fe={ownsServerErrors:!0},SB=e=>Qn(e)===404,kfe=e=>Ly(e),Y3=new Set;let wB=null,xB=null;const Afe=e=>{xB=e},Tfe=e=>e instanceof Error?e:new Error(CB(e)),CB=e=>e instanceof Error?e.message||e.name:typeof e=="string"?e:e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"?e.message:"An unexpected server error occurred.",Ife=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`fatal-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,Wd=(e,t)=>{const n={error:e,message:CB(e),correlationId:Ife(),at:Date.now(),recoverable:t?.recoverable??kfe(e),stack:e instanceof Error?e.stack:void 0,componentStack:t?.componentStack};wB=n,Dfe(`Fatal: ${n.message} [${n.correlationId}]`),xB?.recordError(Tfe(e),{fatal:"true",correlationId:n.correlationId});for(const r of Y3)r(n);return n},Rfe=e=>(Y3.add(e),()=>{Y3.delete(e)}),Ofe=()=>wB,Nfe=20,_1=[],Mfe=new Set(["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"]);function Pfe(e){return typeof e!="string"?!1:Mfe.has(e.replace(/\.\s*$/,""))}function k1(e){_1.push(e),_1.length>Nfe&&_1.shift()}function Dfe(e){k1(e)}function Lfe(e){return e.map(t=>{if(typeof t=="string")return t;if(t instanceof Error)return`${t.name}: ${t.message}`;try{return JSON.stringify(t)}catch{return String(t)}}).join(" ")}function zfe(){const e=console.error.bind(console);console.error=(...t)=>{k1(Lfe(t)),e(...t)},window.addEventListener("error",t=>{Pfe(t.message)||(k1(`Uncaught ${t.error instanceof Error?`${t.error.name}: ${t.error.message}`:String(t.message)} (${t.filename}:${t.lineno})`),Wd(t.error??t.message))}),window.addEventListener("unhandledrejection",t=>{const n=t.reason,r=n instanceof Error?`${n.name}: ${n.message}`:String(n);k1(`Unhandled rejection: ${r}`),Wd(n)})}function Ufe(){return _1.slice()}const jfe=8,fd=[];function Ffe(e){const t=e.split(/[?#]/)[0],n=fd[fd.length-1];n&&n.path===t||(fd.push({path:t,timestamp:new Date().toISOString()}),fd.length>jfe&&fd.shift())}function $fe(){return fd.slice()}const Px=7500,_P=`
149
149
  … (truncated — the copy action on this screen has the full report)`;function Vd(e){return{appShortSha:ffe,appCommitUrl:pfe,appBuildTime:dfe,userAgent:navigator.userAgent,viewport:`${window.innerWidth}×${window.innerHeight}`,timestamp:new Date().toISOString(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,href:window.location.href,recentErrors:Ufe(),requests:Qoe(),routes:$fe(),failingRequest:Joe(),errorMessage:e?.errorMessage,stack:e?.stack,componentStack:e?.componentStack,quarantine:e?.quarantine,syncWarning:e?.syncWarning,title:e?.title}}function Dx(e){return["```",e,"```"].join(`
150
150
  `)}function EB(e){const t=/T(\d{2}:\d{2}:\d{2})/.exec(e);return t?t[1]:e}function Bfe(e){return`- **Version**: ${e.appCommitUrl?`[\`${e.appShortSha}\`](${e.appCommitUrl})`:`\`${e.appShortSha}\``} built ${e.appBuildTime}`}function Hfe(e){const t=e.status===0?"no response (transport failure)":`${e.status}`;return["## Failing request",`- **Endpoint**: \`${e.path}\``,`- **Method**: ${e.method}`,`- **Status**: ${t}`,`- **Correlation id**: ${e.correlationId??"(none)"}`,""]}function qfe(e){return e.length===0?["## Recent API requests","(none)",""]:["## Recent API requests","| Time | Method | Path | Status | Duration | Correlation |","| --- | --- | --- | --- | --- | --- |",...e.map(n=>{const r=n.status===0?"ERR":`${n.status}`;return`| ${EB(n.timestamp)} | ${n.method} | \`${n.path}\` | ${r} | ${n.durationMs}ms | ${n.correlationId??""} |`}),""]}function Wfe(e){return e.length===0?["## Navigation trail","(none)",""]:["## Navigation trail",...e.map(n=>`- ${EB(n.timestamp)} \`${n.path}\``),""]}function _B(e,t){const n=e.recentErrors.length>0?e.recentErrors.map(s=>` - ${s}`).join(`
151
151
  `):" (none)",r=["## Environment",Bfe(e),`- **Browser**: ${e.userAgent}`,`- **Viewport**: ${e.viewport}`,`- **Time**: ${e.timestamp} (${e.timezone})`,"","## URL",e.href,""];if(e.errorMessage&&r.push("## Error",e.errorMessage,""),e.failingRequest&&r.push(...Hfe(e.failingRequest)),e.quarantine){const s=t?.quarantineStructure??e.quarantine.structure;r.push(e.quarantine.head,"",Dx(s),"",e.quarantine.disclaimer,"")}e.syncWarning&&r.push(e.syncWarning,"");const o=t?.stack??e.stack;return o&&r.push("## Stacktrace",Dx(o),""),e.componentStack&&r.push("## Component stack",Dx(e.componentStack),""),r.push(...qfe(e.requests)),r.push(...Wfe(e.routes)),r.push("## Recent console errors",n,"","## Steps to reproduce","1. ","","## Expected behaviour","","## Actual behaviour",""),r.join(`
@@ -346,4 +346,4 @@ ${n.join(`
346
346
 
347
347
  `)}return C.write("payload.value = newResult;"),C.write("return payload;"),C.compile()};let i;const c=Kv,u=!Ts.jitless,h=u&&lNe.value,m=t.catchall;let g;e._zod.parse=(v,S)=>{g??(g=r.value);const b=v.value;return c(b)?u&&h&&S?.async===!1&&S.jitless!==!0?(i||(i=s(t.shape)),v=i(v,S),m?bK([],b,v,S,g,e,S?.abortEarly===!0):v):n(v,S):(v.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),v)}});function lU(e,t,n,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!Xa(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(i=>Al(i,r,ia())))}),t)}const APe=he("$ZodUnion",(e,t)=>{Cn.init(e,t),Ut(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),Ut(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ut(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),Ut(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){const o=r.def.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>TR(s.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let s=!1;const i=[];for(const c of t.options){const u=c._zod.run({value:r.value,issues:[]},o);if(u instanceof Promise)i.push(u),s=!0;else{if(u.issues.length===0)return u;i.push(u)}}return s?Promise.all(i).then(c=>lU(c,r,e,o)):lU(i,r,e,o)}}),TPe=he("$ZodIntersection",(e,t)=>{Cn.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([u,d])=>cU(n,u,d)):cU(n,s,i)}});function _A(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(of(e)&&of(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(const s of r){if(s==="__proto__")continue;const i=_A(e[s],t[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};o[s]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],s=t[r],i=_A(o,s);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function cU(e,t,n){const r=new Map;let o;const s=new Map,i=(d,h)=>{let m;if(d.code==="unrecognized_keys"&&!d.path?.length)o??(o=d),m=d.keys;else if(d.code==="invalid_key"&&d.origin==="record"&&d.path?.length===1){const g=String(d.path[0]);s.has(g)||s.set(g,d),m=[g]}else return!1;for(const g of m)r.has(g)||r.set(g,{}),r.get(g)[h]=!0;return!0};for(const d of t.issues)i(d,"l")||e.issues.push(d);for(const d of n.issues)i(d,"r")||e.issues.push(d);const c=[...r].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(c.length){const d=o?c.filter(h=>o.keys.includes(h)):[];d.length&&e.issues.push({...o,keys:d});for(const h of c)!d.includes(h)&&s.has(h)&&e.issues.push(s.get(h))}const u=_A(t.value,n.value);if(!u.valid){if(Xa(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`)}return e.value=u.data,e}const IPe=he("$ZodRecord",(e,t)=>{Cn.init(e,t);const n=Ts.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{const s=r.value;if(!of(s))return r.issues.push({expected:"record",code:"invalid_type",input:s,inst:e}),r;const i=[],c=t.keyType._zod.values;if(c&&!t.partial){r.value=n?n.alloc(e,r,{},o):{};const u=new Set;for(const h of c)if(typeof h=="string"||typeof h=="number"||typeof h=="symbol"){if(u.add(typeof h=="number"?h.toString():h),h==="__proto__")continue;const m=t.keyType._zod.run({value:h,issues:[]},o);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(m.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(S=>Al(S,o,ia())),input:h,path:[h],inst:e});continue}const g=m.value;if(g==="__proto__")continue;const v=t.valueType._zod.run({value:s[h],issues:[]},o);v instanceof Promise?i.push(v.then(S=>{S.issues.length&&r.issues.push(...Id(h,S.issues)),r.value[g]=S.value})):(v.issues.length&&r.issues.push(...Id(h,v.issues)),r.value[g]=v.value)}let d;for(const h in s)if(!u.has(h))if(t.mode==="loose"){if(h==="__proto__")continue;r.value[h]=s[h]}else d=d??[],d.push(h);d&&d.length>0&&r.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:d,continue:!0})}else{r.value=n?n.alloc(e,r,{},o):{};let u;for(const d of Reflect.ownKeys(s)){if(d==="__proto__"||!Object.prototype.propertyIsEnumerable.call(s,d))continue;let h=t.keyType._zod.run({value:d,issues:[]},o);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof d=="string"&&MR.test(d)&&h.issues.length){const S=t.keyType._zod.run({value:Number(d),issues:[]},o);if(S instanceof Promise)throw new Error("Async schemas not supported in object keys currently");S.issues.length===0&&(h=S)}if(h.issues.length){t.mode==="loose"?r.value[d]=s[d]:c?(u=u??[],u.push(d)):r.issues.push({code:"invalid_key",origin:"record",issues:h.issues.map(S=>Al(S,o,ia())),input:d,path:[d],inst:e});continue}const g=h.value;if(g==="__proto__")continue;const v=t.valueType._zod.run({value:s[d],issues:[]},o);v instanceof Promise?i.push(v.then(S=>{S.issues.length&&r.issues.push(...Id(d,S.issues)),r.value[g]=S.value})):(v.issues.length&&r.issues.push(...Id(d,v.issues)),r.value[g]=v.value)}u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:u,continue:!0})}return i.length?Promise.all(i).then(()=>r):r}}),RPe=he("$ZodEnum",(e,t)=>{Cn.init(e,t);const n=wA(t.entries),r=new Set(n);e._zod.values=r,Ut(e,"pattern",o=>{const s=wA(o.def.entries).filter(i=>cNe.has(typeof i));return new RegExp(s.length?`^(${s.map(i=>sf(i.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,s)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),OPe=he("$ZodLiteral",(e,t)=>{Cn.init(e,t);const n=new Set(t.values);e._zod.values=n,Ut(e,"pattern",r=>{const o=r.def.values;return new RegExp(o.length?`^(${o.map(s=>typeof s=="string"?sf(s):s?sf(s.toString()):String(s)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,o)=>{const s=r.value;return n.has(s)||r.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),r}}),NPe=he("$ZodTransform",(e,t)=>{Cn.init(e,t),e._zod.optin="optional",Ts.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new rK(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n));if(o instanceof Promise)throw new Mc;return n.value=o,n}});function uU(e,t){return e.value=t.issues.length?void 0:t.value,e}const SK=he("$ZodOptional",(e,t)=>{Cn.init(e,t),Ut(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Ut(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),Ut(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${TR(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;const o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(s=>uU(n,s)):uU(n,o)}return t.innerType._zod.run(n,r)}}),MPe=he("$ZodExactOptional",(e,t)=>{SK.init(e,t),Ut(e,"values",n=>n.def.innerType._zod.values),Ut(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),PPe=he("$ZodNullable",(e,t)=>{Cn.init(e,t),Ut(e,"optin",n=>n.def.innerType._zod.optin),Ut(e,"optout",n=>n.def.innerType._zod.optout),Ut(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${TR(r.source)}|null)$`):void 0}),Ut(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),DPe=he("$ZodDefault",(e,t)=>{Cn.init(e,t),e._zod.optin="defaulted",Ut(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>dU(s,t)):dU(o,t)}});function dU(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const LPe=he("$ZodPrefault",(e,t)=>{Cn.init(e,t),e._zod.optin="defaulted",Ut(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),zPe=he("$ZodNonOptional",(e,t)=>{Cn.init(e,t),Ut(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>fU(s,e)):fU(o,e)}});function fU(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function hU(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>Al(o,r,ia()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}const UPe=he("$ZodCatch",(e,t)=>{Cn.init(e,t),Ut(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Ut(e,"optout",n=>n.def.innerType._zod.optout),Ut(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(s=>hU(n,s,t,r)):hU(n,o,t,r)}}),jPe=he("$ZodPipe",(e,t)=>{Cn.init(e,t),Ut(e,"values",n=>n.def.in._zod.values),Ut(e,"optin",n=>n.def.in._zod.optin),Ut(e,"optout",n=>n.def.out._zod.optout),Ut(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(i=>t1(i,t.in,r)):t1(s,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>t1(s,t.out,r)):t1(o,t.out,r)}});function t1(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const FPe=he("$ZodReadonly",(e,t)=>{Cn.init(e,t),Ut(e,"propValues",n=>n.def.innerType._zod.propValues),Ut(e,"values",n=>n.def.innerType._zod.values),Ut(e,"optin",n=>n.def.innerType?._zod?.optin),Ut(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(pU):pU(o)}});function pU(e){return e.memo||(e.value=Object.freeze(e.value)),e}const $Pe=he("$ZodCustom",(e,t)=>{po.init(e,t),Cn.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(s=>mU(s,n,r,e));mU(o,n,r,e)}});function mU(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(im(o))}}class BPe extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}const kA="~memo",gU=[];function wK(e){return e!==null&&typeof e=="object"}function X_(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}const xK=new WeakMap,up=0,q1=1,kp=2;function W1(e,t,n){const r=xK.get(e);if(r!==void 0)return r?kp:up;if(t.has(e))return kp;t.add(e);let o=up;const s=h=>{if(o!==kp&&h?._zod){const m=W1(h,t);m>o&&(o=m)}},i=(h,m)=>{let g=up;for(const v of Reflect.ownKeys(h)){const S=Object.getOwnPropertyDescriptor(h,v);if(!S.enumerable)continue;const b=S.get?q1:S.value?._zod?W1(S.value,t):up;b>g&&(g=b)}return g},c=h=>{h>o&&(o=h)},u=e._zod.def;switch(u.type){case"object":{const h=GG(u);c(h?i(h):q1),s(u.catchall);break}case"array":s(u.element);break;case"tuple":for(const h of u.items)s(h);s(u.rest);break;case"record":case"map":s(u.keyType),s(u.valueType);break;case"set":s(u.valueType);break;case"union":for(const h of u.options)s(h);break;case"intersection":s(u.left),s(u.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":s(u.innerType);break;case"pipe":s(u.in),s(u.out);break;case"function":s(u.input),s(u.output);break;case"lazy":{const h=u._cachedInner??void 0;c(h?W1(h,t):q1);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const h in u){const m=Object.getOwnPropertyDescriptor(u,h);if(!m||m.get)continue;const g=m.value;if(!(!g||typeof g!="object")){if(g._zod)s(g);else if(Array.isArray(g))for(const v of g)s(v)}}}return t.delete(e),HPe(e,o)}function HPe(e,t){return t!==q1&&xK.set(e,t===kp),t}function qPe(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}let n1;const r1=[],WPe={alloc(e,t,n){const r=n1;if(!r)return n;n1=void 0;const o={value:n,issues:null};return r.set(t.value,o),r1.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const n=e._zod.parse,r=(o,s)=>{if(s.direction!=="backward"&&GPe(s,o.value))throw new BPe;return n(o,s)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,o,s;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const i=e._zod.parse,c=(u,d)=>{if(n===void 0){const E=W1(e,new Set);if(E===up)return e._zod.parse=i,e._zod.run===c&&(e._zod.run=i),i(u,d);E===kp||r?n=!0:r=!0}const h=u.value;if(!wK(h))return i(u,d);let m=d[kA];m||(m={buckets:new WeakMap,backEdges:void 0},d[kA]=m);let g;o===d?g=s:(g=qPe(m,e),o=d,s=g);const v=g.get(h);if(v)return u.value=v.value,v.issues?v.issues.length&&u.issues.push(...X_(v.issues)):(u.memo=!0,m.backEdges??(m.backEdges=new WeakSet),m.backEdges.add(v.value)),u;n1=g;const S=r1.length,b=i(u,d);n1=void 0;const C=r1.length>S?r1.pop():void 0;return b instanceof Promise?b.then(E=>(C&&(C.issues=E.issues.length?X_(E.issues):gU),E)):(C&&(C.issues=b.issues.length?X_(b.issues):gU),b)};e._zod.parse=c,e._zod.run===i&&(e._zod.run=c)})}};function VPe(){return WPe}function GPe(e,t){const n=e[kA]?.backEdges;return n!==void 0&&wK(t)&&n.has(t)}const KPe=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(s){return e[s]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(s,i){return s==="number"&&typeof i=="number"&&!Number.isFinite(i)?String(i):r[s]??s}return s=>{switch(s.code){case"invalid_type":{const i=o(s.expected),c=SNe(s.input),u=o(c,s.input);return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return s.values.length===1?`Invalid input: expected ${QG(s.values[0])}`:`Invalid option: expected one of ${Jz(s.values,"|")}`;case"too_big":{const i=s.exact?"exactly ":s.inclusive?"<=":"<",c=t(s.origin);return c?`Too big: expected ${s.origin??"value"} to have ${i}${s.maximum.toString()} ${c.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${i}${s.maximum.toString()}`}case"too_small":{const i=s.exact?"exactly ":s.inclusive?">=":">",c=t(s.origin);return c?`Too small: expected ${s.origin} to have ${i}${s.minimum.toString()} ${c.unit}`:`Too small: expected ${s.origin} to be ${i}${s.minimum.toString()}`}case"invalid_format":{const i=s;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??s.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${Jz(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Invalid discriminator value. Expected ${s.options.map(c=>`'${c}'`).join(" | ")}`:s.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}};function YPe(){return{localeError:KPe()}}var vU;class ZPe{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function XPe(){return new ZPe}(vU=globalThis).__zod_globalRegistry??(vU.__zod_globalRegistry=XPe());const dp=globalThis.__zod_globalRegistry;function zR(e){return e.checks&&(e.checks=[...e.checks]),e}function QPe(e,t){return new e(zR({type:"string",...je(t)}))}function CK(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...je(t)})}function JPe(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...je(t)})}function e8e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...je(t)})}function t8e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...je(t)})}function n8e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...je(t)})}function r8e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...je(t)})}function o8e(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...je(t)})}function s8e(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...je(t)})}function a8e(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...je(t)})}function i8e(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...je(t)})}function l8e(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...je(t)})}function c8e(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...je(t)})}function u8e(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...je(t)})}function d8e(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...je(t)})}function f8e(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...je(t)})}function h8e(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...je(t)})}function p8e(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...je(t)})}function m8e(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...je(t)})}function g8e(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...je(t)})}function v8e(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...je(t)})}function y8e(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...je(t)})}function b8e(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...je(t)})}function EK(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...je(t)})}function _K(e,t){return new e({type:"string",format:"date",check:"string_format",...je(t)})}function S8e(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...je(t)})}function w8e(e,t){return new e({type:"string",format:"duration",check:"string_format",...je(t)})}function x8e(e,t){return new e(zR({type:"number",checks:[],...je(t)}))}function Kqe(e,t){return new e(zR({type:"number",coerce:!0,checks:[],...je(t)}))}function C8e(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...je(t)})}function E8e(e,t){return new e({type:"boolean",...je(t)})}function _8e(e){return new e({type:"unknown"})}function k8e(e,t){return new e({type:"never",...je(t)})}function yU(e,t){return new lK({check:"less_than",...je(t),value:e,inclusive:!1})}function Q_(e,t){return new lK({check:"less_than",...je(t),value:e,inclusive:!0})}function bU(e,t){return new cK({check:"greater_than",...je(t),value:e,inclusive:!1})}function J_(e,t){return new cK({check:"greater_than",...je(t),value:e,inclusive:!0})}function SU(e,t){return new EMe({check:"multiple_of",...je(t),value:e})}function kK(e,t){return new kMe({check:"max_length",...je(t),maximum:e})}function Qv(e,t){return new AMe({check:"min_length",...je(t),minimum:e})}function AK(e,t){return new TMe({check:"length_equals",...je(t),length:e})}function A8e(e,t){return new IMe({check:"string_format",format:"regex",...je(t),pattern:e})}function T8e(e){return new RMe({check:"string_format",format:"lowercase",...je(e)})}function I8e(e){return new OMe({check:"string_format",format:"uppercase",...je(e)})}function R8e(e,t){return new NMe({check:"string_format",format:"includes",...je(t),includes:e})}function O8e(e,t){return new MMe({check:"string_format",format:"starts_with",...je(t),prefix:e})}function N8e(e,t){return new PMe({check:"string_format",format:"ends_with",...je(t),suffix:e})}function Af(e){return new DMe({check:"overwrite",tx:e})}function M8e(e){return Af(t=>t.normalize(e))}function P8e(){return Af(e=>e.trim())}function D8e(){return Af(e=>e.toLowerCase())}function L8e(){return Af(e=>e.toUpperCase())}function z8e(){return Af(e=>iNe(e))}function U8e(e,t,n){return new e({type:"array",element:t,...je(n)})}function j8e(e,t,n){return new e({type:"custom",check:"custom",fn:t,...je(n)})}function F8e(e,t){const n=$8e(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(im(o,r.value,n._zod.def));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=r.value),s.inst??(s.inst=n),s.continue??(s.continue=!n._zod.def.abort),r.issues.push(im(s))}},e(r.value,r)),t);return n}function $8e(e,t){const n=new po({check:"custom",...je(t)});return n._zod.check=e,n}function Ap(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Nl(e,r,n[r]);return e}function TK(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??dp,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Il(e,t,n,r,o){const s=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(s==="any")return!1;if(s===void 0||s==="throw")throw new Error(o);return Object.assign(n,s),!0}function Zn(e,t,n={path:[],schemaPath:[]}){var r;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;const c=e._zod.toJSONSchema?.();if(c)i.schema=c;else{const h={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,h);else{const g=i.schema,v=t.processors[o.type];if(!v)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);v(e,t,g,h)}const m=e._zod.parent;m&&(i.ref||(i.ref=m),Zn(m,t,h),t.seen.get(m).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Ap(i.schema,u),t.io==="input"&&Fr(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function wU(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function IK(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const r=new Map;for(const i of e.seen.entries()){const c=e.metadataRegistry.get(i[0])?.id;if(c){const u=r.get(c);if(u&&u!==i[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(c,i[0])}}const o=i=>{const c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const m=e.external.registry.get(i[0])?.id,g=e.external.uri??(S=>S);if(m)return{ref:g(m)};const v=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=v,{defId:v,ref:`${g("__shared")}#/${c}/${wU(v)}`}}const u="#",d=`${u}/${c}/`;if(i[1]===n&&!i[1].schema.id)return{ref:u};const h=i[1].schema.id??`__schema${e.counter++}`;return{defId:h,ref:d+wU(h)}},s=i=>{if(i[1].schema.$ref)return;const c=i[1],{ref:u,defId:d}=o(i);c.def={...c.schema},d&&(c.defId=d);const h=c.schema;for(const m in h)delete h[m];h.$ref=u};if(e.cycles==="throw")for(const i of e.seen.entries()){const c=i[1];if(c.cycle)throw new Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
348
348
 
349
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const i of e.seen.entries()){const c=i[1];if(t===i[0]){s(i);continue}if(e.external){const d=e.external.registry.get(i[0])?.id;if(t!==i[0]&&d){s(i);continue}}if(e.metadataRegistry.get(i[0])?.id){s(i);continue}if(c.cycle){s(i);continue}c.count>1&&e.reused==="ref"&&s(i)}e.external&&(e.sharedDefsExtractedFor=e.external)}function RK(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const n=[];for(const r of t){if(!r||typeof r!="object")return;RK(r);const o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;const s=r.type;for(const i of Array.isArray(s)?s:[s]){if(typeof i!="string")return;n.includes(i)||n.push(i)}}delete e.anyOf,e.type=n.length===1?n[0]:n}const OK=new Set(["type","properties","required","additionalProperties"]),xU=["oneOf","anyOf"];function CU(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function AA(e){const t=[];for(const s of e){if(typeof s!="object"||s.type!=="object")return null;for(const i in s)if(!OK.has(i))return null;t.push(s)}const n={},r=new Set;for(const s of t){for(const i in s.properties){if(Object.prototype.hasOwnProperty.call(n,i))continue;const c=[];for(const d of t){const h=d.properties?.[i]??CU(d);h!=null&&(c.some(m=>JSON.stringify(m)===JSON.stringify(h))||c.push(h))}const u=c.length===1?c[0]:AA(c)??{allOf:c};Nl(n,i,u)}for(const i of s.required??[])r.add(i)}const o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(s=>s.additionalProperties===!1))o.additionalProperties=!1;else{const s=[];for(const i of t){const c=CU(i);c&&!s.some(u=>JSON.stringify(u)===JSON.stringify(c))&&s.push(c)}s.length===1?o.additionalProperties=s[0]:s.length>1&&(o.additionalProperties={allOf:s})}return o}function B8e(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const o of OK)if(o in e)return;const n=t.filter(o=>xU.some(s=>Array.isArray(o[s])));let r=null;if(!n.length)r=AA(t);else{const o=n[0],s=xU.find(u=>Array.isArray(o[u]));if(Object.keys(o).length!==1)return;const i=t.filter(u=>u!==o),c=o[s].map(u=>AA([...i,u]));if(c.some(u=>!u))return;r={[s]:c}}r&&(delete e.allOf,Ap(e,r))}function NK(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=c=>{const u=e.seen.get(c);if(u.ref===null)return;const d=u.def??u.schema,h={...d},m=u.ref;if(u.ref=null,m){r(m);const v=e.seen.get(m),S=v.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(S)):Ap(d,S),Ap(d,h),c._zod.parent===m)for(const C in d)C==="$ref"||C==="allOf"||C in h||delete d[C];if(S.$ref&&v.def)for(const C in d)C==="$ref"||C==="allOf"||C in v.def&&JSON.stringify(d[C])===JSON.stringify(v.def[C])&&delete d[C]}const g=c._zod.parent;if(g&&g!==m){r(g);const v=e.seen.get(g);if(v?.schema.$ref&&(d.$ref=v.schema.$ref,v.def))for(const S in d)S==="$ref"||S==="allOf"||S in v.def&&JSON.stringify(d[S])===JSON.stringify(v.def[S])&&delete d[S]}e.override({zodSchema:c,jsonSchema:d,path:u.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const c of[...e.seen.entries()].reverse())r(c[0]);if(e.target!=="openapi-3.0")for(const c of e.seen.entries())RK(c[1].def??c[1].schema);for(const c of e.deferred)c();if(e.intersections.length){const c=new Map;for(const u of e.seen.values())for(const d of[u.schema,u.def]){const h=d?.allOf;if(!Array.isArray(h))continue;const m=c.get(h);m?m.push(d):c.set(h,[d])}for(const u of e.intersections)for(const d of c.get(u)??[])B8e(d)}}const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const c=e.external.registry.get(t)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(c)}Ap(o,n.defId?n.schema:n.def??n.schema);const s=e.metadataRegistry.get(t)?.id;s!==void 0&&o.id===s&&delete o.id;const i=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const c of e.seen.entries()){const u=c[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,Nl(i,u.defId,u.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const c=JSON.parse(JSON.stringify(o));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:Jv(t,"input",e.processors),output:Jv(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function Fr(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Fr(r.element,n);if(r.type==="set")return Fr(r.valueType,n);if(r.type==="lazy")return Fr(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return Fr(r.innerType,n);if(r.type==="intersection")return Fr(r.left,n)||Fr(r.right,n);if(r.type==="record"||r.type==="map")return Fr(r.keyType,n)||Fr(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Fr(r.in,n)||Fr(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Fr(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Fr(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Fr(o,n))return!0;return!!(r.rest&&Fr(r.rest,n))}return!1}const H8e=(e,t={})=>n=>{const r=TK({...n,processors:t});return Zn(e,r),IK(r,e),NK(r,e)},Jv=(e,t,n={})=>r=>{const{libraryOptions:o,target:s}=r??{},i=TK({...o??{},target:s,io:t,processors:n});return Zn(e,i),IK(i,e),NK(i,e)},af=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},lf=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},EU=(e,t)=>{af(e,"minimum",t),lf(e,"maximum",t)},MK=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},PK=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},DK=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},LK=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},_U=(e,t)=>af(e,"minimum",t.minimum),kU=(e,t)=>lf(e,"maximum",t.maximum),AU=e=>(t,n)=>{LK(t,n.format);const[r,o]=e[n.format];af(t,"minimum",r),lf(t,"maximum",o)},q8e={greater_than:(e,t)=>af(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>lf(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>MK(e,t.value),number_format:AU(JG),bigint_format:AU(dNe),min_length:_U,max_length:kU,length_equals:(e,t)=>EU(e,t.length),min_size:_U,max_size:kU,size_equals:(e,t)=>EU(e,t.size),string_format:(e,t)=>{LK(e,t.format),t.pattern&&PK(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>DK(e,t.mime)};function ws(e){const t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(const s of r)q8e[s._zod.def.check]?.(t,s._zod.def);const o=e._zod.bag;o.minimum!==void 0&&af(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&af(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&lf(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&lf(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&MK(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&DK(t,o.mime);for(const s of o.patterns??[])PK(t,s);return t}const W8e={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},V8e=new Map([[gK,dMe],[LR,fMe]]),zK=e=>V8e.get(e)??e,G8e=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:s,maximum:i,format:c,patterns:u,contentEncoding:d,laxFormat:h}=ws(e);if(typeof s=="number"&&(o.minLength=s),typeof i=="number"&&(o.maxLength=i),c&&(o.format=W8e[c]??c,o.format===""&&delete o.format,(c==="time"||h)&&delete o.format),d&&(o.contentEncoding=d),u&&u.size>0){const m=[...u].map(zK);m.length===1?o.pattern=m[0].source:m.length>1&&(o.allOf=[...m.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},K8e=(e,t,n,r)=>{const o=n,{minimum:s,maximum:i,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:d,isInt:h}=ws(e);o.type=h?"integer":"number";const m=typeof d=="number"&&d>=(s??Number.NEGATIVE_INFINITY),g=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),v=t.target==="draft-04"||t.target==="openapi-3.0";if(m?v?(o.minimum=d,o.exclusiveMinimum=!0):o.exclusiveMinimum=d:typeof s=="number"&&(o.minimum=s),g?v?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u:typeof i=="number"&&(o.maximum=i),c){const S=new Set;for(const E of c)Number.isFinite(E)&&E!==0?S.add(Math.abs(E)):Il(e,t,o,r,`A multipleOf divisor of ${E} cannot be represented in JSON Schema`);const[b,...C]=S;b!==void 0&&(o.multipleOf=b),C.length&&(o.allOf=[...o.allOf??[],...C.map(E=>({multipleOf:E}))])}},Y8e=(e,t,n,r)=>{n.type="boolean"},Z8e=(e,t,n,r)=>{n.not={}},X8e=(e,t,n,r)=>{},Q8e=(e,t,n,r)=>{const o=e._zod.def,s=wA(o.entries);if(s.length===0){n.not={};return}s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),n.enum=s},J8e=(e,t,n,r)=>{const o=e._zod.def;if(o.values.length===0){n.not={};return}const s=[];for(const i of o.values)if(i===void 0){if(Il(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof i=="bigint"){if(Il(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;s.push(Number(i))}else s.push(i);if(s.length!==0)if(s.length===1){const i=s[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),s.every(i=>typeof i=="boolean")&&(n.type="boolean"),s.every(i=>i===null)&&(n.type="null"),n.enum=s},e7e=(e,t,n,r)=>{Il(e,t,n,r,"Custom types cannot be represented in JSON Schema")},t7e=(e,t,n,r)=>{Il(e,t,n,r,"Transforms cannot be represented in JSON Schema")},n7e=(e,t,n,r)=>{const o=n,s=e._zod.def,{minimum:i,maximum:c}=ws(e);typeof i=="number"&&(o.minItems=i),typeof c=="number"&&(o.maxItems=c),o.type="array",o.items=Zn(s.element,t,{...r,path:[...r.path,"items"]})};function ey(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?ey(t.out):t.type==="catch"?ey(t.innerType):e._zod.optin}const r7e=(e,t,n,r)=>{const o=n,s=e._zod.def,i=s.shape;if(Object.getOwnPropertySymbols(i).length&&Il(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(const d in i)Nl(o.properties,d,Zn(i[d],t,{...r,path:[...r.path,"properties",d]}));const u=[];for(const d of Object.keys(i)){const h=s.shape[d];(t.io==="input"?ey(h)===void 0:h._zod.optout===void 0)&&u.push(d)}u.length>0&&(o.required=u),s.catchall?._zod.def.type==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=Zn(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},o7e=(e,t,n,r)=>{const o=e._zod.def,s=o.inclusive===!1,i=o.options.map((c,u)=>Zn(c,t,{...r,path:[...r.path,s?"oneOf":"anyOf",u]}));s?n.oneOf=i:n.anyOf=i},s7e=(e,t,n,r)=>{const o=e._zod.def,s=Zn(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Zn(o.right,t,{...r,path:[...r.path,"allOf",1]}),c=d=>"allOf"in d&&Object.keys(d).length===1,u=[...c(s)?s.allOf:[s],...c(i)?i.allOf:[i]];n.allOf=u,t.intersections.push(u)};function TA(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);const S=e.get(t)?.def;if(!S)return t;const b=TA(e,S,n);return b===S?t:b}for(const S of["anyOf","oneOf"]){const b=t[S];if(!Array.isArray(b))continue;const C=b.map(E=>TA(e,E,n));C.some((E,k)=>E!==b[k])&&(t={...t,[S]:C})}const r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(S=>S==="number"||S==="integer"),s=t.enum??(t.const!==void 0?[t.const]:void 0);if(!o&&!s?.some(S=>typeof S=="number"))return t;const{minimum:i,maximum:c,exclusiveMinimum:u,exclusiveMaximum:d,multipleOf:h,format:m,id:g,...v}=t;return v.enum?v.enum=v.enum.map(S=>typeof S=="number"?String(S):S):typeof v.const=="number"&&(v.const=String(v.const)),o&&(v.type="string",s||(v.pattern=(r.includes("number")?MR:SMe).source)),v}const IA=new WeakMap;function a7e(e){const t=new Map;for(const r of e.seen.values())r.def&&!t.has(r.schema)&&t.set(r.schema,r);const n=new Map;for(const r of IA.get(e)??[]){const o=e.seen.get(r),s=(o?.def??o?.schema)?.propertyNames;if(!s||s===!0||n.has(s))continue;const i=TA(t,s,new Set);i!==s&&n.set(s,i)}if(n.size)for(const r of e.seen.values())for(const o of[r.schema,r.def]){const s=o&&n.get(o.propertyNames);s&&(o.propertyNames=s)}}const i7e=(e,t,n,r)=>{const o=n,s=e._zod.def;o.type="object";const i=s.keyType,c=ws(i).patterns;if(s.mode==="loose"&&c&&c.size>0){const h=Zn(s.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const m of c)Nl(o.patternProperties,zK(m).source,h)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=Zn(s.keyType,t,{...r,path:[...r.path,"propertyNames"]});let h=IA.get(t);h||(h=[],IA.set(t,h),t.deferred.push(()=>a7e(t))),h.push(e)}o.additionalProperties=Zn(s.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}const u=i._zod.values,d=t.io==="input"&&ey(s.valueType)!==void 0;if(u&&!s.partial&&!d){const h=[...u].filter(m=>typeof m=="string"||typeof m=="number");h.length>0&&(o.required=h.map(String))}},l7e=(e,t,n,r)=>{const o=e._zod.def,s=Zn(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},c7e=(e,t,n,r)=>{const o=e._zod.def;Zn(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},UR=Symbol();function UK(e,t,n,r,o){let s=!1;const i=JSON.stringify(e,(c,u)=>typeof u!="bigint"?u:(s=!0,null));return s?(Il(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),UR):JSON.parse(i)}const u7e=(e,t,n,r)=>{const o=e._zod.def;Zn(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType;const i=UK(o.defaultValue,e,t,n,r);i!==UR&&(n.default=i)},d7e=(e,t,n,r)=>{const o=e._zod.def;Zn(o.innerType,t,r);const s=t.seen.get(e);if(s.ref=o.innerType,t.io!=="input")return;const i=UK(o.defaultValue,e,t,n,r);i!==UR&&(n._prefault=i)},f7e=(e,t,n,r)=>{const o=e._zod.def;Zn(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{Il(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=i},h7e=(e,t,n,r)=>{const o=e._zod.def,s=o.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?s?o.out:o.in:o.out;Zn(i,t,r);const c=t.seen.get(e);c.ref=i},p7e=(e,t,n,r)=>{const o=e._zod.def;Zn(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},jK=(e,t,n,r)=>{const o=e._zod.def;Zn(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},TU=new WeakSet([Object.prototype,Error.prototype]);function o1(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}const m7e=(e,t)=>{NNe.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);TU.has(n)||(TU.add(n),o1(n,"format",r=>o=>DNe(r,o)),o1(n,"flatten",r=>o=>PNe(r,o)),o1(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,xA,2)}),o1(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,xA,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},ss=he("ZodError",m7e,void 0,{Parent:Error}),g7e=jb(ss),v7e=Fb(ss),y7e=OR(ss),b7e=NR(ss),S7e=$Ne(ss),w7e=BNe(ss),x7e=HNe(ss),C7e=qNe(ss),E7e=WNe(ss),_7e=VNe(ss),k7e=GNe(ss),A7e=KNe(ss);function T7e(){Ts.localeError||ia(YPe())}function Bb(){Ts.memoizer||ia({memoizer:VPe()})}const En=he("ZodType",(e,t)=>(T7e(),Cn.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(Oo(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ml(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(xDe(e,t))},superRefine(e,t){return this.check(CDe(e,t))},overwrite(e){return this.check(Af(e))},optional(){return OU(this)},exactOptional(){return cDe(this)},nullable(){return NU(this)},nullish(){return OU(NU(this))},nonoptional(e){return mDe(this,e)},array(){return WK(this)},or(e){return VK([this,e])},and(e){return oDe(this,e)},transform(e){return MU(this,lDe(e))},default(e){return fDe(this,e)},prefault(e){return pDe(this,e)},catch(e){return vDe(this,e)},pipe(e){return MU(this,e)},readonly(){return SDe(this)},describe(e){const t=this.clone();return dp.add(t,{description:e}),t},meta(...e){if(e.length===0)return dp.get(this);const t=this.clone();return dp.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return tK(this,"~standard",{...dK(this),jsonSchema:{input:Jv(this,"input"),output:Jv(this,"output")}})},set"~standard"(e){Tl(this,"~standard",e)},parse:function e(t,n){return g7e(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await v7e(this,t,n,{callee:e})},safeParse(e,t){return y7e(this,e,t)},async safeParseAsync(e,t){return b7e(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Tl(this,"spa",e)},validate(e,t){return UNe(this,e,t)},validateAsync(e,t){return FNe(this,e,t)},encode:function e(t,n){return S7e(this,t,n,{callee:e})},decode:function e(t,n){return w7e(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await x7e(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await C7e(this,t,n,{callee:e})},safeEncode(e,t){return E7e(this,e,t)},safeDecode(e,t){return _7e(this,e,t)},async safeEncodeAsync(e,t){return k7e(this,e,t)},async safeDecodeAsync(e,t){return A7e(this,e,t)},toJSONSchema(e){return H8e(this,{})(e)},get description(){return dp.get(this)?.description},get _def(){return this._zod.def}}),FK=he("_ZodString",(e,t)=>{DR.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>G8e(e,n,r)},nK({format:e=>ws(e).format??null,minLength:e=>ws(e).minimum??null,maxLength:e=>ws(e).maximum??null},{regex(...e){return this.check(A8e(...e))},includes(...e){return this.check(R8e(...e))},startsWith(...e){return this.check(O8e(...e))},endsWith(...e){return this.check(N8e(...e))},min(...e){return this.check(Qv(...e))},max(...e){return this.check(kK(...e))},length(...e){return this.check(AK(...e))},nonempty(...e){return this.check(Qv(1,...e))},lowercase(e){return this.check(T8e(e))},uppercase(e){return this.check(I8e(e))},trim(){return this.check(P8e())},normalize(...e){return this.check(M8e(...e))},toLowerCase(){return this.check(D8e())},toUpperCase(){return this.check(L8e())},slugify(){return this.check(z8e())}})),I7e=he("ZodString",(e,t)=>{DR.init(e,t),FK.init(e,t)},{email(e){return this.check(CK(HK,e))},url(e){return this.check(o8e(M7e,e))},jwt(e){return this.check(b8e(K7e,e))},emoji(e){return this.check(s8e(P7e,e))},guid(e){return this.check(JPe(N7e,e))},uuid(e){return this.check(e8e(s1,e))},uuidv4(e){return this.check(t8e(s1,e))},uuidv6(e){return this.check(n8e(s1,e))},uuidv7(e){return this.check(r8e(s1,e))},nanoid(e){return this.check(a8e(D7e,e))},cuid(e){return this.check(i8e(L7e,e))},cuid2(e){return this.check(l8e(z7e,e))},ulid(e){return this.check(c8e(U7e,e))},base64(e){return this.check(g8e(W7e,e))},base64url(e){return this.check(v8e(V7e,e))},xid(e){return this.check(u8e(j7e,e))},ksuid(e){return this.check(d8e(F7e,e))},ipv4(e){return this.check(f8e($7e,e))},ipv6(e){return this.check(h8e(B7e,e))},cidrv4(e){return this.check(p8e(H7e,e))},cidrv6(e){return this.check(m8e(q7e,e))},e164(e){return this.check(y8e(G7e,e))},datetime(e){return this.check(EK($K,e))},date(e){return this.check(_K(BK,e))},time(e){return this.check(S8e(R7e,e))},duration(e){return this.check(w8e(O7e,e))}});function qr(e){return QPe(I7e,e)}const _n=he("ZodStringFormat",(e,t)=>{vn.init(e,t),FK.init(e,t)}),$K=he("ZodISODateTime",(e,t)=>{tPe.init(e,t),_n.init(e,t)}),BK=he("ZodISODate",(e,t)=>{nPe.init(e,t),_n.init(e,t)}),R7e=he("ZodISOTime",(e,t)=>{rPe.init(e,t),_n.init(e,t)}),O7e=he("ZodISODuration",(e,t)=>{oPe.init(e,t),_n.init(e,t)}),HK=he("ZodEmail",(e,t)=>{$Me.init(e,t),_n.init(e,t)});function Yqe(e){return CK(HK,e)}const N7e=he("ZodGUID",(e,t)=>{jMe.init(e,t),_n.init(e,t)}),s1=he("ZodUUID",(e,t)=>{FMe.init(e,t),_n.init(e,t)}),M7e=he("ZodURL",(e,t)=>{GMe.init(e,t),_n.init(e,t)}),P7e=he("ZodEmoji",(e,t)=>{KMe.init(e,t),_n.init(e,t)}),D7e=he("ZodNanoID",(e,t)=>{YMe.init(e,t),_n.init(e,t)}),L7e=he("ZodCUID",(e,t)=>{ZMe.init(e,t),_n.init(e,t)}),z7e=he("ZodCUID2",(e,t)=>{XMe.init(e,t),_n.init(e,t)}),U7e=he("ZodULID",(e,t)=>{QMe.init(e,t),_n.init(e,t)}),j7e=he("ZodXID",(e,t)=>{JMe.init(e,t),_n.init(e,t)}),F7e=he("ZodKSUID",(e,t)=>{ePe.init(e,t),_n.init(e,t)}),$7e=he("ZodIPv4",(e,t)=>{sPe.init(e,t),_n.init(e,t)}),B7e=he("ZodIPv6",(e,t)=>{iPe.init(e,t),_n.init(e,t)}),H7e=he("ZodCIDRv4",(e,t)=>{lPe.init(e,t),_n.init(e,t)}),q7e=he("ZodCIDRv6",(e,t)=>{uPe.init(e,t),_n.init(e,t)}),W7e=he("ZodBase64",(e,t)=>{dPe.init(e,t),_n.init(e,t)}),V7e=he("ZodBase64URL",(e,t)=>{hPe.init(e,t),_n.init(e,t)}),G7e=he("ZodE164",(e,t)=>{pPe.init(e,t),_n.init(e,t)}),K7e=he("ZodJWT",(e,t)=>{gPe.init(e,t),_n.init(e,t)}),qK=he("ZodNumber",(e,t)=>{vK.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>K8e(e,n,r,o),e.isFinite=!0},nK({minValue:e=>{const{minimum:t,exclusiveMinimum:n}=ws(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{const{maximum:t,exclusiveMaximum:n}=ws(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{const{isInt:t,multipleOf:n}=ws(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>ws(e).format??null},{gt(e,t){return this.check(bU(e,t))},gte(e,t){return this.check(J_(e,t))},min(e,t){return this.check(J_(e,t))},lt(e,t){return this.check(yU(e,t))},lte(e,t){return this.check(Q_(e,t))},max(e,t){return this.check(Q_(e,t))},int(e){return this.check(IU(e))},safe(e){return this.check(IU(e))},positive(e){return this.check(bU(0,e))},nonnegative(e){return this.check(J_(0,e))},negative(e){return this.check(yU(0,e))},nonpositive(e){return this.check(Q_(0,e))},multipleOf(e,t){return this.check(SU(e,t))},step(e,t){return this.check(SU(e,t))},finite(){return this}}));function RA(e){return x8e(qK,e)}const Y7e=he("ZodNumberFormat",(e,t)=>{vPe.init(e,t),qK.init(e,t)});function IU(e){return C8e(Y7e,e)}const Z7e=he("ZodBoolean",(e,t)=>{yPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Y8e(e,n,r)});function jR(e){return E8e(Z7e,e)}const X7e=he("ZodUnknown",(e,t)=>{bPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>X8e()});function ty(){return _8e(X7e)}const Q7e=he("ZodNever",(e,t)=>{SPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Z8e(e,n,r)});function J7e(e){return k8e(Q7e,e)}const eDe=he("ZodArray",(e,t)=>{Bb(),CPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>n7e(e,n,r,o),e.element=t.element},{min(e,t){return this.check(Qv(e,t))},nonempty(e){return this.check(Qv(1,e))},max(e,t){return this.check(kK(e,t))},length(e,t){return this.check(AK(e,t))},unwrap(){return this.element}});function WK(e,t){return U8e(eDe,e,t)}const tDe=he("ZodObject",(e,t)=>{Bb(),kPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>r7e(e,n,r,o),_Ne(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return FR(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Oo(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Oo(this._zod.def,{catchall:ty()}))},loose(){return this.clone(Oo(this._zod.def,{catchall:ty()}))},strict(){return this.clone(Oo(this._zod.def,{catchall:J7e()}))},strip(){return this.clone(Oo(this._zod.def,{catchall:void 0}))},extend(e){return pNe(this,e)},safeExtend(e){return mNe(this,e)},merge(e){return gNe(this,e)},pick(e){return fNe(this,e)},omit(e){return hNe(this,e)},partial(...e){return eU(GK,this,e[0])},exactPartial(...e){return eU(KK,this,e[0],"exactPartial")},required(...e){return vNe(YK,this,e[0])}});function Is(e,t){const n={type:"object",shape:e??{},...je(t)};return new tDe(n)}const nDe=he("ZodUnion",(e,t)=>{APe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>o7e(e,n,r,o),e.options=t.options});function VK(e,t){return new nDe({type:"union",options:e,...je(t)})}const rDe=he("ZodIntersection",(e,t)=>{TPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>s7e(e,n,r,o)});function oDe(e,t){return new rDe({type:"intersection",left:e,right:t})}const RU=he("ZodRecord",(e,t)=>{Bb(),IPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>i7e(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function sDe(e,t,n){return!t||!t._zod?new RU({type:"record",keyType:qr(),valueType:e,...je(t)}):new RU({type:"record",keyType:e,valueType:t,...je(n)})}const OA=he("ZodEnum",(e,t)=>{RPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(r,o,s)=>Q8e(e,r,o),e.enum=t.entries,e.options=[...e._zod.values];const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const s={};for(const i of r)if(n.has(i))s[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new OA({...t,checks:[],...je(o),entries:s})},e.exclude=(r,o)=>{const s={...t.entries};for(const i of r)if(n.has(i))delete s[i];else throw new Error(`Key ${i} not found in enum`);return new OA({...t,checks:[],...je(o),entries:s})}});function FR(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new OA({type:"enum",entries:n,...je(t)})}const aDe=he("ZodLiteral",(e,t)=>{OPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>J8e(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function cu(e,t){return new aDe({type:"literal",values:Array.isArray(e)?e:[e],...je(t)})}const iDe=he("ZodTransform",(e,t)=>{Bb(),NPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>t7e(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new rK(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(im(s,n.value,t));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=n.value),i.inst??(i.inst=e),n.issues.push(im(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function lDe(e){return new iDe({type:"transform",transform:e})}const GK=he("ZodOptional",(e,t)=>{SK.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>jK(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function OU(e){return new GK({type:"optional",innerType:e})}const KK=he("ZodExactOptional",(e,t)=>{MPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>jK(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function cDe(e){return new KK({type:"optional",innerType:e})}const uDe=he("ZodNullable",(e,t)=>{PPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>l7e(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function NU(e){return new uDe({type:"nullable",innerType:e})}const dDe=he("ZodDefault",(e,t)=>{DPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>u7e(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fDe(e,t){return new dDe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():XG(t)}})}const hDe=he("ZodPrefault",(e,t)=>{LPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>d7e(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function pDe(e,t){return new hDe({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():XG(t)}})}const YK=he("ZodNonOptional",(e,t)=>{zPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>c7e(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function mDe(e,t){return new YK({type:"nonoptional",innerType:e,...je(t)})}const gDe=he("ZodCatch",(e,t)=>{UPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>f7e(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function vDe(e,t){return new gDe({type:"catch",innerType:e,catchValue:typeof t=="function"?t:ANe(t)})}const yDe=he("ZodPipe",(e,t)=>{jPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>h7e(e,n,r,o),e.in=t.in,e.out=t.out});function MU(e,t){return new yDe({type:"pipe",in:e,out:t})}const bDe=he("ZodReadonly",(e,t)=>{FPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>p7e(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function SDe(e){return new bDe({type:"readonly",innerType:e})}const wDe=he("ZodCustom",(e,t)=>{$Pe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>e7e(e,n,r,o)});function xDe(e,t={}){return j8e(wDe,e,t)}function CDe(e,t){return F8e(e,t)}function EDe(e){return EK($K,e)}function _De(e){return _K(BK,e)}Is({kind:cu("Boolean"),value:jR()});Is({kind:cu("String"),value:qr()});Is({kind:cu("Number"),value:RA()});Is({kind:cu("StringList"),value:WK(qr())});Is({kind:cu("Map"),value:sDe(qr(),qr())});Is({kind:cu("MutedFlag"),value:Is({value:jR(),setAt:RA(),setBy:qr().optional(),expiresAt:RA().optional(),reason:qr().optional()})});const kDe=e=>e.hierarchyDelimiter.length===0?[e.fullPath]:e.fullPath.split(e.hierarchyDelimiter),lm=e=>{const t=kDe(e);return t[t.length-1]||e.fullPath},ADe=(e,t)=>{switch(e.kind){case"appointed":case"flagged":return{allowed:!0,mailbox:e.mailbox};case"proposed":return t==="resolved"?{allowed:!0,mailbox:e.mailbox}:{allowed:!1,reason:"unconfirmed"};case"appointment_stale":return{allowed:!1,reason:"stale"};default:return{allowed:!1,reason:"none"}}},TDe=(e,t)=>ADe(e,t).allowed,IDe={[od.Appointed]:{kind:"appointed",mailbox:null},[od.Flagged]:{kind:"flagged",mailbox:null},[od.Reserved]:{kind:"reserved",mailbox:null},[od.Proposed]:{kind:"proposed",mailbox:null},[od.Stale]:{kind:"appointment_stale",appointedMailboxId:"",fallback:{kind:"none"}},[od.None]:{kind:"none"}},RDe=(e,t)=>TDe(IDe[e],t),$R=()=>typeof navigator<"u"&&(navigator.language||navigator.languages?.[0])||"en-US",la=(e,t)=>new Intl.NumberFormat($R(),t).format(e),ODe=/^-?\d+$/,BR=e=>{if(e instanceof Date)return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){const t=e.trim();return ODe.test(t)?new Date(Number(t)):new Date(t)}return new Date(Number.NaN)},HR=e=>Number.isFinite(e.getTime()),fp=(e,t)=>{const n=BR(e);return HR(n)?new Intl.DateTimeFormat($R(),t).format(n):""},ZK=(e,t)=>fp(e,{short:{month:"short",day:"numeric"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"},time:{hour:"numeric",minute:"numeric"},datetime:{month:"short",day:"numeric",hour:"numeric",minute:"numeric"}}[t]),Zqe=e=>{const t=BR(e);if(!HR(t))return"";const n=new Intl.RelativeTimeFormat($R(),{numeric:"auto"}),r=Date.now(),o=t.getTime()-r,s=Math.round(o/1e3),i=Math.round(o/(1e3*60)),c=Math.round(o/(1e3*60*60)),u=Math.round(o/(1e3*60*60*24)),d=Math.round(o/(1e3*60*60*24*7));return Math.abs(s)<60?n.format(s,"second"):Math.abs(i)<60?n.format(i,"minute"):Math.abs(c)<24?n.format(c,"hour"):Math.abs(u)<7?n.format(u,"day"):Math.abs(d)<4?n.format(d,"week"):ZK(t,"medium")},Xqe=e=>{const t=BR(e);if(!HR(t))return"";const n=new Date,r=t.toDateString()===n.toDateString(),o=new Date(n);o.setDate(o.getDate()-1);const s=t.toDateString()===o.toDateString(),i=new Date(n);i.setDate(i.getDate()-6);const c=t>=i&&t<n,u=t.getFullYear()===n.getFullYear();return r?fp(t,{hour:"numeric",minute:"numeric"}):s?"Yesterday":c?fp(t,{weekday:"long"}):u?fp(t,{month:"short",day:"numeric"}):fp(t,{month:"short",day:"numeric",year:"numeric"})},NDe=e=>`Move ${e===1?"1":la(e)} ${e===1?"message":"messages"} to Trash?`,Qqe=({targets:e,trashByAccount:t,hasAppointments:n,isError:r})=>{if(r)return"unavailable";if(!n||e.length===0)return"unknown";let o=!1,s=!1;for(const i of e){if(i.accountId===void 0)return"unknown";const c=t.get(i.accountId);if(c===void 0)return"unknown";if(c.source==="Stale")return"staleTrash";if(c.mailboxId===void 0)return"noTrash";c.mailboxId===i.mailboxId&&(o=!0,RDe(c.source,"confirmed")||(s=!0))}return s?"unconfirmed":o?"permanent":"trash"},MDe=e=>e==="permanent"||e==="unconfirmed",Jqe=(e,t,n={})=>{const r=e===1?"1":la(e),o=e===1?"message":"messages",{trashFolderLabel:s,staleFolderLabel:i}=n;if(t==="noTrash")return{title:`Can't delete ${r} ${o} yet`,description:"No folder on this account is set as Trash, so there is nowhere to move the mail. Nothing has been deleted.",confirmLabel:"Pick a Trash folder"};if(t==="staleTrash")return{title:`Can't delete ${r} ${o} yet`,description:i?`The folder you set as this account's Trash — ${i} — is gone from the mail server. Nothing has been deleted.`:"The folder you set as this account's Trash is gone from the mail server. Nothing has been deleted.",confirmLabel:"Pick another folder"};if(t==="unconfirmed"){const c=s?`reader files this account's deleted mail in ${s} because of its name — nobody confirmed it.`:"reader files this account's deleted mail in a folder it matched by name — nobody confirmed it.";return{title:"Confirm this account's Trash folder",description:e>0?`${c} Deleting ${r} ${o} there erases them from the mail server, and that cannot be restored. Nothing has been deleted.`:`${c} Emptying a folder erases everything in it from the mail server, and that cannot be restored. Nothing has been emptied.`,confirmLabel:"Confirm the folder"}}return t==="unavailable"?{title:`Can't delete ${r} ${o}`,description:"reader couldn't read this account's folder settings, so it can't say whether this would move the mail to Trash or erase it. Nothing has been deleted.",confirmLabel:"Sign in again"}:t==="unknown"?{title:`Delete ${r} ${o}?`,description:"Checking where this account files deleted mail…",confirmLabel:"Delete"}:t==="permanent"?{title:`Permanently delete ${r} ${o}?`,description:"They are erased from the mail server and cannot be restored.",confirmLabel:"Delete permanently"}:{title:NDe(e),description:"You can restore them from Trash later.",confirmLabel:"Move to Trash"}},PDe={delete:(e,t)=>`Deleting ${e} of ${t}…`,move:(e,t)=>`Moving ${e} of ${t}…`,markRead:(e,t)=>`Marking ${e} of ${t} as read…`},DDe={delete:"moved to Trash",move:"moved",markRead:"marked as read"},XK=(e,t)=>e==="delete"&&MDe(t)?"permanently deleted":DDe[e],LDe={delete:"couldn't be deleted",move:"couldn't be moved",markRead:"couldn't be marked as read"},zDe={delete:"Couldn't delete these messages",move:"Couldn't move these messages",markRead:"Couldn't mark these messages as read"},UDe={delete:"The delete didn't finish.",move:"The move didn't finish.",markRead:"The update didn't finish."},eWe=(e,t,n)=>PDe[e](la(t),la(n)),jDe=(e,t,n="trash")=>`${la(t)} ${XK(e,n)}. Your mail server is still catching up.`,FDe=e=>`Stopped after ${la(e)}`,$De=(e,t,n,r="trash")=>`${la(t)} of ${la(n)} ${XK(e,r)}. The rest were not sent, apart from the ones already on their way when you stopped — those may still have gone through.`,PU=(e,t)=>t>0?`Stopped after ${la(t)} — some messages ${LDe[e]}`:zDe[e],BDe=e=>UDe[e],HDe={delete:e=>`A delete of ${e} messages`,move:e=>`A move of ${e} messages`,markRead:e=>`Marking ${e} messages as read`},qDe=(e,t,n)=>`${HDe[e](la(t))}${n?` in ${n}`:""} is still running — stop it first.`,tWe=e=>e==="delete"?"danger":"info",nWe=(e,t,n,r)=>n.error!==void 0?null:n.cancelled?{severity:"warning",title:FDe(n.done),detail:$De(e,n.done,t,r)}:{severity:"info",title:jDe(e,n.done,r)},QK=100,WDe=(e,t)=>e.kind==="move"?[t,e.destinationMailboxId]:[t],VDe=new AbortController().signal,NA=async e=>e.then(t=>({ok:!0,value:t}),t=>({ok:!1,error:t})),GDe=(e,t=QK)=>{if(e.length===0)return[];const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},KDe=(e,t=QK)=>{const n=new Map;for(const r of e){const o=n.get(r.accountId);if(o){o.push(r.id);continue}n.set(r.accountId,[r.id])}return[...n.values()].flatMap(r=>GDe(r,t))},JK=async(e,t,n,r)=>{const o=KDe(e),s=e.length;let i=0,c=0;const u=[];for(let d=0;d<o.length;d++){if(r.aborted)return u.push(...o.slice(d).flat()),{done:i,failedIds:u,refused:c,cancelled:!0};const h=o[d],m=await NA(t(h,r));if(!m.ok)return u.push(...o.slice(d).flat()),r.aborted?{done:i,failedIds:u,refused:c,cancelled:!0}:(n({done:i,total:s}),{done:i,failedIds:u,refused:c,cancelled:!1,error:m.error});c+=m.value?.failureCount??0,i+=h.length,n({done:i,total:s})}return{done:i,failedIds:u,refused:c,cancelled:!1}},rWe=async(e,t)=>{await JK(e.map(n=>({id:n,accountId:void 0})),async n=>(await t(n),{successCount:n.length,failureCount:0}),()=>{},VDe)},YDe=async(e,t,n,r,o)=>{let s=0,i=0;const c=[];let u;do{if(o.aborted)return{done:s,failedIds:c,refused:i,cancelled:!0};const d=await NA(e(u,o));if(!d.ok)return o.aborted?{done:s,failedIds:c,refused:i,cancelled:!0}:{done:s,failedIds:c,refused:i,cancelled:!1,error:d.error};const h=d.value;if(h.ids.length>0){const m=await NA(n(h.ids,o));if(!m.ok)return o.aborted?{done:s,failedIds:c,refused:i,cancelled:!0}:{done:s,failedIds:c,refused:i,cancelled:!1,error:m.error};i+=m.value?.failureCount??0,s+=h.ids.length,r({done:s,total:t})}u=h.continuationToken}while(u);return{done:s,failedIds:c,refused:i,cancelled:!1}},ZDe=e=>({done:e.done,total:Math.max(e.total,e.done)}),XDe=e=>typeof e=="object"&&e!==null&&Array.isArray(e.pages),QDe=e=>typeof e=="object"&&e!==null&&Array.isArray(e.items),JDe=(e,t)=>e===void 0?e:XDe(e)?{...e,pages:e.pages.map(n=>({...n,items:t(n.items)}))}:QDe(e)?{...e,items:t(e.items)}:e,eLe=e=>{const t=[];for(const n of new Set(e))t.push(P6e({path:{mailboxId:n}})),t.push(HG({path:{mailboxId:n}}));return t.push(WG()),t},oWe=(e,t)=>Promise.all(t.map(n=>e.cancelQueries({queryKey:n}))),sWe=(e,t)=>t.flatMap(n=>e.getQueriesData({queryKey:n})).filter(n=>n[1]!==void 0).map(([n,r])=>({queryKey:n,data:r})),aWe=(e,t,n)=>{const r=o=>JDe(o,n);for(const o of t)e.setQueriesData({queryKey:o},r)},iWe=(e,t)=>{for(const n of t)e.setQueryData(n.queryKey,n.data)},tLe=(e,t)=>{for(const n of t)e.invalidateQueries({queryKey:n})},eY=_.createContext(void 0),nLe=e=>{if(e.action)return e.action;if((e.severity??"error")==="error")return{label:"Report an issue",href:xm(Vd({title:`Bug: ${e.title}`,errorMessage:e.detail?`${e.title} — ${e.detail}`:e.title,stack:e.error instanceof Error?e.error.stack:void 0}))}},rLe=()=>{const e=_.useContext(eY);if(!e)throw new Error("useErrorBanners must be used within an ErrorBannerProvider");return e},DU=5,oLe=(e,t,n)=>({title:e,detail:tY(n)??t,error:n}),tY=e=>{if(e!=null){if(e instanceof Error)return e.message||void 0;if(typeof e=="string")return e||void 0;if(typeof e=="object"&&"message"in e&&typeof e.message=="string")return e.message||void 0}},lWe=e=>Qc(e)?.code==="message_gone_from_server",cWe=e=>{const t=tY(e);return t?t.startsWith("Message not found"):!1},sLe=(e,t,n)=>e.severity===n&&e.title===t.title&&e.detail===t.detail,aLe=(e,t)=>{const r=[...e.filter(o=>!sLe(o,{title:t.title,detail:t.detail,severity:t.severity},t.severity)),t];return r.length<=DU?r:r.slice(r.length-DU)},iLe=(e,t)=>e.filter(n=>n.id!==t),lLe=(e,t,n)=>({id:t,severity:e.severity??"error",title:e.title,detail:e.detail,action:e.action,createdAt:n}),cLe=new Set(["none","stale","unconfirmed"]),uLe=new Set(Object.values(tNe)),e3=(e,t)=>{const n=e?.[t];return typeof n=="string"?n:void 0},dLe=e=>{const t=Qc(e);if(t?.code!=="folder_role_unresolved")return;const{details:n}=t;if(!n)return;const r=e3(n,"reason"),o=e3(n,"role"),s=e3(n,"accountId");if(!(!r||!cLe.has(r))&&!(!o||!uLe.has(o)||!s))return{reason:r,role:o,accountId:s}},fLe=e=>Qc(e)?.code==="mailbox_not_settled",hLe=3e4,pLe=1e3,mLe="The folder couldn't be created on the mail server. Please try again.",gLe="The folder was created but the mail server hasn't confirmed it yet, so nothing was attached to it. It's in your folder list — try again in a moment.",vLe=(e,t)=>new Promise((n,r)=>{if(t?.aborted){r(t.reason);return}const o=setTimeout(()=>{t?.removeEventListener("abort",s),n()},e),s=()=>{clearTimeout(o),r(t?.reason)};t?.addEventListener("abort",s,{once:!0})});async function yLe({fetchMailboxes:e,mailboxId:t,signal:n,timeoutMs:r=hLe,pollIntervalMs:o=pLe,delay:s=vLe,now:i=Date.now}){const c=i()+r;for(;;){n?.throwIfAborted();const d=(await e()).find(h=>h.mailboxId===t);if(d?.syncStatus===Qz.synced)return d;if(d?.syncStatus===Qz.failed)throw new Error(mLe);if(i()>=c)throw new Error(gLe);await s(o,n)}}function nY(e,t){const n=e.trim();return t?`${t.fullPath}${t.hierarchyDelimiter}${n}`:n}const LU=(e,t)=>{const n=t.length===0?[e]:e.split(t);return n[0]?.toLowerCase()==="inbox"&&(n[0]="INBOX"),n.join(t)};function bLe({name:e,delimiter:t,parent:n,existingPaths:r}){const o=e.trim();if(o==="")return"Enter a folder name.";if(t.length>0&&o.includes(t))return`A folder name can't contain "${t}".`;const s=LU(nY(o,n),t);if(r.some(c=>LU(c,t)===s))return"A folder with that name already exists."}function SLe(e){const t=ru(),{data:n}=Wc({...bA({path:{accountId:e??""}}),enabled:!!e}),r=TI({...w6e(),onSuccess:()=>{e&&t.invalidateQueries({queryKey:_R({path:{accountId:e}})})}}),o=_.useRef(new Map),s=_.useCallback(async(c,u,d)=>{if(!e)throw new Error("No account to create the folder in. Pick messages from a single account first.");const h=n?.items??[],m=u?h.find(C=>C.fullPath===u):void 0;if(u&&!m)throw new Error(`Couldn't find the folder "${u}" to create this one inside.`);const g=m?{fullPath:m.fullPath,hierarchyDelimiter:m.hierarchyDelimiter}:void 0,v=nY(c,g);let S=o.current.get(v);if(!S){const C=g?.hierarchyDelimiter??h[0]?.hierarchyDelimiter??"/",E=bLe({name:c,delimiter:C,parent:g,existingPaths:h.map(A=>A.fullPath)});if(E)throw new Error(E);S=(await r.mutateAsync({path:{accountId:e},body:{fullPath:v,namespaceType:"personal"}})).mailboxId,o.current.set(v,S)}const b=await yLe({mailboxId:S,signal:d,fetchMailboxes:async()=>(await t.fetchQuery({...bA({path:{accountId:e}}),staleTime:0})).items??[]});return o.current.delete(v),{id:b.mailboxId,label:lm(b),path:b.fullPath}},[r,e,n,t]);return{createFolder:_.useCallback((c,u)=>s(c,"",u),[s]),createFolderIn:s,mutation:r}}const wLe=()=>{const{t:e}=FG("mail",{useSuspense:!1});return _.useCallback((t,n)=>e(t,{defaultValue:n}),[e])},t3={Inbox:"inbox",Drafts:"drafts",Sent:"sent",Archive:"archive",Junk:"junk",Trash:"trash",All:"all",Flagged:"flagged"},uWe={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Junk",trash:"Trash",all:"All",flagged:"Flagged"},cm=["inbox","flagged","drafts","sent","archive","all","junk","trash"];function Hb(e){const t=new Map,n=[...e].sort((r,o)=>cm.indexOf(t3[r.role])-cm.indexOf(t3[o.role]));for(const r of n){if(!r.mailboxId||t.has(r.mailboxId))continue;const o=t3[r.role];o&&t.set(r.mailboxId,o)}return t}function rY(e,t,n){const r=e.displayNameOverride?.trim();if(r)return r;const o=lm(e);return!t||!n?o:n(`sidebar.${t}`,o)}const xLe=new Set(["sent","drafts","trash"]),dWe=e=>e===void 0||!xLe.has(e),fWe=100,CLe=e=>e.trim().toLowerCase()==="inbox",ELe=(e,t)=>{if(e.hierarchyDelimiter.length===0)return!1;const n=`${e.fullPath}${e.hierarchyDelimiter}`;return t.some(r=>r.mailboxId!==e.mailboxId&&r.fullPath.startsWith(n))},_Le=["Appointed","Flagged","Reserved"],kLe=(e,t)=>e.mailboxId!==t.mailboxId?!1:e.source==="Stale"?t.specialUse?.includes(e.role)??!1:_Le.includes(e.source),ALe=(e,t)=>t.find(n=>kLe(n,e))?.role;function hWe(e,t,n){if(CLe(e.fullPath))return{deletable:!1,reason:"inbox",message:"The inbox can't be deleted."};const r=ALe(e,n);return r?{deletable:!1,reason:"role",message:`This folder is your ${r} folder. Reassign that role before deleting it.`}:ELe(e,t)?{deletable:!1,reason:"children",message:"This folder has subfolders. Delete them first."}:{deletable:!0}}function TLe(e,t){return e.filter(n=>n.mailboxId!==t)}function pWe(e){return{total:e,moved:0,phase:e===0?"moved":"moving"}}function mWe(e,t){if(e.phase!=="moving")return e;const n=Math.min(e.total,e.moved+Math.max(0,t));return{...e,moved:n,phase:n>=e.total?"moved":"moving"}}function gWe(e,t){return{...e,phase:"failed",error:t}}function vWe(e){return`Moved ${e.moved} of ${e.total}`}function yWe(e){const t=Math.max(0,Math.floor(e/1e3));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}function bWe(e){return e>0?"choose-fate":"confirm-empty"}const ILe=new Set(["outbox","postvak uit","boîte d'envoi","postausgang","buzón de salida","posta in uscita","送信トレイ","送件匣","发件箱","skrzynka nadawcza"]),RLe=e=>{const t=lm(e).trim().toLowerCase();return ILe.has(t)},zU=cm.length,OLe=(e,t)=>{const n=Hb(t);return[...e.filter(o=>{const s=n.get(o.mailboxId);return s==="drafts"||s==="sent"?!1:!RLe(o)})].sort((o,s)=>{const i=n.has(o.mailboxId)?cm.indexOf(n.get(o.mailboxId)??"inbox"):zU,c=n.has(s.mailboxId)?cm.indexOf(n.get(s.mailboxId)??"inbox"):zU;return i!==c?i-c:lm(o).localeCompare(lm(s),void 0,{sensitivity:"base",numeric:!0})})},NLe=e=>e[0]?.hierarchyDelimiter??"/",MLe=({mailboxes:e,folderAppointments:t,currentMailboxId:n,excludeMailboxId:r,translator:o})=>{const s=OLe(e,t),i=Hb(t);return(r?TLe(s,r):s).map(u=>({id:u.mailboxId,label:rY(u,i.get(u.mailboxId),o),path:u.fullPath,isCurrent:u.mailboxId===n,messageCount:u.messageCount}))},oY=_.createContext(void 0),UU=Symbol("appoint-failed"),PLe=({children:e})=>{const t=ru(),n=wLe(),[r,o]=_.useState(null),[s,i]=_.useState(),[c,u]=_.useState({kind:"choosing"}),d=r?.accountId,{data:h}=Wc({...kR(),staleTime:1/0,enabled:!!d}),{data:m}=Wc({...bA({path:{accountId:d??""}}),enabled:!!d}),{createFolderIn:g}=SLe(d),v=TI({...b6e(),meta:Fy(409)}),S=h?.accounts.find(L=>L.accountId===d),b=_.useMemo(()=>m?.items??[],[m]),C=_.useMemo(()=>S?.folderAppointments??[],[S]),E=_.useMemo(()=>MLe({mailboxes:b,folderAppointments:C,translator:n}),[b,C,n]),k=C.find(L=>L.role===r?.role),A=r?.guessedMailboxId??k?.mailboxId,R=b.find(L=>L.mailboxId===A),N=r?.trashFolderLabel??(R?rY(R,Hb(C).get(R.mailboxId),n):void 0),O=_.useRef(null),I=_.useCallback(()=>{O.current=null,o(null),i(void 0),u({kind:"choosing"})},[]),M=_.useCallback(L=>{O.current=L,o(L),u({kind:"choosing"}),i(L.reason==="unconfirmed"?L.guessedMailboxId:void 0)},[]),z=_.useCallback(L=>{O.current===L&&I()},[I]),q=_.useCallback(L=>{r&&(u({kind:"appointing"}),v.mutateAsync({path:{accountId:r.accountId,role:r.role},body:{mailboxId:L}}).catch(B=>(u({kind:"appoint-failed",cause:fLe(B)?"mailbox-pending":"generic"}),UU)).then(async B=>{B!==UU&&(await t.invalidateQueries({queryKey:BG()}),u({kind:"acting"}),await r.onAppointed(),z(r))}).catch(()=>z(r)))},[r,v,t,z]),U=_.useMemo(()=>({requestAppointment:M}),[M]);return x.jsxs(oY.Provider,{value:U,children:[e,r&&x.jsx(gde,{open:!0,reason:r.reason,action:r.action,folders:E,delimiter:NLe(b),trashFolderLabel:N,guessedMailboxId:A,staleFolderLabel:r.staleFolderLabel??k?.staleAppointmentPath,accountEmail:(h?.accounts.length??0)>1?S?.email:void 0,phase:c,selectedId:s,onSelect:i,onCreateFolder:g,onConfirm:q,onCancel:I})]})},DLe=()=>{const e=_.useContext(oY);if(!e)throw new Error("useRoleAppointmentPrompt must be used within a RoleAppointmentPromptProvider");return e},sY=_.createContext(void 0),LLe=({children:e})=>{const[t,n]=_.useState(void 0),r=_.useRef(void 0),o=_.useRef(void 0),s=_.useRef(void 0),i=_.useRef(new Set),c=ru(),{pushError:u}=rLe(),{requestAppointment:d}=DLe(),h=_.useRef(async()=>({kind:"ran",outcome:{done:0,failedIds:[],refused:0,cancelled:!1}})),m=_.useCallback(b=>{tLe(c,eLe(WDe(b.action,b.mailboxId)));const C=new Set;if(b.accountId&&C.add(b.accountId),b.source.kind==="targets")for(const E of b.source.targets)E.accountId&&C.add(E.accountId);for(const E of C)c.invalidateQueries({queryKey:_R({path:{accountId:E}})})},[c]),g=_.useCallback(async b=>{const C=s.current;if(C)return{kind:"refused",reason:qDe(C.action.kind,C.matched,C.mailboxLabel)};const E=Symbol("bulk-run"),k=new AbortController;r.current=k,o.current=E,s.current=b,b.claimEnding&&(i.current.add(E),b.claimEnding(()=>i.current.delete(E))),n({action:b.action,mailboxId:b.mailboxId,progress:{done:0,total:b.matched}});const A=I=>{o.current===E&&n(M=>M&&{...M,progress:ZDe(I)})},R=b.source.kind==="targets"?await JK(b.source.targets,b.applyBatch,A,k.signal):await YDe(b.source.fetchPage,b.matched,b.applyBatch,A,k.signal),N=i.current.delete(E);o.current===E&&(o.current=void 0,s.current=void 0,n(void 0));const O=R.error?dLe(R.error):void 0;return O?d({accountId:O.accountId,role:O.role,reason:O.reason,action:{kind:"delete",count:b.matched},onAppointed:async()=>{const I=await h.current({...b,claimEnding:void 0});I.kind==="refused"&&u({title:PU(b.action.kind,0),detail:I.reason})}}):R.error?u(oLe(PU(b.action.kind,R.done),BDe(b.action.kind),R.error)):R.refused>0&&u({severity:"warning",title:R.refused>1?`Couldn't delete ${R.refused} of ${b.matched} messages yet`:"Couldn't delete this message yet",detail:"Something else moved them while the delete was being prepared. They are back where they now sit — try again."}),N||b.reportEnding?.(b.action.kind,b.matched,R),R.done>0&&m(b),{kind:"ran",outcome:R}},[m,u,d]);h.current=g;const v=_.useCallback(b=>{s.current?.mailboxId===b&&r.current?.abort()},[]);_.useEffect(()=>{const b=i.current;return()=>{r.current?.abort(),r.current=void 0,o.current=void 0,s.current=void 0,b.clear()}},[]);const S=_.useMemo(()=>({run:t,start:g,stop:v}),[t,g,v]);return x.jsx(sY.Provider,{value:S,children:e})},SWe=()=>{const e=_.useContext(sY);if(!e)throw new Error("useBulkRun must be used within a BulkRunProvider");return e},zLe=600,ULe=300,aY="remit logs",jLe="https://github.com/remit-mail/reader/releases/tag/";function iY(e,t){const n=t?.check.lastCheckedAt;return n!==void 0&&n!==e.since}function FLe(e){const t=Qn(e);return`The check could not be requested — ${t===void 0?"the server did not answer":`the server answered ${t}`}. Run \`remit logs backend\` to see why.`}const $Le={checking:"preparing",pulling:"preparing",snapshotting:"preparing",stopping:"restarting",starting:"restarting",verifying:"reconnecting",committing:"reconnecting",rollingBack:"reconnecting",recovering:"reconnecting"};function qR(e){return $Le[e]??"reconnecting"}function lY(e){const t=Qn(e);return t===404||t===403||t===401}function MA(e,t){const n=e?.run??null;return n===null||n.outcome!==null||n.runId===t?null:n}function cY(e,t){const n=e?.check;if(n?.status==="ok"&&!(!n.updateAvailable||!n.latestVersion))return{version:n.latestVersion,releasedAt:ny(n.publishedAt)??t,releaseNotesUrl:n.releaseNotesUrl??uY(n.latestVersion),summary:n.summary??""}}function BLe(e){const t=e?.check.schemaVersion,n=e?.currentSchemaVersion;return t===void 0||n===void 0?!1:t>n}function PA(){return zLe+ULe}function DA(e,t){return Math.max(0,Math.floor((t-e)/1e3))}function ny(e){if(!e)return;const t=Date.parse(e);return Number.isNaN(t)?void 0:t}function uY(e){return`${jLe}${e}`}function um(e,t,n,r,o){return{status:"applying",runId:e,version:t,target:n,phase:r,elapsedSeconds:o}}function HLe(e,t,n){switch(n){case"succeeded":return{status:"succeeded",runId:t.runId,version:t.targetVersion,previousVersion:t.fromVersion,releaseNotesUrl:e.check.releaseNotesUrl??uY(t.targetVersion)};case"rolledBack":return{status:"rolledBack",runId:t.runId,version:t.fromVersion,attemptedVersion:t.targetVersion,reason:t.message,logsCommand:t.logCommand};case"rollbackFailed":return{status:"rollbackFailed",runId:t.runId,attemptedVersion:t.targetVersion,previousVersion:t.fromVersion,reason:t.message,logsCommand:t.logCommand};case"abandoned":return{status:"abandoned",runId:t.runId,version:t.fromVersion,attemptedVersion:t.targetVersion,reason:t.message,logsCommand:t.logCommand};default:return n}}function qLe(e,t,n,r){const o=e.check,s=ny(o.lastCheckedAt);if(n!==null)return{status:"checkFailed",version:e.currentVersion,reason:n,lastCheckedAt:s};if(t!==null&&!iY(t,e))return{status:"checking",version:e.currentVersion};if(o.status==="failed")return{status:"checkFailed",version:e.currentVersion,reason:o.error??"Remit could not reach the update service.",lastCheckedAt:s};if(o.status==="disabled")return{status:"neverChecked",version:e.currentVersion,lastCheckedAt:s};const i=cY(e,r);return i?{status:"available",version:e.currentVersion,release:i}:{status:"upToDate",version:e.currentVersion,checkedAt:ny(o.lastCheckedAt)??r}}function jU(e,t,n){return{surface:{status:"ready",section:e,overlay:t},releaseHeld:n}}function dY(e,t,n,r){return{status:"ready",section:um(e,t,n,"reconnecting",r),overlay:{kind:"applying",target:n,phase:"reconnecting",elapsedSeconds:r}}}function fY(e,t,n,r,o){return{status:"ready",section:um(e,t,n,"reconnecting",r),overlay:{kind:"neverCameBack",attemptedVersion:n,previousVersion:t,elapsedSeconds:r,logsCommand:o}}}function WLe(e,t){return{surface:fY(e.runId,e.previousVersion,e.attemptedVersion,t,aY),releaseHeld:!1}}function VLe(e,t,n,r,o){const s=DA(e.startedAt,o),i=t?.currentVersion??e.previousVersion,c=!r&&n!==null&&n.runId===e.runId;if(c&&n!==null&&n.outcome!==null)return null;if(c&&n!==null){const u=qR(n.phase);return jU(um(n.runId,i,n.targetVersion,u,s),{kind:"applying",target:n.targetVersion,phase:u,elapsedSeconds:s},!1)}return r?s>PA()?WLe(e,s):{surface:dY(e.runId,e.previousVersion,e.attemptedVersion,s),releaseHeld:!1}:t===void 0?{surface:{status:"loading"},releaseHeld:!1}:s>PA()?{surface:{status:"ready",section:{status:"unreachable",runId:e.runId,previousVersion:e.previousVersion,attemptedVersion:e.attemptedVersion,elapsedSeconds:s,logsCommand:n?.logCommand??aY},overlay:{kind:"none"}},releaseHeld:!0}:jU(um(e.runId,i,e.attemptedVersion,e.phase,s),{kind:"applying",target:e.attemptedVersion,phase:e.phase,elapsedSeconds:s},!1)}function FU(e){const{data:t,isError:n,dismissedRunId:r,checkPress:o,checkFailure:s,sighting:i,now:c}=e;if(n){const h=MA(t,r);if(h!==null){const m=i!==null&&i.runId===h.runId?i.observedAt:c,g=DA(m,c);return g>PA()?fY(h.runId,h.fromVersion,h.targetVersion,g,h.logCommand):dY(h.runId,h.fromVersion,h.targetVersion,g)}return{status:"ready",section:{status:"checkFailed",version:t?.currentVersion??"the current version",reason:"Remit could not reach the update service."},overlay:{kind:"none"}}}if(!t)return{status:"loading"};const u=t.run,d=u!==null&&r!==null&&u.runId===r;if(u!==null&&!d&&u.outcome!==null)return{status:"ready",section:HLe(t,u,u.outcome),overlay:{kind:"none"}};if(u!==null&&!d&&u.outcome===null){const h=DA(ny(u.startedAt)??c,c),m=qR(u.phase);return{status:"ready",section:um(u.runId,u.fromVersion,u.targetVersion,m,h),overlay:{kind:"applying",target:u.targetVersion,phase:m,elapsedSeconds:h}}}return{status:"ready",section:qLe(t,o,s,c),overlay:{kind:"none"}}}function GLe(e){const{data:t,isError:n,error:r,held:o,now:s}=e,i=t?.run??null;if(lY(r)&&!o)return{surface:{status:"absent"},releaseHeld:!0};if(o){const c=VLe(o,t,i,n,s);return c||{surface:FU(e),releaseHeld:!0}}return{surface:FU(e),releaseHeld:!1}}const KLe=3e4,YLe=5e3,ZLe=kT,XLe={...kT,...Efe},QLe=3e4,JLe="The updater did not answer. Run `remit logs updater` to see why.";function e9e(e,t,n,r){if(lY(e)&&!n)return!1;const o=t!==null&&t.outcome===null;return n||o||r?YLe:KLe}function t9e(){const e=ru(),[t,n]=_.useState(null),[r,o]=_.useState(null),[s,i]=_.useState(null),[c,u]=_.useState(null),[d,h]=_.useState(null),m=_.useRef(t);m.current=t;const g=_.useRef(s);g.current=s;const v=e.getQueryData(SA()),S=t!==null||MA(v,r)!==null,b=Wc({...V6e(),retry:!1,meta:S?XLe:ZLe,refetchInterval:L=>e9e(L.state.error,L.state.data?.run??null,m.current!==null,g.current!==null)}),C=_.useRef(b.data);C.current=b.data;const E=GLe({data:b.data,isError:b.isError,error:b.error,held:t,dismissedRunId:r,checkPress:s,checkFailure:c,sighting:d,now:Date.now()}),k=MA(b.data,r);_.useEffect(()=>{if(k===null){h(L=>L===null?L:null);return}h(L=>L!==null&&L.runId===k.runId?L:{runId:k.runId,observedAt:Date.now()})},[k]);const A=_.useRef(null);A.current=E.surface.status==="ready"&&"runId"in E.surface.section?E.surface.section.runId:null;const{releaseHeld:R}=E;_.useEffect(()=>{R&&n(L=>L===null?L:null)},[R]),_.useEffect(()=>{s!==null&&iY(s,b.data)&&i(null)},[s,b.data]),_.useEffect(()=>{if(s===null)return;const L=s.pressedAt+QLe-Date.now(),B=setTimeout(()=>{i(null),u(JLe)},Math.max(0,L));return()=>clearTimeout(B)},[s]);const{refetch:N}=b,O=_.useCallback(()=>{u(null),i({pressedAt:Date.now(),since:C.current?.check.lastCheckedAt}),$G({query:{refresh:!0},throwOnError:!0}).then(()=>{N()}).catch(L=>{LI(L,kT),i(null),u(FLe(L))})},[N]),I=_.useCallback(()=>{N()},[N]),M=TI({...G6e(),meta:{softError:!0},onSuccess:L=>{const B=L.run;B!==null&&(n({runId:B.runId,attemptedVersion:B.targetVersion,previousVersion:B.fromVersion,phase:qR(B.phase),startedAt:Date.now()}),o(null)),e.setQueryData(SA(),L)},onError:()=>{N()}}),{mutate:z}=M,q=_.useCallback(L=>{z({body:{targetVersion:L}})},[z]),U=_.useCallback(()=>{A.current!==null&&o(A.current),n(null),i(null),u(null)},[]);return{surface:E.surface,appliesSchemaMigration:BLe(b.data),currentVersion:b.data?.currentVersion,release:cY(b.data,Date.now()),onCheck:O,install:q,onDismissResult:U,onRetryConnection:I}}const WR=_.createContext(null);function n9e({children:e}){const t=t9e();return _.createElement(WR.Provider,{value:t},e)}function r9e(){const e=_.useContext(WR);if(e===null)throw new Error("useSelfUpdate must be used within a SelfUpdateProvider");return e}function o9e(){return _.useContext(WR)}function s9e(){const{surface:e,onRetryConnection:t}=r9e();if(e.status!=="ready")return null;const{overlay:n}=e;return n.kind==="applying"?x.jsx(ofe,{target:n.target,phase:n.phase,elapsedSeconds:n.elapsedSeconds}):n.kind==="neverCameBack"?x.jsx(sfe,{attemptedVersion:n.attemptedVersion,previousVersion:n.previousVersion,elapsedSeconds:n.elapsedSeconds,logsCommand:n.logsCommand,onRetryConnection:t}):null}const a9e=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`banner-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,i9e=({children:e})=>{const[t,n]=_.useState([]),r=_.useCallback(c=>{if(c.error!=null&&bB(c.error))return Wd(c.error).correlationId;const u=lLe({...c,action:nLe(c)},a9e(),Date.now());return n(d=>aLe(d,u)),u.id},[]),o=_.useCallback(c=>{n(u=>iLe(u,c))},[]),s=_.useCallback(()=>{n([])},[]),i=_.useMemo(()=>({errors:t,pushError:r,dismissError:o,clearAll:s}),[t,r,o,s]);return x.jsxs(eY.Provider,{value:i,children:[e,x.jsx(jle,{errors:t,onDismiss:o})]})},$U="mt-6 inline-flex min-h-11 w-full items-center justify-center gap-2 rounded-md bg-accent px-4 text-sm font-medium text-accent-fg hover:bg-accent-hover focus-visible:ring-2 focus-visible:ring-ring";function hY(){const[e,t]=_.useState(n_e),{Account:n}=t_e(),r=_.useRef(null);return _.useEffect(()=>r_e(t),[]),xy({id:"signed-out",open:e}),bm(r,e),e?x.jsx("div",{className:"fixed inset-0 z-[70] flex items-center justify-center bg-canvas/80 p-4 backdrop-blur-sm",children:x.jsxs("div",{ref:r,role:"alertdialog","aria-modal":"true","aria-labelledby":"signed-out-title","aria-describedby":"signed-out-text",tabIndex:-1,className:"w-full max-w-sm rounded-lg border border-line bg-surface p-6 shadow-xl outline-none",children:[x.jsx("h2",{id:"signed-out-title",className:"text-lg font-semibold text-fg",children:"You're signed out"}),x.jsx("p",{id:"signed-out-text",className:"mt-2 text-sm text-fg-muted",children:"The server no longer accepts this session. Sign in again to carry on here; you will come back to this screen."}),x.jsx(n,{fallback:x.jsxs("button",{type:"button",onClick:()=>{v9(),window.location.reload()},className:$U,children:[x.jsx(eM,{className:"size-4","aria-hidden":"true"}),"Sign in"]}),children:({signOut:o})=>x.jsxs("button",{type:"button",onClick:()=>{v9(),o()},className:$U,children:[x.jsx(eM,{className:"size-4","aria-hidden":"true"}),"Sign in"]})})]})}):null}const l9e=({error:e,reset:t,info:n})=>{if(jy(e))return DI(),x.jsx(hY,{});const r=Ly(e),o=Wd(e,{recoverable:r,componentStack:n?.componentStack});return x.jsx(AB,{fatal:o,onRetry:r?t:void 0})},Pl=cEe()({component:d9e,errorComponent:l9e}),c9e=()=>{const{t:e}=FG("common",{useSuspense:!1});return x.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:p-4 focus:bg-canvas focus:text-fg focus:rounded-md",children:e("accessibility.skipToContent","Skip to main content")})},u9e=({children:e})=>bf().updateMode==="managed"?e:x.jsxs(n9e,{children:[e,x.jsx(s9e,{})]});function d9e(){return x.jsxs(i9e,{children:[x.jsx(PLe,{children:x.jsx(LLe,{children:x.jsx(u9e,{children:x.jsxs(eNe,{children:[x.jsx(c9e,{}),x.jsx("main",{id:"main-content",className:"h-dvh overflow-hidden",children:x.jsx(_.Suspense,{fallback:x.jsx(My,{}),children:x.jsx(Zq,{})})})]})})})}),x.jsx(kB,{}),x.jsx(hY,{})]})}const f9e=$e("/")({beforeLoad:()=>{throw _f({to:"/mail/brief"})}}),h9e=bf().apiUrl;we.setConfig({baseUrl:h9e,fetch:IF});we.interceptors.error.use((e,t)=>e instanceof Dy||!t?e:gfe(e,t.status));const p9e=()=>Ve(()=>import("./calendar-mwWH-7s8.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),m9e=$e("/calendar")({loader:({context:{queryClient:e}})=>{e.prefetchQuery(kR())},component:We(p9e,"component")}),g9e=()=>Ve(()=>import("./import-DhvqQyGM.js"),__vite__mapDeps([12,13,14,15,16,17])),v9e=$e("/import")({component:We(g9e,"component")}),y9e=FR(["match","properties","folder","rule","name","review","run"]),b9e=cu("search"),S9e=b9e.optional().catch(void 0),w9e=()=>vb({from:"/mail",select:e=>e.wizardFrom}),x9e=y9e.optional().catch(void 0),C9e=(e,t)=>Ny(e,t)+1,pY=()=>vb({from:"/mail",select:e=>e.wizard}),E9e=()=>{const e=Im();return _.useCallback((t,n)=>{e({to:".",search:r=>({...r,wizard:t,wizardFrom:n})})},[e])},wWe=()=>{const e=pY(),t=E9e(),[n,r]=_.useState("organize"),o=_.useCallback(i=>{r(i),t("match")},[t]),s=_.useCallback(()=>{t("properties","search")},[t]);return{verb:n,start:o,startFromSearch:s,isOpen:e!==void 0}},xWe=e=>{const t=ho(),n=Im(),r=pY(),o=w9e(),s=_.useRef(r!==void 0),i=_.useRef(o),c=_.useRef(void 0);_.useEffect(()=>{c.current=void 0},[r]),_.useEffect(()=>{if(!s.current)return;s.current=!1;const m=i.current;(async()=>(await n({to:".",search:g=>({...g,wizard:void 0,wizardFrom:void 0}),replace:!0}),await n({to:".",search:g=>({...g,wizard:e,wizardFrom:m})})))()},[e,n]);const u=_.useCallback(m=>{m===r||c.current===m||(c.current=m,n({to:".",search:g=>({...g,wizard:m})}))},[n,r]),d=_.useCallback(()=>{t.history.back()},[t]),h=_.useCallback((m,g)=>{t.history.go(-C9e(m,g))},[t]);return{step:r,goToStep:u,goBack:d,closeWizard:h}},zm=Is({q:qr().optional()}),VR=zm.extend({}),mY=zm.extend({}),_9e=zm.extend({}),gY=zm.extend({}),k9e=VR,A9e=zm.extend({wizard:x9e,wizardFrom:S9e}),n3=Is({body:qr().optional()}),CWe=e=>{const{body:t,...n}=e;return n},GR={brief:VR.extend(n3.shape),flagged:mY.extend(n3.shape),mailbox:gY.extend(n3.shape)},T9e=new Map;function EWe(e){const t=new Map;for(const n of e){const r=Hb(n.folderAppointments);for(const[o,s]of r)t.set(o,{role:s});for(const o of n.mailboxes){const s=r.get(o.mailboxId),i={providerPath:o.fullPath,hierarchyDelimiter:o.hierarchyDelimiter};t.set(o.mailboxId,s?{role:s,...i}:i)}}return t}function _We(e){const t=[];for(const[n,r]of e)r.role==="junk"&&t.push(n);return t}function kWe(e,t){const n=t[0];if(!e)return n?{mailboxId:n}:{};for(const o of t){const s=e.get(o);if(s&&xce(s)!==void 0)return{mailboxId:o,folder:s}}if(!n)return{};const r=e.get(n);return{mailboxId:n,...r?{folder:r}:{}}}const I9e=_.createContext(null),AWe=()=>_.useContext(I9e)??{accounts:[],mailboxNameIndex:new Map,accountNameIndex:new Map,resultFolderIndex:T9e,searchQuery:"",searchInput:"",searchViewKey:"",onSearchChange:()=>{},onSearchClear:()=>{},onSearchClearQuery:()=>{},intelligenceOpen:!1,onToggleIntelligence:()=>{},onRaiseIntelligence:()=>{}},R9e=()=>Ve(()=>import("./mail-CmiK10Kq.js"),__vite__mapDeps([18,1,19,5,4,20,21,22,2,3,6,7,8,9,23,24,25,26,27,28,29,30,10,31,32,33,34,35,36,37,38,39,40])),O9e=$e("/mail")({loader:({context:{queryClient:e}})=>{e.prefetchQuery(kR()),e.prefetchQuery({...K6e(),staleTime:6e4})},component:We(R9e,"component"),validateSearch:A9e}),N9e=()=>Ve(()=>import("./onboarding-DVJYsyGv.js"),__vite__mapDeps([41,42,43,22,13,14,29,16,17])),M9e=$e("/onboarding")({component:We(N9e,"component")});function P9e(){const e=o9e(),t=e?.surface.status==="ready"&&e.surface.section.status==="available";return x.jsx(b$,{label:t?"Update available":void 0,children:x.jsx(Xse,{className:"size-4"})})}function D9e(){return Wc({...L6e()})}const r3={listed:"Sync warnings",unread:"Warnings could not be read",signedOut:"Session ended"};function L9e(e,t){if(jy(t))return r3.signedOut;if(t)return r3.unread;if(e&&((e.entries?.length??0)>0||(e.warnings?.length??0)>0))return r3.listed}function z9e(){const e=D9e();return L9e(e.data,e.error)}function U9e(){const e=z9e();return x.jsx(b$,{label:e,children:x.jsx(Sl,{className:"size-4"})})}const j9e=Fy(403,404),TWe={...Fy(403,404,409,429),..._fe},F9e=new Set([Nc.SignInDisabled,Nc.CallerDisabled]),vY=e=>{if(Qn(e)!==403)return!1;const t=Qc(e)?.code;return t!==void 0&&F9e.has(t)},$9e=e=>{if(Uy(e))return"The server could not be reached. Nothing changed. Try again.";const t=Qc(e)?.code;return t===Nc.CannotDisableSelf?"You cannot disable your own account, so one account always stays on.":t===Nc.StepUpRequired?"The password check did not carry over to the action. Nothing changed. Try again.":t===Nc.ForeignOrigin?"The server refused a request from this address. Nothing changed. Open this page from the server's own address.":Qn(e)===404?"That account is gone, or this server no longer has a People page. Reload the page.":"Something went wrong on the server. Nothing changed. Try again."},IWe=e=>Uy(e)?"The server could not be reached. Check your connection and try again.":"The server did not answer as expected. Try again.",RWe=e=>{if(Qn(e)===401||vY(e))return{kind:"signedOut"};const t=Qc(e)?.code;return t===Nc.WrongPassword?{kind:"wrongPassword"}:t===Nc.StepUpLocked?{kind:"locked"}:{kind:"failed",reason:$9e(e)}},OWe=(e,t)=>e==="Disable"?{title:`Disable ${t}?`,body:"They are signed out everywhere within 15 minutes and cannot sign in until you enable them again. Their calendar feed links stop working. Their mail stays.",confirmLabel:"Disable",failedTitle:`${t} was not disabled`,destructive:!0}:e==="Enable"?{title:`Enable ${t}?`,body:"They can sign in again with their password. Calendar feed links they shared before stay off; they make new ones in Settings.",confirmLabel:"Enable",failedTitle:`${t} was not enabled`,destructive:!1}:e==="SignOut"?{title:`Sign ${t} out everywhere?`,body:"Every session and connected app of theirs ends within 15 minutes. They can sign in again with their password.",confirmLabel:"Sign out everywhere",failedTitle:`${t} was not signed out`,destructive:!0}:{title:`Reset the password of ${t}?`,body:"Their password stops working at once and they are signed out everywhere. You get a link to give them, which works once, for 24 hours.",confirmLabel:"Make a reset link",failedTitle:`No reset link was made for ${t}`,destructive:!0},NWe=(e,t)=>{const n=Qn(t),r=Qc(t)?.code,o=t instanceof Error?t.message:String(t),s=[n??"no response",r,o].filter(i=>i!==void 0&&i!=="").join(" ");return xm(Vd({title:`People: ${e}`,errorMessage:`${e}. The server answered: ${s}`}))},B9e=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),MWe=(e,t)=>B9e(new Date(e),t)?"Today":ZK(e,"medium"),PWe=(e,t)=>e.map(n=>n.userId===t.userId?t:n),H9e=()=>({...q6e(),meta:j9e,retry:!1}),q9e=()=>{const e=Wc(H9e()),t=e.isError&&vY(e.error);return _.useEffect(()=>{t&&DI()},[t]),{...e,unavailable:e.isError&&SB(e.error)}},W9e=()=>Ve(()=>import("./settings-kL8Y1zKC.js"),[]),a1=[{id:"accounts",label:"Accounts",icon:x.jsx(UF,{className:"size-4"})},{id:"senders",label:"Senders & Rules",icon:x.jsx(Zse,{className:"size-4"})},{id:"folders",label:"Folder roles",icon:x.jsx(Lse,{className:"size-4"})},{id:"filters",label:"Filters",icon:x.jsx(Mse,{className:"size-4"})},{id:"labels",label:"Labels",icon:x.jsx(Gse,{className:"size-4"})},{id:"calendars",label:"Calendars",icon:x.jsx(Ase,{className:"size-4"})},{id:"appearance",label:"Appearance",icon:x.jsx($se,{className:"size-4"})},{id:"warnings",label:"Warnings",icon:x.jsx(U9e,{})},{id:"advanced",label:"Advanced",icon:x.jsx(P9e,{})}],DWe={accounts:"/settings/accounts",senders:"/settings/senders",folders:"/settings/folders",filters:"/settings/filters",labels:"/settings/labels",calendars:"/settings/calendars",appearance:"/settings/appearance",warnings:"/settings/warnings",people:"/settings/people",advanced:"/settings/advanced"},V9e={id:"people",label:"People",icon:x.jsx(Yse,{className:"size-4"})},LWe=()=>{if(!q9e().isSuccess)return a1;const t=a1.findIndex(n=>n.id==="advanced");return[...a1.slice(0,t),V9e,...a1.slice(t)]},G9e=$e("/settings")({component:We(W9e,"component")}),K9e=["year","month","week","day","agenda"],Y9e=FR(K9e),yY="week",zWe=e=>e==="agenda";function Z9e(e){const t=Y9e.safeParse(e);return t.success?t.data:void 0}const X9e=/^\d{4}-\d{2}-\d{2}$/;function Q9e(e){if(!X9e.test(e))return;const[t,n,r]=e.split("-").map(Number),o=Date.UTC(t,n-1,r),s=new Date(o);if(s.getUTCFullYear()===t&&s.getUTCMonth()===n-1&&s.getUTCDate()===r)return e}const cf=e=>String(e).padStart(2,"0");function bY(e){return`${e.getFullYear()}-${cf(e.getMonth()+1)}-${cf(e.getDate())}`}function J9e(e,t){return{view:Z9e(e.view)??yY,date:Q9e(e.date)??t}}function UWe(e,t,n){const[r,o,s]=e.split("-").map(Number);if(t==="year")return BU(r+n,o,s);if(t==="month")return BU(r,o+n,s);const i=t==="day"?1:7,c=new Date(Date.UTC(r,o-1,s+i*n));return eze(c)}const eze=e=>`${e.getUTCFullYear()}-${cf(e.getUTCMonth()+1)}-${cf(e.getUTCDate())}`;function BU(e,t,n){const r=e+Math.floor((t-1)/12),o=((t-1)%12+12)%12+1,s=new Date(Date.UTC(r,o,0)).getUTCDate();return`${r}-${cf(o)}-${cf(Math.min(n,s))}`}const tze=qr().min(1);function nze(e){const t=e==null?[]:[e].flat(),n=new Set;for(const r of t){if(typeof r!="string"&&typeof r!="number")continue;const o=tze.safeParse(String(r));o.success&&n.add(o.data)}return[...n].sort()}const KR=Is({calendarId:ty().transform(nze).transform(e=>e.length===0?void 0:e).optional()});function jWe(e,t){return t?e==="week"?"day":e==="year"?"month":e:e}const rze=$e("/calendar/")({validateSearch:KR,beforeLoad:({search:e,location:t})=>{throw _f({to:"/calendar/$view/$date",params:{view:yY,date:bY(new Date)},search:e,hash:t.hash,replace:!0})}}),oze=$e("/mail/")({validateSearch:k9e,beforeLoad:({search:e,location:t})=>{throw _f({to:"/mail/brief",search:e,hash:t.hash,replace:!0})}}),sze=()=>Ve(()=>import("./_mailboxId-5uzJGGTA.js"),__vite__mapDeps([44,25,5,4,24,26,1,27,28,29,30,10,31,45,46,22,20,32,33,34,21,47,9,19,48,7,6,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,59,60,61,62,63,64,65,66])),aze=$e("/mail/$mailboxId")({component:We(sze,"component"),validateSearch:gY}),ize=()=>Ve(()=>import("./brief-ChnlqLdX.js"),__vite__mapDeps([67,1])),lze=()=>Ve(()=>import("./brief-C-5GXXj6.js"),__vite__mapDeps([68,25,5,4,24,26,1,27,28,29,30,10,31,69,46,22,20,47,9,19,21,48,7,6,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,32,33,34,60,61,70,66])),cze=$e("/mail/brief")({component:We(lze,"component"),validateSearch:VR,errorComponent:We(ize,"errorComponent")}),uze=()=>Ve(()=>import("./flagged-CjfnRBYq.js"),__vite__mapDeps([71,1])),dze=()=>Ve(()=>import("./flagged-CVmpEd-z.js"),__vite__mapDeps([72,25,5,4,24,26,1,27,28,29,30,10,31,73,46,22,20,47,9,19,21,48,7,6,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,59,34,70,66])),fze=$e("/mail/flagged")({component:We(dze,"component"),validateSearch:mY,errorComponent:We(uze,"errorComponent")}),hze=()=>Ve(()=>import("./outbox-_8AzSWX1.js"),__vite__mapDeps([74,25,5,4,24,26,1,27,28,29,30,10,31,75,9,46,22,20,33,56,76,77,62,35,40,66])),pze=$e("/mail/outbox")({component:We(hze,"component"),validateSearch:_9e}),mze=$e("/reset-password/$token")({beforeLoad:()=>{throw _f({to:"/"})}}),gze=()=>Ve(()=>import("./index-DDMaQQcI.js"),[]),vze=$e("/settings/")({component:We(gze,"component")}),yze=()=>Ve(()=>import("./accounts-DKPcRgRU.js"),__vite__mapDeps([78,42,43,22,13,14,29,16,1,76,79,6,35,64,28,31,51,80])),bze=Is({editAccountId:qr().optional(),focusSmtp:jR().optional(),connected:qr().optional(),oauthError:qr().optional(),oauthEmail:qr().optional(),missingServices:qr().optional()}),Sze=$e("/settings/accounts")({component:We(yze,"component"),validateSearch:bze}),wze=()=>Ve(()=>import("./advanced-BjXiUDtl.js"),__vite__mapDeps([81,79,6,35,64,15,5,4,10,14,51,16,82,77,65,58,56,8,80,22])),xze=$e("/settings/advanced")({component:We(wze,"component")}),Cze=()=>Ve(()=>import("./appearance-MzTWiLTR.js"),__vite__mapDeps([83,79,6,35,64,80,22])),Eze=$e("/settings/appearance")({component:We(Cze,"component")}),_ze=()=>Ve(()=>import("./calendars-D9ZEiowB.js"),__vite__mapDeps([84,79,6,35,64,14,53,1,21,85,86,23,87,30,31,34,88])),kze=$e("/settings/calendars")({component:We(_ze,"component")}),Aze=()=>Ve(()=>import("./filters--HZZoQYr.js"),__vite__mapDeps([89,1,79,6,35,64,63,4,61,57,65])),Tze=$e("/settings/filters")({component:We(Aze,"component")}),Ize=()=>Ve(()=>import("./folders-BEv1OKE6.js"),__vite__mapDeps([90,1,23,79,6,35,64,39])),Rze=$e("/settings/folders")({component:We(Ize,"component")}),Oze=()=>Ve(()=>import("./labels-DlSg6Q8z.js"),__vite__mapDeps([91,31,1,79,6,35,64,61])),Nze=$e("/settings/labels")({component:We(Oze,"component")}),Mze=()=>Ve(()=>import("./people-BAjwQQiz.js"),__vite__mapDeps([92,79,6,35,64,50,88])),Pze=$e("/settings/people")({component:We(Mze,"component")}),Dze=()=>Ve(()=>import("./senders-BpChah6o.js"),__vite__mapDeps([93,1,22,79,6,35,64,30,80])),Lze=$e("/settings/senders")({component:We(Dze,"component")}),zze=()=>Ve(()=>import("./suggested-vips-ODDnv-D2.js"),[]),Uze=$e("/settings/suggested-vips")({component:We(zze,"component")}),jze=()=>Ve(()=>import("./warnings-De2eUHBy.js"),__vite__mapDeps([94,79,6,35,64,1,88,82,36,21,65,80,22])),Fze=$e("/settings/warnings")({component:We(jze,"component")}),$ze=()=>Ve(()=>import("./_view._date-DLGnjbKh.js"),__vite__mapDeps([95,86,23,53,1,21,85,64,35,87,30,96,97,5,4,11,52,38,54,56,98,37,99,100,101,55,3])),Bze=$e("/calendar/$view/$date")({validateSearch:KR,beforeLoad:({params:e,search:t,location:n})=>{const r=J9e(e,bY(new Date));if(!(r.view===e.view&&r.date===e.date))throw _f({to:"/calendar/$view/$date",params:r,search:t,hash:n.hash,replace:!0})},component:We($ze,"component")}),Hze=()=>Ve(()=>import("./index-B4YQCeZ5.js"),__vite__mapDeps([102,45,46,22,20,5,4,24,32,33,34,21,47,9,19,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,59,60,61,62,63,64,65])),qze=$e("/mail/$mailboxId/")({component:We(Hze,"component")}),Wze=()=>Ve(()=>import("./_threadId-Djcejxjj.js"),[]),Vze=$e("/mail/$mailboxId/$threadId")({component:We(Wze,"component")}),Gze=()=>Ve(()=>import("./index-BqN9osrB.js"),__vite__mapDeps([103,69,46,22,20,5,4,24,47,9,19,21,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,32,33,34,60,61,70])),Kze=$e("/mail/brief/")({component:We(Gze,"component")}),Yze=()=>Ve(()=>import("./_threadId-TLGn2UeF.js"),[]),Zze=$e("/mail/brief/$threadId")({component:We(Yze,"component")}),Xze=()=>Ve(()=>import("./index-aTwfTj57.js"),__vite__mapDeps([104,73,46,22,20,5,4,24,47,9,19,21,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,59,34,70])),Qze=$e("/mail/flagged/")({component:We(Xze,"component")}),Jze=()=>Ve(()=>import("./_threadId-B17WzUu-.js"),[]),eUe=$e("/mail/flagged/$threadId")({component:We(Jze,"component")}),tUe=()=>Ve(()=>import("./index-ChXNLMBw.js"),__vite__mapDeps([105,75,9,46,22,20,5,4,24,33,56,76,77,62,35,40])),nUe=$e("/mail/outbox/")({component:We(tUe,"component")}),rUe=()=>Ve(()=>import("./index-DtqBFgK5.js"),[]),oUe=$e("/calendar/$view/$date/")({component:We(rUe,"component")}),sUe=()=>Ve(()=>import("./_calendarObjectId-BNxfdsFq.js"),[]),aUe=$e("/calendar/$view/$date/$calendarObjectId")({component:We(sUe,"component")}),Ja=e=>String(e).padStart(2,"0"),SY=e=>`${e.getUTCFullYear()}-${Ja(e.getUTCMonth()+1)}-${Ja(e.getUTCDate())}`,YR=e=>{const t=e<0?"-":"+",n=Math.abs(e);return`${t}${Ja(Math.floor(n/60))}:${Ja(n%60)}`};function wY(e,t){const n=new Date(`${e}T${t}:00`);return`${e}T${t}:00${YR(-n.getTimezoneOffset())}`}const o3=new Map;function iUe(e){if(o3.has(e))return o3.get(e);let t;try{t=new Intl.DateTimeFormat("en-US",{timeZone:e,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{t=void 0}return o3.set(e,t),t}function LA(e,t){const n=iUe(e);if(!n)return Number.NaN;const r=n.formatToParts(new Date(t)),o=c=>Number(r.find(u=>u.type===c)?.value),s=o("hour")%24;return(Date.UTC(o("year"),o("month")-1,o("day"),s,o("minute"),o("second"))-t)/6e4}function HU(e,t,n){if(n==="")return`${e}T${t}:00+00:00`;const r=Date.parse(`${e}T${t}:00Z`),o=LA(n,r);if(Number.isNaN(o))return wY(e,t);const s=LA(n,r-o*6e4);return`${e}T${t}:00${YR(Number.isNaN(s)?o:s)}`}function qU(e,t){const n=Date.parse(e),r=LA(t,n),o=Number.isNaN(r)?-new Date(n).getTimezoneOffset():r,s=new Date(n+o*6e4);return`${SY(s)}T${Ja(s.getUTCHours())}:${Ja(s.getUTCMinutes())}:${Ja(s.getUTCSeconds())}${YR(o)}`}const ry=e=>wY(e,"00:00");function pl(e,t){const[n,r,o]=e.split("-").map(Number);return SY(new Date(Date.UTC(n,r-1,o+t)))}function s3(e){const[t,n,r]=e.split("-").map(Number),o=new Date(Date.UTC(t,n-1,r));return pl(e,-((o.getUTCDay()+6)%7))}function lUe(e,t){const[n,r]=t.split("-").map(Number);if(e==="year")return[`${n}-01-01`,`${n+1}-01-01`];if(e==="month"){const s=`${n}-${Ja(r)}-01`,i=r===12?`${n+1}-01-01`:`${n}-${Ja(r+1)}-01`;return[s3(s),pl(s3(pl(i,-1)),7)]}if(e==="day")return[t,pl(t,1)];const o=s3(t);return[o,pl(o,7)]}function FWe(e,t){const[n,r]=lUe(e,t);return{from:ry(n),to:ry(r)}}function $We(e,t){return{from:ry(e),to:ry(pl(e,t))}}const cUe=EDe({offset:!0,local:!1}),xY=_De(),WU=ty().transform(e=>{const t=VK([cUe,xY]).safeParse(e);return t.success?t.data:void 0}).optional(),uUe=KR.extend({start:WU,end:WU}),i1=e=>xY.safeParse(e).success;function l1(e){return{date:e,endDate:e,startTime:"09:00",endTime:"10:00",allDay:!1}}function BWe(e,t,n,r){if(e===void 0||t===void 0)return l1(n);if(i1(e)&&i1(t)){const i=pl(t,-1);return i<e?l1(n):{date:e,endDate:i,startTime:"",endTime:"",allDay:!0}}if(i1(e)||i1(t)||Date.parse(t)<=Date.parse(e))return l1(n);const o=qU(e,r),s=qU(t,r);return{date:o.slice(0,10),endDate:s.slice(0,10),startTime:o.slice(11,16),endTime:s.slice(11,16),allDay:!1}}function HWe(e,t){return e.allDay?{start:e.date,end:pl(e.endDate,1)}:{start:HU(e.date,e.startTime,t),end:HU(e.endDate,e.endTime,t)}}const dUe=()=>Ve(()=>import("./new-B_n0KCot.js"),__vite__mapDeps([106,107,31,86,23,53,1,21,108,85,64,97,96,100,87,30,54,5,4,11,99,101])),fUe=$e("/calendar/$view/$date/new")({validateSearch:uUe,component:We(dUe,"component")}),hUe=()=>Ve(()=>import("./index-CtUY7QaK.js"),__vite__mapDeps([109,45,46,22,20,5,4,24,32,33,34,21,47,9,19,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,59,60,61,62,63,64,65])),pUe=$e("/mail/$mailboxId/$threadId/")({component:We(hUe,"component")}),mUe=()=>Ve(()=>import("./_messageId-CtUY7QaK.js"),__vite__mapDeps([110,45,46,22,20,5,4,24,32,33,34,21,47,9,19,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,59,60,61,62,63,64,65])),gUe=$e("/mail/$mailboxId/$threadId/$messageId")({component:We(mUe,"component")}),vUe=()=>Ve(()=>import("./compose._-_outboxMessageId_-C6-fUwE2.js"),__vite__mapDeps([111,26,1,27,24,5,4,28,29,30,10,31])),yUe=$e("/mail/$mailboxId/compose/{-$outboxMessageId}")({component:We(vUe,"component")}),bUe=()=>Ve(()=>import("./index-CyMtXqvK.js"),__vite__mapDeps([112,69,46,22,20,5,4,24,47,9,19,21,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,32,33,34,60,61,70])),SUe=$e("/mail/brief/$threadId/")({component:We(bUe,"component")}),wUe=()=>Ve(()=>import("./_messageId-CyMtXqvK.js"),__vite__mapDeps([113,69,46,22,20,5,4,24,47,9,19,21,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,32,33,34,60,61,70])),xUe=$e("/mail/brief/$threadId/$messageId")({component:We(wUe,"component")}),CUe=()=>Ve(()=>import("./compose._-_outboxMessageId_-Djp_aqSn.js"),__vite__mapDeps([114,26,1,27,24,5,4,28,29,30,10,31])),EUe=$e("/mail/brief/compose/{-$outboxMessageId}")({component:We(CUe,"component")}),_Ue=()=>Ve(()=>import("./index-B8TxM1Ri.js"),__vite__mapDeps([115,73,46,22,20,5,4,24,47,9,19,21,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,59,34,70])),kUe=$e("/mail/flagged/$threadId/")({component:We(_Ue,"component")}),AUe=()=>Ve(()=>import("./_messageId-jb0nvtAH.js"),__vite__mapDeps([116,73,46,22,20,5,4,24,47,9,19,21,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,59,34,70])),TUe=$e("/mail/flagged/$threadId/$messageId")({component:We(AUe,"component")}),IUe=()=>Ve(()=>import("./compose._-_outboxMessageId_-DspXe17c.js"),__vite__mapDeps([117,26,1,27,24,5,4,28,29,30,10,31])),RUe=$e("/mail/flagged/compose/{-$outboxMessageId}")({component:We(IUe,"component")}),OUe=()=>Ve(()=>import("./compose._-_outboxMessageId_-CSKV8YnZ.js"),__vite__mapDeps([118,26,1,27,24,5,4,28,29,30,10,31])),NUe=$e("/mail/outbox/compose/{-$outboxMessageId}")({component:We(OUe,"component")}),MUe=()=>Ve(()=>import("./_outboxMessageId-CRuHx4Az.js"),__vite__mapDeps([119,75,9,46,22,20,5,4,24,33,56,76,77,62,35,40])),PUe=$e("/mail/outbox/draft/$outboxMessageId")({component:We(MUe,"component")}),DUe=()=>Ve(()=>import("./index-CA4e3svh.js"),__vite__mapDeps([120,121,31,86,23,53,1,21,85,64,96,97,54,5,4,11,101])),LUe=$e("/calendar/$view/$date/$calendarObjectId/")({component:We(DUe,"component")}),zUe=()=>Ve(()=>import("./_recurrenceId-Dcdvy3HK.js"),[]),UUe=$e("/calendar/$view/$date/$calendarObjectId/$recurrenceId")({component:We(zUe,"component")}),jUe=()=>Ve(()=>import("./edit-D9g3EW1R.js"),__vite__mapDeps([122,107,31,86,23,53,1,21,108,85,64,97,96,100,87,30,54,5,4,11,99,101])),FUe=$e("/calendar/$view/$date/$calendarObjectId/edit")({component:We(jUe,"component")}),$Ue=()=>Ve(()=>import("./suggestion._suggestionId-DZhG3YlZ.js"),__vite__mapDeps([123,48,108,85,86,23,53,1,21,64,55,100,54,101,5,4,11])),BUe=$e("/calendar/$view/$date/suggestion/$suggestionId")({component:We($Ue,"component")}),HUe=()=>Ve(()=>import("./task._calendarTaskId-BfaZmOEn.js"),__vite__mapDeps([124,96,1,53,21,86,23,5,4,11,98])),qUe=$e("/calendar/$view/$date/task/$calendarTaskId")({component:We(HUe,"component")}),WUe=()=>Ve(()=>import("./index-Cm4__-V6.js"),__vite__mapDeps([125,121,31,86,23,53,1,21,85,64,96,97,54,5,4,11,101])),VUe=$e("/calendar/$view/$date/$calendarObjectId/$recurrenceId/")({component:We(WUe,"component")}),GUe=()=>Ve(()=>import("./edit-DkOWaaHs.js"),__vite__mapDeps([126,107,31,86,23,53,1,21,108,85,64,97,96,100,87,30,54,5,4,11,99,101])),KUe=$e("/calendar/$view/$date/$calendarObjectId/$recurrenceId/edit")({component:We(GUe,"component")}),YUe=$e("/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}")({validateSearch:GR.mailbox}),ZUe=$e("/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}")({validateSearch:GR.brief}),XUe=$e("/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}")({validateSearch:GR.flagged}),QUe=f9e.update({id:"/",path:"/",getParentRoute:()=>Pl}),ZR=m9e.update({id:"/calendar",path:"/calendar",getParentRoute:()=>Pl}),JUe=v9e.update({id:"/import",path:"/import",getParentRoute:()=>Pl}),Tf=O9e.update({id:"/mail",path:"/mail",getParentRoute:()=>Pl}),eje=M9e.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>Pl}),zo=G9e.update({id:"/settings",path:"/settings",getParentRoute:()=>Pl}),tje=rze.update({id:"/",path:"/",getParentRoute:()=>ZR}),nje=oze.update({id:"/",path:"/",getParentRoute:()=>Tf}),qb=aze.update({id:"/$mailboxId",path:"/$mailboxId",getParentRoute:()=>Tf}),Wb=cze.update({id:"/brief",path:"/brief",getParentRoute:()=>Tf}),Vb=fze.update({id:"/flagged",path:"/flagged",getParentRoute:()=>Tf}),Gb=pze.update({id:"/outbox",path:"/outbox",getParentRoute:()=>Tf}),rje=mze.update({id:"/reset-password/$token",path:"/reset-password/$token",getParentRoute:()=>Pl}),oje=vze.update({id:"/",path:"/",getParentRoute:()=>zo}),sje=Sze.update({id:"/accounts",path:"/accounts",getParentRoute:()=>zo}),aje=xze.update({id:"/advanced",path:"/advanced",getParentRoute:()=>zo}),ije=Eze.update({id:"/appearance",path:"/appearance",getParentRoute:()=>zo}),lje=kze.update({id:"/calendars",path:"/calendars",getParentRoute:()=>zo}),cje=Tze.update({id:"/filters",path:"/filters",getParentRoute:()=>zo}),uje=Rze.update({id:"/folders",path:"/folders",getParentRoute:()=>zo}),dje=Nze.update({id:"/labels",path:"/labels",getParentRoute:()=>zo}),fje=Pze.update({id:"/people",path:"/people",getParentRoute:()=>zo}),hje=Lze.update({id:"/senders",path:"/senders",getParentRoute:()=>zo}),pje=Uze.update({id:"/suggested-vips",path:"/suggested-vips",getParentRoute:()=>zo}),mje=Fze.update({id:"/warnings",path:"/warnings",getParentRoute:()=>zo}),If=Bze.update({id:"/$view/$date",path:"/$view/$date",getParentRoute:()=>ZR}),gje=qze.update({id:"/",path:"/",getParentRoute:()=>qb}),XR=Vze.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>qb}),vje=Kze.update({id:"/",path:"/",getParentRoute:()=>Wb}),QR=Zze.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>Wb}),yje=Qze.update({id:"/",path:"/",getParentRoute:()=>Vb}),JR=eUe.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>Vb}),bje=nUe.update({id:"/",path:"/",getParentRoute:()=>Gb}),Sje=oUe.update({id:"/",path:"/",getParentRoute:()=>If}),Kb=aUe.update({id:"/$calendarObjectId",path:"/$calendarObjectId",getParentRoute:()=>If}),wje=fUe.update({id:"/new",path:"/new",getParentRoute:()=>If}),xje=pUe.update({id:"/",path:"/",getParentRoute:()=>XR}),CY=gUe.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>XR}),Cje=yUe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>qb}),Eje=SUe.update({id:"/",path:"/",getParentRoute:()=>QR}),EY=xUe.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>QR}),_je=EUe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Wb}),kje=kUe.update({id:"/",path:"/",getParentRoute:()=>JR}),_Y=TUe.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>JR}),Aje=RUe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Vb}),Tje=NUe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Gb}),Ije=PUe.update({id:"/draft/$outboxMessageId",path:"/draft/$outboxMessageId",getParentRoute:()=>Gb}),Rje=LUe.update({id:"/",path:"/",getParentRoute:()=>Kb}),eO=UUe.update({id:"/$recurrenceId",path:"/$recurrenceId",getParentRoute:()=>Kb}),Oje=FUe.update({id:"/edit",path:"/edit",getParentRoute:()=>Kb}),Nje=BUe.update({id:"/suggestion/$suggestionId",path:"/suggestion/$suggestionId",getParentRoute:()=>If}),Mje=qUe.update({id:"/task/$calendarTaskId",path:"/task/$calendarTaskId",getParentRoute:()=>If}),Pje=VUe.update({id:"/",path:"/",getParentRoute:()=>eO}),Dje=KUe.update({id:"/edit",path:"/edit",getParentRoute:()=>eO}),Lje=YUe.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>CY}),zje=ZUe.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>EY}),Uje=XUe.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>_Y}),jje={CalendarViewDateCalendarObjectIdRecurrenceIdEditRoute:Dje,CalendarViewDateCalendarObjectIdRecurrenceIdIndexRoute:Pje},Fje=eO._addFileChildren(jje),$je={CalendarViewDateCalendarObjectIdRecurrenceIdRoute:Fje,CalendarViewDateCalendarObjectIdEditRoute:Oje,CalendarViewDateCalendarObjectIdIndexRoute:Rje},Bje=Kb._addFileChildren($je),Hje={CalendarViewDateCalendarObjectIdRoute:Bje,CalendarViewDateNewRoute:wje,CalendarViewDateIndexRoute:Sje,CalendarViewDateSuggestionSuggestionIdRoute:Nje,CalendarViewDateTaskCalendarTaskIdRoute:Mje},qje=If._addFileChildren(Hje),Wje={CalendarIndexRoute:tje,CalendarViewDateRoute:qje},Vje=ZR._addFileChildren(Wje),Gje={MailMailboxIdThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:Lje},Kje=CY._addFileChildren(Gje),Yje={MailMailboxIdThreadIdMessageIdRoute:Kje,MailMailboxIdThreadIdIndexRoute:xje},Zje=XR._addFileChildren(Yje),Xje={MailMailboxIdThreadIdRoute:Zje,MailMailboxIdIndexRoute:gje,MailMailboxIdComposeChar123OutboxMessageIdChar125Route:Cje},Qje=qb._addFileChildren(Xje),Jje={MailBriefThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:zje},eFe=EY._addFileChildren(Jje),tFe={MailBriefThreadIdMessageIdRoute:eFe,MailBriefThreadIdIndexRoute:Eje},nFe=QR._addFileChildren(tFe),rFe={MailBriefThreadIdRoute:nFe,MailBriefIndexRoute:vje,MailBriefComposeChar123OutboxMessageIdChar125Route:_je},oFe=Wb._addFileChildren(rFe),sFe={MailFlaggedThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:Uje},aFe=_Y._addFileChildren(sFe),iFe={MailFlaggedThreadIdMessageIdRoute:aFe,MailFlaggedThreadIdIndexRoute:kje},lFe=JR._addFileChildren(iFe),cFe={MailFlaggedThreadIdRoute:lFe,MailFlaggedIndexRoute:yje,MailFlaggedComposeChar123OutboxMessageIdChar125Route:Aje},uFe=Vb._addFileChildren(cFe),dFe={MailOutboxIndexRoute:bje,MailOutboxComposeChar123OutboxMessageIdChar125Route:Tje,MailOutboxDraftOutboxMessageIdRoute:Ije},fFe=Gb._addFileChildren(dFe),hFe={MailMailboxIdRoute:Qje,MailBriefRoute:oFe,MailFlaggedRoute:uFe,MailOutboxRoute:fFe,MailIndexRoute:nje},pFe=Tf._addFileChildren(hFe),mFe={SettingsAccountsRoute:sje,SettingsAdvancedRoute:aje,SettingsAppearanceRoute:ije,SettingsCalendarsRoute:lje,SettingsFiltersRoute:cje,SettingsFoldersRoute:uje,SettingsLabelsRoute:dje,SettingsPeopleRoute:fje,SettingsSendersRoute:hje,SettingsSuggestedVipsRoute:pje,SettingsWarningsRoute:mje,SettingsIndexRoute:oje},gFe=zo._addFileChildren(mFe),vFe={IndexRoute:QUe,CalendarRoute:Vje,ImportRoute:JUe,MailRoute:pFe,OnboardingRoute:eje,SettingsRoute:gFe,ResetPasswordTokenRoute:rje},yFe=Pl._addFileChildren(vFe)._addFileTypes(),bFe=(e,t,n)=>{const r=_Ee({routeTree:yFe,context:{queryClient:e},history:n,stringifySearch:O4e,defaultPreload:"intent",defaultPendingComponent:My,defaultPendingMs:200,defaultPendingMinMs:300});return r.subscribe("onResolved",o=>{t.recordPageView(o.toLocation.pathname),Ffe(o.toLocation.pathname)}),r},Je=e=>typeof e=="string",Xh=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},VU=e=>e==null?"":""+e,SFe=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},wFe=/###/g,GU=e=>e&&e.indexOf("###")>-1?e.replace(wFe,"."):e,KU=e=>!e||Je(e),Tp=(e,t,n)=>{const r=Je(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(KU(e))return{};const s=GU(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return KU(e)?{}:{obj:e,k:GU(r[o])}},YU=(e,t,n)=>{const{obj:r,k:o}=Tp(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],i=t.slice(0,t.length-1),c=Tp(e,i,Object);for(;c.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),c=Tp(e,i,Object),c?.obj&&typeof c.obj[`${c.k}.${s}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${s}`]=n},xFe=(e,t,n,r)=>{const{obj:o,k:s}=Tp(e,t,Object);o[s]=o[s]||[],o[s].push(n)},oy=(e,t)=>{const{obj:n,k:r}=Tp(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},CFe=(e,t,n)=>{const r=oy(e,n);return r!==void 0?r:oy(t,n)},kY=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Je(e[r])||e[r]instanceof String||Je(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):kY(e[r],t[r],n):e[r]=t[r]);return e},sd=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var EFe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const _Fe=e=>Je(e)?e.replace(/[&<>"'\/]/g,t=>EFe[t]):e;class kFe{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const AFe=[" ",",","?","!",";"],TFe=new kFe(20),IFe=(e,t,n)=>{t=t||"",n=n||"";const r=AFe.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const o=TFe.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!o.test(e);if(!s){const i=e.indexOf(n);i>0&&!o.test(e.substring(0,i))&&(s=!0)}return s},zA=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let i,c="";for(let u=s;u<r.length;++u)if(u!==s&&(c+=n),c+=r[u],i=o[c],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<r.length-1)continue;s+=u-s+1;break}o=i}return o},sy=e=>e?.replace("_","-"),RFe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class ay{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||RFe,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(Je(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ay(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ay(this.logger,t)}}var ea=new ay;class Yb{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[c,u]=i;for(let d=0;d<u;d++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[c,u]=i;for(let d=0;d<u;d++)c.apply(c,[t,...r])})}}class ZU extends Yb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):Je(r)&&s?c.push(...r.split(s)):c.push(r)));const u=oy(this.data,c);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),u||!i||!Je(r)?u:zA(this.data?.[t]?.[n],r,s)}addResource(t,n,r,o){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(c=t.split("."),o=n,n=c[1]),this.addNamespaces(n),YU(this.data,c,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(Je(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),o=r,r=n,n=c[1]),this.addNamespaces(n);let u=oy(this.data,c)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?kY(u,r,s):u={...u,...r},YU(this.data,c,u),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var AY={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{t=this.processors[s]?.process(t,n,r,o)??t}),t}};const XU={},QU=e=>!Je(e)&&typeof e!="boolean"&&typeof e!="number";class iy extends Yb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),SFe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ea.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return t==null?!1:this.resolve(t,n)?.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!IFe(t,r,o);if(i&&!c){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Je(s)?[s]:s};const d=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(d[0])>-1)&&(s=d.shift()),t=d.join(o)}return{key:t,namespaces:Je(s)?[s]:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:c}=this.extractFromKey(t[t.length-1],n),u=c[c.length-1],d=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode"){if(h){const U=n.nsSeparator||this.options.nsSeparator;return o?{res:`${u}${U}${i}`,usedKey:i,exactUsedKey:i,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${U}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:i}const m=this.resolve(t,n);let g=m?.res;const v=m?.usedKey||i,S=m?.exactUsedKey||i,b=["[object Number]","[object Function]","[object RegExp]"],C=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,k=n.count!==void 0&&!Je(n.count),A=iy.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(d,n.count,n):"",N=n.ordinal&&k?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",O=k&&!n.ordinal&&n.count===0,I=O&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${N}`]||n.defaultValue;let M=g;E&&!g&&A&&(M=I);const z=QU(M),q=Object.prototype.toString.apply(M);if(E&&M&&z&&b.indexOf(q)<0&&!(Je(C)&&Array.isArray(M))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const U=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,M,{...n,ns:c}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(m.res=U,m.usedParams=this.getUsedParamsDetails(n),m):U}if(s){const U=Array.isArray(M),L=U?[]:{},B=U?S:v;for(const K in M)if(Object.prototype.hasOwnProperty.call(M,K)){const le=`${B}${s}${K}`;A&&!g?L[K]=this.translate(le,{...n,defaultValue:QU(I)?I[K]:void 0,joinArrays:!1,ns:c}):L[K]=this.translate(le,{...n,joinArrays:!1,ns:c}),L[K]===le&&(L[K]=M[K])}g=L}}else if(E&&Je(C)&&Array.isArray(g))g=g.join(C),g&&(g=this.extendTranslation(g,t,n,r));else{let U=!1,L=!1;!this.isValidLookup(g)&&A&&(U=!0,g=I),this.isValidLookup(g)||(L=!0,g=i);const K=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&L?void 0:g,le=A&&I!==g&&this.options.updateMissing;if(L||U||le){if(this.logger.log(le?"updateKey":"missingKey",d,u,i,le?I:g),s){const de=this.resolve(i,{...n,keySeparator:!1});de&&de.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let de=0;de<Q.length;de++)$.push(Q[de]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const se=(de,_e,j)=>{const Y=A&&j!==g?j:K;this.options.missingKeyHandler?this.options.missingKeyHandler(de,u,_e,Y,le,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(de,u,_e,Y,le,n),this.emit("missingKey",de,u,_e,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?$.forEach(de=>{const _e=this.pluralResolver.getSuffixes(de,n);O&&n[`defaultValue${this.options.pluralSeparator}zero`]&&_e.indexOf(`${this.options.pluralSeparator}zero`)<0&&_e.push(`${this.options.pluralSeparator}zero`),_e.forEach(j=>{se([de],i+j,n[`defaultValue${j}`]||I)})}):se($,i,I))}g=this.extendTranslation(g,t,n,m,r),L&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${u}:${i}`),(L||U)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,U?g:void 0))}return o?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(t,n,r,o,s){var i=this;if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const d=Je(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(d){const g=t.match(this.interpolator.nestingRegexp);h=g&&g.length}let m=r.replace&&!Je(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language||o.usedLng,r),d){const g=t.match(this.interpolator.nestingRegexp),v=g&&g.length;h<v&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,v=new Array(g),S=0;S<g;S++)v[S]=arguments[S];return s?.[0]===v[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):i.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,u=Je(c)?[c]:c;return t!=null&&u?.length&&r.applyPostProcessor!==!1&&(t=AY.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,s,i,c;return Je(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(u,n),h=d.key;o=h;let m=d.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&!Je(n.count),v=g&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(Je(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(C=>{this.isValidLookup(r)||(c=C,!XU[`${b[0]}-${C}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(XU[`${b[0]}-${C}`]=!0,this.logger.warn(`key "${o}" for languages "${b.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(E=>{if(this.isValidLookup(r))return;i=E;const k=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,h,E,C,n);else{let R;g&&(R=this.pluralResolver.getSuffix(E,n.count,n));const N=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(k.push(h+R),n.ordinal&&R.indexOf(O)===0&&k.push(h+R.replace(O,this.options.pluralSeparator)),v&&k.push(h+N)),S){const I=`${h}${this.options.contextSeparator}${n.context}`;k.push(I),g&&(k.push(I+R),n.ordinal&&R.indexOf(O)===0&&k.push(I+R.replace(O,this.options.pluralSeparator)),v&&k.push(I+N))}}let A;for(;A=k.pop();)this.isValidLookup(r)||(s=A,r=this.getResource(E,C,A,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:i,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Je(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const s of n)delete o[s]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class JU{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ea.create("languageUtils")}getScriptPartFromCode(t){if(t=sy(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=sy(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Je(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(s=>{if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&(s.indexOf("-")>0&&o.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===o||s.indexOf(o)===0&&o.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Je(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=i=>{i&&(this.isSupportedCode(i)?o.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Je(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):Je(t)&&s(this.formatLanguageCode(t)),r.forEach(i=>{o.indexOf(i)<0&&s(this.formatLanguageCode(i))}),o}}const ej={zero:0,one:1,two:2,few:3,many:4,other:5},tj={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class OFe{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=ea.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=sy(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:o});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),tj;if(!t.match(/-|_/))return tj;const u=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(u,n)}return this.pluralRulesCache[s]=i,i}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,s)=>ej[o]-ej[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const nj=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=CFe(e,t,n);return!s&&o&&Je(n)&&(s=zA(e,n,r),s===void 0&&(s=zA(t,n,r))),s},a3=e=>e.replace(/\$/g,"$$$$");class NFe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ea.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:i,suffix:c,suffixEscaped:u,formatSeparator:d,unescapeSuffix:h,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:v,nestingSuffix:S,nestingSuffixEscaped:b,nestingOptionsSeparator:C,maxReplaces:E,alwaysFormat:k}=t.interpolation;this.escape=n!==void 0?n:_Fe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?sd(s):i||"{{",this.suffix=c?sd(c):u||"}}",this.formatSeparator=d||",",this.unescapePrefix=h?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=g?sd(g):v||sd("$t("),this.nestingSuffix=S?sd(S):b||sd(")"),this.nestingOptionsSeparator=C||",",this.maxReplaces=E||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let s,i,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=v=>{if(v.indexOf(this.formatSeparator)<0){const E=nj(n,u,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...o,...n,interpolationkey:v}):E}const S=v.split(this.formatSeparator),b=S.shift().trim(),C=S.join(this.formatSeparator).trim();return this.format(nj(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure),C,r,{...o,...n,interpolationkey:b})};this.resetRegExp();const h=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>a3(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?a3(this.escape(v)):a3(v)}].forEach(v=>{for(c=0;s=v.regex.exec(t);){const S=s[1].trim();if(i=d(S),i===void 0)if(typeof h=="function"){const C=h(t,s,o);i=Je(C)?C:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))i="";else if(m){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),i="";else!Je(i)&&!this.useRawValueToEscape&&(i=VU(i));const b=v.safeValue(i);if(t=t.replace(s[0],b),m?(v.regex.lastIndex+=i.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,i;const c=(u,d)=>{const h=this.nestingOptionsSeparator;if(u.indexOf(h)<0)return u;const m=u.split(new RegExp(`${h}[ ]*{`));let g=`{${m[1]}`;u=m[0],g=this.interpolate(g,i);const v=g.match(/'/g),S=g.match(/"/g);((v?.length??0)%2===0&&!S||S.length%2!==0)&&(g=g.replace(/'/g,'"'));try{i=JSON.parse(g),d&&(i={...d,...i})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,b),`${u}${h}${g}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;o=this.nestingRegexp.exec(t);){let u=[];i={...r},i=i.replace&&!Je(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let d=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const h=o[1].split(this.formatSeparator).map(m=>m.trim());o[1]=h.shift(),u=h,d=!0}if(s=n(c.call(this,o[1].trim(),i),i),s&&o[0]===t&&!Je(s))return s;Je(s)||(s=VU(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),d&&(s=u.reduce((h,m)=>this.format(h,m,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}const MFe=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(i){const[c,...u]=i.split(":"),d=u.join(":").trim().replace(/^'+|'+$/g,""),h=c.trim();n[h]||(n[h]=d),d==="false"&&(n[h]=!1),d==="true"&&(n[h]=!0),isNaN(d)||(n[h]=parseInt(d,10))}})}return{formatName:t,formatOptions:n}},ad=e=>{const t={};return(n,r,o)=>{let s=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(s={...s,[o.interpolationkey]:void 0});const i=r+JSON.stringify(s);let c=t[i];return c||(c=e(sy(r),o),t[i]=c),c(n)}};class PFe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ea.create("formatter"),this.options=t,this.formats={number:ad((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return s=>o.format(s)}),currency:ad((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>o.format(s)}),datetime:ad((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return s=>o.format(s)}),relativetime:ad((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return s=>o.format(s,r.range||"day")}),list:ad((n,r)=>{const o=new Intl.ListFormat(n,{...r});return s=>o.format(s)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ad(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(c=>c.indexOf(")")>-1)){const c=s.findIndex(u=>u.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,c)].join(this.formatSeparator)}return s.reduce((c,u)=>{const{formatName:d,formatOptions:h}=MFe(u);if(this.formats[d]){let m=c;try{const g=o?.formatParams?.[o.interpolationkey]||{},v=g.locale||g.lng||o.locale||o.lng||r;m=this.formats[d](c,v,{...h,...o,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${d}`);return c},t)}}const DFe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class LFe extends Yb{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=ea.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,n,r,o){const s={},i={},c={},u={};return t.forEach(d=>{let h=!0;n.forEach(m=>{const g=`${d}|${m}`;!r.reload&&this.store.hasResourceBundle(d,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?i[g]===void 0&&(i[g]=!0):(this.state[g]=1,h=!1,i[g]===void 0&&(i[g]=!0),s[g]===void 0&&(s[g]=!0),u[m]===void 0&&(u[m]=!0)))}),h||(c[d]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const o=t.split("|"),s=o[0],i=o[1];n&&this.emit("failedLoading",s,i,n),!n&&r&&this.store.addResourceBundle(s,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(u=>{xFe(u.loaded,[s],i),DFe(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(d=>{c[d]||(c[d]={});const h=u.loaded[d];h.length&&h.forEach(m=>{c[d][m]===void 0&&(c[d][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:i});return}this.readingCalls++;const c=(d,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(d&&h&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,i)},s);return}i(d,h)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const d=u(t,n);d&&typeof d.then=="function"?d.then(h=>c(null,h)).catch(c):c(null,d)}catch(d){c(d)}return}return u(t,n,c)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Je(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Je(n)&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(i,c)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,i),!i&&c&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,c),this.loaded(t,i,c)})}saveMissing(t,n,r,o,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const u={...i,isUpdate:s},d=this.backend.create.bind(this.backend);if(d.length<6)try{let h;d.length===5?h=d(t,n,r,o,u):h=d(t,n,r,o),h&&typeof h.then=="function"?h.then(m=>c(null,m)).catch(c):c(null,h)}catch(h){c(h)}else d(t,n,r,o,c,u)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const rj=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Je(e[1])&&(t.defaultValue=e[1]),Je(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),oj=e=>(Je(e.ns)&&(e.ns=[e.ns]),Je(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Je(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),c1=()=>{},zFe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class dm extends Yb{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=oj(t),this.services={},this.logger=ea,this.modules={external:[]},zFe(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(Je(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=rj();this.options={...o,...this.options,...oj(n)},this.options.interpolation={...o.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?ea.init(s(this.modules.logger),this.options):ea.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=PFe;const m=new JU(this.options);this.store=new ZU(this.options.resources,this.options);const g=this.services;g.logger=ea,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new OFe(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(g.formatter=s(h),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new NFe(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new LFe(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(v){for(var S=arguments.length,b=new Array(S>1?S-1:0),C=1;C<S;C++)b[C-1]=arguments[C];t.emit(v,...b)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new iy(this.services,this.options),this.translator.on("*",function(v){for(var S=arguments.length,b=new Array(S>1?S-1:0),C=1;C<S;C++)b[C-1]=arguments[C];t.emit(v,...b)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=c1),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return t.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return t.store[h](...arguments),t}});const u=Xh(),d=()=>{const h=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(g),r(m,g)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),u}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c1;const o=Je(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],i=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(d=>{d!=="cimode"&&s.indexOf(d)<0&&s.push(d)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload?.forEach?.(c=>i(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const o=Xh();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=c1),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&AY.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=Xh();this.emit("languageChanging",t);const s=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,d)=>{d?(s(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(u,function(){return r.t(...arguments)})},c=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const d=Je(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);d&&(this.language||s(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector?.cacheUserLanguage?.(d)),this.loadResources(d,h=>{i(h,d)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),o}getFixedT(t,n,r){var o=this;const s=function(i,c){let u;if(typeof c!="object"){for(var d=arguments.length,h=new Array(d>2?d-2:0),m=2;m<d;m++)h[m-2]=arguments[m];u=o.options.overloadTranslationOptionHandler([i,c].concat(h))}else u={...c};u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||r||s.keyPrefix);const g=o.options.keySeparator||".";let v;return u.keyPrefix&&Array.isArray(i)?v=i.map(S=>`${u.keyPrefix}${g}${S}`):v=u.keyPrefix?`${u.keyPrefix}${g}${i}`:i,o.t(v,u)};return Je(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.translator?.translate(...n)}exists(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.translator?.exists(...n)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(c,u)=>{const d=this.services.backendConnector.state[`${c}|${u}`];return d===-1||d===0||d===2};if(n.precheck){const c=n.precheck(this,i);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!o||i(s,t)))}loadNamespaces(t,n){const r=Xh();return this.options.ns?(Je(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Xh();Je(t)&&(t=[t]);const o=this.options.preload||[],s=t.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=o.concat(s),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new JU(rj());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new dm(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c1;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new dm(o);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(c=>{s[c]=this[c]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const c=Object.keys(this.store.data).reduce((u,d)=>(u[d]={...this.store.data[d]},Object.keys(u[d]).reduce((h,m)=>(h[m]={...u[d][m]},h),{})),{});s.store=new ZU(c,o),s.services.resourceStore=s.store}return s.translator=new iy(s.services,o),s.translator.on("*",function(c){for(var u=arguments.length,d=new Array(u>1?u-1:0),h=1;h<u;h++)d[h-1]=arguments[h];s.emit(c,...d)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Dr=dm.createInstance();Dr.createInstance=dm.createInstance;Dr.createInstance;Dr.dir;Dr.init;Dr.loadResources;Dr.reloadResources;Dr.use;Dr.changeLanguage;Dr.getFixedT;Dr.t;Dr.exists;Dr.setDefaultNamespace;Dr.hasLoadedNamespace;Dr.loadNamespaces;Dr.loadLanguages;const{slice:UFe,forEach:jFe}=[];function FFe(e){return jFe.call(UFe.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function $Fe(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const sj=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,BFe=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let s=`${e}=${o}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!sj.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!sj.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},aj={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=BFe(e,t,o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var HFe={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return aj.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:s}=t;n&&typeof document<"u"&&aj.create(n,e,r,o,s)}},qFe={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let i=0;i<s.length;i++){const c=s[i].indexOf("=");c>0&&s[i].substring(0,c)===t&&(n=s[i].substring(c+1))}}return n}},WFe={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const s=o.substring(1);if(t){const i=s.split("&");for(let c=0;c<i.length;c++){const u=i[c].indexOf("=");u>0&&i[c].substring(0,u)===t&&(r=i[c].substring(u+1))}}if(r)return r;if(!r&&n>-1){const i=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(i)?i[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let id=null;const ij=()=>{if(id!==null)return id;try{if(id=typeof window<"u"&&window.localStorage!==null,!id)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{id=!1}return id};var VFe={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&ij())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&ij()&&window.localStorage.setItem(n,e)}};let ld=null;const lj=()=>{if(ld!==null)return ld;try{if(ld=typeof window<"u"&&window.sessionStorage!==null,!ld)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{ld=!1}return ld};var GFe={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&lj())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&lj()&&window.sessionStorage.setItem(n,e)}},KFe={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let s=0;s<n.length;s++)t.push(n[s]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},YFe={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},ZFe={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},XFe={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let TY=!1;try{document.cookie,TY=!0}catch{}const IY=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];TY||IY.splice(1,1);const QFe=()=>({order:IY,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class RY{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=FFe(n,this.options||{},QFe()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(HFe),this.addDetector(qFe),this.addDetector(VFe),this.addDetector(GFe),this.addDetector(KFe),this.addDetector(YFe),this.addDetector(ZFe),this.addDetector(XFe),this.addDetector(WFe)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.filter(r=>r!=null&&!$Fe(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}RY.type="languageDetector";const OY=["__proto__","constructor","prototype"];function NY(e){return!(typeof e!="string"||e.length===0||e.length>128||OY.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:&=;\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function MY(e){return!(!NY(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}function JFe(e){return!(!NY(e)||e.indexOf("//")>-1)}const e$e={lng:MY,ns:JFe};function u1(e){return typeof e!="string"?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function t$e(e){if(typeof e!="string"||e.length===0)return e;try{const t=new URL(e);return t.username||t.password?(t.username="",t.password="",t.toString()):e}catch{return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function PY(){return typeof XMLHttpRequest=="function"||typeof XMLHttpRequest=="object"}function n$e(e){return!!e&&typeof e.then=="function"}function r$e(e){return n$e(e)?e:Promise.resolve(e)}const o$e=/\{\{(.+?)\}\}/g,cj=/^[/\\]{2}/;function uj(e,t){let n=!1;const r=e.replace(o$e,(o,s)=>{const i=s.trim();if(OY.indexOf(i)>-1)return o;const c=t[i];if(c==null)return o;const u=e$e[i]||MY,d=String(c).split("+");for(const h of d)if(!u(h))return n=!0,o;return d.join("+")});return n||cj.test(r)&&!cj.test(e)?null:r}const Pc=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof window<"u"?window:void 0;let ly;typeof fetch=="function"?ly=fetch:Pc&&typeof Pc.fetch=="function"&&(ly=Pc.fetch);const dj=PY()&&Pc?Pc.XMLHttpRequest:void 0,s$e=typeof ActiveXObject=="function"&&Pc?Pc.ActiveXObject:void 0,DY=["__proto__","constructor","prototype"],UA=(e,t)=>{if(t&&typeof t=="object"){let n="";for(const r of Object.keys(t))DY.indexOf(r)>-1||(n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]));if(!n)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+n.slice(1)}return e},fj=(e,t,n,r)=>{const o=s=>{if(!s.ok)return n(s.statusText||"Error",{status:s.status});s.text().then(i=>{n(null,{status:s.status,data:i})}).catch(n)};if(r){const s=r(e,t);if(s instanceof Promise){s.then(o).catch(n);return}}typeof fetch=="function"?fetch(e,t).then(o).catch(n):ly(e,t).then(o).catch(n)},a$e=(e,t,n,r)=>{e.queryStringParams&&(t=UA(t,e.queryStringParams));const o={...typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders};typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),n&&(o["Content-Type"]="application/json");const s=typeof e.requestOptions=="function"?e.requestOptions(n):e.requestOptions,i={method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o,...e._omitFetchOptions?{}:s},c=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{fj(t,i,r,c)}catch(u){if(!s||Object.keys(s).length===0||!u.message||u.message.indexOf("not implemented")<0)return r(u);try{Object.keys(s).forEach(d=>{delete i[d]}),fj(t,i,r,c),e._omitFetchOptions=!0}catch(d){r(d)}}},i$e=(e,t,n,r)=>{n&&typeof n=="object"&&(n=UA("",n).slice(1)),e.queryStringParams&&(t=UA(t,e.queryStringParams));try{const o=dj?new dj:new s$e("MSXML2.XMLHTTP.3.0");o.open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");let s=e.customHeaders;if(s=typeof s=="function"?s():s,s)for(const i of Object.keys(s))DY.indexOf(i)>-1||o.setRequestHeader(i,s[i]);o.onreadystatechange=()=>{o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(o){console&&console.log(o)}},l$e=(e,t,n,r)=>{if(typeof n=="function"&&(r=n,n=void 0),r=r||(()=>{}),ly&&t.indexOf("file:")!==0)return a$e(e,t,n,r);if(PY()||typeof ActiveXObject=="function")return i$e(e,t,n,r);r(new Error("No fetch and no xhr implementation found!"))},c$e=()=>({loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>{},request:l$e,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}});var LY=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...c$e(),...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){const r=setInterval(()=>this.reload(),this.options.reloadInterval);typeof r=="object"&&typeof r.unref=="function"&&r.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,r,o){let s=this.options.loadPath;typeof this.options.loadPath=="function"&&(s=this.options.loadPath(e,n)),s=r$e(s),s.then(i=>{if(!i)return o(null,{});const c=uj(i,{lng:e.join("+"),ns:n.join("+")});if(c==null){const u=e.map(u1).join(", "),d=n.map(u1).join(", ");return o(new Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+u+"] namespaces=["+d+"]"),!1)}this.loadUrl(c,o,t,r)})}loadUrl(e,t,n,r){const o=typeof n=="string"?[n]:n,s=typeof r=="string"?[r]:r,i=this.options.parseLoadPayload(o,s),c=u1(t$e(e));this.options.request(this.options,e,i,(u,d)=>{if(d&&(d.status>=500&&d.status<600||!d.status))return t("failed loading "+c+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return t("failed loading "+c+"; status code: "+d.status,!1);if(!d&&u&&u.message){const g=u.message.toLowerCase();if(["failed","fetch","network","load"].find(v=>g.indexOf(v)>-1))return t("failed loading "+c+": "+u1(u.message),!0)}if(u)return t(u,!1);let h,m;try{typeof d.data=="string"?h=this.options.parse(d.data,n,r):h=d.data}catch{m="failed parsing "+c+" to json"}if(m)return t(m,!1);t(null,h)})}create(e,t,n,r,o){if(!this.options.addPath)return;typeof e=="string"&&(e=[e]);const s=this.options.parsePayload(t,n,r);let i=0;const c=[],u=[];e.forEach(d=>{let h=this.options.addPath;typeof this.options.addPath=="function"&&(h=this.options.addPath(d,t));const m=uj(h,{lng:d,ns:t});if(m==null){i+=1,o&&i===e.length&&o(c,u);return}this.options.request(this.options,m,s,(g,v)=>{i+=1,c.push(g),u.push(v),i===e.length&&typeof o=="function"&&o(c,u)})})}reload(){const{backendConnector:e,languageUtils:t,logger:n}=this.services,r=e.language;if(r&&r.toLowerCase()==="cimode")return;const o=[],s=i=>{t.toResolveHierarchy(i).forEach(c=>{o.indexOf(c)<0&&o.push(c)})};s(r),this.allOptions.preload&&this.allOptions.preload.forEach(i=>s(i)),o.forEach(i=>{this.allOptions.ns.forEach(c=>{e.read(i,c,"read",null,null,(u,d)=>{u&&n.warn(`loading namespace ${c} for language ${i} failed`,u),!u&&d&&n.log(`loaded namespace ${c} for language ${i}`,d),e.loaded(`${i}|${c}`,u,d)})})})}};LY.type="backend";Dr.use(LY).use(RY).use(H4e).init({fallbackLng:"en",supportedLngs:["en","nl","de","fr"],ns:["common","mail"],defaultNS:"common",backend:{loadPath:"/locales/{{lng}}/{{ns}}.json"},detection:{order:["navigator","htmlTag"],caches:[]},interpolation:{escapeValue:!1},react:{useSuspense:!0,bindI18n:"languageChanged loaded"}});const u$e=({authProvider:e,rootElementId:t="root"})=>{zfe(),I4e(),e.configure(),XEe(e);const n=E4e();Afe(n);const r=new C2e({queryCache:new Sq({onError:o_e}),mutationCache:new bq({onError:s_e}),defaultOptions:{queries:{staleTime:3e4,gcTime:5*6e4,retry:1}}});A4e();const o=bFe(r,n);n.recordPageView(window.location.pathname);const s=document.getElementById(t);if(!s)throw new Error(`Root element not found: #${t}`);const{Shell:i}=e;MEe.createRoot(s).render(x.jsx(_.StrictMode,{children:x.jsx(LG.Provider,{value:n,children:x.jsxs(E2e,{client:r,children:[x.jsx(e_e,{value:e,children:x.jsx(i,{children:x.jsx(TEe,{router:o})})}),!1]})})}))};u$e({authProvider:e2e});export{dWe as $,My as A,Bt as B,Ase as C,Xae as D,Nse as E,zse as F,D$e as G,b$ as H,UF as I,Vq as J,ho as K,Op as L,Fse as M,AWe as N,Zq as O,z9e as P,Kfe as Q,tLe as R,Vse as S,Kse as T,eLe as U,FG as V,bA as W,ti as X,_qe as Y,Hb as Z,rY as _,Wc as a,Gz as a$,P6e as a0,uf as a1,p5e as a2,_R as a3,jy as a4,Cfe as a5,LI as a6,bf as a7,I9e as a8,jse as a9,qr as aA,Yqe as aB,zqe as aC,xm as aD,Vd as aE,kT as aF,pqe as aG,mqe as aH,A3 as aI,Sze as aJ,LWe as aK,xHe as aL,Bse as aM,DWe as aN,Zqe as aO,UHe as aP,bT as aQ,wBe as aR,b$e as aS,SBe as aT,dqe as aU,r9e as aV,pfe as aW,ffe as aX,dfe as aY,Qn as aZ,Dy as a_,t_e as aa,mie as ab,aze as ac,L$e as ad,kBe as ae,J$e as af,yT as ag,Ole as ah,Sl as ai,Kqe as aj,qK as ak,F as al,Vqe as am,Gqe as an,NNe as ao,rLe as ap,eBe as aq,oLe as ar,wHe as as,bHe as at,x$ as au,As as av,oB as aw,wy as ax,Is as ay,jR as az,ut as b,z6e as b$,j3 as b0,uHe as b1,N6e as b2,cqe as b3,lqe as b4,uqe as b5,SB as b6,ZK as b7,sqe as b8,iqe as b9,yWe as bA,b6e as bB,MHe as bC,hWe as bD,t3 as bE,fLe as bF,uWe as bG,sBe as bH,TWe as bI,H6e as bJ,PWe as bK,mHe as bL,yHe as bM,vHe as bN,gHe as bO,OWe as bP,RWe as bQ,DI as bR,q9e as bS,IWe as bT,NWe as bU,MWe as bV,FHe as bW,$He as bX,fp as bY,qse as bZ,gqe as b_,O6e as ba,AHe as bb,THe as bc,SLe as bd,M$ as be,aBe as bf,uce as bg,wLe as bh,MLe as bi,NLe as bj,wT as bk,Zle as bl,iBe as bm,yce as bn,vLe as bo,dHe as bp,l5e as bq,pWe as br,gWe as bs,J5e as bt,mWe as bu,fHe as bv,fWe as bw,bWe as bx,vWe as by,Pse as bz,kR as c,kse as c$,Wqe as c0,Lqe as c1,D9e as c2,EWe as c3,Ise as c4,O$e as c5,A$e as c6,_$e as c7,die as c8,T$e as c9,Ys as cA,CM as cB,Gu as cC,xle as cD,zWe as cE,K$e as cF,V$e as cG,UWe as cH,G$e as cI,jWe as cJ,uo as cK,XCe as cL,FR as cM,ABe as cN,fBe as cO,vb as cP,CWe as cQ,J9e as cR,xue as cS,y$e as cT,Nae as cU,Lae as cV,Mae as cW,qae as cX,lm as cY,Ile as cZ,Rle as c_,ZF as ca,N$e as cb,k3 as cc,S$e as cd,cie as ce,b1 as cf,cd as cg,w$e as ch,Zse as ci,ks as cj,k$e as ck,gse as cl,pie as cm,iM as cn,W$e as co,H$e as cp,q$e as cq,WHe as cr,M$e as cs,bY as ct,I$e as cu,kle as cv,M3 as cw,A$ as cx,HU as cy,HWe as cz,Jo as d,bse as d$,dBe as d0,TF as d1,D6 as d2,d$e as d3,f$e as d4,tY as d5,Iqe as d6,Rqe as d7,Tqe as d8,IF as d9,hBe as dA,DLe as dB,dLe as dC,jHe as dD,hqe as dE,HG as dF,W5e as dG,Xqe as dH,qG as dI,Jqe as dJ,la as dK,wWe as dL,pY as dM,nWe as dN,jDe as dO,eWe as dP,tWe as dQ,oue as dR,sue as dS,fue as dT,lBe as dU,bue as dV,yue as dW,QM as dX,Sue as dY,pue as dZ,Uqe as d_,kqe as da,Ve as db,Qc as dc,nBe as dd,Dqe as de,B6e as df,rBe as dg,Oqe as dh,Aqe as di,J6e as dj,U6e as dk,Ef as dl,nr as dm,mv as dn,dq as dp,y2e as dq,_2e as dr,T2e as ds,N2e as dt,I2e as du,R2e as dv,$r as dw,P2e as dx,zL as dy,O2e as dz,_3 as e,xWe as e$,pse as e0,P$e as e1,B$e as e2,z$e as e3,v$e as e4,Sse as e5,jF as e6,m$e as e7,Pae as e8,gue as e9,Wd as eA,kWe as eB,$qe as eC,Fqe as eD,p$e as eE,wqe as eF,Bqe as eG,pHe as eH,hHe as eI,Hqe as eJ,Eqe as eK,lWe as eL,cWe as eM,$We as eN,qqe as eO,iT as eP,E9e as eQ,pBe as eR,$$e as eS,Qqe as eT,SWe as eU,X5e as eV,Z5e as eW,WG as eX,XDe as eY,QDe as eZ,w9e as e_,Jie as ea,cBe as eb,DF as ec,xce as ed,Mse as ee,Xie as ef,uBe as eg,F$e as eh,ode as ei,xBe as ej,yqe as ek,rWe as el,iWe as em,Y6e as en,oWe as eo,sWe as ep,aWe as eq,vqe as er,Ly as es,wse as et,jqe as eu,Sqe as ev,Pqe as ew,JDe as ex,Cqe as ey,E6e as ez,ru as f,BWe as f$,mBe as f0,Ny as f1,vBe as f2,gBe as f3,yBe as f4,bBe as f5,xx as f6,EBe as f7,CBe as f8,D2e as f9,ZHe as fA,XHe as fB,QHe as fC,KHe as fD,_5e as fE,PHe as fF,LHe as fG,DHe as fH,oBe as fI,_He as fJ,y6e as fK,EHe as fL,kHe as fM,g$e as fN,g6e as fO,U$e as fP,_We as fQ,K6e as fR,BR as fS,Nqe as fT,Mqe as fU,eqe as fV,rqe as fW,tqe as fX,JHe as fY,nqe as fZ,C$e as f_,j$e as fa,bqe as fb,U3 as fc,cce as fd,Gse as fe,IHe as ff,RHe as fg,S6e as fh,NHe as fi,OHe as fj,Use as fk,pl as fl,YF as fm,E$e as fn,FWe as fo,uie as fp,qU as fq,oqe as fr,HHe as fs,VHe as ft,qHe as fu,aqe as fv,BHe as fw,GHe as fx,xqe as fy,YHe as fz,TI as g,Hse as g0,x$e as g1,LUe as g2,FUe as g3,R$e as g4,qUe as g5,VUe as g6,KUe as g7,Q$e as g8,tBe as g9,Rse as ga,Mle as gb,X$e as gc,Y$e as gd,Z$e as ge,fqe as h,CHe as i,x as j,zHe as k,BG as l,SHe as m,cHe as n,xy as o,bm as p,ke as q,_ as r,Fy as s,Tse as t,Im as u,LF as v,zF as w,Wse as x,lT as y,_se as z};
349
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const i of e.seen.entries()){const c=i[1];if(t===i[0]){s(i);continue}if(e.external){const d=e.external.registry.get(i[0])?.id;if(t!==i[0]&&d){s(i);continue}}if(e.metadataRegistry.get(i[0])?.id){s(i);continue}if(c.cycle){s(i);continue}c.count>1&&e.reused==="ref"&&s(i)}e.external&&(e.sharedDefsExtractedFor=e.external)}function RK(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const n=[];for(const r of t){if(!r||typeof r!="object")return;RK(r);const o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;const s=r.type;for(const i of Array.isArray(s)?s:[s]){if(typeof i!="string")return;n.includes(i)||n.push(i)}}delete e.anyOf,e.type=n.length===1?n[0]:n}const OK=new Set(["type","properties","required","additionalProperties"]),xU=["oneOf","anyOf"];function CU(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function AA(e){const t=[];for(const s of e){if(typeof s!="object"||s.type!=="object")return null;for(const i in s)if(!OK.has(i))return null;t.push(s)}const n={},r=new Set;for(const s of t){for(const i in s.properties){if(Object.prototype.hasOwnProperty.call(n,i))continue;const c=[];for(const d of t){const h=d.properties?.[i]??CU(d);h!=null&&(c.some(m=>JSON.stringify(m)===JSON.stringify(h))||c.push(h))}const u=c.length===1?c[0]:AA(c)??{allOf:c};Nl(n,i,u)}for(const i of s.required??[])r.add(i)}const o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(s=>s.additionalProperties===!1))o.additionalProperties=!1;else{const s=[];for(const i of t){const c=CU(i);c&&!s.some(u=>JSON.stringify(u)===JSON.stringify(c))&&s.push(c)}s.length===1?o.additionalProperties=s[0]:s.length>1&&(o.additionalProperties={allOf:s})}return o}function B8e(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const o of OK)if(o in e)return;const n=t.filter(o=>xU.some(s=>Array.isArray(o[s])));let r=null;if(!n.length)r=AA(t);else{const o=n[0],s=xU.find(u=>Array.isArray(o[u]));if(Object.keys(o).length!==1)return;const i=t.filter(u=>u!==o),c=o[s].map(u=>AA([...i,u]));if(c.some(u=>!u))return;r={[s]:c}}r&&(delete e.allOf,Ap(e,r))}function NK(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=c=>{const u=e.seen.get(c);if(u.ref===null)return;const d=u.def??u.schema,h={...d},m=u.ref;if(u.ref=null,m){r(m);const v=e.seen.get(m),S=v.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(S)):Ap(d,S),Ap(d,h),c._zod.parent===m)for(const C in d)C==="$ref"||C==="allOf"||C in h||delete d[C];if(S.$ref&&v.def)for(const C in d)C==="$ref"||C==="allOf"||C in v.def&&JSON.stringify(d[C])===JSON.stringify(v.def[C])&&delete d[C]}const g=c._zod.parent;if(g&&g!==m){r(g);const v=e.seen.get(g);if(v?.schema.$ref&&(d.$ref=v.schema.$ref,v.def))for(const S in d)S==="$ref"||S==="allOf"||S in v.def&&JSON.stringify(d[S])===JSON.stringify(v.def[S])&&delete d[S]}e.override({zodSchema:c,jsonSchema:d,path:u.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const c of[...e.seen.entries()].reverse())r(c[0]);if(e.target!=="openapi-3.0")for(const c of e.seen.entries())RK(c[1].def??c[1].schema);for(const c of e.deferred)c();if(e.intersections.length){const c=new Map;for(const u of e.seen.values())for(const d of[u.schema,u.def]){const h=d?.allOf;if(!Array.isArray(h))continue;const m=c.get(h);m?m.push(d):c.set(h,[d])}for(const u of e.intersections)for(const d of c.get(u)??[])B8e(d)}}const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const c=e.external.registry.get(t)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(c)}Ap(o,n.defId?n.schema:n.def??n.schema);const s=e.metadataRegistry.get(t)?.id;s!==void 0&&o.id===s&&delete o.id;const i=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const c of e.seen.entries()){const u=c[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,Nl(i,u.defId,u.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const c=JSON.parse(JSON.stringify(o));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:Jv(t,"input",e.processors),output:Jv(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function Fr(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Fr(r.element,n);if(r.type==="set")return Fr(r.valueType,n);if(r.type==="lazy")return Fr(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return Fr(r.innerType,n);if(r.type==="intersection")return Fr(r.left,n)||Fr(r.right,n);if(r.type==="record"||r.type==="map")return Fr(r.keyType,n)||Fr(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Fr(r.in,n)||Fr(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Fr(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Fr(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Fr(o,n))return!0;return!!(r.rest&&Fr(r.rest,n))}return!1}const H8e=(e,t={})=>n=>{const r=TK({...n,processors:t});return Zn(e,r),IK(r,e),NK(r,e)},Jv=(e,t,n={})=>r=>{const{libraryOptions:o,target:s}=r??{},i=TK({...o??{},target:s,io:t,processors:n});return Zn(e,i),IK(i,e),NK(i,e)},af=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},lf=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},EU=(e,t)=>{af(e,"minimum",t),lf(e,"maximum",t)},MK=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},PK=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},DK=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},LK=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},_U=(e,t)=>af(e,"minimum",t.minimum),kU=(e,t)=>lf(e,"maximum",t.maximum),AU=e=>(t,n)=>{LK(t,n.format);const[r,o]=e[n.format];af(t,"minimum",r),lf(t,"maximum",o)},q8e={greater_than:(e,t)=>af(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>lf(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>MK(e,t.value),number_format:AU(JG),bigint_format:AU(dNe),min_length:_U,max_length:kU,length_equals:(e,t)=>EU(e,t.length),min_size:_U,max_size:kU,size_equals:(e,t)=>EU(e,t.size),string_format:(e,t)=>{LK(e,t.format),t.pattern&&PK(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>DK(e,t.mime)};function ws(e){const t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(const s of r)q8e[s._zod.def.check]?.(t,s._zod.def);const o=e._zod.bag;o.minimum!==void 0&&af(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&af(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&lf(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&lf(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&MK(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&DK(t,o.mime);for(const s of o.patterns??[])PK(t,s);return t}const W8e={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},V8e=new Map([[gK,dMe],[LR,fMe]]),zK=e=>V8e.get(e)??e,G8e=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:s,maximum:i,format:c,patterns:u,contentEncoding:d,laxFormat:h}=ws(e);if(typeof s=="number"&&(o.minLength=s),typeof i=="number"&&(o.maxLength=i),c&&(o.format=W8e[c]??c,o.format===""&&delete o.format,(c==="time"||h)&&delete o.format),d&&(o.contentEncoding=d),u&&u.size>0){const m=[...u].map(zK);m.length===1?o.pattern=m[0].source:m.length>1&&(o.allOf=[...m.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},K8e=(e,t,n,r)=>{const o=n,{minimum:s,maximum:i,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:d,isInt:h}=ws(e);o.type=h?"integer":"number";const m=typeof d=="number"&&d>=(s??Number.NEGATIVE_INFINITY),g=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),v=t.target==="draft-04"||t.target==="openapi-3.0";if(m?v?(o.minimum=d,o.exclusiveMinimum=!0):o.exclusiveMinimum=d:typeof s=="number"&&(o.minimum=s),g?v?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u:typeof i=="number"&&(o.maximum=i),c){const S=new Set;for(const E of c)Number.isFinite(E)&&E!==0?S.add(Math.abs(E)):Il(e,t,o,r,`A multipleOf divisor of ${E} cannot be represented in JSON Schema`);const[b,...C]=S;b!==void 0&&(o.multipleOf=b),C.length&&(o.allOf=[...o.allOf??[],...C.map(E=>({multipleOf:E}))])}},Y8e=(e,t,n,r)=>{n.type="boolean"},Z8e=(e,t,n,r)=>{n.not={}},X8e=(e,t,n,r)=>{},Q8e=(e,t,n,r)=>{const o=e._zod.def,s=wA(o.entries);if(s.length===0){n.not={};return}s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),n.enum=s},J8e=(e,t,n,r)=>{const o=e._zod.def;if(o.values.length===0){n.not={};return}const s=[];for(const i of o.values)if(i===void 0){if(Il(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof i=="bigint"){if(Il(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;s.push(Number(i))}else s.push(i);if(s.length!==0)if(s.length===1){const i=s[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),s.every(i=>typeof i=="boolean")&&(n.type="boolean"),s.every(i=>i===null)&&(n.type="null"),n.enum=s},e7e=(e,t,n,r)=>{Il(e,t,n,r,"Custom types cannot be represented in JSON Schema")},t7e=(e,t,n,r)=>{Il(e,t,n,r,"Transforms cannot be represented in JSON Schema")},n7e=(e,t,n,r)=>{const o=n,s=e._zod.def,{minimum:i,maximum:c}=ws(e);typeof i=="number"&&(o.minItems=i),typeof c=="number"&&(o.maxItems=c),o.type="array",o.items=Zn(s.element,t,{...r,path:[...r.path,"items"]})};function ey(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?ey(t.out):t.type==="catch"?ey(t.innerType):e._zod.optin}const r7e=(e,t,n,r)=>{const o=n,s=e._zod.def,i=s.shape;if(Object.getOwnPropertySymbols(i).length&&Il(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(const d in i)Nl(o.properties,d,Zn(i[d],t,{...r,path:[...r.path,"properties",d]}));const u=[];for(const d of Object.keys(i)){const h=s.shape[d];(t.io==="input"?ey(h)===void 0:h._zod.optout===void 0)&&u.push(d)}u.length>0&&(o.required=u),s.catchall?._zod.def.type==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=Zn(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},o7e=(e,t,n,r)=>{const o=e._zod.def,s=o.inclusive===!1,i=o.options.map((c,u)=>Zn(c,t,{...r,path:[...r.path,s?"oneOf":"anyOf",u]}));s?n.oneOf=i:n.anyOf=i},s7e=(e,t,n,r)=>{const o=e._zod.def,s=Zn(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Zn(o.right,t,{...r,path:[...r.path,"allOf",1]}),c=d=>"allOf"in d&&Object.keys(d).length===1,u=[...c(s)?s.allOf:[s],...c(i)?i.allOf:[i]];n.allOf=u,t.intersections.push(u)};function TA(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);const S=e.get(t)?.def;if(!S)return t;const b=TA(e,S,n);return b===S?t:b}for(const S of["anyOf","oneOf"]){const b=t[S];if(!Array.isArray(b))continue;const C=b.map(E=>TA(e,E,n));C.some((E,k)=>E!==b[k])&&(t={...t,[S]:C})}const r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(S=>S==="number"||S==="integer"),s=t.enum??(t.const!==void 0?[t.const]:void 0);if(!o&&!s?.some(S=>typeof S=="number"))return t;const{minimum:i,maximum:c,exclusiveMinimum:u,exclusiveMaximum:d,multipleOf:h,format:m,id:g,...v}=t;return v.enum?v.enum=v.enum.map(S=>typeof S=="number"?String(S):S):typeof v.const=="number"&&(v.const=String(v.const)),o&&(v.type="string",s||(v.pattern=(r.includes("number")?MR:SMe).source)),v}const IA=new WeakMap;function a7e(e){const t=new Map;for(const r of e.seen.values())r.def&&!t.has(r.schema)&&t.set(r.schema,r);const n=new Map;for(const r of IA.get(e)??[]){const o=e.seen.get(r),s=(o?.def??o?.schema)?.propertyNames;if(!s||s===!0||n.has(s))continue;const i=TA(t,s,new Set);i!==s&&n.set(s,i)}if(n.size)for(const r of e.seen.values())for(const o of[r.schema,r.def]){const s=o&&n.get(o.propertyNames);s&&(o.propertyNames=s)}}const i7e=(e,t,n,r)=>{const o=n,s=e._zod.def;o.type="object";const i=s.keyType,c=ws(i).patterns;if(s.mode==="loose"&&c&&c.size>0){const h=Zn(s.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const m of c)Nl(o.patternProperties,zK(m).source,h)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=Zn(s.keyType,t,{...r,path:[...r.path,"propertyNames"]});let h=IA.get(t);h||(h=[],IA.set(t,h),t.deferred.push(()=>a7e(t))),h.push(e)}o.additionalProperties=Zn(s.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}const u=i._zod.values,d=t.io==="input"&&ey(s.valueType)!==void 0;if(u&&!s.partial&&!d){const h=[...u].filter(m=>typeof m=="string"||typeof m=="number");h.length>0&&(o.required=h.map(String))}},l7e=(e,t,n,r)=>{const o=e._zod.def,s=Zn(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},c7e=(e,t,n,r)=>{const o=e._zod.def;Zn(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},UR=Symbol();function UK(e,t,n,r,o){let s=!1;const i=JSON.stringify(e,(c,u)=>typeof u!="bigint"?u:(s=!0,null));return s?(Il(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),UR):JSON.parse(i)}const u7e=(e,t,n,r)=>{const o=e._zod.def;Zn(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType;const i=UK(o.defaultValue,e,t,n,r);i!==UR&&(n.default=i)},d7e=(e,t,n,r)=>{const o=e._zod.def;Zn(o.innerType,t,r);const s=t.seen.get(e);if(s.ref=o.innerType,t.io!=="input")return;const i=UK(o.defaultValue,e,t,n,r);i!==UR&&(n._prefault=i)},f7e=(e,t,n,r)=>{const o=e._zod.def;Zn(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{Il(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=i},h7e=(e,t,n,r)=>{const o=e._zod.def,s=o.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?s?o.out:o.in:o.out;Zn(i,t,r);const c=t.seen.get(e);c.ref=i},p7e=(e,t,n,r)=>{const o=e._zod.def;Zn(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},jK=(e,t,n,r)=>{const o=e._zod.def;Zn(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},TU=new WeakSet([Object.prototype,Error.prototype]);function o1(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}const m7e=(e,t)=>{NNe.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);TU.has(n)||(TU.add(n),o1(n,"format",r=>o=>DNe(r,o)),o1(n,"flatten",r=>o=>PNe(r,o)),o1(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,xA,2)}),o1(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,xA,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},ss=he("ZodError",m7e,void 0,{Parent:Error}),g7e=jb(ss),v7e=Fb(ss),y7e=OR(ss),b7e=NR(ss),S7e=$Ne(ss),w7e=BNe(ss),x7e=HNe(ss),C7e=qNe(ss),E7e=WNe(ss),_7e=VNe(ss),k7e=GNe(ss),A7e=KNe(ss);function T7e(){Ts.localeError||ia(YPe())}function Bb(){Ts.memoizer||ia({memoizer:VPe()})}const En=he("ZodType",(e,t)=>(T7e(),Cn.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(Oo(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ml(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(xDe(e,t))},superRefine(e,t){return this.check(CDe(e,t))},overwrite(e){return this.check(Af(e))},optional(){return OU(this)},exactOptional(){return cDe(this)},nullable(){return NU(this)},nullish(){return OU(NU(this))},nonoptional(e){return mDe(this,e)},array(){return WK(this)},or(e){return VK([this,e])},and(e){return oDe(this,e)},transform(e){return MU(this,lDe(e))},default(e){return fDe(this,e)},prefault(e){return pDe(this,e)},catch(e){return vDe(this,e)},pipe(e){return MU(this,e)},readonly(){return SDe(this)},describe(e){const t=this.clone();return dp.add(t,{description:e}),t},meta(...e){if(e.length===0)return dp.get(this);const t=this.clone();return dp.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return tK(this,"~standard",{...dK(this),jsonSchema:{input:Jv(this,"input"),output:Jv(this,"output")}})},set"~standard"(e){Tl(this,"~standard",e)},parse:function e(t,n){return g7e(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await v7e(this,t,n,{callee:e})},safeParse(e,t){return y7e(this,e,t)},async safeParseAsync(e,t){return b7e(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Tl(this,"spa",e)},validate(e,t){return UNe(this,e,t)},validateAsync(e,t){return FNe(this,e,t)},encode:function e(t,n){return S7e(this,t,n,{callee:e})},decode:function e(t,n){return w7e(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await x7e(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await C7e(this,t,n,{callee:e})},safeEncode(e,t){return E7e(this,e,t)},safeDecode(e,t){return _7e(this,e,t)},async safeEncodeAsync(e,t){return k7e(this,e,t)},async safeDecodeAsync(e,t){return A7e(this,e,t)},toJSONSchema(e){return H8e(this,{})(e)},get description(){return dp.get(this)?.description},get _def(){return this._zod.def}}),FK=he("_ZodString",(e,t)=>{DR.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>G8e(e,n,r)},nK({format:e=>ws(e).format??null,minLength:e=>ws(e).minimum??null,maxLength:e=>ws(e).maximum??null},{regex(...e){return this.check(A8e(...e))},includes(...e){return this.check(R8e(...e))},startsWith(...e){return this.check(O8e(...e))},endsWith(...e){return this.check(N8e(...e))},min(...e){return this.check(Qv(...e))},max(...e){return this.check(kK(...e))},length(...e){return this.check(AK(...e))},nonempty(...e){return this.check(Qv(1,...e))},lowercase(e){return this.check(T8e(e))},uppercase(e){return this.check(I8e(e))},trim(){return this.check(P8e())},normalize(...e){return this.check(M8e(...e))},toLowerCase(){return this.check(D8e())},toUpperCase(){return this.check(L8e())},slugify(){return this.check(z8e())}})),I7e=he("ZodString",(e,t)=>{DR.init(e,t),FK.init(e,t)},{email(e){return this.check(CK(HK,e))},url(e){return this.check(o8e(M7e,e))},jwt(e){return this.check(b8e(K7e,e))},emoji(e){return this.check(s8e(P7e,e))},guid(e){return this.check(JPe(N7e,e))},uuid(e){return this.check(e8e(s1,e))},uuidv4(e){return this.check(t8e(s1,e))},uuidv6(e){return this.check(n8e(s1,e))},uuidv7(e){return this.check(r8e(s1,e))},nanoid(e){return this.check(a8e(D7e,e))},cuid(e){return this.check(i8e(L7e,e))},cuid2(e){return this.check(l8e(z7e,e))},ulid(e){return this.check(c8e(U7e,e))},base64(e){return this.check(g8e(W7e,e))},base64url(e){return this.check(v8e(V7e,e))},xid(e){return this.check(u8e(j7e,e))},ksuid(e){return this.check(d8e(F7e,e))},ipv4(e){return this.check(f8e($7e,e))},ipv6(e){return this.check(h8e(B7e,e))},cidrv4(e){return this.check(p8e(H7e,e))},cidrv6(e){return this.check(m8e(q7e,e))},e164(e){return this.check(y8e(G7e,e))},datetime(e){return this.check(EK($K,e))},date(e){return this.check(_K(BK,e))},time(e){return this.check(S8e(R7e,e))},duration(e){return this.check(w8e(O7e,e))}});function qr(e){return QPe(I7e,e)}const _n=he("ZodStringFormat",(e,t)=>{vn.init(e,t),FK.init(e,t)}),$K=he("ZodISODateTime",(e,t)=>{tPe.init(e,t),_n.init(e,t)}),BK=he("ZodISODate",(e,t)=>{nPe.init(e,t),_n.init(e,t)}),R7e=he("ZodISOTime",(e,t)=>{rPe.init(e,t),_n.init(e,t)}),O7e=he("ZodISODuration",(e,t)=>{oPe.init(e,t),_n.init(e,t)}),HK=he("ZodEmail",(e,t)=>{$Me.init(e,t),_n.init(e,t)});function Yqe(e){return CK(HK,e)}const N7e=he("ZodGUID",(e,t)=>{jMe.init(e,t),_n.init(e,t)}),s1=he("ZodUUID",(e,t)=>{FMe.init(e,t),_n.init(e,t)}),M7e=he("ZodURL",(e,t)=>{GMe.init(e,t),_n.init(e,t)}),P7e=he("ZodEmoji",(e,t)=>{KMe.init(e,t),_n.init(e,t)}),D7e=he("ZodNanoID",(e,t)=>{YMe.init(e,t),_n.init(e,t)}),L7e=he("ZodCUID",(e,t)=>{ZMe.init(e,t),_n.init(e,t)}),z7e=he("ZodCUID2",(e,t)=>{XMe.init(e,t),_n.init(e,t)}),U7e=he("ZodULID",(e,t)=>{QMe.init(e,t),_n.init(e,t)}),j7e=he("ZodXID",(e,t)=>{JMe.init(e,t),_n.init(e,t)}),F7e=he("ZodKSUID",(e,t)=>{ePe.init(e,t),_n.init(e,t)}),$7e=he("ZodIPv4",(e,t)=>{sPe.init(e,t),_n.init(e,t)}),B7e=he("ZodIPv6",(e,t)=>{iPe.init(e,t),_n.init(e,t)}),H7e=he("ZodCIDRv4",(e,t)=>{lPe.init(e,t),_n.init(e,t)}),q7e=he("ZodCIDRv6",(e,t)=>{uPe.init(e,t),_n.init(e,t)}),W7e=he("ZodBase64",(e,t)=>{dPe.init(e,t),_n.init(e,t)}),V7e=he("ZodBase64URL",(e,t)=>{hPe.init(e,t),_n.init(e,t)}),G7e=he("ZodE164",(e,t)=>{pPe.init(e,t),_n.init(e,t)}),K7e=he("ZodJWT",(e,t)=>{gPe.init(e,t),_n.init(e,t)}),qK=he("ZodNumber",(e,t)=>{vK.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>K8e(e,n,r,o),e.isFinite=!0},nK({minValue:e=>{const{minimum:t,exclusiveMinimum:n}=ws(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{const{maximum:t,exclusiveMaximum:n}=ws(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{const{isInt:t,multipleOf:n}=ws(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>ws(e).format??null},{gt(e,t){return this.check(bU(e,t))},gte(e,t){return this.check(J_(e,t))},min(e,t){return this.check(J_(e,t))},lt(e,t){return this.check(yU(e,t))},lte(e,t){return this.check(Q_(e,t))},max(e,t){return this.check(Q_(e,t))},int(e){return this.check(IU(e))},safe(e){return this.check(IU(e))},positive(e){return this.check(bU(0,e))},nonnegative(e){return this.check(J_(0,e))},negative(e){return this.check(yU(0,e))},nonpositive(e){return this.check(Q_(0,e))},multipleOf(e,t){return this.check(SU(e,t))},step(e,t){return this.check(SU(e,t))},finite(){return this}}));function RA(e){return x8e(qK,e)}const Y7e=he("ZodNumberFormat",(e,t)=>{vPe.init(e,t),qK.init(e,t)});function IU(e){return C8e(Y7e,e)}const Z7e=he("ZodBoolean",(e,t)=>{yPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Y8e(e,n,r)});function jR(e){return E8e(Z7e,e)}const X7e=he("ZodUnknown",(e,t)=>{bPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>X8e()});function ty(){return _8e(X7e)}const Q7e=he("ZodNever",(e,t)=>{SPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Z8e(e,n,r)});function J7e(e){return k8e(Q7e,e)}const eDe=he("ZodArray",(e,t)=>{Bb(),CPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>n7e(e,n,r,o),e.element=t.element},{min(e,t){return this.check(Qv(e,t))},nonempty(e){return this.check(Qv(1,e))},max(e,t){return this.check(kK(e,t))},length(e,t){return this.check(AK(e,t))},unwrap(){return this.element}});function WK(e,t){return U8e(eDe,e,t)}const tDe=he("ZodObject",(e,t)=>{Bb(),kPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>r7e(e,n,r,o),_Ne(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return FR(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Oo(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Oo(this._zod.def,{catchall:ty()}))},loose(){return this.clone(Oo(this._zod.def,{catchall:ty()}))},strict(){return this.clone(Oo(this._zod.def,{catchall:J7e()}))},strip(){return this.clone(Oo(this._zod.def,{catchall:void 0}))},extend(e){return pNe(this,e)},safeExtend(e){return mNe(this,e)},merge(e){return gNe(this,e)},pick(e){return fNe(this,e)},omit(e){return hNe(this,e)},partial(...e){return eU(GK,this,e[0])},exactPartial(...e){return eU(KK,this,e[0],"exactPartial")},required(...e){return vNe(YK,this,e[0])}});function Is(e,t){const n={type:"object",shape:e??{},...je(t)};return new tDe(n)}const nDe=he("ZodUnion",(e,t)=>{APe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>o7e(e,n,r,o),e.options=t.options});function VK(e,t){return new nDe({type:"union",options:e,...je(t)})}const rDe=he("ZodIntersection",(e,t)=>{TPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>s7e(e,n,r,o)});function oDe(e,t){return new rDe({type:"intersection",left:e,right:t})}const RU=he("ZodRecord",(e,t)=>{Bb(),IPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>i7e(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function sDe(e,t,n){return!t||!t._zod?new RU({type:"record",keyType:qr(),valueType:e,...je(t)}):new RU({type:"record",keyType:e,valueType:t,...je(n)})}const OA=he("ZodEnum",(e,t)=>{RPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(r,o,s)=>Q8e(e,r,o),e.enum=t.entries,e.options=[...e._zod.values];const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const s={};for(const i of r)if(n.has(i))s[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new OA({...t,checks:[],...je(o),entries:s})},e.exclude=(r,o)=>{const s={...t.entries};for(const i of r)if(n.has(i))delete s[i];else throw new Error(`Key ${i} not found in enum`);return new OA({...t,checks:[],...je(o),entries:s})}});function FR(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new OA({type:"enum",entries:n,...je(t)})}const aDe=he("ZodLiteral",(e,t)=>{OPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>J8e(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function cu(e,t){return new aDe({type:"literal",values:Array.isArray(e)?e:[e],...je(t)})}const iDe=he("ZodTransform",(e,t)=>{Bb(),NPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>t7e(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new rK(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(im(s,n.value,t));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=n.value),i.inst??(i.inst=e),n.issues.push(im(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function lDe(e){return new iDe({type:"transform",transform:e})}const GK=he("ZodOptional",(e,t)=>{SK.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>jK(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function OU(e){return new GK({type:"optional",innerType:e})}const KK=he("ZodExactOptional",(e,t)=>{MPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>jK(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function cDe(e){return new KK({type:"optional",innerType:e})}const uDe=he("ZodNullable",(e,t)=>{PPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>l7e(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function NU(e){return new uDe({type:"nullable",innerType:e})}const dDe=he("ZodDefault",(e,t)=>{DPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>u7e(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fDe(e,t){return new dDe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():XG(t)}})}const hDe=he("ZodPrefault",(e,t)=>{LPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>d7e(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function pDe(e,t){return new hDe({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():XG(t)}})}const YK=he("ZodNonOptional",(e,t)=>{zPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>c7e(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function mDe(e,t){return new YK({type:"nonoptional",innerType:e,...je(t)})}const gDe=he("ZodCatch",(e,t)=>{UPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>f7e(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function vDe(e,t){return new gDe({type:"catch",innerType:e,catchValue:typeof t=="function"?t:ANe(t)})}const yDe=he("ZodPipe",(e,t)=>{jPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>h7e(e,n,r,o),e.in=t.in,e.out=t.out});function MU(e,t){return new yDe({type:"pipe",in:e,out:t})}const bDe=he("ZodReadonly",(e,t)=>{FPe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>p7e(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function SDe(e){return new bDe({type:"readonly",innerType:e})}const wDe=he("ZodCustom",(e,t)=>{$Pe.init(e,t),En.init(e,t),e._zod.processJSONSchema=(n,r,o)=>e7e(e,n,r,o)});function xDe(e,t={}){return j8e(wDe,e,t)}function CDe(e,t){return F8e(e,t)}function EDe(e){return EK($K,e)}function _De(e){return _K(BK,e)}Is({kind:cu("Boolean"),value:jR()});Is({kind:cu("String"),value:qr()});Is({kind:cu("Number"),value:RA()});Is({kind:cu("StringList"),value:WK(qr())});Is({kind:cu("Map"),value:sDe(qr(),qr())});Is({kind:cu("MutedFlag"),value:Is({value:jR(),setAt:RA(),setBy:qr().optional(),expiresAt:RA().optional(),reason:qr().optional()})});const kDe=e=>e.hierarchyDelimiter.length===0?[e.fullPath]:e.fullPath.split(e.hierarchyDelimiter),lm=e=>{const t=kDe(e);return t[t.length-1]||e.fullPath},ADe=(e,t)=>{switch(e.kind){case"appointed":case"flagged":return{allowed:!0,mailbox:e.mailbox};case"proposed":return t==="resolved"?{allowed:!0,mailbox:e.mailbox}:{allowed:!1,reason:"unconfirmed"};case"appointment_stale":return{allowed:!1,reason:"stale"};default:return{allowed:!1,reason:"none"}}},TDe=(e,t)=>ADe(e,t).allowed,IDe={[od.Appointed]:{kind:"appointed",mailbox:null},[od.Flagged]:{kind:"flagged",mailbox:null},[od.Reserved]:{kind:"reserved",mailbox:null},[od.Proposed]:{kind:"proposed",mailbox:null},[od.Stale]:{kind:"appointment_stale",appointedMailboxId:"",fallback:{kind:"none"}},[od.None]:{kind:"none"}},RDe=(e,t)=>TDe(IDe[e],t),$R=()=>typeof navigator<"u"&&(navigator.language||navigator.languages?.[0])||"en-US",la=(e,t)=>new Intl.NumberFormat($R(),t).format(e),ODe=/^-?\d+$/,BR=e=>{if(e instanceof Date)return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){const t=e.trim();return ODe.test(t)?new Date(Number(t)):new Date(t)}return new Date(Number.NaN)},HR=e=>Number.isFinite(e.getTime()),fp=(e,t)=>{const n=BR(e);return HR(n)?new Intl.DateTimeFormat($R(),t).format(n):""},ZK=(e,t)=>fp(e,{short:{month:"short",day:"numeric"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"},time:{hour:"numeric",minute:"numeric"},datetime:{month:"short",day:"numeric",hour:"numeric",minute:"numeric"}}[t]),Zqe=e=>{const t=BR(e);if(!HR(t))return"";const n=new Intl.RelativeTimeFormat($R(),{numeric:"auto"}),r=Date.now(),o=t.getTime()-r,s=Math.round(o/1e3),i=Math.round(o/(1e3*60)),c=Math.round(o/(1e3*60*60)),u=Math.round(o/(1e3*60*60*24)),d=Math.round(o/(1e3*60*60*24*7));return Math.abs(s)<60?n.format(s,"second"):Math.abs(i)<60?n.format(i,"minute"):Math.abs(c)<24?n.format(c,"hour"):Math.abs(u)<7?n.format(u,"day"):Math.abs(d)<4?n.format(d,"week"):ZK(t,"medium")},Xqe=e=>{const t=BR(e);if(!HR(t))return"";const n=new Date,r=t.toDateString()===n.toDateString(),o=new Date(n);o.setDate(o.getDate()-1);const s=t.toDateString()===o.toDateString(),i=new Date(n);i.setDate(i.getDate()-6);const c=t>=i&&t<n,u=t.getFullYear()===n.getFullYear();return r?fp(t,{hour:"numeric",minute:"numeric"}):s?"Yesterday":c?fp(t,{weekday:"long"}):u?fp(t,{month:"short",day:"numeric"}):fp(t,{month:"short",day:"numeric",year:"numeric"})},NDe=e=>`Move ${e===1?"1":la(e)} ${e===1?"message":"messages"} to Trash?`,Qqe=({targets:e,trashByAccount:t,hasAppointments:n,isError:r})=>{if(r)return"unavailable";if(!n||e.length===0)return"unknown";let o=!1,s=!1;for(const i of e){if(i.accountId===void 0)return"unknown";const c=t.get(i.accountId);if(c===void 0)return"unknown";if(c.source==="Stale")return"staleTrash";if(c.mailboxId===void 0)return"noTrash";c.mailboxId===i.mailboxId&&(o=!0,RDe(c.source,"confirmed")||(s=!0))}return s?"unconfirmed":o?"permanent":"trash"},MDe=e=>e==="permanent"||e==="unconfirmed",Jqe=(e,t,n={})=>{const r=e===1?"1":la(e),o=e===1?"message":"messages",{trashFolderLabel:s,staleFolderLabel:i}=n;if(t==="noTrash")return{title:`Can't delete ${r} ${o} yet`,description:"No folder on this account is set as Trash, so there is nowhere to move the mail. Nothing has been deleted.",confirmLabel:"Pick a Trash folder"};if(t==="staleTrash")return{title:`Can't delete ${r} ${o} yet`,description:i?`The folder you set as this account's Trash — ${i} — is gone from the mail server. Nothing has been deleted.`:"The folder you set as this account's Trash is gone from the mail server. Nothing has been deleted.",confirmLabel:"Pick another folder"};if(t==="unconfirmed"){const c=s?`reader files this account's deleted mail in ${s} because of its name — nobody confirmed it.`:"reader files this account's deleted mail in a folder it matched by name — nobody confirmed it.";return{title:"Confirm this account's Trash folder",description:e>0?`${c} Deleting ${r} ${o} there erases them from the mail server, and that cannot be restored. Nothing has been deleted.`:`${c} Emptying a folder erases everything in it from the mail server, and that cannot be restored. Nothing has been emptied.`,confirmLabel:"Confirm the folder"}}return t==="unavailable"?{title:`Can't delete ${r} ${o}`,description:"reader couldn't read this account's folder settings, so it can't say whether this would move the mail to Trash or erase it. Nothing has been deleted.",confirmLabel:"Sign in again"}:t==="unknown"?{title:`Delete ${r} ${o}?`,description:"Checking where this account files deleted mail…",confirmLabel:"Delete"}:t==="permanent"?{title:`Permanently delete ${r} ${o}?`,description:"They are erased from the mail server and cannot be restored.",confirmLabel:"Delete permanently"}:{title:NDe(e),description:"You can restore them from Trash later.",confirmLabel:"Move to Trash"}},PDe={delete:(e,t)=>`Deleting ${e} of ${t}…`,move:(e,t)=>`Moving ${e} of ${t}…`,markRead:(e,t)=>`Marking ${e} of ${t} as read…`},DDe={delete:"moved to Trash",move:"moved",markRead:"marked as read"},XK=(e,t)=>e==="delete"&&MDe(t)?"permanently deleted":DDe[e],LDe={delete:"couldn't be deleted",move:"couldn't be moved",markRead:"couldn't be marked as read"},zDe={delete:"Couldn't delete these messages",move:"Couldn't move these messages",markRead:"Couldn't mark these messages as read"},UDe={delete:"The delete didn't finish.",move:"The move didn't finish.",markRead:"The update didn't finish."},eWe=(e,t,n)=>PDe[e](la(t),la(n)),jDe=(e,t,n="trash")=>`${la(t)} ${XK(e,n)}. Your mail server is still catching up.`,FDe=e=>`Stopped after ${la(e)}`,$De=(e,t,n,r="trash")=>`${la(t)} of ${la(n)} ${XK(e,r)}. The rest were not sent, apart from the ones already on their way when you stopped — those may still have gone through.`,PU=(e,t)=>t>0?`Stopped after ${la(t)} — some messages ${LDe[e]}`:zDe[e],BDe=e=>UDe[e],HDe={delete:e=>`A delete of ${e} messages`,move:e=>`A move of ${e} messages`,markRead:e=>`Marking ${e} messages as read`},qDe=(e,t,n)=>`${HDe[e](la(t))}${n?` in ${n}`:""} is still running — stop it first.`,tWe=e=>e==="delete"?"danger":"info",nWe=(e,t,n,r)=>n.error!==void 0?null:n.cancelled?{severity:"warning",title:FDe(n.done),detail:$De(e,n.done,t,r)}:{severity:"info",title:jDe(e,n.done,r)},QK=100,WDe=(e,t)=>e.kind==="move"?[t,e.destinationMailboxId]:[t],VDe=new AbortController().signal,NA=async e=>e.then(t=>({ok:!0,value:t}),t=>({ok:!1,error:t})),GDe=(e,t=QK)=>{if(e.length===0)return[];const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},KDe=(e,t=QK)=>{const n=new Map;for(const r of e){const o=n.get(r.accountId);if(o){o.push(r.id);continue}n.set(r.accountId,[r.id])}return[...n.values()].flatMap(r=>GDe(r,t))},JK=async(e,t,n,r)=>{const o=KDe(e),s=e.length;let i=0,c=0;const u=[];for(let d=0;d<o.length;d++){if(r.aborted)return u.push(...o.slice(d).flat()),{done:i,failedIds:u,refused:c,cancelled:!0};const h=o[d],m=await NA(t(h,r));if(!m.ok)return u.push(...o.slice(d).flat()),r.aborted?{done:i,failedIds:u,refused:c,cancelled:!0}:(n({done:i,total:s}),{done:i,failedIds:u,refused:c,cancelled:!1,error:m.error});c+=m.value?.failureCount??0,i+=h.length,n({done:i,total:s})}return{done:i,failedIds:u,refused:c,cancelled:!1}},rWe=async(e,t)=>{await JK(e.map(n=>({id:n,accountId:void 0})),async n=>(await t(n),{successCount:n.length,failureCount:0}),()=>{},VDe)},YDe=async(e,t,n,r,o)=>{let s=0,i=0;const c=[];let u;do{if(o.aborted)return{done:s,failedIds:c,refused:i,cancelled:!0};const d=await NA(e(u,o));if(!d.ok)return o.aborted?{done:s,failedIds:c,refused:i,cancelled:!0}:{done:s,failedIds:c,refused:i,cancelled:!1,error:d.error};const h=d.value;if(h.ids.length>0){const m=await NA(n(h.ids,o));if(!m.ok)return o.aborted?{done:s,failedIds:c,refused:i,cancelled:!0}:{done:s,failedIds:c,refused:i,cancelled:!1,error:m.error};i+=m.value?.failureCount??0,s+=h.ids.length,r({done:s,total:t})}u=h.continuationToken}while(u);return{done:s,failedIds:c,refused:i,cancelled:!1}},ZDe=e=>({done:e.done,total:Math.max(e.total,e.done)}),XDe=e=>typeof e=="object"&&e!==null&&Array.isArray(e.pages),QDe=e=>typeof e=="object"&&e!==null&&Array.isArray(e.items),JDe=(e,t)=>e===void 0?e:XDe(e)?{...e,pages:e.pages.map(n=>({...n,items:t(n.items)}))}:QDe(e)?{...e,items:t(e.items)}:e,eLe=e=>{const t=[];for(const n of new Set(e))t.push(P6e({path:{mailboxId:n}})),t.push(HG({path:{mailboxId:n}}));return t.push(WG()),t},oWe=(e,t)=>Promise.all(t.map(n=>e.cancelQueries({queryKey:n}))),sWe=(e,t)=>t.flatMap(n=>e.getQueriesData({queryKey:n})).filter(n=>n[1]!==void 0).map(([n,r])=>({queryKey:n,data:r})),aWe=(e,t,n)=>{const r=o=>JDe(o,n);for(const o of t)e.setQueriesData({queryKey:o},r)},iWe=(e,t)=>{for(const n of t)e.setQueryData(n.queryKey,n.data)},tLe=(e,t)=>{for(const n of t)e.invalidateQueries({queryKey:n})},eY=_.createContext(void 0),nLe=e=>{if(e.action)return e.action;if((e.severity??"error")==="error")return{label:"Report an issue",href:xm(Vd({title:`Bug: ${e.title}`,errorMessage:e.detail?`${e.title} — ${e.detail}`:e.title,stack:e.error instanceof Error?e.error.stack:void 0}))}},rLe=()=>{const e=_.useContext(eY);if(!e)throw new Error("useErrorBanners must be used within an ErrorBannerProvider");return e},DU=5,oLe=(e,t,n)=>({title:e,detail:tY(n)??t,error:n}),tY=e=>{if(e!=null){if(e instanceof Error)return e.message||void 0;if(typeof e=="string")return e||void 0;if(typeof e=="object"&&"message"in e&&typeof e.message=="string")return e.message||void 0}},lWe=e=>Qc(e)?.code==="message_gone_from_server",cWe=e=>{const t=tY(e);return t?t.startsWith("Message not found"):!1},sLe=(e,t,n)=>e.severity===n&&e.title===t.title&&e.detail===t.detail,aLe=(e,t)=>{const r=[...e.filter(o=>!sLe(o,{title:t.title,detail:t.detail,severity:t.severity},t.severity)),t];return r.length<=DU?r:r.slice(r.length-DU)},iLe=(e,t)=>e.filter(n=>n.id!==t),lLe=(e,t,n)=>({id:t,severity:e.severity??"error",title:e.title,detail:e.detail,action:e.action,createdAt:n}),cLe=new Set(["none","stale","unconfirmed"]),uLe=new Set(Object.values(tNe)),e3=(e,t)=>{const n=e?.[t];return typeof n=="string"?n:void 0},dLe=e=>{const t=Qc(e);if(t?.code!=="folder_role_unresolved")return;const{details:n}=t;if(!n)return;const r=e3(n,"reason"),o=e3(n,"role"),s=e3(n,"accountId");if(!(!r||!cLe.has(r))&&!(!o||!uLe.has(o)||!s))return{reason:r,role:o,accountId:s}},fLe=e=>Qc(e)?.code==="mailbox_not_settled",hLe=3e4,pLe=1e3,mLe="The folder couldn't be created on the mail server. Please try again.",gLe="The folder was created but the mail server hasn't confirmed it yet, so nothing was attached to it. It's in your folder list — try again in a moment.",vLe=(e,t)=>new Promise((n,r)=>{if(t?.aborted){r(t.reason);return}const o=setTimeout(()=>{t?.removeEventListener("abort",s),n()},e),s=()=>{clearTimeout(o),r(t?.reason)};t?.addEventListener("abort",s,{once:!0})});async function yLe({fetchMailboxes:e,mailboxId:t,signal:n,timeoutMs:r=hLe,pollIntervalMs:o=pLe,delay:s=vLe,now:i=Date.now}){const c=i()+r;for(;;){n?.throwIfAborted();const d=(await e()).find(h=>h.mailboxId===t);if(d?.syncStatus===Qz.synced)return d;if(d?.syncStatus===Qz.failed)throw new Error(mLe);if(i()>=c)throw new Error(gLe);await s(o,n)}}function nY(e,t){const n=e.trim();return t?`${t.fullPath}${t.hierarchyDelimiter}${n}`:n}const LU=(e,t)=>{const n=t.length===0?[e]:e.split(t);return n[0]?.toLowerCase()==="inbox"&&(n[0]="INBOX"),n.join(t)};function bLe({name:e,delimiter:t,parent:n,existingPaths:r}){const o=e.trim();if(o==="")return"Enter a folder name.";if(t.length>0&&o.includes(t))return`A folder name can't contain "${t}".`;const s=LU(nY(o,n),t);if(r.some(c=>LU(c,t)===s))return"A folder with that name already exists."}function SLe(e){const t=ru(),{data:n}=Wc({...bA({path:{accountId:e??""}}),enabled:!!e}),r=TI({...w6e(),onSuccess:()=>{e&&t.invalidateQueries({queryKey:_R({path:{accountId:e}})})}}),o=_.useRef(new Map),s=_.useCallback(async(c,u,d)=>{if(!e)throw new Error("No account to create the folder in. Pick messages from a single account first.");const h=n?.items??[],m=u?h.find(C=>C.fullPath===u):void 0;if(u&&!m)throw new Error(`Couldn't find the folder "${u}" to create this one inside.`);const g=m?{fullPath:m.fullPath,hierarchyDelimiter:m.hierarchyDelimiter}:void 0,v=nY(c,g);let S=o.current.get(v);if(!S){const C=g?.hierarchyDelimiter??h[0]?.hierarchyDelimiter??"/",E=bLe({name:c,delimiter:C,parent:g,existingPaths:h.map(A=>A.fullPath)});if(E)throw new Error(E);S=(await r.mutateAsync({path:{accountId:e},body:{fullPath:v,namespaceType:"personal"}})).mailboxId,o.current.set(v,S)}const b=await yLe({mailboxId:S,signal:d,fetchMailboxes:async()=>(await t.fetchQuery({...bA({path:{accountId:e}}),staleTime:0})).items??[]});return o.current.delete(v),{id:b.mailboxId,label:lm(b),path:b.fullPath}},[r,e,n,t]);return{createFolder:_.useCallback((c,u)=>s(c,"",u),[s]),createFolderIn:s,mutation:r}}const wLe=()=>{const{t:e}=FG("mail",{useSuspense:!1});return _.useCallback((t,n)=>e(t,{defaultValue:n}),[e])},t3={Inbox:"inbox",Drafts:"drafts",Sent:"sent",Archive:"archive",Junk:"junk",Trash:"trash",All:"all",Flagged:"flagged"},uWe={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Junk",trash:"Trash",all:"All",flagged:"Flagged"},cm=["inbox","flagged","drafts","sent","archive","all","junk","trash"];function Hb(e){const t=new Map,n=[...e].sort((r,o)=>cm.indexOf(t3[r.role])-cm.indexOf(t3[o.role]));for(const r of n){if(!r.mailboxId||t.has(r.mailboxId))continue;const o=t3[r.role];o&&t.set(r.mailboxId,o)}return t}function rY(e,t,n){const r=e.displayNameOverride?.trim();if(r)return r;const o=lm(e);return!t||!n?o:n(`sidebar.${t}`,o)}const xLe=new Set(["sent","drafts","trash"]),dWe=e=>e===void 0||!xLe.has(e),fWe=100,CLe=e=>e.trim().toLowerCase()==="inbox",ELe=(e,t)=>{if(e.hierarchyDelimiter.length===0)return!1;const n=`${e.fullPath}${e.hierarchyDelimiter}`;return t.some(r=>r.mailboxId!==e.mailboxId&&r.fullPath.startsWith(n))},_Le=["Appointed","Flagged","Reserved"],kLe=(e,t)=>e.mailboxId!==t.mailboxId?!1:e.source==="Stale"?t.specialUse?.includes(e.role)??!1:_Le.includes(e.source),ALe=(e,t)=>t.find(n=>kLe(n,e))?.role;function hWe(e,t,n){if(CLe(e.fullPath))return{deletable:!1,reason:"inbox",message:"The inbox can't be deleted."};const r=ALe(e,n);return r?{deletable:!1,reason:"role",message:`This folder is your ${r} folder. Reassign that role before deleting it.`}:ELe(e,t)?{deletable:!1,reason:"children",message:"This folder has subfolders. Delete them first."}:{deletable:!0}}function TLe(e,t){return e.filter(n=>n.mailboxId!==t)}function pWe(e){return{total:e,moved:0,phase:e===0?"moved":"moving"}}function mWe(e,t){if(e.phase!=="moving")return e;const n=Math.min(e.total,e.moved+Math.max(0,t));return{...e,moved:n,phase:n>=e.total?"moved":"moving"}}function gWe(e,t){return{...e,phase:"failed",error:t}}function vWe(e){return`Moved ${e.moved} of ${e.total}`}function yWe(e){const t=Math.max(0,Math.floor(e/1e3));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}function bWe(e){return e>0?"choose-fate":"confirm-empty"}const ILe=new Set(["outbox","postvak uit","boîte d'envoi","postausgang","buzón de salida","posta in uscita","送信トレイ","送件匣","发件箱","skrzynka nadawcza"]),RLe=e=>{const t=lm(e).trim().toLowerCase();return ILe.has(t)},zU=cm.length,OLe=(e,t)=>{const n=Hb(t);return[...e.filter(o=>{const s=n.get(o.mailboxId);return s==="drafts"||s==="sent"?!1:!RLe(o)})].sort((o,s)=>{const i=n.has(o.mailboxId)?cm.indexOf(n.get(o.mailboxId)??"inbox"):zU,c=n.has(s.mailboxId)?cm.indexOf(n.get(s.mailboxId)??"inbox"):zU;return i!==c?i-c:lm(o).localeCompare(lm(s),void 0,{sensitivity:"base",numeric:!0})})},NLe=e=>e[0]?.hierarchyDelimiter??"/",MLe=({mailboxes:e,folderAppointments:t,currentMailboxId:n,excludeMailboxId:r,translator:o})=>{const s=OLe(e,t),i=Hb(t);return(r?TLe(s,r):s).map(u=>({id:u.mailboxId,label:rY(u,i.get(u.mailboxId),o),path:u.fullPath,isCurrent:u.mailboxId===n,messageCount:u.messageCount}))},oY=_.createContext(void 0),UU=Symbol("appoint-failed"),PLe=({children:e})=>{const t=ru(),n=wLe(),[r,o]=_.useState(null),[s,i]=_.useState(),[c,u]=_.useState({kind:"choosing"}),d=r?.accountId,{data:h}=Wc({...kR(),staleTime:1/0,enabled:!!d}),{data:m}=Wc({...bA({path:{accountId:d??""}}),enabled:!!d}),{createFolderIn:g}=SLe(d),v=TI({...b6e(),meta:Fy(409)}),S=h?.accounts.find(L=>L.accountId===d),b=_.useMemo(()=>m?.items??[],[m]),C=_.useMemo(()=>S?.folderAppointments??[],[S]),E=_.useMemo(()=>MLe({mailboxes:b,folderAppointments:C,translator:n}),[b,C,n]),k=C.find(L=>L.role===r?.role),A=r?.guessedMailboxId??k?.mailboxId,R=b.find(L=>L.mailboxId===A),N=r?.trashFolderLabel??(R?rY(R,Hb(C).get(R.mailboxId),n):void 0),O=_.useRef(null),I=_.useCallback(()=>{O.current=null,o(null),i(void 0),u({kind:"choosing"})},[]),M=_.useCallback(L=>{O.current=L,o(L),u({kind:"choosing"}),i(L.reason==="unconfirmed"?L.guessedMailboxId:void 0)},[]),z=_.useCallback(L=>{O.current===L&&I()},[I]),q=_.useCallback(L=>{r&&(u({kind:"appointing"}),v.mutateAsync({path:{accountId:r.accountId,role:r.role},body:{mailboxId:L}}).catch(B=>(u({kind:"appoint-failed",cause:fLe(B)?"mailbox-pending":"generic"}),UU)).then(async B=>{B!==UU&&(await t.invalidateQueries({queryKey:BG()}),u({kind:"acting"}),await r.onAppointed(),z(r))}).catch(()=>z(r)))},[r,v,t,z]),U=_.useMemo(()=>({requestAppointment:M}),[M]);return x.jsxs(oY.Provider,{value:U,children:[e,r&&x.jsx(gde,{open:!0,reason:r.reason,action:r.action,folders:E,delimiter:NLe(b),trashFolderLabel:N,guessedMailboxId:A,staleFolderLabel:r.staleFolderLabel??k?.staleAppointmentPath,accountEmail:(h?.accounts.length??0)>1?S?.email:void 0,phase:c,selectedId:s,onSelect:i,onCreateFolder:g,onConfirm:q,onCancel:I})]})},DLe=()=>{const e=_.useContext(oY);if(!e)throw new Error("useRoleAppointmentPrompt must be used within a RoleAppointmentPromptProvider");return e},sY=_.createContext(void 0),LLe=({children:e})=>{const[t,n]=_.useState(void 0),r=_.useRef(void 0),o=_.useRef(void 0),s=_.useRef(void 0),i=_.useRef(new Set),c=ru(),{pushError:u}=rLe(),{requestAppointment:d}=DLe(),h=_.useRef(async()=>({kind:"ran",outcome:{done:0,failedIds:[],refused:0,cancelled:!1}})),m=_.useCallback(b=>{tLe(c,eLe(WDe(b.action,b.mailboxId)));const C=new Set;if(b.accountId&&C.add(b.accountId),b.source.kind==="targets")for(const E of b.source.targets)E.accountId&&C.add(E.accountId);for(const E of C)c.invalidateQueries({queryKey:_R({path:{accountId:E}})})},[c]),g=_.useCallback(async b=>{const C=s.current;if(C)return{kind:"refused",reason:qDe(C.action.kind,C.matched,C.mailboxLabel)};const E=Symbol("bulk-run"),k=new AbortController;r.current=k,o.current=E,s.current=b,b.claimEnding&&(i.current.add(E),b.claimEnding(()=>i.current.delete(E))),n({action:b.action,mailboxId:b.mailboxId,progress:{done:0,total:b.matched}});const A=I=>{o.current===E&&n(M=>M&&{...M,progress:ZDe(I)})},R=b.source.kind==="targets"?await JK(b.source.targets,b.applyBatch,A,k.signal):await YDe(b.source.fetchPage,b.matched,b.applyBatch,A,k.signal),N=i.current.delete(E);o.current===E&&(o.current=void 0,s.current=void 0,n(void 0));const O=R.error?dLe(R.error):void 0;return O?d({accountId:O.accountId,role:O.role,reason:O.reason,action:{kind:"delete",count:b.matched},onAppointed:async()=>{const I=await h.current({...b,claimEnding:void 0});I.kind==="refused"&&u({title:PU(b.action.kind,0),detail:I.reason})}}):R.error?u(oLe(PU(b.action.kind,R.done),BDe(b.action.kind),R.error)):R.refused>0&&u({severity:"warning",title:R.refused>1?`Couldn't delete ${R.refused} of ${b.matched} messages yet`:"Couldn't delete this message yet",detail:"Something else moved them while the delete was being prepared. They are back where they now sit — try again."}),N||b.reportEnding?.(b.action.kind,b.matched,R),R.done>0&&m(b),{kind:"ran",outcome:R}},[m,u,d]);h.current=g;const v=_.useCallback(b=>{s.current?.mailboxId===b&&r.current?.abort()},[]);_.useEffect(()=>{const b=i.current;return()=>{r.current?.abort(),r.current=void 0,o.current=void 0,s.current=void 0,b.clear()}},[]);const S=_.useMemo(()=>({run:t,start:g,stop:v}),[t,g,v]);return x.jsx(sY.Provider,{value:S,children:e})},SWe=()=>{const e=_.useContext(sY);if(!e)throw new Error("useBulkRun must be used within a BulkRunProvider");return e},zLe=600,ULe=300,aY="remit logs",jLe="https://github.com/remit-mail/reader/releases/tag/";function iY(e,t){const n=t?.check.lastCheckedAt;return n!==void 0&&n!==e.since}function FLe(e){const t=Qn(e);return`The check could not be requested — ${t===void 0?"the server did not answer":`the server answered ${t}`}. Run \`remit logs backend\` to see why.`}const $Le={checking:"preparing",pulling:"preparing",snapshotting:"preparing",stopping:"restarting",starting:"restarting",verifying:"reconnecting",committing:"reconnecting",rollingBack:"reconnecting",recovering:"reconnecting"};function qR(e){return $Le[e]??"reconnecting"}function lY(e){const t=Qn(e);return t===404||t===403||t===401}function MA(e,t){const n=e?.run??null;return n===null||n.outcome!==null||n.runId===t?null:n}function cY(e,t){const n=e?.check;if(n?.status==="ok"&&!(!n.updateAvailable||!n.latestVersion))return{version:n.latestVersion,releasedAt:ny(n.publishedAt)??t,releaseNotesUrl:n.releaseNotesUrl??uY(n.latestVersion),summary:n.summary??""}}function BLe(e){const t=e?.check.schemaVersion,n=e?.currentSchemaVersion;return t===void 0||n===void 0?!1:t>n}function PA(){return zLe+ULe}function DA(e,t){return Math.max(0,Math.floor((t-e)/1e3))}function ny(e){if(!e)return;const t=Date.parse(e);return Number.isNaN(t)?void 0:t}function uY(e){return`${jLe}${e}`}function um(e,t,n,r,o){return{status:"applying",runId:e,version:t,target:n,phase:r,elapsedSeconds:o}}function HLe(e,t,n){switch(n){case"succeeded":return{status:"succeeded",runId:t.runId,version:t.targetVersion,previousVersion:t.fromVersion,releaseNotesUrl:e.check.releaseNotesUrl??uY(t.targetVersion)};case"rolledBack":return{status:"rolledBack",runId:t.runId,version:t.fromVersion,attemptedVersion:t.targetVersion,reason:t.message,logsCommand:t.logCommand};case"rollbackFailed":return{status:"rollbackFailed",runId:t.runId,attemptedVersion:t.targetVersion,previousVersion:t.fromVersion,reason:t.message,logsCommand:t.logCommand};case"abandoned":return{status:"abandoned",runId:t.runId,version:t.fromVersion,attemptedVersion:t.targetVersion,reason:t.message,logsCommand:t.logCommand};default:return n}}function qLe(e,t,n,r){const o=e.check,s=ny(o.lastCheckedAt);if(n!==null)return{status:"checkFailed",version:e.currentVersion,reason:n,lastCheckedAt:s};if(t!==null&&!iY(t,e))return{status:"checking",version:e.currentVersion};if(o.status==="failed")return{status:"checkFailed",version:e.currentVersion,reason:o.error??"Remit could not reach the update service.",lastCheckedAt:s};if(o.status==="disabled")return{status:"neverChecked",version:e.currentVersion,lastCheckedAt:s};const i=cY(e,r);return i?{status:"available",version:e.currentVersion,release:i}:{status:"upToDate",version:e.currentVersion,checkedAt:ny(o.lastCheckedAt)??r}}function jU(e,t,n){return{surface:{status:"ready",section:e,overlay:t},releaseHeld:n}}function dY(e,t,n,r){return{status:"ready",section:um(e,t,n,"reconnecting",r),overlay:{kind:"applying",target:n,phase:"reconnecting",elapsedSeconds:r}}}function fY(e,t,n,r,o){return{status:"ready",section:um(e,t,n,"reconnecting",r),overlay:{kind:"neverCameBack",attemptedVersion:n,previousVersion:t,elapsedSeconds:r,logsCommand:o}}}function WLe(e,t){return{surface:fY(e.runId,e.previousVersion,e.attemptedVersion,t,aY),releaseHeld:!1}}function VLe(e,t,n,r,o){const s=DA(e.startedAt,o),i=t?.currentVersion??e.previousVersion,c=!r&&n!==null&&n.runId===e.runId;if(c&&n!==null&&n.outcome!==null)return null;if(c&&n!==null){const u=qR(n.phase);return jU(um(n.runId,i,n.targetVersion,u,s),{kind:"applying",target:n.targetVersion,phase:u,elapsedSeconds:s},!1)}return r?s>PA()?WLe(e,s):{surface:dY(e.runId,e.previousVersion,e.attemptedVersion,s),releaseHeld:!1}:t===void 0?{surface:{status:"loading"},releaseHeld:!1}:s>PA()?{surface:{status:"ready",section:{status:"unreachable",runId:e.runId,previousVersion:e.previousVersion,attemptedVersion:e.attemptedVersion,elapsedSeconds:s,logsCommand:n?.logCommand??aY},overlay:{kind:"none"}},releaseHeld:!0}:jU(um(e.runId,i,e.attemptedVersion,e.phase,s),{kind:"applying",target:e.attemptedVersion,phase:e.phase,elapsedSeconds:s},!1)}function FU(e){const{data:t,isError:n,dismissedRunId:r,checkPress:o,checkFailure:s,sighting:i,now:c}=e;if(n){const h=MA(t,r);if(h!==null){const m=i!==null&&i.runId===h.runId?i.observedAt:c,g=DA(m,c);return g>PA()?fY(h.runId,h.fromVersion,h.targetVersion,g,h.logCommand):dY(h.runId,h.fromVersion,h.targetVersion,g)}return{status:"ready",section:{status:"checkFailed",version:t?.currentVersion??"the current version",reason:"Remit could not reach the update service."},overlay:{kind:"none"}}}if(!t)return{status:"loading"};const u=t.run,d=u!==null&&r!==null&&u.runId===r;if(u!==null&&!d&&u.outcome!==null)return{status:"ready",section:HLe(t,u,u.outcome),overlay:{kind:"none"}};if(u!==null&&!d&&u.outcome===null){const h=DA(ny(u.startedAt)??c,c),m=qR(u.phase);return{status:"ready",section:um(u.runId,u.fromVersion,u.targetVersion,m,h),overlay:{kind:"applying",target:u.targetVersion,phase:m,elapsedSeconds:h}}}return{status:"ready",section:qLe(t,o,s,c),overlay:{kind:"none"}}}function GLe(e){const{data:t,isError:n,error:r,held:o,now:s}=e,i=t?.run??null;if(lY(r)&&!o)return{surface:{status:"absent"},releaseHeld:!0};if(o){const c=VLe(o,t,i,n,s);return c||{surface:FU(e),releaseHeld:!0}}return{surface:FU(e),releaseHeld:!1}}const KLe=3e4,YLe=5e3,ZLe=kT,XLe={...kT,...Efe},QLe=3e4,JLe="The updater did not answer. Run `remit logs updater` to see why.";function e9e(e,t,n,r){if(lY(e)&&!n)return!1;const o=t!==null&&t.outcome===null;return n||o||r?YLe:KLe}function t9e(){const e=ru(),[t,n]=_.useState(null),[r,o]=_.useState(null),[s,i]=_.useState(null),[c,u]=_.useState(null),[d,h]=_.useState(null),m=_.useRef(t);m.current=t;const g=_.useRef(s);g.current=s;const v=e.getQueryData(SA()),S=t!==null||MA(v,r)!==null,b=Wc({...V6e(),retry:!1,meta:S?XLe:ZLe,refetchInterval:L=>e9e(L.state.error,L.state.data?.run??null,m.current!==null,g.current!==null)}),C=_.useRef(b.data);C.current=b.data;const E=GLe({data:b.data,isError:b.isError,error:b.error,held:t,dismissedRunId:r,checkPress:s,checkFailure:c,sighting:d,now:Date.now()}),k=MA(b.data,r);_.useEffect(()=>{if(k===null){h(L=>L===null?L:null);return}h(L=>L!==null&&L.runId===k.runId?L:{runId:k.runId,observedAt:Date.now()})},[k]);const A=_.useRef(null);A.current=E.surface.status==="ready"&&"runId"in E.surface.section?E.surface.section.runId:null;const{releaseHeld:R}=E;_.useEffect(()=>{R&&n(L=>L===null?L:null)},[R]),_.useEffect(()=>{s!==null&&iY(s,b.data)&&i(null)},[s,b.data]),_.useEffect(()=>{if(s===null)return;const L=s.pressedAt+QLe-Date.now(),B=setTimeout(()=>{i(null),u(JLe)},Math.max(0,L));return()=>clearTimeout(B)},[s]);const{refetch:N}=b,O=_.useCallback(()=>{u(null),i({pressedAt:Date.now(),since:C.current?.check.lastCheckedAt}),$G({query:{refresh:!0},throwOnError:!0}).then(()=>{N()}).catch(L=>{LI(L,kT),i(null),u(FLe(L))})},[N]),I=_.useCallback(()=>{N()},[N]),M=TI({...G6e(),meta:{softError:!0},onSuccess:L=>{const B=L.run;B!==null&&(n({runId:B.runId,attemptedVersion:B.targetVersion,previousVersion:B.fromVersion,phase:qR(B.phase),startedAt:Date.now()}),o(null)),e.setQueryData(SA(),L)},onError:()=>{N()}}),{mutate:z}=M,q=_.useCallback(L=>{z({body:{targetVersion:L}})},[z]),U=_.useCallback(()=>{A.current!==null&&o(A.current),n(null),i(null),u(null)},[]);return{surface:E.surface,appliesSchemaMigration:BLe(b.data),currentVersion:b.data?.currentVersion,release:cY(b.data,Date.now()),onCheck:O,install:q,onDismissResult:U,onRetryConnection:I}}const WR=_.createContext(null);function n9e({children:e}){const t=t9e();return _.createElement(WR.Provider,{value:t},e)}function r9e(){const e=_.useContext(WR);if(e===null)throw new Error("useSelfUpdate must be used within a SelfUpdateProvider");return e}function o9e(){return _.useContext(WR)}function s9e(){const{surface:e,onRetryConnection:t}=r9e();if(e.status!=="ready")return null;const{overlay:n}=e;return n.kind==="applying"?x.jsx(ofe,{target:n.target,phase:n.phase,elapsedSeconds:n.elapsedSeconds}):n.kind==="neverCameBack"?x.jsx(sfe,{attemptedVersion:n.attemptedVersion,previousVersion:n.previousVersion,elapsedSeconds:n.elapsedSeconds,logsCommand:n.logsCommand,onRetryConnection:t}):null}const a9e=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`banner-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,i9e=({children:e})=>{const[t,n]=_.useState([]),r=_.useCallback(c=>{if(c.error!=null&&bB(c.error))return Wd(c.error).correlationId;const u=lLe({...c,action:nLe(c)},a9e(),Date.now());return n(d=>aLe(d,u)),u.id},[]),o=_.useCallback(c=>{n(u=>iLe(u,c))},[]),s=_.useCallback(()=>{n([])},[]),i=_.useMemo(()=>({errors:t,pushError:r,dismissError:o,clearAll:s}),[t,r,o,s]);return x.jsxs(eY.Provider,{value:i,children:[e,x.jsx(jle,{errors:t,onDismiss:o})]})},$U="mt-6 inline-flex min-h-11 w-full items-center justify-center gap-2 rounded-md bg-accent px-4 text-sm font-medium text-accent-fg hover:bg-accent-hover focus-visible:ring-2 focus-visible:ring-ring";function hY(){const[e,t]=_.useState(n_e),{Account:n}=t_e(),r=_.useRef(null);return _.useEffect(()=>r_e(t),[]),xy({id:"signed-out",open:e}),bm(r,e),e?x.jsx("div",{className:"fixed inset-0 z-[70] flex items-center justify-center bg-canvas/80 p-4 backdrop-blur-sm",children:x.jsxs("div",{ref:r,role:"alertdialog","aria-modal":"true","aria-labelledby":"signed-out-title","aria-describedby":"signed-out-text",tabIndex:-1,className:"w-full max-w-sm rounded-lg border border-line bg-surface p-6 shadow-xl outline-none",children:[x.jsx("h2",{id:"signed-out-title",className:"text-lg font-semibold text-fg",children:"You're signed out"}),x.jsx("p",{id:"signed-out-text",className:"mt-2 text-sm text-fg-muted",children:"The server no longer accepts this session. Sign in again to carry on here; you will come back to this screen."}),x.jsx(n,{fallback:x.jsxs("button",{type:"button",onClick:()=>{v9(),window.location.reload()},className:$U,children:[x.jsx(eM,{className:"size-4","aria-hidden":"true"}),"Sign in"]}),children:({signOut:o})=>x.jsxs("button",{type:"button",onClick:()=>{v9(),o()},className:$U,children:[x.jsx(eM,{className:"size-4","aria-hidden":"true"}),"Sign in"]})})]})}):null}const l9e=({error:e,reset:t,info:n})=>{if(jy(e))return DI(),x.jsx(hY,{});const r=Ly(e),o=Wd(e,{recoverable:r,componentStack:n?.componentStack});return x.jsx(AB,{fatal:o,onRetry:r?t:void 0})},Pl=cEe()({component:d9e,errorComponent:l9e}),c9e=()=>{const{t:e}=FG("common",{useSuspense:!1});return x.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:p-4 focus:bg-canvas focus:text-fg focus:rounded-md",children:e("accessibility.skipToContent","Skip to main content")})},u9e=({children:e})=>bf().updateMode==="managed"?e:x.jsxs(n9e,{children:[e,x.jsx(s9e,{})]});function d9e(){return x.jsxs(i9e,{children:[x.jsx(PLe,{children:x.jsx(LLe,{children:x.jsx(u9e,{children:x.jsxs(eNe,{children:[x.jsx(c9e,{}),x.jsx("main",{id:"main-content",className:"h-dvh overflow-hidden",children:x.jsx(_.Suspense,{fallback:x.jsx(My,{}),children:x.jsx(Zq,{})})})]})})})}),x.jsx(kB,{}),x.jsx(hY,{})]})}const f9e=$e("/")({beforeLoad:()=>{throw _f({to:"/mail/brief"})}}),h9e=bf().apiUrl;we.setConfig({baseUrl:h9e,fetch:IF});we.interceptors.error.use((e,t)=>e instanceof Dy||!t?e:gfe(e,t.status));const p9e=()=>Ve(()=>import("./calendar-BlTUf0bx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),m9e=$e("/calendar")({loader:({context:{queryClient:e}})=>{e.prefetchQuery(kR())},component:We(p9e,"component")}),g9e=()=>Ve(()=>import("./import-BTQvBLt4.js"),__vite__mapDeps([12,13,14,15,16,17])),v9e=$e("/import")({component:We(g9e,"component")}),y9e=FR(["match","properties","folder","rule","name","review","run"]),b9e=cu("search"),S9e=b9e.optional().catch(void 0),w9e=()=>vb({from:"/mail",select:e=>e.wizardFrom}),x9e=y9e.optional().catch(void 0),C9e=(e,t)=>Ny(e,t)+1,pY=()=>vb({from:"/mail",select:e=>e.wizard}),E9e=()=>{const e=Im();return _.useCallback((t,n)=>{e({to:".",search:r=>({...r,wizard:t,wizardFrom:n})})},[e])},wWe=()=>{const e=pY(),t=E9e(),[n,r]=_.useState("organize"),o=_.useCallback(i=>{r(i),t("match")},[t]),s=_.useCallback(()=>{t("properties","search")},[t]);return{verb:n,start:o,startFromSearch:s,isOpen:e!==void 0}},xWe=e=>{const t=ho(),n=Im(),r=pY(),o=w9e(),s=_.useRef(r!==void 0),i=_.useRef(o),c=_.useRef(void 0);_.useEffect(()=>{c.current=void 0},[r]),_.useEffect(()=>{if(!s.current)return;s.current=!1;const m=i.current;(async()=>(await n({to:".",search:g=>({...g,wizard:void 0,wizardFrom:void 0}),replace:!0}),await n({to:".",search:g=>({...g,wizard:e,wizardFrom:m})})))()},[e,n]);const u=_.useCallback(m=>{m===r||c.current===m||(c.current=m,n({to:".",search:g=>({...g,wizard:m})}))},[n,r]),d=_.useCallback(()=>{t.history.back()},[t]),h=_.useCallback((m,g)=>{t.history.go(-C9e(m,g))},[t]);return{step:r,goToStep:u,goBack:d,closeWizard:h}},zm=Is({q:qr().optional()}),VR=zm.extend({}),mY=zm.extend({}),_9e=zm.extend({}),gY=zm.extend({}),k9e=VR,A9e=zm.extend({wizard:x9e,wizardFrom:S9e}),n3=Is({body:qr().optional()}),CWe=e=>{const{body:t,...n}=e;return n},GR={brief:VR.extend(n3.shape),flagged:mY.extend(n3.shape),mailbox:gY.extend(n3.shape)},T9e=new Map;function EWe(e){const t=new Map;for(const n of e){const r=Hb(n.folderAppointments);for(const[o,s]of r)t.set(o,{role:s});for(const o of n.mailboxes){const s=r.get(o.mailboxId),i={providerPath:o.fullPath,hierarchyDelimiter:o.hierarchyDelimiter};t.set(o.mailboxId,s?{role:s,...i}:i)}}return t}function _We(e){const t=[];for(const[n,r]of e)r.role==="junk"&&t.push(n);return t}function kWe(e,t){const n=t[0];if(!e)return n?{mailboxId:n}:{};for(const o of t){const s=e.get(o);if(s&&xce(s)!==void 0)return{mailboxId:o,folder:s}}if(!n)return{};const r=e.get(n);return{mailboxId:n,...r?{folder:r}:{}}}const I9e=_.createContext(null),AWe=()=>_.useContext(I9e)??{accounts:[],mailboxNameIndex:new Map,accountNameIndex:new Map,resultFolderIndex:T9e,searchQuery:"",searchInput:"",searchViewKey:"",onSearchChange:()=>{},onSearchClear:()=>{},onSearchClearQuery:()=>{},intelligenceOpen:!1,onToggleIntelligence:()=>{},onRaiseIntelligence:()=>{}},R9e=()=>Ve(()=>import("./mail-DfXdcXsx.js"),__vite__mapDeps([18,1,19,5,4,20,21,22,2,3,6,7,8,9,23,24,25,26,27,28,29,30,10,31,32,33,34,35,36,37,38,39,40])),O9e=$e("/mail")({loader:({context:{queryClient:e}})=>{e.prefetchQuery(kR()),e.prefetchQuery({...K6e(),staleTime:6e4})},component:We(R9e,"component"),validateSearch:A9e}),N9e=()=>Ve(()=>import("./onboarding-u4F7mHOL.js"),__vite__mapDeps([41,42,43,22,13,14,29,16,17])),M9e=$e("/onboarding")({component:We(N9e,"component")});function P9e(){const e=o9e(),t=e?.surface.status==="ready"&&e.surface.section.status==="available";return x.jsx(b$,{label:t?"Update available":void 0,children:x.jsx(Xse,{className:"size-4"})})}function D9e(){return Wc({...L6e()})}const r3={listed:"Sync warnings",unread:"Warnings could not be read",signedOut:"Session ended"};function L9e(e,t){if(jy(t))return r3.signedOut;if(t)return r3.unread;if(e&&((e.entries?.length??0)>0||(e.warnings?.length??0)>0))return r3.listed}function z9e(){const e=D9e();return L9e(e.data,e.error)}function U9e(){const e=z9e();return x.jsx(b$,{label:e,children:x.jsx(Sl,{className:"size-4"})})}const j9e=Fy(403,404),TWe={...Fy(403,404,409,429),..._fe},F9e=new Set([Nc.SignInDisabled,Nc.CallerDisabled]),vY=e=>{if(Qn(e)!==403)return!1;const t=Qc(e)?.code;return t!==void 0&&F9e.has(t)},$9e=e=>{if(Uy(e))return"The server could not be reached. Nothing changed. Try again.";const t=Qc(e)?.code;return t===Nc.CannotDisableSelf?"You cannot disable your own account, so one account always stays on.":t===Nc.StepUpRequired?"The password check did not carry over to the action. Nothing changed. Try again.":t===Nc.ForeignOrigin?"The server refused a request from this address. Nothing changed. Open this page from the server's own address.":Qn(e)===404?"That account is gone, or this server no longer has a People page. Reload the page.":"Something went wrong on the server. Nothing changed. Try again."},IWe=e=>Uy(e)?"The server could not be reached. Check your connection and try again.":"The server did not answer as expected. Try again.",RWe=e=>{if(Qn(e)===401||vY(e))return{kind:"signedOut"};const t=Qc(e)?.code;return t===Nc.WrongPassword?{kind:"wrongPassword"}:t===Nc.StepUpLocked?{kind:"locked"}:{kind:"failed",reason:$9e(e)}},OWe=(e,t)=>e==="Disable"?{title:`Disable ${t}?`,body:"They are signed out everywhere within 15 minutes and cannot sign in until you enable them again. Their calendar feed links stop working. Their mail stays.",confirmLabel:"Disable",failedTitle:`${t} was not disabled`,destructive:!0}:e==="Enable"?{title:`Enable ${t}?`,body:"They can sign in again with their password. Calendar feed links they shared before stay off; they make new ones in Settings.",confirmLabel:"Enable",failedTitle:`${t} was not enabled`,destructive:!1}:e==="SignOut"?{title:`Sign ${t} out everywhere?`,body:"Every session and connected app of theirs ends within 15 minutes. They can sign in again with their password.",confirmLabel:"Sign out everywhere",failedTitle:`${t} was not signed out`,destructive:!0}:{title:`Reset the password of ${t}?`,body:"Their password stops working at once and they are signed out everywhere. You get a link to give them, which works once, for 24 hours.",confirmLabel:"Make a reset link",failedTitle:`No reset link was made for ${t}`,destructive:!0},NWe=(e,t)=>{const n=Qn(t),r=Qc(t)?.code,o=t instanceof Error?t.message:String(t),s=[n??"no response",r,o].filter(i=>i!==void 0&&i!=="").join(" ");return xm(Vd({title:`People: ${e}`,errorMessage:`${e}. The server answered: ${s}`}))},B9e=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),MWe=(e,t)=>B9e(new Date(e),t)?"Today":ZK(e,"medium"),PWe=(e,t)=>e.map(n=>n.userId===t.userId?t:n),H9e=()=>({...q6e(),meta:j9e,retry:!1}),q9e=()=>{const e=Wc(H9e()),t=e.isError&&vY(e.error);return _.useEffect(()=>{t&&DI()},[t]),{...e,unavailable:e.isError&&SB(e.error)}},W9e=()=>Ve(()=>import("./settings-C4JJ05jn.js"),[]),a1=[{id:"accounts",label:"Accounts",icon:x.jsx(UF,{className:"size-4"})},{id:"senders",label:"Senders & Rules",icon:x.jsx(Zse,{className:"size-4"})},{id:"folders",label:"Folder roles",icon:x.jsx(Lse,{className:"size-4"})},{id:"filters",label:"Filters",icon:x.jsx(Mse,{className:"size-4"})},{id:"labels",label:"Labels",icon:x.jsx(Gse,{className:"size-4"})},{id:"calendars",label:"Calendars",icon:x.jsx(Ase,{className:"size-4"})},{id:"appearance",label:"Appearance",icon:x.jsx($se,{className:"size-4"})},{id:"warnings",label:"Warnings",icon:x.jsx(U9e,{})},{id:"advanced",label:"Advanced",icon:x.jsx(P9e,{})}],DWe={accounts:"/settings/accounts",senders:"/settings/senders",folders:"/settings/folders",filters:"/settings/filters",labels:"/settings/labels",calendars:"/settings/calendars",appearance:"/settings/appearance",warnings:"/settings/warnings",people:"/settings/people",advanced:"/settings/advanced"},V9e={id:"people",label:"People",icon:x.jsx(Yse,{className:"size-4"})},LWe=()=>{if(!q9e().isSuccess)return a1;const t=a1.findIndex(n=>n.id==="advanced");return[...a1.slice(0,t),V9e,...a1.slice(t)]},G9e=$e("/settings")({component:We(W9e,"component")}),K9e=["year","month","week","day","agenda"],Y9e=FR(K9e),yY="week",zWe=e=>e==="agenda";function Z9e(e){const t=Y9e.safeParse(e);return t.success?t.data:void 0}const X9e=/^\d{4}-\d{2}-\d{2}$/;function Q9e(e){if(!X9e.test(e))return;const[t,n,r]=e.split("-").map(Number),o=Date.UTC(t,n-1,r),s=new Date(o);if(s.getUTCFullYear()===t&&s.getUTCMonth()===n-1&&s.getUTCDate()===r)return e}const cf=e=>String(e).padStart(2,"0");function bY(e){return`${e.getFullYear()}-${cf(e.getMonth()+1)}-${cf(e.getDate())}`}function J9e(e,t){return{view:Z9e(e.view)??yY,date:Q9e(e.date)??t}}function UWe(e,t,n){const[r,o,s]=e.split("-").map(Number);if(t==="year")return BU(r+n,o,s);if(t==="month")return BU(r,o+n,s);const i=t==="day"?1:7,c=new Date(Date.UTC(r,o-1,s+i*n));return eze(c)}const eze=e=>`${e.getUTCFullYear()}-${cf(e.getUTCMonth()+1)}-${cf(e.getUTCDate())}`;function BU(e,t,n){const r=e+Math.floor((t-1)/12),o=((t-1)%12+12)%12+1,s=new Date(Date.UTC(r,o,0)).getUTCDate();return`${r}-${cf(o)}-${cf(Math.min(n,s))}`}const tze=qr().min(1);function nze(e){const t=e==null?[]:[e].flat(),n=new Set;for(const r of t){if(typeof r!="string"&&typeof r!="number")continue;const o=tze.safeParse(String(r));o.success&&n.add(o.data)}return[...n].sort()}const KR=Is({calendarId:ty().transform(nze).transform(e=>e.length===0?void 0:e).optional()});function jWe(e,t){return t?e==="week"?"day":e==="year"?"month":e:e}const rze=$e("/calendar/")({validateSearch:KR,beforeLoad:({search:e,location:t})=>{throw _f({to:"/calendar/$view/$date",params:{view:yY,date:bY(new Date)},search:e,hash:t.hash,replace:!0})}}),oze=$e("/mail/")({validateSearch:k9e,beforeLoad:({search:e,location:t})=>{throw _f({to:"/mail/brief",search:e,hash:t.hash,replace:!0})}}),sze=()=>Ve(()=>import("./_mailboxId-DfmkdvY1.js"),__vite__mapDeps([44,25,5,4,24,26,1,27,28,29,30,10,31,45,46,22,20,32,33,34,21,47,9,19,48,7,6,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,59,60,61,62,63,64,65,66])),aze=$e("/mail/$mailboxId")({component:We(sze,"component"),validateSearch:gY}),ize=()=>Ve(()=>import("./brief-BudFNiO7.js"),__vite__mapDeps([67,1])),lze=()=>Ve(()=>import("./brief-D2JSdiJk.js"),__vite__mapDeps([68,25,5,4,24,26,1,27,28,29,30,10,31,69,46,22,20,47,9,19,21,48,7,6,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,32,33,34,60,61,70,66])),cze=$e("/mail/brief")({component:We(lze,"component"),validateSearch:VR,errorComponent:We(ize,"errorComponent")}),uze=()=>Ve(()=>import("./flagged-BfctmA4r.js"),__vite__mapDeps([71,1])),dze=()=>Ve(()=>import("./flagged-CU6IaMWI.js"),__vite__mapDeps([72,25,5,4,24,26,1,27,28,29,30,10,31,73,46,22,20,47,9,19,21,48,7,6,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,59,34,70,66])),fze=$e("/mail/flagged")({component:We(dze,"component"),validateSearch:mY,errorComponent:We(uze,"errorComponent")}),hze=()=>Ve(()=>import("./outbox-CQ-KfDPo.js"),__vite__mapDeps([74,25,5,4,24,26,1,27,28,29,30,10,31,75,9,46,22,20,33,56,76,77,62,35,40,66])),pze=$e("/mail/outbox")({component:We(hze,"component"),validateSearch:_9e}),mze=$e("/reset-password/$token")({beforeLoad:()=>{throw _f({to:"/"})}}),gze=()=>Ve(()=>import("./index-Dg1Qx5Zn.js"),[]),vze=$e("/settings/")({component:We(gze,"component")}),yze=()=>Ve(()=>import("./accounts-gJO9pQry.js"),__vite__mapDeps([78,42,43,22,13,14,29,16,1,76,79,6,35,64,28,31,51,80])),bze=Is({editAccountId:qr().optional(),focusSmtp:jR().optional(),connected:qr().optional(),oauthError:qr().optional(),oauthEmail:qr().optional(),missingServices:qr().optional()}),Sze=$e("/settings/accounts")({component:We(yze,"component"),validateSearch:bze}),wze=()=>Ve(()=>import("./advanced-UrNGfD9P.js"),__vite__mapDeps([81,79,6,35,64,15,5,4,10,14,51,16,82,77,65,58,56,8,80,22])),xze=$e("/settings/advanced")({component:We(wze,"component")}),Cze=()=>Ve(()=>import("./appearance-BbURt4Vo.js"),__vite__mapDeps([83,79,6,35,64,80,22])),Eze=$e("/settings/appearance")({component:We(Cze,"component")}),_ze=()=>Ve(()=>import("./calendars-tQGYwNBq.js"),__vite__mapDeps([84,79,6,35,64,14,53,1,21,85,86,23,87,30,31,34,88])),kze=$e("/settings/calendars")({component:We(_ze,"component")}),Aze=()=>Ve(()=>import("./filters-DrX3DsrZ.js"),__vite__mapDeps([89,1,79,6,35,64,63,4,61,57,65])),Tze=$e("/settings/filters")({component:We(Aze,"component")}),Ize=()=>Ve(()=>import("./folders-0XOIE3da.js"),__vite__mapDeps([90,1,23,79,6,35,64,39])),Rze=$e("/settings/folders")({component:We(Ize,"component")}),Oze=()=>Ve(()=>import("./labels-7qLNnQ4p.js"),__vite__mapDeps([91,31,1,79,6,35,64,61])),Nze=$e("/settings/labels")({component:We(Oze,"component")}),Mze=()=>Ve(()=>import("./people-Bp5zi0j-.js"),__vite__mapDeps([92,79,6,35,64,50,88])),Pze=$e("/settings/people")({component:We(Mze,"component")}),Dze=()=>Ve(()=>import("./senders-iDSnpdnW.js"),__vite__mapDeps([93,1,22,79,6,35,64,30,80])),Lze=$e("/settings/senders")({component:We(Dze,"component")}),zze=()=>Ve(()=>import("./suggested-vips-CEDSSHCK.js"),[]),Uze=$e("/settings/suggested-vips")({component:We(zze,"component")}),jze=()=>Ve(()=>import("./warnings-D0W4PYa1.js"),__vite__mapDeps([94,79,6,35,64,1,88,82,36,21,65,80,22])),Fze=$e("/settings/warnings")({component:We(jze,"component")}),$ze=()=>Ve(()=>import("./_view._date-Cp0fmpb2.js"),__vite__mapDeps([95,86,23,53,1,21,85,64,35,87,30,96,97,5,4,11,52,38,54,56,98,37,99,100,101,55,3])),Bze=$e("/calendar/$view/$date")({validateSearch:KR,beforeLoad:({params:e,search:t,location:n})=>{const r=J9e(e,bY(new Date));if(!(r.view===e.view&&r.date===e.date))throw _f({to:"/calendar/$view/$date",params:r,search:t,hash:n.hash,replace:!0})},component:We($ze,"component")}),Hze=()=>Ve(()=>import("./index-IUjWbCxV.js"),__vite__mapDeps([102,45,46,22,20,5,4,24,32,33,34,21,47,9,19,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,59,60,61,62,63,64,65])),qze=$e("/mail/$mailboxId/")({component:We(Hze,"component")}),Wze=()=>Ve(()=>import("./_threadId-CstWlugv.js"),[]),Vze=$e("/mail/$mailboxId/$threadId")({component:We(Wze,"component")}),Gze=()=>Ve(()=>import("./index-DefW0u5m.js"),__vite__mapDeps([103,69,46,22,20,5,4,24,47,9,19,21,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,32,33,34,60,61,70])),Kze=$e("/mail/brief/")({component:We(Gze,"component")}),Yze=()=>Ve(()=>import("./_threadId-DXKO9oGh.js"),[]),Zze=$e("/mail/brief/$threadId")({component:We(Yze,"component")}),Xze=()=>Ve(()=>import("./index-BHtOQW8x.js"),__vite__mapDeps([104,73,46,22,20,5,4,24,47,9,19,21,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,59,34,70])),Qze=$e("/mail/flagged/")({component:We(Xze,"component")}),Jze=()=>Ve(()=>import("./_threadId-DwOOZ66z.js"),[]),eUe=$e("/mail/flagged/$threadId")({component:We(Jze,"component")}),tUe=()=>Ve(()=>import("./index-C0jxJ9rz.js"),__vite__mapDeps([105,75,9,46,22,20,5,4,24,33,56,76,77,62,35,40])),nUe=$e("/mail/outbox/")({component:We(tUe,"component")}),rUe=()=>Ve(()=>import("./index-DtqBFgK5.js"),[]),oUe=$e("/calendar/$view/$date/")({component:We(rUe,"component")}),sUe=()=>Ve(()=>import("./_calendarObjectId-Bu1gEdx4.js"),[]),aUe=$e("/calendar/$view/$date/$calendarObjectId")({component:We(sUe,"component")}),Ja=e=>String(e).padStart(2,"0"),SY=e=>`${e.getUTCFullYear()}-${Ja(e.getUTCMonth()+1)}-${Ja(e.getUTCDate())}`,YR=e=>{const t=e<0?"-":"+",n=Math.abs(e);return`${t}${Ja(Math.floor(n/60))}:${Ja(n%60)}`};function wY(e,t){const n=new Date(`${e}T${t}:00`);return`${e}T${t}:00${YR(-n.getTimezoneOffset())}`}const o3=new Map;function iUe(e){if(o3.has(e))return o3.get(e);let t;try{t=new Intl.DateTimeFormat("en-US",{timeZone:e,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{t=void 0}return o3.set(e,t),t}function LA(e,t){const n=iUe(e);if(!n)return Number.NaN;const r=n.formatToParts(new Date(t)),o=c=>Number(r.find(u=>u.type===c)?.value),s=o("hour")%24;return(Date.UTC(o("year"),o("month")-1,o("day"),s,o("minute"),o("second"))-t)/6e4}function HU(e,t,n){if(n==="")return`${e}T${t}:00+00:00`;const r=Date.parse(`${e}T${t}:00Z`),o=LA(n,r);if(Number.isNaN(o))return wY(e,t);const s=LA(n,r-o*6e4);return`${e}T${t}:00${YR(Number.isNaN(s)?o:s)}`}function qU(e,t){const n=Date.parse(e),r=LA(t,n),o=Number.isNaN(r)?-new Date(n).getTimezoneOffset():r,s=new Date(n+o*6e4);return`${SY(s)}T${Ja(s.getUTCHours())}:${Ja(s.getUTCMinutes())}:${Ja(s.getUTCSeconds())}${YR(o)}`}const ry=e=>wY(e,"00:00");function pl(e,t){const[n,r,o]=e.split("-").map(Number);return SY(new Date(Date.UTC(n,r-1,o+t)))}function s3(e){const[t,n,r]=e.split("-").map(Number),o=new Date(Date.UTC(t,n-1,r));return pl(e,-((o.getUTCDay()+6)%7))}function lUe(e,t){const[n,r]=t.split("-").map(Number);if(e==="year")return[`${n}-01-01`,`${n+1}-01-01`];if(e==="month"){const s=`${n}-${Ja(r)}-01`,i=r===12?`${n+1}-01-01`:`${n}-${Ja(r+1)}-01`;return[s3(s),pl(s3(pl(i,-1)),7)]}if(e==="day")return[t,pl(t,1)];const o=s3(t);return[o,pl(o,7)]}function FWe(e,t){const[n,r]=lUe(e,t);return{from:ry(n),to:ry(r)}}function $We(e,t){return{from:ry(e),to:ry(pl(e,t))}}const cUe=EDe({offset:!0,local:!1}),xY=_De(),WU=ty().transform(e=>{const t=VK([cUe,xY]).safeParse(e);return t.success?t.data:void 0}).optional(),uUe=KR.extend({start:WU,end:WU}),i1=e=>xY.safeParse(e).success;function l1(e){return{date:e,endDate:e,startTime:"09:00",endTime:"10:00",allDay:!1}}function BWe(e,t,n,r){if(e===void 0||t===void 0)return l1(n);if(i1(e)&&i1(t)){const i=pl(t,-1);return i<e?l1(n):{date:e,endDate:i,startTime:"",endTime:"",allDay:!0}}if(i1(e)||i1(t)||Date.parse(t)<=Date.parse(e))return l1(n);const o=qU(e,r),s=qU(t,r);return{date:o.slice(0,10),endDate:s.slice(0,10),startTime:o.slice(11,16),endTime:s.slice(11,16),allDay:!1}}function HWe(e,t){return e.allDay?{start:e.date,end:pl(e.endDate,1)}:{start:HU(e.date,e.startTime,t),end:HU(e.endDate,e.endTime,t)}}const dUe=()=>Ve(()=>import("./new-CQLfecpu.js"),__vite__mapDeps([106,107,31,86,23,53,1,21,108,85,64,97,96,100,87,30,54,5,4,11,99,101])),fUe=$e("/calendar/$view/$date/new")({validateSearch:uUe,component:We(dUe,"component")}),hUe=()=>Ve(()=>import("./index-C16gKcH0.js"),__vite__mapDeps([109,45,46,22,20,5,4,24,32,33,34,21,47,9,19,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,59,60,61,62,63,64,65])),pUe=$e("/mail/$mailboxId/$threadId/")({component:We(hUe,"component")}),mUe=()=>Ve(()=>import("./_messageId-C16gKcH0.js"),__vite__mapDeps([110,45,46,22,20,5,4,24,32,33,34,21,47,9,19,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,59,60,61,62,63,64,65])),gUe=$e("/mail/$mailboxId/$threadId/$messageId")({component:We(mUe,"component")}),vUe=()=>Ve(()=>import("./compose._-_outboxMessageId_-BgVnlkG4.js"),__vite__mapDeps([111,26,1,27,24,5,4,28,29,30,10,31])),yUe=$e("/mail/$mailboxId/compose/{-$outboxMessageId}")({component:We(vUe,"component")}),bUe=()=>Ve(()=>import("./index-uhJG8cXc.js"),__vite__mapDeps([112,69,46,22,20,5,4,24,47,9,19,21,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,32,33,34,60,61,70])),SUe=$e("/mail/brief/$threadId/")({component:We(bUe,"component")}),wUe=()=>Ve(()=>import("./_messageId-uhJG8cXc.js"),__vite__mapDeps([113,69,46,22,20,5,4,24,47,9,19,21,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,32,33,34,60,61,70])),xUe=$e("/mail/brief/$threadId/$messageId")({component:We(wUe,"component")}),CUe=()=>Ve(()=>import("./compose._-_outboxMessageId_-BPU3iogA.js"),__vite__mapDeps([114,26,1,27,24,5,4,28,29,30,10,31])),EUe=$e("/mail/brief/compose/{-$outboxMessageId}")({component:We(CUe,"component")}),_Ue=()=>Ve(()=>import("./index-C15-ASoN.js"),__vite__mapDeps([115,73,46,22,20,5,4,24,47,9,19,21,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,59,34,70])),kUe=$e("/mail/flagged/$threadId/")({component:We(_Ue,"component")}),AUe=()=>Ve(()=>import("./_messageId-_anK-ruA.js"),__vite__mapDeps([116,73,46,22,20,5,4,24,47,9,19,21,48,1,7,6,27,28,29,30,10,49,50,51,52,38,53,54,55,43,56,8,11,3,35,57,58,31,59,34,70])),TUe=$e("/mail/flagged/$threadId/$messageId")({component:We(AUe,"component")}),IUe=()=>Ve(()=>import("./compose._-_outboxMessageId_-BnsIRMLA.js"),__vite__mapDeps([117,26,1,27,24,5,4,28,29,30,10,31])),RUe=$e("/mail/flagged/compose/{-$outboxMessageId}")({component:We(IUe,"component")}),OUe=()=>Ve(()=>import("./compose._-_outboxMessageId_-CpaquYol.js"),__vite__mapDeps([118,26,1,27,24,5,4,28,29,30,10,31])),NUe=$e("/mail/outbox/compose/{-$outboxMessageId}")({component:We(OUe,"component")}),MUe=()=>Ve(()=>import("./_outboxMessageId-CaSX9ZOS.js"),__vite__mapDeps([119,75,9,46,22,20,5,4,24,33,56,76,77,62,35,40])),PUe=$e("/mail/outbox/draft/$outboxMessageId")({component:We(MUe,"component")}),DUe=()=>Ve(()=>import("./index-fTiw_j5r.js"),__vite__mapDeps([120,121,31,86,23,53,1,21,85,64,96,97,54,5,4,11,101])),LUe=$e("/calendar/$view/$date/$calendarObjectId/")({component:We(DUe,"component")}),zUe=()=>Ve(()=>import("./_recurrenceId-C3Qcwwvr.js"),[]),UUe=$e("/calendar/$view/$date/$calendarObjectId/$recurrenceId")({component:We(zUe,"component")}),jUe=()=>Ve(()=>import("./edit-OALDWD3A.js"),__vite__mapDeps([122,107,31,86,23,53,1,21,108,85,64,97,96,100,87,30,54,5,4,11,99,101])),FUe=$e("/calendar/$view/$date/$calendarObjectId/edit")({component:We(jUe,"component")}),$Ue=()=>Ve(()=>import("./suggestion._suggestionId-B9utmB_0.js"),__vite__mapDeps([123,48,108,85,86,23,53,1,21,64,55,100,54,101,5,4,11])),BUe=$e("/calendar/$view/$date/suggestion/$suggestionId")({component:We($Ue,"component")}),HUe=()=>Ve(()=>import("./task._calendarTaskId-COR3DmT4.js"),__vite__mapDeps([124,96,1,53,21,86,23,5,4,11,98])),qUe=$e("/calendar/$view/$date/task/$calendarTaskId")({component:We(HUe,"component")}),WUe=()=>Ve(()=>import("./index-BoRZwOaB.js"),__vite__mapDeps([125,121,31,86,23,53,1,21,85,64,96,97,54,5,4,11,101])),VUe=$e("/calendar/$view/$date/$calendarObjectId/$recurrenceId/")({component:We(WUe,"component")}),GUe=()=>Ve(()=>import("./edit-B-28N5ki.js"),__vite__mapDeps([126,107,31,86,23,53,1,21,108,85,64,97,96,100,87,30,54,5,4,11,99,101])),KUe=$e("/calendar/$view/$date/$calendarObjectId/$recurrenceId/edit")({component:We(GUe,"component")}),YUe=$e("/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}")({validateSearch:GR.mailbox}),ZUe=$e("/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}")({validateSearch:GR.brief}),XUe=$e("/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}")({validateSearch:GR.flagged}),QUe=f9e.update({id:"/",path:"/",getParentRoute:()=>Pl}),ZR=m9e.update({id:"/calendar",path:"/calendar",getParentRoute:()=>Pl}),JUe=v9e.update({id:"/import",path:"/import",getParentRoute:()=>Pl}),Tf=O9e.update({id:"/mail",path:"/mail",getParentRoute:()=>Pl}),eje=M9e.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>Pl}),zo=G9e.update({id:"/settings",path:"/settings",getParentRoute:()=>Pl}),tje=rze.update({id:"/",path:"/",getParentRoute:()=>ZR}),nje=oze.update({id:"/",path:"/",getParentRoute:()=>Tf}),qb=aze.update({id:"/$mailboxId",path:"/$mailboxId",getParentRoute:()=>Tf}),Wb=cze.update({id:"/brief",path:"/brief",getParentRoute:()=>Tf}),Vb=fze.update({id:"/flagged",path:"/flagged",getParentRoute:()=>Tf}),Gb=pze.update({id:"/outbox",path:"/outbox",getParentRoute:()=>Tf}),rje=mze.update({id:"/reset-password/$token",path:"/reset-password/$token",getParentRoute:()=>Pl}),oje=vze.update({id:"/",path:"/",getParentRoute:()=>zo}),sje=Sze.update({id:"/accounts",path:"/accounts",getParentRoute:()=>zo}),aje=xze.update({id:"/advanced",path:"/advanced",getParentRoute:()=>zo}),ije=Eze.update({id:"/appearance",path:"/appearance",getParentRoute:()=>zo}),lje=kze.update({id:"/calendars",path:"/calendars",getParentRoute:()=>zo}),cje=Tze.update({id:"/filters",path:"/filters",getParentRoute:()=>zo}),uje=Rze.update({id:"/folders",path:"/folders",getParentRoute:()=>zo}),dje=Nze.update({id:"/labels",path:"/labels",getParentRoute:()=>zo}),fje=Pze.update({id:"/people",path:"/people",getParentRoute:()=>zo}),hje=Lze.update({id:"/senders",path:"/senders",getParentRoute:()=>zo}),pje=Uze.update({id:"/suggested-vips",path:"/suggested-vips",getParentRoute:()=>zo}),mje=Fze.update({id:"/warnings",path:"/warnings",getParentRoute:()=>zo}),If=Bze.update({id:"/$view/$date",path:"/$view/$date",getParentRoute:()=>ZR}),gje=qze.update({id:"/",path:"/",getParentRoute:()=>qb}),XR=Vze.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>qb}),vje=Kze.update({id:"/",path:"/",getParentRoute:()=>Wb}),QR=Zze.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>Wb}),yje=Qze.update({id:"/",path:"/",getParentRoute:()=>Vb}),JR=eUe.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>Vb}),bje=nUe.update({id:"/",path:"/",getParentRoute:()=>Gb}),Sje=oUe.update({id:"/",path:"/",getParentRoute:()=>If}),Kb=aUe.update({id:"/$calendarObjectId",path:"/$calendarObjectId",getParentRoute:()=>If}),wje=fUe.update({id:"/new",path:"/new",getParentRoute:()=>If}),xje=pUe.update({id:"/",path:"/",getParentRoute:()=>XR}),CY=gUe.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>XR}),Cje=yUe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>qb}),Eje=SUe.update({id:"/",path:"/",getParentRoute:()=>QR}),EY=xUe.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>QR}),_je=EUe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Wb}),kje=kUe.update({id:"/",path:"/",getParentRoute:()=>JR}),_Y=TUe.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>JR}),Aje=RUe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Vb}),Tje=NUe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Gb}),Ije=PUe.update({id:"/draft/$outboxMessageId",path:"/draft/$outboxMessageId",getParentRoute:()=>Gb}),Rje=LUe.update({id:"/",path:"/",getParentRoute:()=>Kb}),eO=UUe.update({id:"/$recurrenceId",path:"/$recurrenceId",getParentRoute:()=>Kb}),Oje=FUe.update({id:"/edit",path:"/edit",getParentRoute:()=>Kb}),Nje=BUe.update({id:"/suggestion/$suggestionId",path:"/suggestion/$suggestionId",getParentRoute:()=>If}),Mje=qUe.update({id:"/task/$calendarTaskId",path:"/task/$calendarTaskId",getParentRoute:()=>If}),Pje=VUe.update({id:"/",path:"/",getParentRoute:()=>eO}),Dje=KUe.update({id:"/edit",path:"/edit",getParentRoute:()=>eO}),Lje=YUe.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>CY}),zje=ZUe.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>EY}),Uje=XUe.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>_Y}),jje={CalendarViewDateCalendarObjectIdRecurrenceIdEditRoute:Dje,CalendarViewDateCalendarObjectIdRecurrenceIdIndexRoute:Pje},Fje=eO._addFileChildren(jje),$je={CalendarViewDateCalendarObjectIdRecurrenceIdRoute:Fje,CalendarViewDateCalendarObjectIdEditRoute:Oje,CalendarViewDateCalendarObjectIdIndexRoute:Rje},Bje=Kb._addFileChildren($je),Hje={CalendarViewDateCalendarObjectIdRoute:Bje,CalendarViewDateNewRoute:wje,CalendarViewDateIndexRoute:Sje,CalendarViewDateSuggestionSuggestionIdRoute:Nje,CalendarViewDateTaskCalendarTaskIdRoute:Mje},qje=If._addFileChildren(Hje),Wje={CalendarIndexRoute:tje,CalendarViewDateRoute:qje},Vje=ZR._addFileChildren(Wje),Gje={MailMailboxIdThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:Lje},Kje=CY._addFileChildren(Gje),Yje={MailMailboxIdThreadIdMessageIdRoute:Kje,MailMailboxIdThreadIdIndexRoute:xje},Zje=XR._addFileChildren(Yje),Xje={MailMailboxIdThreadIdRoute:Zje,MailMailboxIdIndexRoute:gje,MailMailboxIdComposeChar123OutboxMessageIdChar125Route:Cje},Qje=qb._addFileChildren(Xje),Jje={MailBriefThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:zje},eFe=EY._addFileChildren(Jje),tFe={MailBriefThreadIdMessageIdRoute:eFe,MailBriefThreadIdIndexRoute:Eje},nFe=QR._addFileChildren(tFe),rFe={MailBriefThreadIdRoute:nFe,MailBriefIndexRoute:vje,MailBriefComposeChar123OutboxMessageIdChar125Route:_je},oFe=Wb._addFileChildren(rFe),sFe={MailFlaggedThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:Uje},aFe=_Y._addFileChildren(sFe),iFe={MailFlaggedThreadIdMessageIdRoute:aFe,MailFlaggedThreadIdIndexRoute:kje},lFe=JR._addFileChildren(iFe),cFe={MailFlaggedThreadIdRoute:lFe,MailFlaggedIndexRoute:yje,MailFlaggedComposeChar123OutboxMessageIdChar125Route:Aje},uFe=Vb._addFileChildren(cFe),dFe={MailOutboxIndexRoute:bje,MailOutboxComposeChar123OutboxMessageIdChar125Route:Tje,MailOutboxDraftOutboxMessageIdRoute:Ije},fFe=Gb._addFileChildren(dFe),hFe={MailMailboxIdRoute:Qje,MailBriefRoute:oFe,MailFlaggedRoute:uFe,MailOutboxRoute:fFe,MailIndexRoute:nje},pFe=Tf._addFileChildren(hFe),mFe={SettingsAccountsRoute:sje,SettingsAdvancedRoute:aje,SettingsAppearanceRoute:ije,SettingsCalendarsRoute:lje,SettingsFiltersRoute:cje,SettingsFoldersRoute:uje,SettingsLabelsRoute:dje,SettingsPeopleRoute:fje,SettingsSendersRoute:hje,SettingsSuggestedVipsRoute:pje,SettingsWarningsRoute:mje,SettingsIndexRoute:oje},gFe=zo._addFileChildren(mFe),vFe={IndexRoute:QUe,CalendarRoute:Vje,ImportRoute:JUe,MailRoute:pFe,OnboardingRoute:eje,SettingsRoute:gFe,ResetPasswordTokenRoute:rje},yFe=Pl._addFileChildren(vFe)._addFileTypes(),bFe=(e,t,n)=>{const r=_Ee({routeTree:yFe,context:{queryClient:e},history:n,stringifySearch:O4e,defaultPreload:"intent",defaultPendingComponent:My,defaultPendingMs:200,defaultPendingMinMs:300});return r.subscribe("onResolved",o=>{t.recordPageView(o.toLocation.pathname),Ffe(o.toLocation.pathname)}),r},Je=e=>typeof e=="string",Xh=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},VU=e=>e==null?"":""+e,SFe=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},wFe=/###/g,GU=e=>e&&e.indexOf("###")>-1?e.replace(wFe,"."):e,KU=e=>!e||Je(e),Tp=(e,t,n)=>{const r=Je(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(KU(e))return{};const s=GU(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return KU(e)?{}:{obj:e,k:GU(r[o])}},YU=(e,t,n)=>{const{obj:r,k:o}=Tp(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],i=t.slice(0,t.length-1),c=Tp(e,i,Object);for(;c.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),c=Tp(e,i,Object),c?.obj&&typeof c.obj[`${c.k}.${s}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${s}`]=n},xFe=(e,t,n,r)=>{const{obj:o,k:s}=Tp(e,t,Object);o[s]=o[s]||[],o[s].push(n)},oy=(e,t)=>{const{obj:n,k:r}=Tp(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},CFe=(e,t,n)=>{const r=oy(e,n);return r!==void 0?r:oy(t,n)},kY=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Je(e[r])||e[r]instanceof String||Je(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):kY(e[r],t[r],n):e[r]=t[r]);return e},sd=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var EFe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const _Fe=e=>Je(e)?e.replace(/[&<>"'\/]/g,t=>EFe[t]):e;class kFe{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const AFe=[" ",",","?","!",";"],TFe=new kFe(20),IFe=(e,t,n)=>{t=t||"",n=n||"";const r=AFe.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const o=TFe.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!o.test(e);if(!s){const i=e.indexOf(n);i>0&&!o.test(e.substring(0,i))&&(s=!0)}return s},zA=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let i,c="";for(let u=s;u<r.length;++u)if(u!==s&&(c+=n),c+=r[u],i=o[c],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<r.length-1)continue;s+=u-s+1;break}o=i}return o},sy=e=>e?.replace("_","-"),RFe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class ay{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||RFe,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(Je(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ay(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ay(this.logger,t)}}var ea=new ay;class Yb{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[c,u]=i;for(let d=0;d<u;d++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[c,u]=i;for(let d=0;d<u;d++)c.apply(c,[t,...r])})}}class ZU extends Yb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):Je(r)&&s?c.push(...r.split(s)):c.push(r)));const u=oy(this.data,c);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),u||!i||!Je(r)?u:zA(this.data?.[t]?.[n],r,s)}addResource(t,n,r,o){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(c=t.split("."),o=n,n=c[1]),this.addNamespaces(n),YU(this.data,c,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(Je(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),o=r,r=n,n=c[1]),this.addNamespaces(n);let u=oy(this.data,c)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?kY(u,r,s):u={...u,...r},YU(this.data,c,u),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var AY={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{t=this.processors[s]?.process(t,n,r,o)??t}),t}};const XU={},QU=e=>!Je(e)&&typeof e!="boolean"&&typeof e!="number";class iy extends Yb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),SFe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ea.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return t==null?!1:this.resolve(t,n)?.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!IFe(t,r,o);if(i&&!c){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Je(s)?[s]:s};const d=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(d[0])>-1)&&(s=d.shift()),t=d.join(o)}return{key:t,namespaces:Je(s)?[s]:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:c}=this.extractFromKey(t[t.length-1],n),u=c[c.length-1],d=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode"){if(h){const U=n.nsSeparator||this.options.nsSeparator;return o?{res:`${u}${U}${i}`,usedKey:i,exactUsedKey:i,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${U}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:i}const m=this.resolve(t,n);let g=m?.res;const v=m?.usedKey||i,S=m?.exactUsedKey||i,b=["[object Number]","[object Function]","[object RegExp]"],C=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,k=n.count!==void 0&&!Je(n.count),A=iy.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(d,n.count,n):"",N=n.ordinal&&k?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",O=k&&!n.ordinal&&n.count===0,I=O&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${N}`]||n.defaultValue;let M=g;E&&!g&&A&&(M=I);const z=QU(M),q=Object.prototype.toString.apply(M);if(E&&M&&z&&b.indexOf(q)<0&&!(Je(C)&&Array.isArray(M))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const U=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,M,{...n,ns:c}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(m.res=U,m.usedParams=this.getUsedParamsDetails(n),m):U}if(s){const U=Array.isArray(M),L=U?[]:{},B=U?S:v;for(const K in M)if(Object.prototype.hasOwnProperty.call(M,K)){const le=`${B}${s}${K}`;A&&!g?L[K]=this.translate(le,{...n,defaultValue:QU(I)?I[K]:void 0,joinArrays:!1,ns:c}):L[K]=this.translate(le,{...n,joinArrays:!1,ns:c}),L[K]===le&&(L[K]=M[K])}g=L}}else if(E&&Je(C)&&Array.isArray(g))g=g.join(C),g&&(g=this.extendTranslation(g,t,n,r));else{let U=!1,L=!1;!this.isValidLookup(g)&&A&&(U=!0,g=I),this.isValidLookup(g)||(L=!0,g=i);const K=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&L?void 0:g,le=A&&I!==g&&this.options.updateMissing;if(L||U||le){if(this.logger.log(le?"updateKey":"missingKey",d,u,i,le?I:g),s){const de=this.resolve(i,{...n,keySeparator:!1});de&&de.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let de=0;de<Q.length;de++)$.push(Q[de]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const se=(de,_e,j)=>{const Y=A&&j!==g?j:K;this.options.missingKeyHandler?this.options.missingKeyHandler(de,u,_e,Y,le,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(de,u,_e,Y,le,n),this.emit("missingKey",de,u,_e,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?$.forEach(de=>{const _e=this.pluralResolver.getSuffixes(de,n);O&&n[`defaultValue${this.options.pluralSeparator}zero`]&&_e.indexOf(`${this.options.pluralSeparator}zero`)<0&&_e.push(`${this.options.pluralSeparator}zero`),_e.forEach(j=>{se([de],i+j,n[`defaultValue${j}`]||I)})}):se($,i,I))}g=this.extendTranslation(g,t,n,m,r),L&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${u}:${i}`),(L||U)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,U?g:void 0))}return o?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(t,n,r,o,s){var i=this;if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const d=Je(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(d){const g=t.match(this.interpolator.nestingRegexp);h=g&&g.length}let m=r.replace&&!Je(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language||o.usedLng,r),d){const g=t.match(this.interpolator.nestingRegexp),v=g&&g.length;h<v&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,v=new Array(g),S=0;S<g;S++)v[S]=arguments[S];return s?.[0]===v[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):i.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,u=Je(c)?[c]:c;return t!=null&&u?.length&&r.applyPostProcessor!==!1&&(t=AY.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,s,i,c;return Je(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(u,n),h=d.key;o=h;let m=d.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&!Je(n.count),v=g&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(Je(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(C=>{this.isValidLookup(r)||(c=C,!XU[`${b[0]}-${C}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(XU[`${b[0]}-${C}`]=!0,this.logger.warn(`key "${o}" for languages "${b.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(E=>{if(this.isValidLookup(r))return;i=E;const k=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,h,E,C,n);else{let R;g&&(R=this.pluralResolver.getSuffix(E,n.count,n));const N=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(k.push(h+R),n.ordinal&&R.indexOf(O)===0&&k.push(h+R.replace(O,this.options.pluralSeparator)),v&&k.push(h+N)),S){const I=`${h}${this.options.contextSeparator}${n.context}`;k.push(I),g&&(k.push(I+R),n.ordinal&&R.indexOf(O)===0&&k.push(I+R.replace(O,this.options.pluralSeparator)),v&&k.push(I+N))}}let A;for(;A=k.pop();)this.isValidLookup(r)||(s=A,r=this.getResource(E,C,A,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:i,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Je(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const s of n)delete o[s]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class JU{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ea.create("languageUtils")}getScriptPartFromCode(t){if(t=sy(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=sy(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Je(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(s=>{if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&(s.indexOf("-")>0&&o.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===o||s.indexOf(o)===0&&o.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Je(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=i=>{i&&(this.isSupportedCode(i)?o.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Je(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):Je(t)&&s(this.formatLanguageCode(t)),r.forEach(i=>{o.indexOf(i)<0&&s(this.formatLanguageCode(i))}),o}}const ej={zero:0,one:1,two:2,few:3,many:4,other:5},tj={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class OFe{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=ea.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=sy(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:o});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),tj;if(!t.match(/-|_/))return tj;const u=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(u,n)}return this.pluralRulesCache[s]=i,i}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,s)=>ej[o]-ej[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const nj=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=CFe(e,t,n);return!s&&o&&Je(n)&&(s=zA(e,n,r),s===void 0&&(s=zA(t,n,r))),s},a3=e=>e.replace(/\$/g,"$$$$");class NFe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ea.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:i,suffix:c,suffixEscaped:u,formatSeparator:d,unescapeSuffix:h,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:v,nestingSuffix:S,nestingSuffixEscaped:b,nestingOptionsSeparator:C,maxReplaces:E,alwaysFormat:k}=t.interpolation;this.escape=n!==void 0?n:_Fe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?sd(s):i||"{{",this.suffix=c?sd(c):u||"}}",this.formatSeparator=d||",",this.unescapePrefix=h?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=g?sd(g):v||sd("$t("),this.nestingSuffix=S?sd(S):b||sd(")"),this.nestingOptionsSeparator=C||",",this.maxReplaces=E||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let s,i,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=v=>{if(v.indexOf(this.formatSeparator)<0){const E=nj(n,u,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...o,...n,interpolationkey:v}):E}const S=v.split(this.formatSeparator),b=S.shift().trim(),C=S.join(this.formatSeparator).trim();return this.format(nj(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure),C,r,{...o,...n,interpolationkey:b})};this.resetRegExp();const h=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>a3(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?a3(this.escape(v)):a3(v)}].forEach(v=>{for(c=0;s=v.regex.exec(t);){const S=s[1].trim();if(i=d(S),i===void 0)if(typeof h=="function"){const C=h(t,s,o);i=Je(C)?C:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))i="";else if(m){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),i="";else!Je(i)&&!this.useRawValueToEscape&&(i=VU(i));const b=v.safeValue(i);if(t=t.replace(s[0],b),m?(v.regex.lastIndex+=i.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,i;const c=(u,d)=>{const h=this.nestingOptionsSeparator;if(u.indexOf(h)<0)return u;const m=u.split(new RegExp(`${h}[ ]*{`));let g=`{${m[1]}`;u=m[0],g=this.interpolate(g,i);const v=g.match(/'/g),S=g.match(/"/g);((v?.length??0)%2===0&&!S||S.length%2!==0)&&(g=g.replace(/'/g,'"'));try{i=JSON.parse(g),d&&(i={...d,...i})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,b),`${u}${h}${g}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;o=this.nestingRegexp.exec(t);){let u=[];i={...r},i=i.replace&&!Je(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let d=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const h=o[1].split(this.formatSeparator).map(m=>m.trim());o[1]=h.shift(),u=h,d=!0}if(s=n(c.call(this,o[1].trim(),i),i),s&&o[0]===t&&!Je(s))return s;Je(s)||(s=VU(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),d&&(s=u.reduce((h,m)=>this.format(h,m,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}const MFe=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(i){const[c,...u]=i.split(":"),d=u.join(":").trim().replace(/^'+|'+$/g,""),h=c.trim();n[h]||(n[h]=d),d==="false"&&(n[h]=!1),d==="true"&&(n[h]=!0),isNaN(d)||(n[h]=parseInt(d,10))}})}return{formatName:t,formatOptions:n}},ad=e=>{const t={};return(n,r,o)=>{let s=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(s={...s,[o.interpolationkey]:void 0});const i=r+JSON.stringify(s);let c=t[i];return c||(c=e(sy(r),o),t[i]=c),c(n)}};class PFe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ea.create("formatter"),this.options=t,this.formats={number:ad((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return s=>o.format(s)}),currency:ad((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>o.format(s)}),datetime:ad((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return s=>o.format(s)}),relativetime:ad((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return s=>o.format(s,r.range||"day")}),list:ad((n,r)=>{const o=new Intl.ListFormat(n,{...r});return s=>o.format(s)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ad(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(c=>c.indexOf(")")>-1)){const c=s.findIndex(u=>u.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,c)].join(this.formatSeparator)}return s.reduce((c,u)=>{const{formatName:d,formatOptions:h}=MFe(u);if(this.formats[d]){let m=c;try{const g=o?.formatParams?.[o.interpolationkey]||{},v=g.locale||g.lng||o.locale||o.lng||r;m=this.formats[d](c,v,{...h,...o,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${d}`);return c},t)}}const DFe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class LFe extends Yb{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=ea.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,n,r,o){const s={},i={},c={},u={};return t.forEach(d=>{let h=!0;n.forEach(m=>{const g=`${d}|${m}`;!r.reload&&this.store.hasResourceBundle(d,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?i[g]===void 0&&(i[g]=!0):(this.state[g]=1,h=!1,i[g]===void 0&&(i[g]=!0),s[g]===void 0&&(s[g]=!0),u[m]===void 0&&(u[m]=!0)))}),h||(c[d]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const o=t.split("|"),s=o[0],i=o[1];n&&this.emit("failedLoading",s,i,n),!n&&r&&this.store.addResourceBundle(s,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(u=>{xFe(u.loaded,[s],i),DFe(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(d=>{c[d]||(c[d]={});const h=u.loaded[d];h.length&&h.forEach(m=>{c[d][m]===void 0&&(c[d][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:i});return}this.readingCalls++;const c=(d,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(d&&h&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,i)},s);return}i(d,h)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const d=u(t,n);d&&typeof d.then=="function"?d.then(h=>c(null,h)).catch(c):c(null,d)}catch(d){c(d)}return}return u(t,n,c)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Je(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Je(n)&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(i,c)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,i),!i&&c&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,c),this.loaded(t,i,c)})}saveMissing(t,n,r,o,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const u={...i,isUpdate:s},d=this.backend.create.bind(this.backend);if(d.length<6)try{let h;d.length===5?h=d(t,n,r,o,u):h=d(t,n,r,o),h&&typeof h.then=="function"?h.then(m=>c(null,m)).catch(c):c(null,h)}catch(h){c(h)}else d(t,n,r,o,c,u)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const rj=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Je(e[1])&&(t.defaultValue=e[1]),Je(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),oj=e=>(Je(e.ns)&&(e.ns=[e.ns]),Je(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Je(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),c1=()=>{},zFe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class dm extends Yb{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=oj(t),this.services={},this.logger=ea,this.modules={external:[]},zFe(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(Je(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=rj();this.options={...o,...this.options,...oj(n)},this.options.interpolation={...o.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?ea.init(s(this.modules.logger),this.options):ea.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=PFe;const m=new JU(this.options);this.store=new ZU(this.options.resources,this.options);const g=this.services;g.logger=ea,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new OFe(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(g.formatter=s(h),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new NFe(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new LFe(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(v){for(var S=arguments.length,b=new Array(S>1?S-1:0),C=1;C<S;C++)b[C-1]=arguments[C];t.emit(v,...b)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new iy(this.services,this.options),this.translator.on("*",function(v){for(var S=arguments.length,b=new Array(S>1?S-1:0),C=1;C<S;C++)b[C-1]=arguments[C];t.emit(v,...b)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=c1),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return t.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return t.store[h](...arguments),t}});const u=Xh(),d=()=>{const h=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(g),r(m,g)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),u}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c1;const o=Je(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],i=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(d=>{d!=="cimode"&&s.indexOf(d)<0&&s.push(d)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload?.forEach?.(c=>i(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const o=Xh();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=c1),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&AY.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=Xh();this.emit("languageChanging",t);const s=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,d)=>{d?(s(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(u,function(){return r.t(...arguments)})},c=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const d=Je(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);d&&(this.language||s(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector?.cacheUserLanguage?.(d)),this.loadResources(d,h=>{i(h,d)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),o}getFixedT(t,n,r){var o=this;const s=function(i,c){let u;if(typeof c!="object"){for(var d=arguments.length,h=new Array(d>2?d-2:0),m=2;m<d;m++)h[m-2]=arguments[m];u=o.options.overloadTranslationOptionHandler([i,c].concat(h))}else u={...c};u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||r||s.keyPrefix);const g=o.options.keySeparator||".";let v;return u.keyPrefix&&Array.isArray(i)?v=i.map(S=>`${u.keyPrefix}${g}${S}`):v=u.keyPrefix?`${u.keyPrefix}${g}${i}`:i,o.t(v,u)};return Je(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.translator?.translate(...n)}exists(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.translator?.exists(...n)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(c,u)=>{const d=this.services.backendConnector.state[`${c}|${u}`];return d===-1||d===0||d===2};if(n.precheck){const c=n.precheck(this,i);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!o||i(s,t)))}loadNamespaces(t,n){const r=Xh();return this.options.ns?(Je(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Xh();Je(t)&&(t=[t]);const o=this.options.preload||[],s=t.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=o.concat(s),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new JU(rj());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new dm(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c1;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new dm(o);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(c=>{s[c]=this[c]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const c=Object.keys(this.store.data).reduce((u,d)=>(u[d]={...this.store.data[d]},Object.keys(u[d]).reduce((h,m)=>(h[m]={...u[d][m]},h),{})),{});s.store=new ZU(c,o),s.services.resourceStore=s.store}return s.translator=new iy(s.services,o),s.translator.on("*",function(c){for(var u=arguments.length,d=new Array(u>1?u-1:0),h=1;h<u;h++)d[h-1]=arguments[h];s.emit(c,...d)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Dr=dm.createInstance();Dr.createInstance=dm.createInstance;Dr.createInstance;Dr.dir;Dr.init;Dr.loadResources;Dr.reloadResources;Dr.use;Dr.changeLanguage;Dr.getFixedT;Dr.t;Dr.exists;Dr.setDefaultNamespace;Dr.hasLoadedNamespace;Dr.loadNamespaces;Dr.loadLanguages;const{slice:UFe,forEach:jFe}=[];function FFe(e){return jFe.call(UFe.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function $Fe(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const sj=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,BFe=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let s=`${e}=${o}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!sj.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!sj.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},aj={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=BFe(e,t,o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var HFe={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return aj.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:s}=t;n&&typeof document<"u"&&aj.create(n,e,r,o,s)}},qFe={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let i=0;i<s.length;i++){const c=s[i].indexOf("=");c>0&&s[i].substring(0,c)===t&&(n=s[i].substring(c+1))}}return n}},WFe={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const s=o.substring(1);if(t){const i=s.split("&");for(let c=0;c<i.length;c++){const u=i[c].indexOf("=");u>0&&i[c].substring(0,u)===t&&(r=i[c].substring(u+1))}}if(r)return r;if(!r&&n>-1){const i=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(i)?i[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let id=null;const ij=()=>{if(id!==null)return id;try{if(id=typeof window<"u"&&window.localStorage!==null,!id)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{id=!1}return id};var VFe={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&ij())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&ij()&&window.localStorage.setItem(n,e)}};let ld=null;const lj=()=>{if(ld!==null)return ld;try{if(ld=typeof window<"u"&&window.sessionStorage!==null,!ld)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{ld=!1}return ld};var GFe={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&lj())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&lj()&&window.sessionStorage.setItem(n,e)}},KFe={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let s=0;s<n.length;s++)t.push(n[s]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},YFe={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},ZFe={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},XFe={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let TY=!1;try{document.cookie,TY=!0}catch{}const IY=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];TY||IY.splice(1,1);const QFe=()=>({order:IY,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class RY{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=FFe(n,this.options||{},QFe()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(HFe),this.addDetector(qFe),this.addDetector(VFe),this.addDetector(GFe),this.addDetector(KFe),this.addDetector(YFe),this.addDetector(ZFe),this.addDetector(XFe),this.addDetector(WFe)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.filter(r=>r!=null&&!$Fe(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}RY.type="languageDetector";const OY=["__proto__","constructor","prototype"];function NY(e){return!(typeof e!="string"||e.length===0||e.length>128||OY.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:&=;\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function MY(e){return!(!NY(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}function JFe(e){return!(!NY(e)||e.indexOf("//")>-1)}const e$e={lng:MY,ns:JFe};function u1(e){return typeof e!="string"?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function t$e(e){if(typeof e!="string"||e.length===0)return e;try{const t=new URL(e);return t.username||t.password?(t.username="",t.password="",t.toString()):e}catch{return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function PY(){return typeof XMLHttpRequest=="function"||typeof XMLHttpRequest=="object"}function n$e(e){return!!e&&typeof e.then=="function"}function r$e(e){return n$e(e)?e:Promise.resolve(e)}const o$e=/\{\{(.+?)\}\}/g,cj=/^[/\\]{2}/;function uj(e,t){let n=!1;const r=e.replace(o$e,(o,s)=>{const i=s.trim();if(OY.indexOf(i)>-1)return o;const c=t[i];if(c==null)return o;const u=e$e[i]||MY,d=String(c).split("+");for(const h of d)if(!u(h))return n=!0,o;return d.join("+")});return n||cj.test(r)&&!cj.test(e)?null:r}const Pc=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof window<"u"?window:void 0;let ly;typeof fetch=="function"?ly=fetch:Pc&&typeof Pc.fetch=="function"&&(ly=Pc.fetch);const dj=PY()&&Pc?Pc.XMLHttpRequest:void 0,s$e=typeof ActiveXObject=="function"&&Pc?Pc.ActiveXObject:void 0,DY=["__proto__","constructor","prototype"],UA=(e,t)=>{if(t&&typeof t=="object"){let n="";for(const r of Object.keys(t))DY.indexOf(r)>-1||(n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]));if(!n)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+n.slice(1)}return e},fj=(e,t,n,r)=>{const o=s=>{if(!s.ok)return n(s.statusText||"Error",{status:s.status});s.text().then(i=>{n(null,{status:s.status,data:i})}).catch(n)};if(r){const s=r(e,t);if(s instanceof Promise){s.then(o).catch(n);return}}typeof fetch=="function"?fetch(e,t).then(o).catch(n):ly(e,t).then(o).catch(n)},a$e=(e,t,n,r)=>{e.queryStringParams&&(t=UA(t,e.queryStringParams));const o={...typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders};typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),n&&(o["Content-Type"]="application/json");const s=typeof e.requestOptions=="function"?e.requestOptions(n):e.requestOptions,i={method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o,...e._omitFetchOptions?{}:s},c=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{fj(t,i,r,c)}catch(u){if(!s||Object.keys(s).length===0||!u.message||u.message.indexOf("not implemented")<0)return r(u);try{Object.keys(s).forEach(d=>{delete i[d]}),fj(t,i,r,c),e._omitFetchOptions=!0}catch(d){r(d)}}},i$e=(e,t,n,r)=>{n&&typeof n=="object"&&(n=UA("",n).slice(1)),e.queryStringParams&&(t=UA(t,e.queryStringParams));try{const o=dj?new dj:new s$e("MSXML2.XMLHTTP.3.0");o.open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");let s=e.customHeaders;if(s=typeof s=="function"?s():s,s)for(const i of Object.keys(s))DY.indexOf(i)>-1||o.setRequestHeader(i,s[i]);o.onreadystatechange=()=>{o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(o){console&&console.log(o)}},l$e=(e,t,n,r)=>{if(typeof n=="function"&&(r=n,n=void 0),r=r||(()=>{}),ly&&t.indexOf("file:")!==0)return a$e(e,t,n,r);if(PY()||typeof ActiveXObject=="function")return i$e(e,t,n,r);r(new Error("No fetch and no xhr implementation found!"))},c$e=()=>({loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>{},request:l$e,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}});var LY=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...c$e(),...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){const r=setInterval(()=>this.reload(),this.options.reloadInterval);typeof r=="object"&&typeof r.unref=="function"&&r.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,r,o){let s=this.options.loadPath;typeof this.options.loadPath=="function"&&(s=this.options.loadPath(e,n)),s=r$e(s),s.then(i=>{if(!i)return o(null,{});const c=uj(i,{lng:e.join("+"),ns:n.join("+")});if(c==null){const u=e.map(u1).join(", "),d=n.map(u1).join(", ");return o(new Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+u+"] namespaces=["+d+"]"),!1)}this.loadUrl(c,o,t,r)})}loadUrl(e,t,n,r){const o=typeof n=="string"?[n]:n,s=typeof r=="string"?[r]:r,i=this.options.parseLoadPayload(o,s),c=u1(t$e(e));this.options.request(this.options,e,i,(u,d)=>{if(d&&(d.status>=500&&d.status<600||!d.status))return t("failed loading "+c+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return t("failed loading "+c+"; status code: "+d.status,!1);if(!d&&u&&u.message){const g=u.message.toLowerCase();if(["failed","fetch","network","load"].find(v=>g.indexOf(v)>-1))return t("failed loading "+c+": "+u1(u.message),!0)}if(u)return t(u,!1);let h,m;try{typeof d.data=="string"?h=this.options.parse(d.data,n,r):h=d.data}catch{m="failed parsing "+c+" to json"}if(m)return t(m,!1);t(null,h)})}create(e,t,n,r,o){if(!this.options.addPath)return;typeof e=="string"&&(e=[e]);const s=this.options.parsePayload(t,n,r);let i=0;const c=[],u=[];e.forEach(d=>{let h=this.options.addPath;typeof this.options.addPath=="function"&&(h=this.options.addPath(d,t));const m=uj(h,{lng:d,ns:t});if(m==null){i+=1,o&&i===e.length&&o(c,u);return}this.options.request(this.options,m,s,(g,v)=>{i+=1,c.push(g),u.push(v),i===e.length&&typeof o=="function"&&o(c,u)})})}reload(){const{backendConnector:e,languageUtils:t,logger:n}=this.services,r=e.language;if(r&&r.toLowerCase()==="cimode")return;const o=[],s=i=>{t.toResolveHierarchy(i).forEach(c=>{o.indexOf(c)<0&&o.push(c)})};s(r),this.allOptions.preload&&this.allOptions.preload.forEach(i=>s(i)),o.forEach(i=>{this.allOptions.ns.forEach(c=>{e.read(i,c,"read",null,null,(u,d)=>{u&&n.warn(`loading namespace ${c} for language ${i} failed`,u),!u&&d&&n.log(`loaded namespace ${c} for language ${i}`,d),e.loaded(`${i}|${c}`,u,d)})})})}};LY.type="backend";Dr.use(LY).use(RY).use(H4e).init({fallbackLng:"en",supportedLngs:["en","nl","de","fr"],ns:["common","mail"],defaultNS:"common",backend:{loadPath:"/locales/{{lng}}/{{ns}}.json"},detection:{order:["navigator","htmlTag"],caches:[]},interpolation:{escapeValue:!1},react:{useSuspense:!0,bindI18n:"languageChanged loaded"}});const u$e=({authProvider:e,rootElementId:t="root"})=>{zfe(),I4e(),e.configure(),XEe(e);const n=E4e();Afe(n);const r=new C2e({queryCache:new Sq({onError:o_e}),mutationCache:new bq({onError:s_e}),defaultOptions:{queries:{staleTime:3e4,gcTime:5*6e4,retry:1}}});A4e();const o=bFe(r,n);n.recordPageView(window.location.pathname);const s=document.getElementById(t);if(!s)throw new Error(`Root element not found: #${t}`);const{Shell:i}=e;MEe.createRoot(s).render(x.jsx(_.StrictMode,{children:x.jsx(LG.Provider,{value:n,children:x.jsxs(E2e,{client:r,children:[x.jsx(e_e,{value:e,children:x.jsx(i,{children:x.jsx(TEe,{router:o})})}),!1]})})}))};u$e({authProvider:e2e});export{dWe as $,My as A,Bt as B,Ase as C,Xae as D,Nse as E,zse as F,D$e as G,b$ as H,UF as I,Vq as J,ho as K,Op as L,Fse as M,AWe as N,Zq as O,z9e as P,Kfe as Q,tLe as R,Vse as S,Kse as T,eLe as U,FG as V,bA as W,ti as X,_qe as Y,Hb as Z,rY as _,Wc as a,Gz as a$,P6e as a0,uf as a1,p5e as a2,_R as a3,jy as a4,Cfe as a5,LI as a6,bf as a7,I9e as a8,jse as a9,qr as aA,Yqe as aB,zqe as aC,xm as aD,Vd as aE,kT as aF,pqe as aG,mqe as aH,A3 as aI,Sze as aJ,LWe as aK,xHe as aL,Bse as aM,DWe as aN,Zqe as aO,UHe as aP,bT as aQ,wBe as aR,b$e as aS,SBe as aT,dqe as aU,r9e as aV,pfe as aW,ffe as aX,dfe as aY,Qn as aZ,Dy as a_,t_e as aa,mie as ab,aze as ac,L$e as ad,kBe as ae,J$e as af,yT as ag,Ole as ah,Sl as ai,Kqe as aj,qK as ak,F as al,Vqe as am,Gqe as an,NNe as ao,rLe as ap,eBe as aq,oLe as ar,wHe as as,bHe as at,x$ as au,As as av,oB as aw,wy as ax,Is as ay,jR as az,ut as b,z6e as b$,j3 as b0,uHe as b1,N6e as b2,cqe as b3,lqe as b4,uqe as b5,SB as b6,ZK as b7,sqe as b8,iqe as b9,yWe as bA,b6e as bB,MHe as bC,hWe as bD,t3 as bE,fLe as bF,uWe as bG,sBe as bH,TWe as bI,H6e as bJ,PWe as bK,mHe as bL,yHe as bM,vHe as bN,gHe as bO,OWe as bP,RWe as bQ,DI as bR,q9e as bS,IWe as bT,NWe as bU,MWe as bV,FHe as bW,$He as bX,fp as bY,qse as bZ,gqe as b_,O6e as ba,AHe as bb,THe as bc,SLe as bd,M$ as be,aBe as bf,uce as bg,wLe as bh,MLe as bi,NLe as bj,wT as bk,Zle as bl,iBe as bm,yce as bn,vLe as bo,dHe as bp,l5e as bq,pWe as br,gWe as bs,J5e as bt,mWe as bu,fHe as bv,fWe as bw,bWe as bx,vWe as by,Pse as bz,kR as c,kse as c$,Wqe as c0,Lqe as c1,D9e as c2,EWe as c3,Ise as c4,O$e as c5,A$e as c6,_$e as c7,die as c8,T$e as c9,Ys as cA,CM as cB,Gu as cC,xle as cD,zWe as cE,K$e as cF,V$e as cG,UWe as cH,G$e as cI,jWe as cJ,uo as cK,XCe as cL,FR as cM,ABe as cN,fBe as cO,vb as cP,CWe as cQ,J9e as cR,xue as cS,y$e as cT,Nae as cU,Lae as cV,Mae as cW,qae as cX,lm as cY,Ile as cZ,Rle as c_,ZF as ca,N$e as cb,k3 as cc,S$e as cd,cie as ce,b1 as cf,cd as cg,w$e as ch,Zse as ci,ks as cj,k$e as ck,gse as cl,pie as cm,iM as cn,W$e as co,H$e as cp,q$e as cq,WHe as cr,M$e as cs,bY as ct,I$e as cu,kle as cv,M3 as cw,A$ as cx,HU as cy,HWe as cz,Jo as d,bse as d$,dBe as d0,TF as d1,D6 as d2,d$e as d3,f$e as d4,tY as d5,Iqe as d6,Rqe as d7,Tqe as d8,IF as d9,hBe as dA,DLe as dB,dLe as dC,jHe as dD,hqe as dE,HG as dF,W5e as dG,Xqe as dH,qG as dI,Jqe as dJ,la as dK,wWe as dL,pY as dM,nWe as dN,jDe as dO,eWe as dP,tWe as dQ,oue as dR,sue as dS,fue as dT,lBe as dU,bue as dV,yue as dW,QM as dX,Sue as dY,pue as dZ,Uqe as d_,kqe as da,Ve as db,Qc as dc,nBe as dd,Dqe as de,B6e as df,rBe as dg,Oqe as dh,Aqe as di,J6e as dj,U6e as dk,Ef as dl,nr as dm,mv as dn,dq as dp,y2e as dq,_2e as dr,T2e as ds,N2e as dt,I2e as du,R2e as dv,$r as dw,P2e as dx,zL as dy,O2e as dz,_3 as e,xWe as e$,pse as e0,P$e as e1,B$e as e2,z$e as e3,v$e as e4,Sse as e5,jF as e6,m$e as e7,Pae as e8,gue as e9,Wd as eA,kWe as eB,$qe as eC,Fqe as eD,p$e as eE,wqe as eF,Bqe as eG,pHe as eH,hHe as eI,Hqe as eJ,Eqe as eK,lWe as eL,cWe as eM,$We as eN,qqe as eO,iT as eP,E9e as eQ,pBe as eR,$$e as eS,Qqe as eT,SWe as eU,X5e as eV,Z5e as eW,WG as eX,XDe as eY,QDe as eZ,w9e as e_,Jie as ea,cBe as eb,DF as ec,xce as ed,Mse as ee,Xie as ef,uBe as eg,F$e as eh,ode as ei,xBe as ej,yqe as ek,rWe as el,iWe as em,Y6e as en,oWe as eo,sWe as ep,aWe as eq,vqe as er,Ly as es,wse as et,jqe as eu,Sqe as ev,Pqe as ew,JDe as ex,Cqe as ey,E6e as ez,ru as f,BWe as f$,mBe as f0,Ny as f1,vBe as f2,gBe as f3,yBe as f4,bBe as f5,xx as f6,EBe as f7,CBe as f8,D2e as f9,ZHe as fA,XHe as fB,QHe as fC,KHe as fD,_5e as fE,PHe as fF,LHe as fG,DHe as fH,oBe as fI,_He as fJ,y6e as fK,EHe as fL,kHe as fM,g$e as fN,g6e as fO,U$e as fP,_We as fQ,K6e as fR,BR as fS,Nqe as fT,Mqe as fU,eqe as fV,rqe as fW,tqe as fX,JHe as fY,nqe as fZ,C$e as f_,j$e as fa,bqe as fb,U3 as fc,cce as fd,Gse as fe,IHe as ff,RHe as fg,S6e as fh,NHe as fi,OHe as fj,Use as fk,pl as fl,YF as fm,E$e as fn,FWe as fo,uie as fp,qU as fq,oqe as fr,HHe as fs,VHe as ft,qHe as fu,aqe as fv,BHe as fw,GHe as fx,xqe as fy,YHe as fz,TI as g,Hse as g0,x$e as g1,LUe as g2,FUe as g3,R$e as g4,qUe as g5,VUe as g6,KUe as g7,Q$e as g8,tBe as g9,Rse as ga,Mle as gb,X$e as gc,Y$e as gd,Z$e as ge,fqe as h,CHe as i,x as j,zHe as k,BG as l,SHe as m,cHe as n,xy as o,bm as p,ke as q,_ as r,Fy as s,Tse as t,Im as u,LF as v,zF as w,Wse as x,lT as y,_se as z};