@zeniai/web-app-ui 4.14.28-dev → 4.14.28-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-URcYg-_E-CMrUXh7n.js → ACHDetailsPage-URcYg-_E-CnKQi3u4.js} +1 -1
- package/dist/assets/{AIPerformancePage-VILPvNCr-DoBW0TQe.js → AIPerformancePage-VILPvNCr-BPT7YRxu.js} +1 -1
- package/dist/assets/{AccountInfoPage-BTogpO7M-BeBr7bH3.js → AccountInfoPage-BTogpO7M-BUQAmyzG.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-g_X840C3-Byz3DAPs.js → AccountInfoPageContent-g_X840C3-Bf7uv7Ip.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DDNvWMEQ-6SWWVHDx.js → AccountLockedInfoModal-DDNvWMEQ-D21ggUhc.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CydLoK6D-CZ9nLIe4.js → AccountReconDetailsDrawerPage-CydLoK6D-DgTwHDXu.js} +1 -1
- package/dist/assets/{AccountRow-Zjkju8uM-h-BJkTkR.js → AccountRow-Zjkju8uM-6N6Zy9oH.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-D8mOW1Wp-DZkmz2EZ.js → AccountsPromoCardStack-D8mOW1Wp-Bllhxb1U.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-BvGnuIf6-DB5uU020.js → AddAddressForCardDrawer-BvGnuIf6-DHHz24yV.js} +1 -1
- package/dist/assets/{AddToWalletPage-BMCgd2A5-2JYacy2K.js → AddToWalletPage-BMCgd2A5-DYYQJbMt.js} +1 -1
- package/dist/assets/{AddressRoutes-BuxeYADW.js → AddressRoutes-BRhTpo4o.js} +1 -1
- package/dist/assets/{AddressScreen-C8N1fPfJ.js → AddressScreen-DDbvTrW2.js} +1 -1
- package/dist/assets/{AgingReportsPage-BL_aBNzL-Bw5_kBEe.js → AgingReportsPage-BL_aBNzL-Rfib8YTF.js} +1 -1
- package/dist/assets/{AiCfoScreen-DKeSXeDT.js → AiCfoScreen-BMeMMkhN.js} +1 -1
- package/dist/assets/{AllUserItems-b0wgd0Wz-Cmdhksre.js → AllUserItems-b0wgd0Wz-HghicmNo.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CD2EkZkg-EpN6BsXj.js → ApAgingDetailPage-CD2EkZkg-C3t2oIzS.js} +1 -1
- package/dist/assets/{AppBasePage-BM1NMPdI-BkcQFz9Y.js → AppBasePage-BM1NMPdI-DTjsrnRl.js} +1 -1
- package/dist/assets/{AppDrawerContent-XR9dBd-C-BYsZG5_k.js → AppDrawerContent-XR9dBd-C-BEm_wBDf.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-6unABLlP-C91QTWWo.js → ApprovalRulesSettingsPage-6unABLlP-Dy0-KpVU.js} +1 -1
- package/dist/assets/{ArAgingChart-DePiNxcV-B7MRrlOq.js → ArAgingChart-DePiNxcV-D_qXJGXM.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DiJ6PePf-YRaFOXlC.js → ArAgingDetailPage-DiJ6PePf-DNZvBCjF.js} +1 -1
- package/dist/assets/{AttachmentView-ENg9Osic-C_h00Xvo.js → AttachmentView-ENg9Osic-P9NYY_0P.js} +1 -1
- package/dist/assets/{BankAccountSection-oL-aN0I_-51rG79cf.js → BankAccountSection-oL-aN0I_-Dgtd5LW7.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CtRFcHTv-CaeCkm0V.js → BankAccountWarningSection-CtRFcHTv-D_XRICo4.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-B848OGHq-S0dsKmrE.js → BankConnectionsSettingsPage-B848OGHq-Cd04Ls8R.js} +1 -1
- package/dist/assets/{BillDetailPage-CPxVWXx6-LfVxiX7-.js → BillDetailPage-CPxVWXx6-1Oioq8DD.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-BwVvI4WJ.js → BillPayApprovalRoutes-D2WhMQ-d.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DtAj6RxA-B2poyBuX.js → BillPayApprovalRuleDetailPage-DtAj6RxA-cHLoC7d8.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DLHvMgeY-8GthXHpr.js → BillPayApprovalRulesPage-DLHvMgeY-o_RLMJzv.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DQJAZi1a-DOwuaVpw.js → BillPayPromoPage-DQJAZi1a-nMEmkS30.js} +1 -1
- package/dist/assets/{BillPayRoutes-Bzx279Kq.js → BillPayRoutes-BUUZZuBG.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BVOLWF1M-CpEBt_P1.js → BillPaySetUpPage-BVOLWF1M-BteYr6zk.js} +1 -1
- package/dist/assets/{BillingSettingsPage-Cfe4Vmza-DSIJr3FK.js → BillingSettingsPage-Cfe4Vmza-BztoAmNg.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-7y9q0HF_-gFD4nZqL.js → BillsBulkReviewDrawerPage-7y9q0HF_-BQu7vS0s.js} +1 -1
- package/dist/assets/{BoxItem-CTEOx6Nh-BbDYdqVh.js → BoxItem-CTEOx6Nh-C4z3ogUT.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-D05hRyo1-BMUS-iMK.js → BusinessVerificationPage-D05hRyo1-CBEBIqW_.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-DfGLG3SR.js → BusinessVerificationPageScreen-Cmz7lCYf.js} +1 -1
- package/dist/assets/{BusyIndication-Nz8htndZ-ChVc54FQ.js → BusyIndication-Nz8htndZ-DYZEgBsh.js} +1 -1
- package/dist/assets/{CardNumberSubText-DijJqFXC-B69YEX78.js → CardNumberSubText-DijJqFXC-9bJRWO6u.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BxIWU0z2-DcCubJwz.js → CashbackDetailPage-BxIWU0z2-5aSz_QAT.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-ClyQPqJf-BAQGqfmW.js → ChargeCardDetailPage-ClyQPqJf-1IHjkCeF.js} +1 -1
- package/dist/assets/{ChargeCardListPage-CYhY6c52-DRzxrfOL.js → ChargeCardListPage-CYhY6c52-CMF1P6xh.js} +1 -1
- package/dist/assets/{ChargeCardListTable-Dblodw9X-B-571jVW.js → ChargeCardListTable-Dblodw9X-CDugn7Oq.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-wt6arCEL-5ryWm6WZ.js → ChargeCardPaymentHistoryPage-wt6arCEL-CW6KbxWs.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-AihUlwys-A1x9S-W0.js → ChargeCardPromoPage-AihUlwys-Dk9L2iB8.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-4t9GJNvz.js → ChargeCardRoutes-Bi6qtFGx.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-C59WR7nm-CVteL9ef.js → ChargeCardSetupPage-C59WR7nm-BzmfqBsT.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DF5rt4B5-CiiFftIv.js → ChargeCardStatementsPage-DF5rt4B5-DgWKrTjO.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-B9-ktuL_-Cnbi1t8C.js → CheckDepositDrawerPage-B9-ktuL_-qZS941d9.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BAz0DbFh-Bx4HSBTd.js → CollapsableReportTable-BAz0DbFh-CAhAQGEZ.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BNSHkrC4-DZDeEGL9.js → CompanyOfficerDetailsSection-BNSHkrC4-ClzL1rA4.js} +1 -1
- package/dist/assets/{CompanyPassportCard-DTfKmcGv-kWFAQF4U.js → CompanyPassportCard-DTfKmcGv-De1PPEAL.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DqhT6YL_-DjGLWJH_.js → CompanyPassportPage-DqhT6YL_-C387_Sbn.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-COEYsT8F.js → CompanyPassportScreen-Bw3qq-Ht.js} +1 -1
- package/dist/assets/{CompleteProfile-DdA-FkwG-DNxHJftH.js → CompleteProfile-DdA-FkwG-CwuL_HZU.js} +1 -1
- package/dist/assets/{ConfettiBurst-Dc0iIaw3-Cdx9N-8d.js → ConfettiBurst-Dc0iIaw3-B7boQlLF.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-VX2ylo8v.js → ConnectionAuthScreen-Du50wdfI.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-B0xEPT_b.js → ConstrainedInnerElement-BeIpAPjB-DRfa7meL.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CODInbfe-CWblGuXA.js → CreateOrEditVendorPage-CODInbfe-yXgVF4QO.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-DZNUIDa0-DYeUjTKl.js → CreditCardPaymentDrawerPage-DZNUIDa0-JL4MKrF6.js} +1 -1
- package/dist/assets/{CurrencySelectField-D_D8AUqS-W5q-11LT.js → CurrencySelectField-D_D8AUqS-BZdJIXWt.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CBlyvq0r-BIiex6sW.js → CustomerOnboardingActivationPage-CBlyvq0r-BGxcXIVy.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-Bmfm6EF8.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-C9np5L3h.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-Cm7w9wnG.js → CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-CnjT99uZ.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CLFh9K94-CVAWL8GH.js → CustomerOnboardingNoStepsPage-CLFh9K94-eo3A1qkf.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-BJGDpI-d-BI8WTIh2.js → CustomerOnboardingPage-BJGDpI-d-BQ9XwM-v.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DmgQGvpp-BgPaXsEW.js → CustomerOnboardingProductSuitePage-DmgQGvpp-Bu9zcjpR.js} +1 -1
- package/dist/assets/{CustomerOnboardingRoutes-CDOn_9SO.js → CustomerOnboardingRoutes-C8nMZVtS.js} +1 -1
- package/dist/assets/{Dashboard-Cvmg-DzK-CDouUJlf.js → Dashboard-Cvmg-DzK-puV8ebMR.js} +1 -1
- package/dist/assets/{DashboardReportPage-C7bT-gmW-B7qKYPTM.js → DashboardReportPage-C7bT-gmW-B8nCLsAW.js} +1 -1
- package/dist/assets/{DashboardRoutes-Ca715xZt.js → DashboardRoutes-Cs6trW6R.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CcTStx9W-CLXLQ3Wl.js → DashboardSidebarBackgroundAnimation-CcTStx9W-Bnz6LhkJ.js} +1 -1
- package/dist/assets/{DefaultTenantHome-zrpUM-2h.js → DefaultTenantHome-RFtlxhsO.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-XZgomj7v-pud7es11.js → DepositAccTransactionItem-XZgomj7v-Bhnnv8Ar.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-B11lcuip-BA6bJfDH.js → DepositAccTransactionListPage-B11lcuip-BIFNXmB4.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-BGqZWgZd.js → DomesticWireDetailScreen-CDquLvw_.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-Cw4aq8Ar-Bz2WPHpK.js → DomesticWireDetailsPage-Cw4aq8Ar-D7iaVqqU.js} +1 -1
- package/dist/assets/{DownloadOverlay-DE63RFQe-VsFfbW3d.js → DownloadOverlay-DE63RFQe-rm17dQJa.js} +1 -1
- package/dist/assets/{DrawerPage-DGuh6P-6-CJKJMwA-.js → DrawerPage-DGuh6P-6-BcyuUjYZ.js} +1 -1
- package/dist/assets/{DrawerScreen-V32qwnkz.js → DrawerScreen-C-gJlwdg.js} +1 -1
- package/dist/assets/{EditPeoplePage-Dmz2l8uY-CK4iVJZr.js → EditPeoplePage-Dmz2l8uY-DdG9SBff.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-BrQ60mqq-BxmG6xVG.js → EditReimbursementDetailPage-BrQ60mqq-BnVEgdU7.js} +1 -1
- package/dist/assets/{EntityDetailPage-BbeHCNGS-C5UPIJtj.js → EntityDetailPage-BbeHCNGS-CuhXo5UK.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-BxYqKDQd.js → EntityDetailRoutes-Bjmke2zn.js} +1 -1
- package/dist/assets/{EntitySummarySection-BgjWn9vX-ChJDfPvK.js → EntitySummarySection-BgjWn9vX-B3b1MF7S.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-V2cvYWxH-C16OEZnu.js → ExpenseAutomationOverviewPage-V2cvYWxH-CNs6UVeS.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BDZ6aX0q-DJ_VB_IO.js → ExpenseAutomationPage-BDZ6aX0q-DC7_gDiI.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-Dbfi_osP.js → ExpenseAutomationRoutes-N5IH8NJS.js} +1 -1
- package/dist/assets/{ExpressPayPage-5VdASApP-Po6fvmnX.js → ExpressPayPage-5VdASApP-D9MlPJBc.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CA_fxOHn-CMqOKpmQ.js → FeaturePreviewPage-CA_fxOHn-Bf1rij6M.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-C5OPsEGq.js → FeaturePreviewScreen-CLKJ2QAB.js} +1 -1
- package/dist/assets/{FollowStepsSection-CTSjTKjT-D1lTh6HA.js → FollowStepsSection-CTSjTKjT-BGVIDRAe.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DmrnXFgW-CX1Z-LFj.js → GlobalReviewListPage-DmrnXFgW-B57SMtSt.js} +1 -1
- package/dist/assets/{InformationCardStack-D_Z7Ebe0-CcLIhUuZ.js → InformationCardStack-D_Z7Ebe0-CrFTMoBP.js} +1 -1
- package/dist/assets/{InsightsCardStack-Dbpzjgf4-fdUWj0-e.js → InsightsCardStack-Dbpzjgf4-CmY1A9uH.js} +1 -1
- package/dist/assets/{InsightsSection-DgViiL7e-CyZzflwi.js → InsightsSection-DgViiL7e-D07WWVHm.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-4OV7HFwe-DB-wBCWA.js → IntegrationsSettingsPage-4OV7HFwe-DZdJwIZ8.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-B1nvNamF-Csz75ldD.js → InternationalWireSwiftDetailsPage-B1nvNamF-BTijFGVO.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-HZgqUkj4-BeRgJyDk.js → InternationalWireVerificationPage-HZgqUkj4-BQdwtp6K.js} +1 -1
- package/dist/assets/{InviteFormPage-C5mS-6c8-DHEfB4pP.js → InviteFormPage-C5mS-6c8-CQ3pBA8X.js} +1 -1
- package/dist/assets/{InvitePageListView-Yj83_lDA-DG8kjHEN.js → InvitePageListView-Yj83_lDA-BObL1UwR.js} +1 -1
- package/dist/assets/{InvitePeoplePage-C7DlxHsy-CbV9Kfvk.js → InvitePeoplePage-C7DlxHsy-Ch_cCeBl.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DdIQCBkC-hgUkpCX_.js → InvoiceUploadSection-DdIQCBkC-B4QsOjKN.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-BIOTVOMR-y141Zbnw.js → IssueChargeCardPage-BIOTVOMR-BjJzOdS5.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Bb1x9jR--B6kyu-d_.js → LabeledAddressValue-Bb1x9jR--K66XVI1l.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-D3_DsNPu-DBYOiYu9.js → LabeledAddressValueField-D3_DsNPu-DVmbiKLN.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DdHmj0q2-DFcQf8uf.js → LabeledControlledCheckBoxField-DdHmj0q2-BmQSyhgm.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-LeubJT8b-DTiRo8mi.js → LabeledCountryMultiSelectField-LeubJT8b-DKahjV4C.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CzrPLo-T-WU7xdxt6.js → LabeledCreatableSingleSelectField-CzrPLo-T-BnUMrxSH.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CFtFroDl-BZ61zQ53.js → LabeledDocumentField-CFtFroDl-BAzH2vry.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CFsuVVp3-BWloCe5f.js → LabeledDropDownFormattedTextField-CFsuVVp3-Cllg2-kq.js} +1 -1
- package/dist/assets/{LabeledEmailInputField-BOEHGgHy-DmP8tNRS.js → LabeledEmailInputField-BOEHGgHy-B8PcLj3U.js} +1 -1
- package/dist/assets/{LabeledNameField-DWKoivcI-CTKa3xQk.js → LabeledNameField-DWKoivcI-Bg7Loxzf.js} +1 -1
- package/dist/assets/{LabeledSingleSelectField-BkGsnV9P-L8vud565.js → LabeledSingleSelectField-BkGsnV9P-BmcuJIvo.js} +1 -1
- package/dist/assets/{LabeledText-CZMUFsPf-BSb4-Hu0.js → LabeledText-CZMUFsPf-BzxAzPVQ.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-D96FBec7.js → LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-CA9RNgOe.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-C3LoYUh_-CUGSemOL.js → LabeledZeniRolesDropDownField-C3LoYUh_-B2cjpWvF.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-BbpybbwD-BZQW-eEy.js → LinkJETransactionPage-BbpybbwD-CgRdsDGC.js} +1 -1
- package/dist/assets/{LockCardPage-C0XjGES8-Dv5p7F-M.js → LockCardPage-C0XjGES8-DzPwjGzp.js} +1 -1
- package/dist/assets/{LowBalancePopup-CkO97HGX-C-OMTelo.js → LowBalancePopup-CkO97HGX-nozhu0WG.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CcaWGIEm-CBJpUCPj.js → MagicLinkACHDetailsPage-CcaWGIEm-3uajWvNb.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-6V37rCS5-DlEVkMTv.js → MagicLinkDomesticWireDetailsPage-6V37rCS5-Dxqj-iaP.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BKWBDCxr-1pJwpVUJ.js → MagicLinkInternationalWireDetailsPage-BKWBDCxr-BHR9xOJ3.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-0i3kRHtF.js → MagicLinkRoutes-D99wiuRu.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-8oYCtfCr.js → MagicLinkSignInScreen-D9jNjUlX.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-L5UJIvTe-Ds_uEzRm.js → MagicLinkSuccessPage-L5UJIvTe-BW7N1yCO.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CEZGF8ER-CtJhgwJN.js → MagicLinkTitleSection-CEZGF8ER-DCWrw88D.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CRsQVOYi-DVyOc3HW.js → MailingDetailsSection-CRsQVOYi-xwOtQnim.js} +1 -1
- package/dist/assets/{MobileAppDrawer-vjIJyx5N.js → MobileAppDrawer-D_OmB8VL.js} +1 -1
- package/dist/assets/{MoreMenuButton-BWNCapgP-CobtazoG.js → MoreMenuButton-BWNCapgP-BFDpJyIR.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-C6p5J_f5-aGTzDXcW.js → MyBankConnectionsSettingsPage-C6p5J_f5-2jAZ0hVQ.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CluWS3nS-3Mvvi7l1.js → MyPendingActivationChargeCardListPage-CluWS3nS-DHrdaNvb.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-Ctkx_sAQ-BJzrBUg_.js → MyProfileSettingsPage-Ctkx_sAQ-BiLtfbOe.js} +1 -1
- package/dist/assets/{NavBarWithPicker-ClP6LCUF-B_agyqrI.js → NavBarWithPicker-ClP6LCUF-D7FqbQNc.js} +1 -1
- package/dist/assets/{NavigationArrow-CUPvxfZv-DFdgHBv5.js → NavigationArrow-CUPvxfZv-CROxnh_J.js} +1 -1
- package/dist/assets/{NavigationDots-Cu9LZj7T-BaBE0dTx.js → NavigationDots-Cu9LZj7T-BoVhghfD.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-g9JuX6MR-DfxwRkm2.js → NewGlobalMerchantPage-g9JuX6MR-Cddrtv6r.js} +1 -1
- package/dist/assets/{NoDataChart-DcMRzXHU-BWuTQSGS.js → NoDataChart-DcMRzXHU-DbjmTgYu.js} +1 -1
- package/dist/assets/{NoDataTable-D1v085Vv-TbZCkeJw.js → NoDataTable-D1v085Vv-CeExg0EA.js} +1 -1
- package/dist/assets/{NotFoundPage-Bf-EPtU9-B60UYrLG.js → NotFoundPage-Bf-EPtU9-DffpH6WC.js} +1 -1
- package/dist/assets/{NotFoundScreen-BlOJVroe.js → NotFoundScreen-DykxXNVn.js} +1 -1
- package/dist/assets/{NotificationRoutes-CKAGXrkl.js → NotificationRoutes-C-lRR8pY.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-Zv4-2vEl-Dq8r17oD.js → NotificationSettingsPage-Zv4-2vEl-CP53OCrD.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CO5uOSs7-B3Op3ktj.js → NotificationsListConfig-CO5uOSs7-aAnj3j2i.js} +1 -1
- package/dist/assets/{NotificationsPage-BH6B4Q8b-YOVbk2c7.js → NotificationsPage-BH6B4Q8b-D1IQhl37.js} +1 -1
- package/dist/assets/{OpExByVendorPage-EjyJRLhn-jezrc1pM.js → OpExByVendorPage-EjyJRLhn-BhVe3s3b.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-DZKwQHwV.js → OverlayContainerPage-D4QU0p4o-C20bjbix.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-UpDz4Qqu-fjMo0Gtf.js → PandLWithForecastPage-UpDz4Qqu-BN-vVvpP.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-TX6P7Zrq.js → PandLWithForecastRoutes-zzKekdOK.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CqavirRU-DO80n7FW.js → PaymentAccountSetupBillingAddressSection-CqavirRU-BkF9Y6IP.js} +1 -1
- package/dist/assets/{PeoplePage-D2N1XP-O-DKs_D4Fh.js → PeoplePage-D2N1XP-O-caSWGUZc.js} +1 -1
- package/dist/assets/{PeopleRoutes-C8mODapz.js → PeopleRoutes-CsdzM7DQ.js} +1 -1
- package/dist/assets/{PerformanceRoutes-DiU5fqKk.js → PerformanceRoutes-DoL3UdHs.js} +1 -1
- package/dist/assets/{Preview-CqLia4uG.js → Preview-BI7JdS0A.js} +1 -1
- package/dist/assets/{ProductsCarousel-Dx8bStwI-C44-19N7.js → ProductsCarousel-Dx8bStwI-DCDAdb91.js} +1 -1
- package/dist/assets/{PromoBaseCards-Bauxzwzt-Dgaaf2yK.js → PromoBaseCards-Bauxzwzt-D83UTBk-.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-COlHLDTh-CjJgFUeC.js → QBOConnectionDialog-COlHLDTh-Ca5S7kv5.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-AtAIA8jj.js → QBOConnectionScreen-Bdjj5_fC.js} +1 -1
- package/dist/assets/{QBOSetupSection-Cb4AlHU9-BpQhAPPt.js → QBOSetupSection-Cb4AlHU9-D57sQXWJ.js} +1 -1
- package/dist/assets/{ReferralListScreen-XiiAfJ90.js → ReferralListScreen-CmCz8zc8.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-BocYdQhD.js → ReimbursementApprovalRoutes-Cei43fBO.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cb4wyiiA-PPkCr8xd.js → ReimbursementApprovalRuleDetailPage-Cb4wyiiA-5a2mo1SI.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DPE-kSBA.js → ReimbursementApprovalRuleDetailScreen-D1GmaX--.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BEid42KU-DeLels1v.js → ReimbursementApprovalRulesPage-BEid42KU-CqL0yvKr.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CuuOsKPv-BPEFJ0xe.js → ReimbursementDetailPage-CuuOsKPv-BmGXaLa_.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-fvIAhNdR-CSg5BemV.js → ReimbursementPromoPage-fvIAhNdR-CIqsc5v3.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-ZXUNkUzw.js → ReimbursementRoutes-CtyvtqmD.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-CBKANstD-CdxQGkDo.js → ReimbursementSetUpPage-CBKANstD-CS_Qn9By.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BXO46shT-Ki-BIH8Q.js → ReimbursementsBulkReviewDrawerPage-BXO46shT-BXeQO4_5.js} +1 -1
- package/dist/assets/{ReloadCard-BKHKE8Pu-B3lPeTvz.js → ReloadCard-BKHKE8Pu-BkEOOlFz.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-gYxUii1M-BhXMqYN6.js → ReportTableViewSelector-gYxUii1M-CxYX420D.js} +1 -1
- package/dist/assets/{ReportsPage-D7rEPLAa-CczMmifR.js → ReportsPage-D7rEPLAa-CTGwy7xH.js} +1 -1
- package/dist/assets/{ReportsRoutes-CZ3tnE-5.js → ReportsRoutes-DzvU0X2a.js} +1 -1
- package/dist/assets/{RevenueChart-BHrj8Dy9-Bgtbsht_.js → RevenueChart-BHrj8Dy9-CDfFyh6U.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-B9SMV_va-PLuKyyKj.js → ReviewDetailsPage-B9SMV_va-DpCKxVZs.js} +1 -1
- package/dist/assets/{ReviewOverlay-Be_F1hd--Aq5DKqVU.js → ReviewOverlay-Be_F1hd--BbTRhL0o.js} +1 -1
- package/dist/assets/{RewardsRoutes-OB-0XHFr.js → RewardsRoutes-vGh4ydPL.js} +1 -1
- package/dist/assets/{RoleWithToolTip-D9DCHaph-Ct3ZRTHm.js → RoleWithToolTip-D9DCHaph-BK_HFdm8.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-h1Ewtn5T-DRtWGNvu.js → ScheduleDetailsFixedAssetsPage-h1Ewtn5T-BEUluqGW.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-Cr-KaH2D-B1Q1jbwo.js → ScheduleDetailsPage-Cr-KaH2D-BD6uE37t.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BBbLa0gA-C54SUt--.js → ScheduleSequenceTable-BBbLa0gA-BpQ_H6dR.js} +1 -1
- package/dist/assets/{ScreenRoutes-Dj6yeCaN.js → ScreenRoutes-Ddt_3qWB.js} +2 -2
- package/dist/assets/{SetUpAccountSection-ULABF-Md-DYZnUdRJ.js → SetUpAccountSection-ULABF-Md-zu_CEzKT.js} +1 -1
- package/dist/assets/{SettingsRoutes-CK_IQzwc.js → SettingsRoutes-DjjTCzCe.js} +1 -1
- package/dist/assets/{SetupPagesScreen-B28b7eDr.js → SetupPagesScreen-n_J03kZN.js} +1 -1
- package/dist/assets/{SignIn-6YH_riJW-DzqdPViU.js → SignIn-6YH_riJW-CoJmoytJ.js} +1 -1
- package/dist/assets/{SignInScreen-Jslx5-TX.js → SignInScreen-C81bBqwd.js} +1 -1
- package/dist/assets/{SignOutScreen-D56BFgpr.js → SignOutScreen-CEuaozcz.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-D_RrkezV-ELAXLz4H.js → SpendManagementListViewPage-D_RrkezV-Gg_jrdXn.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BnugLA94-vwewauIW.js → SpendManagementPerTabPage-BnugLA94-ISau-F_A.js} +1 -1
- package/dist/assets/{SpendManagementSection-DCk1isQq-BuKHrb4M.js → SpendManagementSection-DCk1isQq-DqP3iWuL.js} +1 -1
- package/dist/assets/{StatementItem-BWKA6BsE-BBtXJaEH.js → StatementItem-BWKA6BsE-B8aggs_N.js} +1 -1
- package/dist/assets/{StatementsPage-C5KuiVH4-Cf4qB6ps.js → StatementsPage-C5KuiVH4-BGiHKDOi.js} +1 -1
- package/dist/assets/{StatusSwitcher-CgzMvf5t-ncrbliMU.js → StatusSwitcher-CgzMvf5t-BZOhbmQ7.js} +1 -1
- package/dist/assets/{SubTabSwitcher-gc5g6vV0-BudAZpBJ.js → SubTabSwitcher-gc5g6vV0-DPlVBwi9.js} +1 -1
- package/dist/assets/{SuccessAnimation-CcFXT4sg-BtvDv4Ac.js → SuccessAnimation-CcFXT4sg-BETTrulo.js} +1 -1
- package/dist/assets/{SummaryCard-DgPg2oPm-TIRnserH.js → SummaryCard-DgPg2oPm-DQSV3AJ_.js} +1 -1
- package/dist/assets/{TaskDetailPage-Brq3l5Lm-js01YZsk.js → TaskDetailPage-Brq3l5Lm-D1g8XH38.js} +1 -1
- package/dist/assets/{TaskListScreen-PaUFhtYL.js → TaskListScreen-D_rI0d2T.js} +1 -1
- package/dist/assets/{TaskManagementPage-Dyy-A0ij-kAppPPcp.js → TaskManagementPage-Dyy-A0ij-BRtOKHgc.js} +1 -1
- package/dist/assets/{TaskRoutes-DNKzAv87.js → TaskRoutes-CcAxScvl.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-PcHPZNOq-DyMi_xu3.js → TimeRangeSwitcher-PcHPZNOq-Bhy6ebhC.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-XZjkUS_W-DEhbHF-x.js → TimeframeSwitcher-XZjkUS_W-L_xk8ffg.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-KxCdrFMS-CmMYWc36.js → TimeframeSwitcherWithToggle-KxCdrFMS-aH0QwP3R.js} +1 -1
- package/dist/assets/{TopExCard-CRxFMC50-CucHTjUq.js → TopExCard-CRxFMC50-DI0Ys14u.js} +1 -1
- package/dist/assets/{TopExDetailPage-D7dCJGpQ-_APvVGdT.js → TopExDetailPage-D7dCJGpQ-0fQzChNa.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-ByyxovGE-B8-_ivhT.js → TransactionActivityLogPage-ByyxovGE-DjV_kYSi.js} +1 -1
- package/dist/assets/{TransactionDetailPage-D0_Tjv5D-BbvOSya5.js → TransactionDetailPage-D0_Tjv5D-BzMxrc83.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-BBeHV_Bn.js → TransactionDetailRoutes-CKp9VtFU.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-BnLwFmdM.js → TransactionDetailScreen-BB7cA6Qz.js} +1 -1
- package/dist/assets/{TransactionList-DoYieHoy-MtmaAm18.js → TransactionList-DoYieHoy-Dq8Ds1Cb.js} +1 -1
- package/dist/assets/{TransactionListBig-BOKPby7d-BiHGWKXG.js → TransactionListBig-BOKPby7d-BEnm2yMd.js} +1 -1
- package/dist/assets/{TransactionListPage-Bfx0PW2V-Ko7n0w0K.js → TransactionListPage-Bfx0PW2V-Bv5CoGoz.js} +1 -1
- package/dist/assets/{TransactionListRoutes-D6vFloa7.js → TransactionListRoutes-C8lRyPOF.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BK4zpJ1F-BT9vQvKO.js → TransactionVendorDetailPage-BK4zpJ1F-CN3xlCoQ.js} +1 -1
- package/dist/assets/{TransferDrawerPage-B5ofYt0y-GCYB9I81.js → TransferDrawerPage-B5ofYt0y-GqcyFVry.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-D4LuhPMd-FpA9c7P5.js → TreasuryOverviewPage-D4LuhPMd-CAEUMavm.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-ofZQDboF-BK7GFuNm.js → TreasuryPromoPage-ofZQDboF-CT-dKX0-.js} +1 -1
- package/dist/assets/{TreasuryRoutes-DQPlHyww.js → TreasuryRoutes-aZ6pdLcv.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-D4bGPC_n-C9CJ9i1a.js → TreasuryStatementsPage-D4bGPC_n-BmKF81fd.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-4aV14kQe-Bg3G6zgb.js → TreasuryTaxLetterPage-4aV14kQe-DVnspMQ5.js} +1 -1
- package/dist/assets/{TrendChart-BJLik8fK-C09X9QMT.js → TrendChart-BJLik8fK-B6jK66HA.js} +1 -1
- package/dist/assets/{TrendWithTransactions-R1FCSydB-Ci1yaQBG.js → TrendWithTransactions-R1FCSydB-BZtJh6Ko.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-mYSXtdgK-mpKZn3rt.js → UncategorizedAccountsMappingPage-mYSXtdgK-C0jjOEyX.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-C44UiDRH-C1DPzFjn.js → UnitIntegrationPage-C44UiDRH-CnXGyk33.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CJmvE3y6-D4_Nm785.js → UploadAdditionalDocumentOverlay-CJmvE3y6-B0vgA0Ji.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Bt_phaZI-DRgs4wjV.js → Vendor2FAPopup-Bt_phaZI-DuVfk6Oy.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CxlQSWGZ-Fo80chk3.js → VendorACHDetailsPage-CxlQSWGZ-CJCZBXzk.js} +1 -1
- package/dist/assets/{VendorDetailPage-BixXt95H-DDRHGc3v.js → VendorDetailPage-BixXt95H-CEzpHcoG.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-BmFZeCgu-3p9zequ6.js → VendorDomesticWireDetailsPage-BmFZeCgu-DciG2YXd.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DIyS2YV_-CSGr8UHs.js → VendorFiling1099EditablePage-DIyS2YV_-BSd00dOl.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-DZ00XYRi-Bujg7mnV.js → VendorFirstReviewPage-DZ00XYRi-COzJ3EOL.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DOYmaAmB-DkdpvBe3.js → VendorInternationalWireDetailsPage-DOYmaAmB-CP8642Mt.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BCafZBL5-O4Et_Cvx.js → VendorInternationalWireSwiftDetailsPage-BCafZBL5-De6VzWbh.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D6DinIAj-CJyfm4FF.js → VendorsAccountsSection-D6DinIAj-BpUOgRZp.js} +1 -1
- package/dist/assets/{VendorsRoutes-BzRnsTCQ.js → VendorsRoutes-BcdOO99u.js} +1 -1
- package/dist/assets/{VerifyDevice-DFug_o82-BbsyIuwM.js → VerifyDevice-DFug_o82-D9msA2pt.js} +1 -1
- package/dist/assets/{VideoPlayer-BuOlZW0M-DUvqMJGc.js → VideoPlayer-BuOlZW0M-BMl86S4m.js} +1 -1
- package/dist/assets/{VideoPopup-B03SM83j-CEO910rC.js → VideoPopup-B03SM83j--LOH40s0.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-Be46vSWM.js → WiseConfirmationScreen-D_LadT7o.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-BJQvxY7D-0WnS8PEZ.js → ZeniAccountDetailPage-BJQvxY7D-DuzKrnCG.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CvwGdUPT-CLqSbTJn.js → ZeniAccountListViewPage-CvwGdUPT-Bay6wmzi.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-OGXEdZmI-WHE_ZaHO.js → ZeniAccountNavBarPieces-OGXEdZmI-DsgZBmco.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-iELT-FzW-B54bB-Au.js → ZeniAccountPromoPage-iELT-FzW-BjCD72m0.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-ked1y8nK.js → ZeniAccountRoutes-DBnPGXKs.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-feqonZIV-DuQlAwjx.js → ZeniAccountSetupPage-feqonZIV-CG1KriVL.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-t9W5AfJc.js → ZeniAccountStatementScreen-Br16O1Ed.js} +1 -1
- package/dist/assets/{ZeniAvatar-CHmpyZc4-xmYCp34T.js → ZeniAvatar-CHmpyZc4-D3SEyYvU.js} +1 -1
- package/dist/assets/{ZeniCopyright-Cy7xQhak-DdKCW6EI.js → ZeniCopyright-Cy7xQhak-ScelyO6I.js} +1 -1
- package/dist/assets/{ZeniDatePicker--Wk1Y9-b-Ikkm7YIY.js → ZeniDatePicker--Wk1Y9-b-DVDC_pYc.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BGK6jY7c-DnMJhxcK.js → ZeniTransferAmountSlider-BGK6jY7c-BE0jJw55.js} +1 -1
- package/dist/assets/{accountMappingHelper-B5TnMmqA.js → accountMappingHelper-CTk3qsZA.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-Buw9XYbC.js → add-to-wallet-DgdBD8_G-DBixabBc.js} +1 -1
- package/dist/assets/{analytics-D7HtemTn.js → analytics-DeMdmyL7.js} +1 -1
- package/dist/assets/{analyticsHelper-CpXIJxUL.js → analyticsHelper-LPY3WkeX.js} +1 -1
- package/dist/assets/{analyticsHelper-MsboCQcB-ClYGtAlc.js → analyticsHelper-MsboCQcB-CSXrY7fF.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-BfE1l1sB.js → arrow-south-east-round-PEovUgvH-CpIzET1p.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-Dbmd4uJS.js → auto-transfer-rule-mbafm5D3-NghmWVqE.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d-C2PjdQVT.js → avatar-Dz7aEm3d-bHemC5rL.js} +1 -1
- package/dist/assets/{calculateSize-DtEgyuiA-BJxqaIDz.js → calculateSize-DtEgyuiA-CjEqHti4.js} +1 -1
- package/dist/assets/{chartTypes-BZL6U2-d-UPGybQZE.js → chartTypes-BZL6U2-d-jpm0hHlK.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-BhyIm3xG.js → clock-CJkylEKt-7F524_Wn.js} +1 -1
- package/dist/assets/{common-DspMM85g-eqBRfeMW.js → common-DspMM85g-CC6Rl9Du.js} +1 -1
- package/dist/assets/{commonDimensions-RZ10geET-CQLnP9WR.js → commonDimensions-RZ10geET-CKOh47Tk.js} +1 -1
- package/dist/assets/{commonTypes-lunwFIdl-BTgH3sp5.js → commonTypes-lunwFIdl-CvIuXwQA.js} +1 -1
- package/dist/assets/{core-ADrPabGT.js → core-CSCSHf4h.js} +1 -1
- package/dist/assets/{dash.all.min-B80Fjk6g.js → dash.all.min-DD8xAjYr.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-B2klyNYm.js → decodeURIComponentSafe-CjRggx5I.js} +1 -1
- package/dist/assets/{detailCommon-CxEOrtjx-XTML3r_I.js → detailCommon-CxEOrtjx-Ct263sBr.js} +1 -1
- package/dist/assets/{dnd-83aXbnEf.js → dnd-COr1F31f.js} +1 -1
- package/dist/assets/{dollar-round-D18u7nlm-DpqHsegv.js → dollar-round-D18u7nlm-jCztdMWk.js} +1 -1
- package/dist/assets/{downloadPdf-BpxrRqLr-Dq9Hm-Yk.js → downloadPdf-BpxrRqLr-DZAS6b5B.js} +1 -1
- package/dist/assets/{empty-BuW7JTEu.js → empty-BUd3exG5.js} +1 -1
- package/dist/assets/{empty-b7G9eJAG.js → empty-CxBrUVur.js} +1 -1
- package/dist/assets/{epic-PnA5OGYq.js → epic-DybEFF0H.js} +1 -1
- package/dist/assets/{filter-cZIFUNvj-FUBo8Jnl.js → filter-cZIFUNvj-CXXx4fNz.js} +1 -1
- package/dist/assets/{getLocaleForTenant-Bt4tLJ8B.js → getLocaleForTenant-CjEkOXZy.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-BGtl8O0W.js → gift-box-Cmt9OgIZ-CKc8hoEH.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-ExJA3UCE.js → graphic-no-data-l-DU4J8fDt-C4iKOud4.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BakRM2hs.js → graphic-no-data-net-burn-l-CzmycA0m-VLqn_raX.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DEzA3ltI.js → handshake-BPg58FML-DNYsMVIY.js} +1 -1
- package/dist/assets/{helper-2Z01-P8G-D7tgV0Ug.js → helper-2Z01-P8G-6WuzcTRW.js} +1 -1
- package/dist/assets/{hyperlink-DQyCeXx2-ky2ivvTP.js → hyperlink-DQyCeXx2-CQAWbGo_.js} +1 -1
- package/dist/assets/{index-BC_OqBzO.js → index-BOP14OKw.js} +1 -1
- package/dist/assets/{index-DjP1wQjH.js → index-BRX_XEL-.js} +1 -1
- package/dist/assets/{index-Bl4vUMlL.js → index-CCO5Gdps.js} +1 -1
- package/dist/assets/{index-DAaNy4V6.js → index-CWdL8pZi.js} +1 -1
- package/dist/assets/{index-DorX0WX8.js → index-DDbdy58V.js} +6 -6
- package/dist/assets/{index-B9b8RnaK.js → index-iatqQdID.js} +1 -1
- package/dist/assets/{lexical-BGYE9Sy4.js → lexical-O2a-WmAf.js} +1 -1
- package/dist/assets/{liveblocks-f_lxxH57.js → liveblocks-CxtxQte5.js} +1 -1
- package/dist/assets/{lottie-sNoV77jf.js → lottie-BQDwpIDJ.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-BJRnX8Ir-CTwzTgVL.js → mapLoadingInProgressToTreeNode-BJRnX8Ir-U3ElZRzN.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode--0eoufeA-BVEmfqf7.js → mapSectionWithAcOnlyToTreeNode--0eoufeA-Z11hNQZX.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CQvnRjWo-D94Aabob.js → mapSpacerToTreeNode-CQvnRjWo-CdPsLyjM.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CY0Vs8kK-BW2bp0f8.js → mapTimeframeBalancesToTreeNode-CY0Vs8kK-DzlhNi2D.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cytg0KxN-BW6Ya40z.js → mapTimeframeBalancesToTreeNode-Cytg0KxN-BBQ4MiQI.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DkTIrIkC.js → mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DB9phXRk.js} +1 -1
- package/dist/assets/{media-player-D1K6tfw6.js → media-player-En9R4zy-.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-DajJjl7a.js → money-2cg1MuG4-Dg41nRSv.js} +1 -1
- package/dist/assets/{mui-gZ2J-2YO.js → mui-CVWe5m7x.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-mMS9vUC4.js → page-detail-CWX5S47F-BOzcKZnj.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-DhjZazqO.js → page-summary-D7_VQHwN-CcrLQmlI.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-DyRjm7kt.js → panelSelectedMixin-CzfD5-Zs-DlyoL7DQ.js} +1 -1
- package/dist/assets/{pathToGoBack-BvSUl7ma.js → pathToGoBack-DIP3w2mF.js} +1 -1
- package/dist/assets/{pdf-lib-uBsrmHT5.js → pdf-lib-JWzwvdNX.js} +1 -1
- package/dist/assets/{pdf-BNA4Ou8X.js → pdf-rNAmIEF5.js} +3 -3
- package/dist/assets/{plaid-DS3FargU.js → plaid-CiVnbkxs.js} +1 -1
- package/dist/assets/{pusher-fI6e2fO0.js → pusher-CfFxSIhQ.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-BlGVs6W5.js → radio-default-CiSgisfh-dW1yKl4Q.js} +1 -1
- package/dist/assets/{react-PTvHN8FL.js → react-4TAXbemT.js} +3 -3
- package/dist/assets/{react-DGUD67o4.js → react-BLXPSNxU.js} +1 -1
- package/dist/assets/{react-aVJXH_ps.js → react-BQsk4BoF.js} +1 -1
- package/dist/assets/{react-pv23IQaZ.js → react-BeMs2FpL.js} +1 -1
- package/dist/assets/{react-DGs-yfEB.js → react-C8m8Qc1h.js} +1 -1
- package/dist/assets/{react-ihVT-KIV.js → react-CWo9VOAE.js} +1 -1
- package/dist/assets/{react-Dhg_7JXq.js → react-DRNApT94.js} +1 -1
- package/dist/assets/{react-2oa8mqCY.js → react-DreXWt5i.js} +1 -1
- package/dist/assets/{recharts-BKvR8EI0.js → recharts-C5pBg015.js} +1 -1
- package/dist/assets/{routePaths-BozUSOR4.js → routePaths-fz0y1bUD.js} +1 -1
- package/dist/assets/{sentry-tRTnR5ia.js → sentry-DXG8OAzW.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-c8MRbcLE.js → shield-DOlUxcFf-Cd3QAXsn.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-B-j1Sn9h.js → spend-limit-D6SyboD4-D2szeI3Z.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DzAIFjHl-Bv5FILWN.js → toCOABalancesWithID-DzAIFjHl-Dd4AXSDY.js} +1 -1
- package/dist/assets/{toChartData-BurvmO_S-tegfOE4s.js → toChartData-BurvmO_S-Dcja8_o1.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-B1W5bE7h.js → transaction-placeholder-CpOwZAMG-B2mLzfbH.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-CWSUI7Te.js → undo-b_3XZ5CX-DSJzH_Tn.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-DofDRoYu.js → unlock-BPWn2I5L-Do1fnqx6.js} +1 -1
- package/dist/assets/{uploadAttachment-DtJo5Tp4-I2f6VcnN.js → uploadAttachment-DtJo5Tp4-BZBGp8x9.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-CtnQO8tO.js → uploadReceipts-Dge0cNF1-Bk3l52rk.js} +1 -1
- package/dist/assets/{url-DgsAV5vb.js → url-D1_xUHHk.js} +1 -1
- package/dist/assets/{url-C7onmSKg.js → url-DHNwFLzp.js} +1 -1
- package/dist/assets/{useDeviceId-DXjMFBrp.js → useDeviceId-CbEpWwMZ.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CVIIrf8B.js → useInitialThreadRequest-B_AZH90H.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BErt8Gng.js → useLongPress-GCK2COYQ-B5PGidsY.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-Vkz6UgtT.js → usp-line-BBd1wKwW-BIw6ZPFi.js} +1 -1
- package/dist/assets/{utils-VuBQoQGa.js → utils-CEFC9M68.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DCoGJOSb.js → withTransactionSidePanel-CV9mcG0R.js} +1 -1
- package/dist/assets/{zeni-epic-state-DiMW9axO.js → zeni-epic-state-B_a_iTrR.js} +3 -3
- package/dist/assets/{zeni-icon-only-soz6I0gO.js → zeni-icon-only-CqALPKNP.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-Cxwuh-5v.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-SuSAzHFh.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as i}from"./sentry-
|
|
1
|
+
import{g as i}from"./sentry-DXG8OAzW.js";import{r as d}from"./index-BOP14OKw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2359a94a-dac2-4b10-8fb6-7aa3a4927ce9",e._sentryDebugIdIdentifier="sentry-dbid-2359a94a-dac2-4b10-8fb6-7aa3a4927ce9")}catch{}})();function s(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const a=Object.getOwnPropertyDescriptor(r,n);a&&Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var f=d();const c=s({__proto__:null,default:i(f)},[f]);export{c as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./sentry-tRTnR5ia.js";(function(){try{var q=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},$e=new q.Error().stack;$e&&(q._sentryDebugIds=q._sentryDebugIds||{},q._sentryDebugIds[$e]="f6e132e8-9c2f-4d0a-af96-0276c4dc9d21",q._sentryDebugIdIdentifier="sentry-dbid-f6e132e8-9c2f-4d0a-af96-0276c4dc9d21")}catch{}})();var Ei,wi,Di,g={};function nl(){if(Ei)return g;Ei=1;let q={},$e={},Me={},Ue={},Kt={},Ae={},$t={},Ut={},Ye={},Je={},de={},Yt={},Jt={},Yn={},Jn={},Hn={},Gn={},Vn={},jn={},Xn={},ct={},qn={},Qn={},Zn={},er={},tr={},nr={},rr={},ir={},lr={},Ht={},Gt={},sr={},or={},ar={};function m(n){throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?code=${n} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let oe=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Oi=oe&&"documentMode"in document?document.documentMode:null,B=oe&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),xe=oe&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ht=!(!oe||!("InputEvent"in window)||Oi)&&"getTargetRanges"in new window.InputEvent("input"),Vt=oe&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),jt=oe&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Mi=oe&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Xt=oe&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Mi,_t=Vt||jt||Xt?" ":"",Ai=xe?" ":_t,Pi=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,Ii=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,Te={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},Li={directionless:1,unmergeable:2},ur={center:2,end:6,justify:4,left:1,right:3,start:5},Ri={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},Fi={normal:0,segmented:2,token:1},Bi={0:"normal",2:"segmented",1:"token"},qt=!1,Qt=0;function Wi(n){Qt=n.timeStamp}function Zt(n,e,t){return e.__lexicalLineBreak===n||n[`__lexicalKey_${t._key}`]!==void 0}function dr(n,e,t){qt=!0;let r=100<performance.now()-Qt;try{H(n,()=>{let i=b()||function(K){return K.getEditorState().read(()=>{let M=b();return M!==null?M.clone():null})}(n);var l=new Map,s=n.getRootElement(),o=n._editorState,a=n._blockCursorElement;let d=!1,_="";for(var f=0;f<e.length;f++){var c=e[f],u=c.type,h=c.target,p=Ge(h,o);if(!(p===null&&h!==s||E(p))){if(u==="characterData"){if(c=r&&T(p))e:{u=h;var x=p;if(N(c=i)){var C=c.anchor.getNode();if(C.is(x)&&c.format!==C.getFormat()){c=!1;break e}}c=u.nodeType===3&&x.isAttached()}c&&(u=c=null,(x=Z(n._window))!==null&&x.anchorNode===h&&(c=x.anchorOffset,u=x.focusOffset),(h=h.nodeValue)!==null&&sn(p,h,c,u,!1))}else if(u==="childList"){for(d=!0,u=c.addedNodes,x=0;x<u.length;x++){var k=pr(C=u[x]),S=C.parentNode;S==null||C===a||k!==null||C.nodeName==="BR"&&Zt(C,S,n)||(xe&&(k=C.innerText||C.nodeValue)&&(_+=k),S.removeChild(C))}if(0<(u=(c=c.removedNodes).length)){for(x=0,C=0;C<u;C++)((S=c[C]).nodeName==="BR"&&Zt(S,h,n)||a===S)&&(h.appendChild(S),x++);u!==x&&(h===s&&(p=o._nodeMap.get("root")),l.set(h,p))}}}}if(0<l.size)for(let[K,M]of l)if(y(M))for(l=M.getChildrenKeys(),s=K.firstChild,o=0;o<l.length;o++)(a=n.getElementByKey(l[o]))!==null&&(s==null?(K.appendChild(a),s=a):s!==a&&K.replaceChild(a,s),s=s.nextSibling);else T(M)&&M.markDirty();if(0<(l=t.takeRecords()).length){for(s=0;s<l.length;s++)for(o=(a=l[s]).addedNodes,a=a.target,f=0;f<o.length;f++)(h=(p=o[f]).parentNode)==null||p.nodeName!=="BR"||Zt(p,a,n)||h.removeChild(p);t.takeRecords()}i!==null&&(d&&(i.dirty=!0,ce(i)),xe&&Cr(n)&&i.insertRawText(_))})}finally{qt=!1}}function fr(n){let e=n._observer;e!==null&&dr(n,e.takeRecords(),e)}function cr(n){Qt===0&&Tt(n).addEventListener("textInput",Wi,!0),n._observer=new MutationObserver((e,t)=>{dr(n,e,t)})}let zi=1,Ki=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function en(n){let e=document.activeElement;if(e===null)return!1;let t=e.nodeName;return E(Ge(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&e.__lexicalEditor==null)}function He(n,e,t){let r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!en(e)&&tn(e)===n}catch{return!1}}function tn(n){for(;n!=null;){let e=n.__lexicalEditor;if(e!=null)return e;n=vt(n)}return null}function nn(n){return n.isToken()||n.isSegmented()}function gt(n){for(;n!=null;){if(n.nodeType===3)return n;n=n.firstChild}return null}function hr(n,e,t){return!(n&(e=Te[e]))||t!==null&&t&e?t===null||t&e?n|e:n:n^e}function _r(n){return T(n)||ot(n)||E(n)}function gr(n,e){if(e!=null)n.__key=e;else{z(),99<lt&&m(14),e=D();var t=te(),r=""+zi++;t._nodeMap.set(r,n),y(n)?e._dirtyElements.set(r,!0):e._dirtyLeaves.add(r),e._cloneNotNeeded.add(r),e._dirtyType=1,n.__key=r}}function Ce(n){var e=n.getParent();if(e!==null){let i=n.getWritable();e=e.getWritable();var t=n.getPreviousSibling();if(n=n.getNextSibling(),t===null)if(n!==null){var r=n.getWritable();e.__first=n.__key,r.__prev=null}else e.__first=null;else{if(r=t.getWritable(),n!==null){let l=n.getWritable();l.__prev=r.__key,r.__next=l.__key}else r.__next=null;i.__prev=null}n===null?t!==null?(n=t.getWritable(),e.__last=t.__key,n.__next=null):e.__last=null:(n=n.getWritable(),t!==null?((t=t.getWritable()).__next=n.__key,n.__prev=t.__key):n.__prev=null,i.__next=null),e.__size--,i.__parent=null}}function pt(n){99<lt&&m(14);var e=n.getLatest(),t=e.__parent,r=te();let i=D(),l=r._nodeMap;if(r=i._dirtyElements,t!==null)for(;t!==null&&!r.has(t);){let s=l.get(t);if(s===void 0)break;r.set(t,!1),t=s.__parent}e=e.__key,i._dirtyType=1,y(n)?r.set(e,!0):i._dirtyLeaves.add(e)}function L(n){z();var e=D();let t=e._compositionKey;n!==t&&(e._compositionKey=n,t!==null&&(e=A(t))!==null&&e.getWritable(),n!==null&&(n=A(n))!==null&&n.getWritable())}function fe(){return Re()?null:D()._compositionKey}function A(n,e){return(n=(e||te())._nodeMap.get(n))===void 0?null:n}function pr(n,e){return(n=n[`__lexicalKey_${D()._key}`])!==void 0?A(n,e):null}function Ge(n,e){for(;n!=null;){let t=pr(n,e);if(t!==null)return t;n=vt(n)}return null}function yr(n){let e=Object.assign({},n._decorators);return n._pendingDecorators=e}function mr(n){return n.read(()=>Q().getTextContent())}function Q(){return te()._nodeMap.get("root")}function ce(n){z();let e=te();n!==null&&(n.dirty=!0,n._cachedNodes=null),e._selection=n}function Pe(n){var e,t=D();e:{for(e=n;e!=null;){let r=e[`__lexicalKey_${t._key}`];if(r!==void 0){e=r;break e}e=vt(e)}e=null}return e===null?n===(t=t.getRootElement())?A("root"):null:A(e)}function vr(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function rn(n){let e=[];for(;n!==null;)e.push(n),n=n._parentEditor;return e}function xr(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function ln(n,e,t){if((e=Z(e._window))!==null){var r=e.anchorNode,{anchorOffset:i,focusOffset:l}=e;if(r!==null&&(e=r.nodeType===3?r.nodeValue:null,r=Ge(r),e!==null&&T(r))){if(r.canContainTabs()){var s=e.includes(" ");if(t&&0<t.length&&s){let o=i+(s=t.length)-1;e=`${e.slice(0,o)}${t}${e=e.slice(o,e.length)}`,i+=s,l+=s}}e===_t&&t&&(e=t,l=i=s=t.length),e!==null&&sn(r,e,i,l,n)}}}function sn(n,e,t,r,i){let l=n;if(l.isAttached()&&(i||!l.isDirty())){var s=l.isComposing();if(n=e,(s||i)&&e[e.length-1]===_t&&(n=e.slice(0,-1)),e=l.getTextContent(),i||n!==e)if(n==="")if(L(null),Vt||jt||Xt)l.remove();else{let d=D();setTimeout(()=>{d.update(()=>{l.isAttached()&&l.remove()})},20)}else{i=l.getParent(),e=it();var o=fe(),a=l.getKey();l.isToken()||o!==null&&a===o&&!s||i!==null&&N(e)&&!i.canInsertTextBefore()&&e.anchor.offset===0?l.markDirty():(N(s=b())&&t!==null&&r!==null&&(s.setTextNodeRange(l,t,l,r),l.isSegmented()&&(t=R(t=l.getTextContent()),l.replace(t),l=t)),l.setTextContent(n))}}}function Ve(n,e){var t=n[e];return typeof t=="string"?(t=t.split(" "),n[e]=t):t}function on(n,e,t,r,i){t.size!==0&&(t=r.__key,(e=e.get(r.__type))===void 0&&m(33),r=e.klass,(e=n.get(r))===void 0&&(e=new Map,n.set(r,e)),r=(n=e.get(t))==="destroyed"&&i==="created",(n===void 0||r)&&e.set(t,r?"updated":i))}function Tr(n,e,t){let r=n.getParent(),i=t;return r!==null&&(e&&t===0?(i=n.getIndexWithinParent(),n=r):e||t!==n.getChildrenSize()||(i=n.getIndexWithinParent()+1,n=r)),n.getChildAtIndex(e?i-1:i)}function an(n,e){var t=n.offset;return n.type==="element"?Tr(n=n.getNode(),e,t):(n=n.getNode(),e&&t===0||!e&&t===n.getTextContentSize()?(t=e?n.getPreviousSibling():n.getNextSibling())===null?Tr(n.getParentOrThrow(),e,n.getIndexWithinParent()+(e?0:1)):t:null)}function Cr(n){return(n=(n=Tt(n).event)&&n.inputType)==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function yt(n){return!J(n)&&!n.isLastChild()&&!n.isInline()}function mt(n,e){return(n=n._keyToDOMMap.get(e))===void 0&&m(75),n}function vt(n){return(n=n.assignedSlot||n.parentElement)!==null&&n.nodeType===11?n.host:n}function xt(n,e){for(n=n.getParent();n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Tt(n){return(n=n._window)===null&&m(78),n}function Nr(n){for(n=n.getParentOrThrow();n!==null&&!X(n);)n=n.getParentOrThrow();return n}function X(n){return J(n)||y(n)&&n.isShadowRoot()}function Sr(n){return gr(n=n.constructor.clone(n),null),n}function Ct(n){var e=D();let t=n.constructor.getType();return(e=e._nodes.get(t))===void 0&&m(97),(e=e.replace)!==null?((e=e(n))instanceof n.constructor||m(98),e):n}function un(n,e){!J(n=n.getParent())||y(e)||E(e)||m(99)}function dn(n){return(E(n)||y(n)&&!n.canBeEmpty())&&!n.isInline()}function fn(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null,(e=n.parentElement)!==null&&e.removeChild(n)}function Z(n){return oe?(n||window).getSelection():null}function kr(n,e){let t=n.getChildAtIndex(e);t==null&&(t=n),X(n)&&m(102);let r=s=>{const o=s.getParentOrThrow(),a=X(o),d=s!==t||a?Sr(s):s;if(a)return s.insertAfter(d),[s,d,d];const[_,f,c]=r(o);return s=s.getNextSiblings(),c.append(d,...s),[_,f,d]},[i,l]=r(t);return[i,l]}function Nt(n,e){for(;n!==Q()&&n!=null;){if(e(n))return n;n=n.getParent()}return null}function $i(n){let e=[],t=[n];for(;0<t.length;){let r=t.pop();r===void 0&&m(112),y(r)&&t.unshift(...r.getChildren()),r!==n&&e.push(r)}return e}function br(n,e,t,r,i){for(n=n.getFirstChild();n!==null;){let l=n.__key;n!==void 0&&n.__parent===e&&(y(n)&&br(n,l,t,r,i),t.has(l)||i.delete(l),r.delete(l)),n=n.isAttached()?n.getNextSibling():null}}function Er(n,e){let t=n.__mode,r=n.__format;n=n.__style;let i=e.__mode,l=e.__format;return e=e.__style,!(t!==null&&t!==i||r!==null&&r!==l||n!==null&&n!==e)}function wr(n,e){let t=n.mergeWithSibling(e),r=D()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function Dr(n){if(n.__text===""&&n.isSimpleText()&&!n.isUnmergeable())n.remove();else{for(var e;(e=n.getPreviousSibling())!==null&&T(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){Er(e,n)&&(n=wr(e,n));break}e.remove()}for(var t;(t=n.getNextSibling())!==null&&T(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){Er(n,t)&&wr(n,t);break}t.remove()}}}function Or(n){return Mr(n.anchor),Mr(n.focus),n}function Mr(n){for(;n.type==="element";){var e=n.getNode(),t=n.offset;if(t===e.getChildrenSize()?(e=e.getChildAtIndex(t-1),t=!0):(e=e.getChildAtIndex(t),t=!1),T(e)){n.set(e.__key,t?e.getTextContentSize():0,"text");break}if(!y(e))break;n.set(e.__key,t?e.getChildrenSize():0,"element")}}let he,F,je,St,cn,hn,Ne,_e,_n,Xe,O="",W="",ae="",Ar=!1,gn=!1,kt=null;function bt(n,e){let t=Ne.get(n);if(e!==null){let r=vn(n);r.parentNode===e&&e.removeChild(r)}_e.has(n)||F._keyToDOMMap.delete(n),y(t)&&pn(n=wt(t,Ne),0,n.length-1,null),t!==void 0&&on(Xe,je,St,t,"destroyed")}function pn(n,e,t,r){for(;e<=t;++e){let i=n[e];i!==void 0&&bt(i,r)}}function Se(n,e){n.setProperty("text-align",e)}function Pr(n,e){var t=he.theme.indent;if(typeof t=="string"){let r=n.classList.contains(t);0<e&&!r?n.classList.add(t):1>e&&r&&n.classList.remove(t)}t=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||"40px",n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${t})`)}function Ir(n,e){n=n.style,e===0?Se(n,""):e===1?Se(n,"left"):e===2?Se(n,"center"):e===3?Se(n,"right"):e===4?Se(n,"justify"):e===5?Se(n,"start"):e===6&&Se(n,"end")}function Et(n,e,t){let r=_e.get(n);r===void 0&&m(60);let i=r.createDOM(he,F);var l=F._keyToDOMMap;if(i["__lexicalKey_"+F._key]=n,l.set(n,i),T(r)?i.setAttribute("data-lexical-text","true"):E(r)&&i.setAttribute("data-lexical-decorator","true"),y(r)){if(n=r.__indent,l=r.__size,n!==0&&Pr(i,n),l!==0){--l,n=wt(r,_e);var s=W;W="",yn(n,r,0,l,i,null),Fr(r,i),W=s}(n=r.__format)!==0&&Ir(i,n),r.isInline()||Rr(null,r,i),yt(r)&&(O+=`
|
|
1
|
+
import"./sentry-DXG8OAzW.js";(function(){try{var q=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},$e=new q.Error().stack;$e&&(q._sentryDebugIds=q._sentryDebugIds||{},q._sentryDebugIds[$e]="f6e132e8-9c2f-4d0a-af96-0276c4dc9d21",q._sentryDebugIdIdentifier="sentry-dbid-f6e132e8-9c2f-4d0a-af96-0276c4dc9d21")}catch{}})();var Ei,wi,Di,g={};function nl(){if(Ei)return g;Ei=1;let q={},$e={},Me={},Ue={},Kt={},Ae={},$t={},Ut={},Ye={},Je={},de={},Yt={},Jt={},Yn={},Jn={},Hn={},Gn={},Vn={},jn={},Xn={},ct={},qn={},Qn={},Zn={},er={},tr={},nr={},rr={},ir={},lr={},Ht={},Gt={},sr={},or={},ar={};function m(n){throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?code=${n} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let oe=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Oi=oe&&"documentMode"in document?document.documentMode:null,B=oe&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),xe=oe&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ht=!(!oe||!("InputEvent"in window)||Oi)&&"getTargetRanges"in new window.InputEvent("input"),Vt=oe&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),jt=oe&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Mi=oe&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Xt=oe&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Mi,_t=Vt||jt||Xt?" ":"",Ai=xe?" ":_t,Pi=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,Ii=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,Te={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},Li={directionless:1,unmergeable:2},ur={center:2,end:6,justify:4,left:1,right:3,start:5},Ri={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},Fi={normal:0,segmented:2,token:1},Bi={0:"normal",2:"segmented",1:"token"},qt=!1,Qt=0;function Wi(n){Qt=n.timeStamp}function Zt(n,e,t){return e.__lexicalLineBreak===n||n[`__lexicalKey_${t._key}`]!==void 0}function dr(n,e,t){qt=!0;let r=100<performance.now()-Qt;try{H(n,()=>{let i=b()||function(K){return K.getEditorState().read(()=>{let M=b();return M!==null?M.clone():null})}(n);var l=new Map,s=n.getRootElement(),o=n._editorState,a=n._blockCursorElement;let d=!1,_="";for(var f=0;f<e.length;f++){var c=e[f],u=c.type,h=c.target,p=Ge(h,o);if(!(p===null&&h!==s||E(p))){if(u==="characterData"){if(c=r&&T(p))e:{u=h;var x=p;if(N(c=i)){var C=c.anchor.getNode();if(C.is(x)&&c.format!==C.getFormat()){c=!1;break e}}c=u.nodeType===3&&x.isAttached()}c&&(u=c=null,(x=Z(n._window))!==null&&x.anchorNode===h&&(c=x.anchorOffset,u=x.focusOffset),(h=h.nodeValue)!==null&&sn(p,h,c,u,!1))}else if(u==="childList"){for(d=!0,u=c.addedNodes,x=0;x<u.length;x++){var k=pr(C=u[x]),S=C.parentNode;S==null||C===a||k!==null||C.nodeName==="BR"&&Zt(C,S,n)||(xe&&(k=C.innerText||C.nodeValue)&&(_+=k),S.removeChild(C))}if(0<(u=(c=c.removedNodes).length)){for(x=0,C=0;C<u;C++)((S=c[C]).nodeName==="BR"&&Zt(S,h,n)||a===S)&&(h.appendChild(S),x++);u!==x&&(h===s&&(p=o._nodeMap.get("root")),l.set(h,p))}}}}if(0<l.size)for(let[K,M]of l)if(y(M))for(l=M.getChildrenKeys(),s=K.firstChild,o=0;o<l.length;o++)(a=n.getElementByKey(l[o]))!==null&&(s==null?(K.appendChild(a),s=a):s!==a&&K.replaceChild(a,s),s=s.nextSibling);else T(M)&&M.markDirty();if(0<(l=t.takeRecords()).length){for(s=0;s<l.length;s++)for(o=(a=l[s]).addedNodes,a=a.target,f=0;f<o.length;f++)(h=(p=o[f]).parentNode)==null||p.nodeName!=="BR"||Zt(p,a,n)||h.removeChild(p);t.takeRecords()}i!==null&&(d&&(i.dirty=!0,ce(i)),xe&&Cr(n)&&i.insertRawText(_))})}finally{qt=!1}}function fr(n){let e=n._observer;e!==null&&dr(n,e.takeRecords(),e)}function cr(n){Qt===0&&Tt(n).addEventListener("textInput",Wi,!0),n._observer=new MutationObserver((e,t)=>{dr(n,e,t)})}let zi=1,Ki=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function en(n){let e=document.activeElement;if(e===null)return!1;let t=e.nodeName;return E(Ge(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&e.__lexicalEditor==null)}function He(n,e,t){let r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!en(e)&&tn(e)===n}catch{return!1}}function tn(n){for(;n!=null;){let e=n.__lexicalEditor;if(e!=null)return e;n=vt(n)}return null}function nn(n){return n.isToken()||n.isSegmented()}function gt(n){for(;n!=null;){if(n.nodeType===3)return n;n=n.firstChild}return null}function hr(n,e,t){return!(n&(e=Te[e]))||t!==null&&t&e?t===null||t&e?n|e:n:n^e}function _r(n){return T(n)||ot(n)||E(n)}function gr(n,e){if(e!=null)n.__key=e;else{z(),99<lt&&m(14),e=D();var t=te(),r=""+zi++;t._nodeMap.set(r,n),y(n)?e._dirtyElements.set(r,!0):e._dirtyLeaves.add(r),e._cloneNotNeeded.add(r),e._dirtyType=1,n.__key=r}}function Ce(n){var e=n.getParent();if(e!==null){let i=n.getWritable();e=e.getWritable();var t=n.getPreviousSibling();if(n=n.getNextSibling(),t===null)if(n!==null){var r=n.getWritable();e.__first=n.__key,r.__prev=null}else e.__first=null;else{if(r=t.getWritable(),n!==null){let l=n.getWritable();l.__prev=r.__key,r.__next=l.__key}else r.__next=null;i.__prev=null}n===null?t!==null?(n=t.getWritable(),e.__last=t.__key,n.__next=null):e.__last=null:(n=n.getWritable(),t!==null?((t=t.getWritable()).__next=n.__key,n.__prev=t.__key):n.__prev=null,i.__next=null),e.__size--,i.__parent=null}}function pt(n){99<lt&&m(14);var e=n.getLatest(),t=e.__parent,r=te();let i=D(),l=r._nodeMap;if(r=i._dirtyElements,t!==null)for(;t!==null&&!r.has(t);){let s=l.get(t);if(s===void 0)break;r.set(t,!1),t=s.__parent}e=e.__key,i._dirtyType=1,y(n)?r.set(e,!0):i._dirtyLeaves.add(e)}function L(n){z();var e=D();let t=e._compositionKey;n!==t&&(e._compositionKey=n,t!==null&&(e=A(t))!==null&&e.getWritable(),n!==null&&(n=A(n))!==null&&n.getWritable())}function fe(){return Re()?null:D()._compositionKey}function A(n,e){return(n=(e||te())._nodeMap.get(n))===void 0?null:n}function pr(n,e){return(n=n[`__lexicalKey_${D()._key}`])!==void 0?A(n,e):null}function Ge(n,e){for(;n!=null;){let t=pr(n,e);if(t!==null)return t;n=vt(n)}return null}function yr(n){let e=Object.assign({},n._decorators);return n._pendingDecorators=e}function mr(n){return n.read(()=>Q().getTextContent())}function Q(){return te()._nodeMap.get("root")}function ce(n){z();let e=te();n!==null&&(n.dirty=!0,n._cachedNodes=null),e._selection=n}function Pe(n){var e,t=D();e:{for(e=n;e!=null;){let r=e[`__lexicalKey_${t._key}`];if(r!==void 0){e=r;break e}e=vt(e)}e=null}return e===null?n===(t=t.getRootElement())?A("root"):null:A(e)}function vr(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function rn(n){let e=[];for(;n!==null;)e.push(n),n=n._parentEditor;return e}function xr(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function ln(n,e,t){if((e=Z(e._window))!==null){var r=e.anchorNode,{anchorOffset:i,focusOffset:l}=e;if(r!==null&&(e=r.nodeType===3?r.nodeValue:null,r=Ge(r),e!==null&&T(r))){if(r.canContainTabs()){var s=e.includes(" ");if(t&&0<t.length&&s){let o=i+(s=t.length)-1;e=`${e.slice(0,o)}${t}${e=e.slice(o,e.length)}`,i+=s,l+=s}}e===_t&&t&&(e=t,l=i=s=t.length),e!==null&&sn(r,e,i,l,n)}}}function sn(n,e,t,r,i){let l=n;if(l.isAttached()&&(i||!l.isDirty())){var s=l.isComposing();if(n=e,(s||i)&&e[e.length-1]===_t&&(n=e.slice(0,-1)),e=l.getTextContent(),i||n!==e)if(n==="")if(L(null),Vt||jt||Xt)l.remove();else{let d=D();setTimeout(()=>{d.update(()=>{l.isAttached()&&l.remove()})},20)}else{i=l.getParent(),e=it();var o=fe(),a=l.getKey();l.isToken()||o!==null&&a===o&&!s||i!==null&&N(e)&&!i.canInsertTextBefore()&&e.anchor.offset===0?l.markDirty():(N(s=b())&&t!==null&&r!==null&&(s.setTextNodeRange(l,t,l,r),l.isSegmented()&&(t=R(t=l.getTextContent()),l.replace(t),l=t)),l.setTextContent(n))}}}function Ve(n,e){var t=n[e];return typeof t=="string"?(t=t.split(" "),n[e]=t):t}function on(n,e,t,r,i){t.size!==0&&(t=r.__key,(e=e.get(r.__type))===void 0&&m(33),r=e.klass,(e=n.get(r))===void 0&&(e=new Map,n.set(r,e)),r=(n=e.get(t))==="destroyed"&&i==="created",(n===void 0||r)&&e.set(t,r?"updated":i))}function Tr(n,e,t){let r=n.getParent(),i=t;return r!==null&&(e&&t===0?(i=n.getIndexWithinParent(),n=r):e||t!==n.getChildrenSize()||(i=n.getIndexWithinParent()+1,n=r)),n.getChildAtIndex(e?i-1:i)}function an(n,e){var t=n.offset;return n.type==="element"?Tr(n=n.getNode(),e,t):(n=n.getNode(),e&&t===0||!e&&t===n.getTextContentSize()?(t=e?n.getPreviousSibling():n.getNextSibling())===null?Tr(n.getParentOrThrow(),e,n.getIndexWithinParent()+(e?0:1)):t:null)}function Cr(n){return(n=(n=Tt(n).event)&&n.inputType)==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function yt(n){return!J(n)&&!n.isLastChild()&&!n.isInline()}function mt(n,e){return(n=n._keyToDOMMap.get(e))===void 0&&m(75),n}function vt(n){return(n=n.assignedSlot||n.parentElement)!==null&&n.nodeType===11?n.host:n}function xt(n,e){for(n=n.getParent();n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Tt(n){return(n=n._window)===null&&m(78),n}function Nr(n){for(n=n.getParentOrThrow();n!==null&&!X(n);)n=n.getParentOrThrow();return n}function X(n){return J(n)||y(n)&&n.isShadowRoot()}function Sr(n){return gr(n=n.constructor.clone(n),null),n}function Ct(n){var e=D();let t=n.constructor.getType();return(e=e._nodes.get(t))===void 0&&m(97),(e=e.replace)!==null?((e=e(n))instanceof n.constructor||m(98),e):n}function un(n,e){!J(n=n.getParent())||y(e)||E(e)||m(99)}function dn(n){return(E(n)||y(n)&&!n.canBeEmpty())&&!n.isInline()}function fn(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null,(e=n.parentElement)!==null&&e.removeChild(n)}function Z(n){return oe?(n||window).getSelection():null}function kr(n,e){let t=n.getChildAtIndex(e);t==null&&(t=n),X(n)&&m(102);let r=s=>{const o=s.getParentOrThrow(),a=X(o),d=s!==t||a?Sr(s):s;if(a)return s.insertAfter(d),[s,d,d];const[_,f,c]=r(o);return s=s.getNextSiblings(),c.append(d,...s),[_,f,d]},[i,l]=r(t);return[i,l]}function Nt(n,e){for(;n!==Q()&&n!=null;){if(e(n))return n;n=n.getParent()}return null}function $i(n){let e=[],t=[n];for(;0<t.length;){let r=t.pop();r===void 0&&m(112),y(r)&&t.unshift(...r.getChildren()),r!==n&&e.push(r)}return e}function br(n,e,t,r,i){for(n=n.getFirstChild();n!==null;){let l=n.__key;n!==void 0&&n.__parent===e&&(y(n)&&br(n,l,t,r,i),t.has(l)||i.delete(l),r.delete(l)),n=n.isAttached()?n.getNextSibling():null}}function Er(n,e){let t=n.__mode,r=n.__format;n=n.__style;let i=e.__mode,l=e.__format;return e=e.__style,!(t!==null&&t!==i||r!==null&&r!==l||n!==null&&n!==e)}function wr(n,e){let t=n.mergeWithSibling(e),r=D()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function Dr(n){if(n.__text===""&&n.isSimpleText()&&!n.isUnmergeable())n.remove();else{for(var e;(e=n.getPreviousSibling())!==null&&T(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){Er(e,n)&&(n=wr(e,n));break}e.remove()}for(var t;(t=n.getNextSibling())!==null&&T(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){Er(n,t)&&wr(n,t);break}t.remove()}}}function Or(n){return Mr(n.anchor),Mr(n.focus),n}function Mr(n){for(;n.type==="element";){var e=n.getNode(),t=n.offset;if(t===e.getChildrenSize()?(e=e.getChildAtIndex(t-1),t=!0):(e=e.getChildAtIndex(t),t=!1),T(e)){n.set(e.__key,t?e.getTextContentSize():0,"text");break}if(!y(e))break;n.set(e.__key,t?e.getChildrenSize():0,"element")}}let he,F,je,St,cn,hn,Ne,_e,_n,Xe,O="",W="",ae="",Ar=!1,gn=!1,kt=null;function bt(n,e){let t=Ne.get(n);if(e!==null){let r=vn(n);r.parentNode===e&&e.removeChild(r)}_e.has(n)||F._keyToDOMMap.delete(n),y(t)&&pn(n=wt(t,Ne),0,n.length-1,null),t!==void 0&&on(Xe,je,St,t,"destroyed")}function pn(n,e,t,r){for(;e<=t;++e){let i=n[e];i!==void 0&&bt(i,r)}}function Se(n,e){n.setProperty("text-align",e)}function Pr(n,e){var t=he.theme.indent;if(typeof t=="string"){let r=n.classList.contains(t);0<e&&!r?n.classList.add(t):1>e&&r&&n.classList.remove(t)}t=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||"40px",n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${t})`)}function Ir(n,e){n=n.style,e===0?Se(n,""):e===1?Se(n,"left"):e===2?Se(n,"center"):e===3?Se(n,"right"):e===4?Se(n,"justify"):e===5?Se(n,"start"):e===6&&Se(n,"end")}function Et(n,e,t){let r=_e.get(n);r===void 0&&m(60);let i=r.createDOM(he,F);var l=F._keyToDOMMap;if(i["__lexicalKey_"+F._key]=n,l.set(n,i),T(r)?i.setAttribute("data-lexical-text","true"):E(r)&&i.setAttribute("data-lexical-decorator","true"),y(r)){if(n=r.__indent,l=r.__size,n!==0&&Pr(i,n),l!==0){--l,n=wt(r,_e);var s=W;W="",yn(n,r,0,l,i,null),Fr(r,i),W=s}(n=r.__format)!==0&&Ir(i,n),r.isInline()||Rr(null,r,i),yt(r)&&(O+=`
|
|
2
2
|
|
|
3
3
|
`,ae+=`
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as v}from"./pdf-
|
|
1
|
+
import{j as v}from"./pdf-rNAmIEF5.js";import{a as h,c as ha,g as Hm,b as ge,R as Wm}from"./sentry-DXG8OAzW.js";import{Y as dd,r as di}from"./core-CSCSHf4h.js";import{I as du,J as fu,K as zm,L as ts}from"./zeni-epic-state-B_a_iTrR.js";import{t as $m,d as qm}from"./recharts-C5pBg015.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a78e1d78-aab2-4bca-a190-e8495c82387d",e._sentryDebugIdIdentifier="sentry-dbid-a78e1d78-aab2-4bca-a190-e8495c82387d")}catch{}})();function HD(e){const[t,n]=h.useState(!1);return h.useEffect(()=>{n(!0)},[]),v.jsx(h.Suspense,{fallback:e.fallback,children:t?typeof e.children=="function"?e.children():e.children:e.fallback})}var Km=Object.defineProperty,ns="2.23.0",fo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:ha!==void 0?ha:{};function rs(e,t,n){const r=Symbol.for(e),o=`${t} (${n})`;fo[r]?fo[r]===o||function(i){console.error(i)}(["Multiple copies of Liveblocks are being loaded in your project. This will cause issues! See https://liveblocks.io/docs/errors/dupes ","","Conflicts:",`- ${e} ${fo[r]} (already loaded)`,`- ${e} ${o} (trying to load this now)`].join(`
|
|
2
2
|
`)):fo[r]=o}function pa(e){const t=e.editedAt?new Date(e.editedAt):void 0,n=new Date(e.createdAt),r=e.reactions.map(o=>({...o,createdAt:new Date(o.createdAt)}));if(e.body)return{...e,reactions:r,createdAt:n,editedAt:t};{const o=new Date(e.deletedAt);return{...e,reactions:r,createdAt:n,editedAt:t,deletedAt:o}}}function en(e){const t=new Date(e.createdAt),n=new Date(e.updatedAt),r=e.comments.map(o=>pa(o));return{...e,createdAt:t,updatedAt:n,comments:r}}function vn(e){const t=new Date(e.notifiedAt),n=e.readAt?new Date(e.readAt):null;if("activities"in e){const r=e.activities.map(o=>({...o,createdAt:new Date(o.createdAt)}));return{...e,notifiedAt:t,readAt:n,activities:r}}return{...e,notifiedAt:t,readAt:n}}function ji(e){const t=new Date(e.deletedAt);return{...e,deletedAt:t}}function Ri(e){const t=new Date(e.deletedAt);return{...e,deletedAt:t}}var sn={};((e,t)=>{for(var n in t)Km(e,n,{get:t[n],enumerable:!0})})(sn,{error:()=>no,errorWithTitle:()=>md,warn:()=>at,warnWithTitle:()=>Gm});var fd="background:#0e0d12;border-radius:9999px;color:#fff;padding:3px 7px;font-family:sans-serif;font-weight:600;";function hd(e){return typeof window>"u"?console[e]:(t,...n)=>console[e]("%cLiveblocks",fd,t,...n)}var at=hd("warn"),no=hd("error");function pd(e){return typeof window>"u"?console[e]:(t,n,...r)=>console[e](`%cLiveblocks%c ${t}`,fd,"font-weight:600",n,...r)}var Gm=pd("warn"),md=pd("error");function Zt(e){return e!==null&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}function ma(e){return Zt(e)&&typeof e.startsWith=="string"}function Yt(e){throw new Error(e)}function ga(e){return Object.entries(e)}function fi(e){try{return JSON.parse(e)}catch{return}}function Sr(e){return JSON.parse(JSON.stringify(e))}function va(e){return e.filter(t=>t!=null)}function Vr(e){const t={...e};return Object.keys(e).forEach(n=>{const r=n;t[r]===void 0&&delete t[r]}),t}function Xm(e){return new Promise(t=>setTimeout(t,e))}async function hu(e,t,n){let r;const o=new Promise((i,a)=>{r=setTimeout(()=>{a(new Error(n))},t)});return Promise.race([e,o]).finally(()=>clearTimeout(r))}function pu(e){let t=null;return()=>(t===null&&(t=e().catch(n=>{throw setTimeout(()=>{t=null},5e3),n})),t)}var ir=class gd extends Error{response;details;constructor(t,n,r){super(t),this.name="HttpError",this.response=n,this.details=r}static async fromResponse(t){let n;try{n=await t.text()}catch{}const r=n?fi(n):void 0;let o;Zt(r)&&(o=r);let i,a="";a||=typeof o?.message=="string"?o.message:"",a||=typeof o?.error=="string"?o.error:"",r===void 0&&(a||=n||""),a||=t.statusText;try{i=new URL(t.url).pathname}catch{}return a+=i!==void 0?` (got status ${t.status} from ${i})`:` (got status ${t.status})`,new gd(a,t,o)}get status(){return this.response.status}},Zm=e=>e instanceof ir&&e.status>=400&&e.status<500;async function Ir(e,t,n,r=Zm){const o=n.length>0?n[n.length-1]:0;let i=0;for(;;){i++;try{return await e()}catch(s){if(r(s))throw s;if(i>=t)throw new Error(`Failed after ${t} attempts: ${String(s)}`)}const a=n[i-1]??o;at(`Attempt ${i} was unsuccessful. Retrying in ${a} milliseconds.`),await Xm(a)}}function vd(){let e,t;return[new Promise((n,r)=>{e=n,t=r}),e,t]}function yd(){const[e,t,n]=vd();return{promise:e,resolve:t,reject:n}}function ke(){const e=new Set;function t(o){return e.add(o),()=>e.delete(o)}function n(o){const i=t(a=>(i(),o(a)));return i}async function r(o){let i;return new Promise(a=>{i=t(s=>{(o===void 0||o(s))&&a(s)})}).finally(()=>i?.())}return{notify:function(o){let i=!1;for(const a of e)a(o),i=!0;return i},subscribe:t,subscribeOnce:n,count:function(){return e.size},waitUntil:r,[Symbol.dispose]:()=>{e.clear()},observable:{subscribe:t,subscribeOnce:n,waitUntil:r}}}var yn=Symbol("kSinks"),Go=Symbol("kTrigger"),qn=null,Dn=null;function rt(e){if(qn===null){qn=new Set;try{e()}finally{for(const t of qn)t[Go]();qn=null}}else e()}function os(e){qn||Yt("Expected to be in an active batch"),qn.add(e)}function bd(e,t){let n=!1;const r={...e};return Object.keys(t).forEach(o=>{const i=o,a=t[i];r[i]!==a&&(a===void 0?delete r[i]:r[i]=a,n=!0)}),n?r:e}var is=class{equals;#e;[yn];constructor(e){this.equals=e??Object.is,this.#e=ke(),this[yn]=new Set,this.get=this.get.bind(this),this.subscribe=this.subscribe.bind(this),this.subscribeOnce=this.subscribeOnce.bind(this)}[Symbol.dispose](){this.#e[Symbol.dispose](),this.#e="(disposed)",this.equals="(disposed)"}get hasWatchers(){if(this.#e.count()>0)return!0;for(const e of this[yn])if(e.hasWatchers)return!0;return!1}[Go](){this.#e.notify();for(const e of this[yn])os(e)}subscribe(e){return this.#e.count()===0&&this.get(),this.#e.subscribe(e)}subscribeOnce(e){const t=this.subscribe(()=>(t(),e()));return t}waitUntil(){throw new Error("waitUntil not supported on Signals")}markSinksDirty(){for(const e of this[yn])e.markDirty()}addSink(e){this[yn].add(e)}removeSink(e){this[yn].delete(e)}asReadonly(){return this}},jt=class extends is{#e;constructor(e,t){super(t),this.#e=e}[Symbol.dispose](){super[Symbol.dispose](),this.#e="(disposed)"}get(){return Dn?.add(this),this.#e}set(e){rt(()=>{typeof e=="function"&&(e=e(this.#e)),this.equals(this.#e,e)||(this.#e=e,this.markSinksDirty(),os(this))})}},Ym=class extends jt{constructor(e){super(Vr(e))}set(){throw new Error("Don't call .set() directly, use .patch()")}patch(e){super.set(t=>bd(t,e))}},Jm=Symbol(),Ke=class ya extends is{#e;#t;#n;#r;#i;static from(...t){const n=t.pop();if(typeof n!="function"&&Yt("Invalid .from() call, last argument expected to be a function"),typeof t[t.length-1]=="function"){const r=n,o=t.pop();return new ya(t,o,r)}return new ya(t,n)}constructor(t,n,r){super(r),this.#t=!0,this.#e=Jm,this.#r=t,this.#n=new Set,this.#i=n}[Symbol.dispose](){for(const t of this.#n)t.removeSink(this);this.#e="(disposed)",this.#n="(disposed)",this.#r="(disposed)",this.#i="(disposed)"}get isDirty(){return this.#t}#o(){const t=Dn;let n;Dn=new Set;try{n=this.#i(...this.#r.map(r=>r.get()))}finally{const r=this.#n;this.#n=new Set;for(const o of Dn)this.#n.add(o),r.delete(o);for(const o of r)o.removeSink(this);for(const o of this.#n)o.addSink(this);Dn=t}return this.#t=!1,!this.equals(this.#e,n)&&(this.#e=n,!0)}markDirty(){this.#t||(this.#t=!0,this.markSinksDirty())}get(){return this.#t&&this.#o(),Dn?.add(this),this.#e}[Go](){this.hasWatchers&&this.#o()&&super[Go]()}},On=class extends is{#e;constructor(e){super(),this.#e=e}[Symbol.dispose](){super[Symbol.dispose](),this.#e="(disposed)"}get(){return Dn?.add(this),this.#e}mutate(e){rt(()=>{const t=!e||e(this.#e);t!==null&&typeof t=="object"&&"then"in t&&Yt("MutableSignal.mutate() does not support async callbacks"),t!==!1&&(this.markSinksDirty(),os(this))})}};function Qm(e,t){return t===null||typeof t!="object"||Array.isArray(t)?t:Object.keys(t).sort().reduce((n,r)=>(n[r]=t[r],n),{})}function Tn(e){return JSON.stringify(e,Qm)}function qt(e){try{return JSON.stringify(e)}catch(t){throw console.error(`Could not stringify: ${t.message}`),console.error(e),t}}var eg=class{input;resolve;reject;promise;constructor(e){this.input=e;const{promise:t,resolve:n,reject:r}=yd();this.promise=t,this.resolve=n,this.reject=r}},Fr=class{#e=[];#t;#n;#r;#i;error=!1;constructor(e,t){this.#t=e,this.#n=t.size??50,this.#r=t.delay}#o(){this.#i!==void 0&&(clearTimeout(this.#i),this.#i=void 0)}#s(){this.#e.length===this.#n?this.#a():this.#e.length===1&&(this.#o(),this.#i=setTimeout(()=>{this.#a()},this.#r))}async#a(){if(this.#e.length===0)return;const e=this.#e.splice(0),t=e.map(n=>n.input);try{const n=await this.#t(t);this.error=!1,e.forEach((r,o)=>{const i=n?.[o];Array.isArray(n)?e.length!==n.length?r.reject(new Error(`Callback must return an array of the same length as the number of provided items. Expected ${e.length}, but got ${n.length}.`)):i instanceof Error?r.reject(i):r.resolve(i):r.reject(new Error("Callback must return an array."))})}catch(n){this.error=!0,e.forEach(r=>{r.reject(n)})}}get(e){const t=this.#e.find(r=>Tn(r.input)===Tn(e));if(t)return t.promise;const n=new eg(e);return this.#e.push(n),this.#s(),n.promise}clear(){this.#e=[],this.error=!1,this.#o()}};function ba(e){const t=new On(new Map);function n(o){return Tn(o)}function r(o,i){t.mutate(a=>{a.set(o,i)})}return{subscribe:t.subscribe,enqueue:async function(o){const i=n(o);if(!t.get().has(i))try{r(i,{isLoading:!0}),r(i,{isLoading:!1,data:await e.get(o)})}catch(a){r(i,{isLoading:!1,error:a})}},getItemState:function(o){const i=n(o);return t.get().get(i)},invalidate:function(o){t.mutate(i=>{if(Array.isArray(o))for(const a of o)i.delete(n(a));else i.clear()})},batch:e,_cacheKeys:function(){return[...t.get().keys()]}}}var mr=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>t+((n&=63)<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"),"");function as(e){return`${e}_${mr()}`}function wd(){return as("th")}function Xo(){return as("cm")}function Cd(){return as("at")}var vt=class extends Map{#e;constructor(e,t){super(t),this.#e=e}getOrCreate(e,t){if(super.has(e))return super.get(e);{const n=(t??this.#e??Yt("DefaultMap used without a factory function"))(e);return this.set(e,n),n}}},tg=/^[a-zA-Z_][a-zA-Z0-9_]*$/;function mu(e){let t=[];const n=Object.entries(e),r=[],o=[],i=[];return n.forEach(([a,s])=>{if(!tg.test(a))throw new Error("Key must only contain letters, numbers, _");yu(s)?r.push([a,s]):Zt(s)&&(ma(s)?o.push([a,s]):i.push([a,s]))}),t=[...gu(r),...vu(o)],i.forEach(([a,s])=>{const u=Object.entries(s),c=[],l=[];u.forEach(([d,p])=>{if(ng(d))throw new Error("Key cannot be empty");yu(p)?c.push([bu(a,d),p]):ma(p)&&l.push([bu(a,d),p])}),t=[...t,...gu(c),...vu(l)]}),t.map(({key:a,operator:s,value:u})=>`${a}${s}${Dd(u)}`).join(" ")}var gu=e=>{const t=[];return e.forEach(([n,r])=>{t.push({key:n,operator:":",value:r})}),t},vu=e=>{const t=[];return e.forEach(([n,r])=>{"startsWith"in r&&typeof r.startsWith=="string"&&t.push({key:n,operator:"^",value:r.startsWith})}),t},yu=e=>typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null,bu=(e,t)=>t?`${e}[${Dd(t)}]`:e,ng=e=>!e||e.toString().trim()==="";function Dd(e){const t=JSON.stringify(e);return typeof e!="string"||t.includes("'")?t:`'${t.slice(1,-1).replace(/\\"/g,'"')}'`}function rg(e,t,n){const r=new URL(t,e);return n!==void 0&&(r.search=(n instanceof URLSearchParams?n:function(o){const i=new URLSearchParams;for(const[a,s]of Object.entries(o))s!=null&&i.set(a,s.toString());return i}(n)).toString()),r.toString()}function we(e,...t){return e.reduce((n,r,o)=>n+encodeURIComponent(t[o-1]??"")+r)}function og({baseUrl:e,authManager:t,fetchPolyfill:n}){const r=new ig(e,n),o=new vt(u=>ba(new Fr(async c=>{const l=c.flat(),{urls:d}=await r.post(we`/v2/c/rooms/${u}/attachments/presigned-urls`,await t.getAuthValue({requestedScope:"comments:read",roomId:u}),{attachmentIds:l});return d.map(p=>p??new Error("There was an error while getting this attachment's URL"))},{delay:50})));function i(u){return o.getOrCreate(u)}const a=new vt(u=>new Fr(async c=>{const l=c.flat();return await r.post(we`/v2/c/rooms/${u}/inbox-notifications/read`,await t.getAuthValue({requestedScope:"comments:read",roomId:u}),{inboxNotificationIds:l}),l},{delay:50})),s=new Fr(async u=>{const c=u.flat();return await async function(l){await r.post(we`/v2/c/inbox-notifications/read`,await t.getAuthValue({requestedScope:"comments:read"}),{inboxNotificationIds:l})}(c),c},{delay:50});return{getThreads:async function(u){let c;u.query&&(c=mu(u.query));try{const l=await r.get(we`/v2/c/rooms/${u.roomId}/threads`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}),{cursor:u.cursor,query:c,limit:50});return{threads:l.data.map(en),inboxNotifications:l.inboxNotifications.map(vn),nextCursor:l.meta.nextCursor,requestedAt:new Date(l.meta.requestedAt),permissionHints:l.meta.permissionHints}}catch(l){if(l instanceof ir&&l.status===404)return{threads:[],inboxNotifications:[],nextCursor:null,requestedAt:new Date(Date.now()-216e5),permissionHints:{}};throw l}},getThreadsSince:async function(u){const c=await r.get(we`/v2/c/rooms/${u.roomId}/threads/delta`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}),{since:u.since.toISOString()},{signal:u.signal});return{threads:{updated:c.data.map(en),deleted:c.deletedThreads.map(ji)},inboxNotifications:{updated:c.inboxNotifications.map(vn),deleted:c.deletedInboxNotifications.map(Ri)},requestedAt:new Date(c.meta.requestedAt),permissionHints:c.meta.permissionHints}},createThread:async function(u){const c=u.commentId??Xo(),l=u.threadId??wd();return en(await r.post(we`/v2/c/rooms/${u.roomId}/threads`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}),{id:l,comment:{id:c,body:u.body,attachmentIds:u.attachmentIds},metadata:u.metadata}))},getThread:async function(u){const c=await r.rawGet(we`/v2/c/rooms/${u.roomId}/thread-with-notification/${u.threadId}`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}));if(c.ok){const l=await c.json();return{thread:en(l.thread),inboxNotification:l.inboxNotification?vn(l.inboxNotification):void 0}}if(c.status===404)return{thread:void 0,inboxNotification:void 0};throw new Error(`There was an error while getting thread ${u.threadId}.`)},deleteThread:async function(u){await r.delete(we`/v2/c/rooms/${u.roomId}/threads/${u.threadId}`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}))},editThreadMetadata:async function(u){return await r.post(we`/v2/c/rooms/${u.roomId}/threads/${u.threadId}/metadata`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}),u.metadata)},createComment:async function(u){const c=u.commentId??Xo();return pa(await r.post(we`/v2/c/rooms/${u.roomId}/threads/${u.threadId}/comments`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}),{id:c,body:u.body,attachmentIds:u.attachmentIds}))},editComment:async function(u){return pa(await r.post(we`/v2/c/rooms/${u.roomId}/threads/${u.threadId}/comments/${u.commentId}`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}),{body:u.body,attachmentIds:u.attachmentIds}))},deleteComment:async function(u){await r.delete(we`/v2/c/rooms/${u.roomId}/threads/${u.threadId}/comments/${u.commentId}`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}))},addReaction:async function(u){return l=await r.post(we`/v2/c/rooms/${u.roomId}/threads/${u.threadId}/comments/${u.commentId}/reactions`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}),{emoji:u.emoji}),{...l,createdAt:new Date(l.createdAt)};var l},removeReaction:async function(u){await r.delete(we`/v2/c/rooms/${u.roomId}/threads/${u.threadId}/comments/${u.commentId}/reactions/${u.emoji}`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}))},markThreadAsResolved:async function(u){await r.post(we`/v2/c/rooms/${u.roomId}/threads/${u.threadId}/mark-as-resolved`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}))},markThreadAsUnresolved:async function(u){await r.post(we`/v2/c/rooms/${u.roomId}/threads/${u.threadId}/mark-as-unresolved`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}))},markRoomInboxNotificationAsRead:async function(u){return a.getOrCreate(u.roomId).get(u.inboxNotificationId)},getNotificationSettings:async function(u){return r.get(we`/v2/c/rooms/${u.roomId}/notification-settings`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}),void 0,{signal:u.signal})},updateNotificationSettings:async function(u){return r.post(we`/v2/c/rooms/${u.roomId}/notification-settings`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}),u.settings)},createTextMention:async function(u){await r.rawPost(we`/v2/c/rooms/${u.roomId}/text-mentions`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}),{userId:u.userId,mentionId:u.mentionId})},deleteTextMention:async function(u){await r.rawDelete(we`/v2/c/rooms/${u.roomId}/text-mentions/${u.mentionId}`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}))},getTextVersion:async function(u){return r.rawGet(we`/v2/c/rooms/${u.roomId}/y-version/${u.versionId}`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}))},createTextVersion:async function(u){await r.rawPost(we`/v2/c/rooms/${u.roomId}/version`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}))},reportTextEditor:async function(u){await r.rawPost(we`/v2/c/rooms/${u.roomId}/text-metadata`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}),{type:u.type,rootKey:u.rootKey})},listTextVersions:async function(u){const c=await r.get(we`/v2/c/rooms/${u.roomId}/versions`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}));return{versions:c.versions.map(({createdAt:l,...d})=>({createdAt:new Date(l),...d})),requestedAt:new Date(c.meta.requestedAt)}},listTextVersionsSince:async function(u){const c=await r.get(we`/v2/c/rooms/${u.roomId}/versions/delta`,await t.getAuthValue({requestedScope:"comments:read",roomId:u.roomId}),{since:u.since.toISOString()},{signal:u.signal});return{versions:c.versions.map(({createdAt:l,...d})=>({createdAt:new Date(l),...d})),requestedAt:new Date(c.meta.requestedAt)}},getAttachmentUrl:function(u){return i(u.roomId).batch.get(u.attachmentId)},uploadAttachment:async function(u){const c=u.roomId,l=u.signal,d=u.attachment,p=l?new DOMException(`Upload of attachment ${u.attachment.id} was aborted.`,"AbortError"):void 0;if(l?.aborted)throw p;const m=f=>{if(l?.aborted)throw p;if(f instanceof ir&&f.status===413)throw f;return!1},g=5242880,y=[2e3,2e3,2e3,2e3,2e3,2e3,2e3,2e3,2e3,2e3];if(d.size<=g)return Ir(async()=>r.putBlob(we`/v2/c/rooms/${c}/attachments/${d.id}/upload/${encodeURIComponent(d.name)}`,await t.getAuthValue({requestedScope:"comments:read",roomId:c}),d.file,{fileSize:d.size},{signal:l}),10,y,m);{let f;const b=[],C=await Ir(async()=>r.post(we`/v2/c/rooms/${c}/attachments/${d.id}/multipart/${encodeURIComponent(d.name)}`,await t.getAuthValue({requestedScope:"comments:read",roomId:c}),void 0,{signal:l},{fileSize:d.size}),10,y,m);try{f=C.uploadId;const D=function(B){const O=[];let S=0;for(;S<B.size;){const k=Math.min(S+g,B.size);O.push({partNumber:O.length+1,part:B.slice(S,k)}),S=k}return O}(d.file);if(l?.aborted)throw p;const E=function(B,O){const S=[];for(let k=0,T=B.length;k<T;k+=O)S.push(B.slice(k,k+O));return S}(D,5);for(const B of E){const O=[];for(const{part:S,partNumber:k}of B)O.push(Ir(async()=>r.putBlob(we`/v2/c/rooms/${c}/attachments/${d.id}/multipart/${C.uploadId}/${String(k)}`,await t.getAuthValue({requestedScope:"comments:read",roomId:c}),S,void 0,{signal:l}),10,y,m));b.push(...await Promise.all(O))}if(l?.aborted)throw p;const A=b.sort((B,O)=>B.partNumber-O.partNumber);return r.post(we`/v2/c/rooms/${c}/attachments/${d.id}/multipart/${f}/complete`,await t.getAuthValue({requestedScope:"comments:read",roomId:c}),{parts:A},{signal:l})}catch(D){if(f&&D?.name&&(D.name==="AbortError"||D.name==="TimeoutError"))try{await r.rawDelete(we`/v2/c/rooms/${c}/attachments/${d.id}/multipart/${f}`,await t.getAuthValue({requestedScope:"comments:read",roomId:c}))}catch{}throw D}}},getOrCreateAttachmentUrlsStore:i,streamStorage:async function(u){return await(await r.rawGet(we`/v2/c/rooms/${u.roomId}/storage`,await t.getAuthValue({requestedScope:"room:read",roomId:u.roomId}))).json()},sendMessages:async function(u){return r.rawPost(we`/v2/c/rooms/${u.roomId}/send-message`,await t.getAuthValue({requestedScope:"room:read",roomId:u.roomId}),{nonce:u.nonce,messages:u.messages})},getInboxNotifications:async function(u){const c=await r.get(we`/v2/c/inbox-notifications`,await t.getAuthValue({requestedScope:"comments:read"}),{cursor:u?.cursor,limit:50});return{inboxNotifications:c.inboxNotifications.map(vn),threads:c.threads.map(en),nextCursor:c.meta.nextCursor,requestedAt:new Date(c.meta.requestedAt)}},getInboxNotificationsSince:async function(u){const c=await r.get(we`/v2/c/inbox-notifications/delta`,await t.getAuthValue({requestedScope:"comments:read"}),{since:u.since.toISOString()},{signal:u.signal});return{inboxNotifications:{updated:c.inboxNotifications.map(vn),deleted:c.deletedInboxNotifications.map(Ri)},threads:{updated:c.threads.map(en),deleted:c.deletedThreads.map(ji)},requestedAt:new Date(c.meta.requestedAt)}},getUnreadInboxNotificationsCount:async function(){const{count:u}=await r.get(we`/v2/c/inbox-notifications/count`,await t.getAuthValue({requestedScope:"comments:read"}));return u},markAllInboxNotificationsAsRead:async function(){await r.post(we`/v2/c/inbox-notifications/read`,await t.getAuthValue({requestedScope:"comments:read"}),{inboxNotificationIds:"all"})},markInboxNotificationAsRead:async function(u){await s.get(u)},deleteAllInboxNotifications:async function(){await r.delete(we`/v2/c/inbox-notifications`,await t.getAuthValue({requestedScope:"comments:read"}))},deleteInboxNotification:async function(u){await r.delete(we`/v2/c/inbox-notifications/${u}`,await t.getAuthValue({requestedScope:"comments:read"}))},getUserNotificationSettings:async function(u){return r.get(we`/v2/c/notification-settings`,await t.getAuthValue({requestedScope:"comments:read"}),void 0,{signal:u?.signal})},updateUserNotificationSettings:async function(u){return r.post(we`/v2/c/notification-settings`,await t.getAuthValue({requestedScope:"comments:read"}),u)},getUserThreads_experimental:async function(u){let c;u?.query&&(c=mu(u.query));const l=await r.get(we`/v2/c/threads`,await t.getAuthValue({requestedScope:"comments:read"}),{cursor:u?.cursor,query:c,limit:50});return{threads:l.threads.map(en),inboxNotifications:l.inboxNotifications.map(vn),nextCursor:l.meta.nextCursor,requestedAt:new Date(l.meta.requestedAt),permissionHints:l.meta.permissionHints}},getUserThreadsSince_experimental:async function(u){const c=await r.get(we`/v2/c/threads/delta`,await t.getAuthValue({requestedScope:"comments:read"}),{since:u.since.toISOString()},{signal:u.signal});return{threads:{updated:c.threads.map(en),deleted:c.deletedThreads.map(ji)},inboxNotifications:{updated:c.inboxNotifications.map(vn),deleted:c.deletedInboxNotifications.map(Ri)},requestedAt:new Date(c.meta.requestedAt),permissionHints:c.meta.permissionHints}},executeContextualPrompt:async function(u){const c=await r.post(we`/v2/c/rooms/${u.roomId}/ai/contextual-prompt`,await t.getAuthValue({requestedScope:"room:read",roomId:u.roomId}),{prompt:u.prompt,context:{beforeSelection:u.context.beforeSelection,selection:u.context.selection,afterSelection:u.context.afterSelection},previous:u.previous},{signal:u.signal});if(!c||c.content.length===0)throw new Error("No content returned from server");return c.content[0].text}}}function Ed(e){return e.type==="public"?e.publicApiKey:e.token.raw}var ig=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}async#n(e,t,n,r){e.startsWith("/v2/c/")||Yt("This client can only be used to make /v2/c/* requests");const o=rg(this.#e,e,r);return await this.#t(o,{...n,headers:{"Content-Type":"application/json; charset=utf-8",...n?.headers,Authorization:`Bearer ${Ed(t)}`,"X-LB-Client":ns}})}async#r(e,t,n,r){const o=await this.#n(e,t,n,r);if(!o.ok)throw await ir.fromResponse(o);let i;try{i=await o.json()}catch{i={}}return i}async rawGet(e,t,n,r){return await this.#n(e,t,r,n)}async rawPost(e,t,n){return await this.#n(e,t,{method:"POST",body:qt(n)})}async rawDelete(e,t){return await this.#n(e,t,{method:"DELETE"})}async get(e,t,n,r){return await this.#r(e,t,r,n)}async post(e,t,n,r,o){return await this.#r(e,t,{...r,method:"POST",body:qt(n)},o)}async delete(e,t){return await this.#r(e,t,{method:"DELETE"})}async putBlob(e,t,n,r,o){return await this.#r(e,t,{...o,method:"PUT",headers:{"Content-Type":"application/octet-stream"},body:n},r)}};function ft(e,t){throw new Error(t)}function me(e,t="Expected value to be non-nullable"){return e}var ag=class{#e;constructor(e){this.#e=e}get current(){return this.#e}allowPatching(e){const t=this;let n=!0;e({...this.#e,patch(r){if(!n)throw new Error("Can no longer patch stale context");t.#e=Object.assign({},t.#e,r);for(const o of Object.entries(r)){const[i,a]=o;i!=="patch"&&(this[i]=a)}}}),n=!1}},sg=1,Ad=class{id;#e;#t;#n;#r;#i;#o;events;#s;#a;#l;get#f(){const e=this.#n.values()[Symbol.iterator]().next();if(e.done)throw new Error("No states defined yet");return e.value}get currentState(){if(this.#r===null)throw this.#e===0?new Error("Not started yet"):new Error("Already stopped");return this.#r}start(){if(this.#e!==0)throw new Error("State machine has already started");return this.#e=1,this.#r=this.#f,this.#c(null),this}stop(){if(this.#e!==1)throw new Error("Cannot stop a state machine that hasn't started yet");this.#d(null),this.#e=2,this.#r=null}constructor(e){this.id=sg++,this.#e=0,this.#r=null,this.#n=new Set,this.#a=new Map,this.#s=[],this.#l=new Set,this.#i=new Map,this.#t=new ag(e),this.#o={didReceiveEvent:ke(),willTransition:ke(),didIgnoreEvent:ke(),willExitState:ke(),didEnterState:ke()},this.events={didReceiveEvent:this.#o.didReceiveEvent.observable,willTransition:this.#o.willTransition.observable,didIgnoreEvent:this.#o.didIgnoreEvent.observable,willExitState:this.#o.willExitState.observable,didEnterState:this.#o.didEnterState.observable}}get context(){return this.#t.current}addState(e){if(this.#e!==0)throw new Error("Already started");return this.#n.add(e),this}onEnter(e,t){if(this.#e!==0)throw new Error("Already started");if(this.#a.has(e))throw new Error(`enter/exit function for ${e} already exists`);return this.#a.set(e,t),this}onEnterAsync(e,t,n,r,o){return this.onEnter(e,()=>{const i=new AbortController,a=i.signal,s=o?setTimeout(()=>{const c=new Error("Timed out");this.#u({type:"ASYNC_ERROR",reason:c},r)},o):void 0;let u=!1;return t(this.#t.current,a).then(c=>{a.aborted||(u=!0,this.#u({type:"ASYNC_OK",data:c},n))},c=>{a.aborted||(u=!0,this.#u({type:"ASYNC_ERROR",reason:c},r))}),()=>{clearTimeout(s),u||i.abort()}})}#h(e){const t=[];if(e==="*")for(const n of this.#n)t.push(n);else if(e.endsWith(".*")){const n=e.slice(0,-1);for(const r of this.#n)r.startsWith(n)&&t.push(r)}else{const n=e;this.#n.has(n)&&t.push(n)}if(t.length===0)throw new Error(`No states match ${JSON.stringify(e)}`);return t}addTransitions(e,t){if(this.#e!==0)throw new Error("Already started");for(const n of this.#h(e)){let r=this.#i.get(n);r===void 0&&(r=new Map,this.#i.set(n,r));for(const[o,i]of Object.entries(t)){if(r.has(o))throw new Error(`Trying to set transition "${o}" on "${n}" (via "${e}"), but a transition already exists there.`);const a=i;if(this.#l.add(o),a!==void 0){const s=typeof a=="function"?a:()=>a;r.set(o,s)}}}return this}addTimedTransition(e,t,n){return this.onEnter(e,()=>{const r=typeof t=="function"?t(this.#t.current):t,o=setTimeout(()=>{this.#u({type:"TIMER"},n)},r);return()=>{clearTimeout(o)}})}#p(e){return this.#i.get(this.currentState)?.get(e)}#d(e){this.#o.willExitState.notify(this.currentState),this.#t.allowPatching(t=>{e=e??this.#s.length;for(let n=0;n<e;n++)this.#s.pop()?.(t)})}#c(e){const t=function(n,r){const o=n.split(".");if(r<1||r>o.length+1)throw new Error("Invalid number of levels");const i=[];r>o.length&&i.push("*");for(let a=o.length-r+1;a<o.length;a++){const s=o.slice(0,a);s.length>0&&i.push(s.join(".")+".*")}return i.push(n),i}(this.currentState,e??this.currentState.split(".").length+1);this.#t.allowPatching(n=>{for(const r of t){const o=this.#a.get(r),i=o?.(n);typeof i=="function"?this.#s.push(i):this.#s.push(null)}}),this.#o.didEnterState.notify(this.currentState)}send(e){if(!this.#l.has(e.type))throw new Error(`Invalid event ${JSON.stringify(e.type)}`);if(this.#e===2)return;const t=this.#p(e.type);if(t!==void 0)return this.#u(e,t);this.#o.didIgnoreEvent.notify(e)}#u(e,t){this.#o.didReceiveEvent.notify(e);const n=this.currentState,r=(typeof t=="function"?t:()=>t)(e,this.#t.current);let o,i;if(r===null)return void this.#o.didIgnoreEvent.notify(e);if(typeof r=="string"?o=r:(o=r.target,i=Array.isArray(r.effect)?r.effect:[r.effect]),!this.#n.has(o))throw new Error(`Invalid next state name: ${JSON.stringify(o)}`);this.#o.willTransition.notify({from:n,to:o});const[a,s]=function(u,c){if(u===c)return[0,0];const l=u.split("."),d=c.split("."),p=Math.min(l.length,d.length);let m=0;for(;m<p&&l[m]===d[m];m++);return[l.length-m,d.length-m]}(this.currentState,o);if(a>0&&this.#d(a),this.#r=o,i!==void 0){const u=i;this.#t.allowPatching(c=>{for(const l of u)typeof l=="function"?l(c,e):c.patch(l)})}s>0&&this.#c(s)}},zt=(e=>(e[e.UPDATE_PRESENCE=100]="UPDATE_PRESENCE",e[e.USER_JOINED=101]="USER_JOINED",e[e.USER_LEFT=102]="USER_LEFT",e[e.BROADCASTED_EVENT=103]="BROADCASTED_EVENT",e[e.ROOM_STATE=104]="ROOM_STATE",e[e.INITIAL_STORAGE_STATE=200]="INITIAL_STORAGE_STATE",e[e.UPDATE_STORAGE=201]="UPDATE_STORAGE",e[e.REJECT_STORAGE_OP=299]="REJECT_STORAGE_OP",e[e.UPDATE_YDOC=300]="UPDATE_YDOC",e[e.THREAD_CREATED=400]="THREAD_CREATED",e[e.THREAD_DELETED=407]="THREAD_DELETED",e[e.THREAD_METADATA_UPDATED=401]="THREAD_METADATA_UPDATED",e[e.THREAD_UPDATED=408]="THREAD_UPDATED",e[e.COMMENT_CREATED=402]="COMMENT_CREATED",e[e.COMMENT_EDITED=403]="COMMENT_EDITED",e[e.COMMENT_DELETED=404]="COMMENT_DELETED",e[e.COMMENT_REACTION_ADDED=405]="COMMENT_REACTION_ADDED",e[e.COMMENT_REACTION_REMOVED=406]="COMMENT_REACTION_REMOVED",e))(zt||{});function wu(e){return e===4999||e>=4e3&&e<4100}function Cu(e){return e===1013||e>=4200&&e<4300}function xd(e){switch(e.currentState){case"@ok.connected":case"@ok.awaiting-pong":return"connected";case"@idle.initial":return"initial";case"@auth.busy":case"@auth.backoff":case"@connecting.busy":case"@connecting.backoff":case"@idle.zombie":return e.context.successCount>0?"reconnecting":"connecting";case"@idle.failed":return"disconnected";default:return ft(0,"Unknown state")}}var Od=[250,500,1e3,2e3,4e3,8e3,1e4],ho=Od[0]-1,ug=[2e3,3e4,6e4,3e5],En=class extends Error{constructor(e){super(e)}};function Bd(e,t){return t.find(n=>n>e)??t[t.length-1]}function Mn(e){e.patch({backoffDelay:Bd(e.backoffDelay,Od)})}function Du(e){e.patch({backoffDelay:Bd(e.backoffDelay,ug)})}function Eu(e){e.patch({successCount:0})}function $n(e,t){const n=e===2?no:e===1?at:()=>{};return()=>{n(t)}}function Au(e){const t="Connection to Liveblocks websocket server";return n=>{e instanceof Error?at(`${t} could not be established. ${String(e)}`):at(kd(e)?`${t} closed prematurely (code: ${e.code}). Retrying in ${n.backoffDelay}ms.`:`${t} could not be established.`)}}function _i(e){const t=[`code: ${e.code}`];return e.reason&&t.push(`reason: ${e.reason}`),n=>{at(`Connection to Liveblocks websocket server closed (${t.join(", ")}). Retrying in ${n.backoffDelay}ms.`)}}var cg=$n(1,"Connection to WebSocket closed permanently. Won't retry.");function kd(e){return!(e instanceof Error)&&e.type==="close"}var po=e=>t=>t.patch(e);function lg(e,t){const n=function(){const b=ke();let C=null;return{...b,notify:function(D){return C!==null?(C.push(D),!1):b.notify(D)},pause:function(){C=[]},unpause:function(){if(C!==null){for(const D of C)b.notify(D);C=null}},[Symbol.dispose]:()=>{b[Symbol.dispose](),C!==null&&(C.length=0)}}}();n.pause();const r=ke();function o(b,C){return()=>{r.notify({message:b,code:C})}}const i=new Ad({successCount:0,authValue:null,socket:null,backoffDelay:ho}).addState("@idle.initial").addState("@idle.failed").addState("@idle.zombie").addState("@auth.busy").addState("@auth.backoff").addState("@connecting.busy").addState("@connecting.backoff").addState("@ok.connected").addState("@ok.awaiting-pong");i.addTransitions("*",{RECONNECT:{target:"@auth.backoff",effect:[Mn,Eu]},DISCONNECT:"@idle.initial"}),i.onEnter("@idle.*",Eu).addTransitions("@idle.*",{CONNECT:(b,C)=>C.authValue!==null?"@connecting.busy":"@auth.busy"}),i.addTransitions("@auth.backoff",{NAVIGATOR_ONLINE:{target:"@auth.busy",effect:po({backoffDelay:ho})}}).addTimedTransition("@auth.backoff",b=>b.backoffDelay,"@auth.busy").onEnterAsync("@auth.busy",()=>hu(e.authenticate(),1e4,"Timed out during auth"),b=>({target:"@connecting.busy",effect:po({authValue:b.data})}),b=>b.reason instanceof En?{target:"@idle.failed",effect:[$n(2,b.reason.message),o(b.reason.message,-1)]}:{target:"@auth.backoff",effect:[Mn,$n(2,`Authentication failed: ${b.reason instanceof Error?b.reason.message:String(b.reason)}`)]});const a=b=>i.send({type:"EXPLICIT_SOCKET_ERROR",event:b}),s=b=>i.send({type:"EXPLICIT_SOCKET_CLOSE",event:b}),u=b=>b.data==="pong"?i.send({type:"PONG"}):n.notify(b);function c(b){b&&(b.removeEventListener("error",a),b.removeEventListener("close",s),b.removeEventListener("message",u),b.close())}i.addTransitions("@connecting.backoff",{NAVIGATOR_ONLINE:{target:"@connecting.busy",effect:po({backoffDelay:ho})}}).addTimedTransition("@connecting.backoff",b=>b.backoffDelay,"@connecting.busy").onEnterAsync("@connecting.busy",async(b,C)=>{let D=null,E=null;return hu(new Promise((A,B)=>{if(b.authValue===null)throw new Error("No auth authValue");const O=e.createSocket(b.authValue);function S(R){D=R,O.removeEventListener("message",u),B(R)}E=O;const[k,T]=vd();function F(R){fi(R.data)?.type===104&&T()}t.waitForActorId||T(),O.addEventListener("message",u),t.waitForActorId&&O.addEventListener("message",F),O.addEventListener("error",S),O.addEventListener("close",S),O.addEventListener("open",()=>{O.addEventListener("error",a),O.addEventListener("close",s);const R=()=>{O.removeEventListener("error",S),O.removeEventListener("close",S),O.removeEventListener("message",F)};k.then(()=>{A([O,R])})})}),1e4,"Timed out during websocket connection").then(([A,B])=>{if(B(),C.aborted)throw new Error("Aborted");if(D)throw D;return A}).catch(A=>{throw c(E),A})},b=>({target:"@ok.connected",effect:po({socket:b.data,backoffDelay:ho})}),b=>{const C=b.reason;if(C instanceof En)return{target:"@idle.failed",effect:[$n(2,C.message),o(C.message,-1)]};if(kd(C)){if(C.code===4109)return"@auth.busy";if(Cu(C.code))return{target:"@connecting.backoff",effect:[Du,Au(C)]};if(wu(C.code))return{target:"@idle.failed",effect:[$n(2,C.reason),o(C.reason,C.code)]}}return{target:"@auth.backoff",effect:[Mn,Au(C)]}});const l={target:"@ok.awaiting-pong",effect:b=>{b.socket?.send("ping")}},d=()=>(typeof document<"u"?document:void 0)?.visibilityState==="hidden"&&e.canZombie()?"@idle.zombie":l;if(i.addTimedTransition("@ok.connected",3e4,d).addTransitions("@ok.connected",{NAVIGATOR_OFFLINE:d,WINDOW_GOT_FOCUS:l}),i.addTransitions("@idle.zombie",{WINDOW_GOT_FOCUS:"@connecting.backoff"}),i.onEnter("@ok.*",b=>{b.patch({successCount:b.successCount+1});const C=setTimeout(n.unpause,0);return D=>{c(D.socket),D.patch({socket:null}),clearTimeout(C),n.pause()}}).addTransitions("@ok.awaiting-pong",{PONG:"@ok.connected"}).addTimedTransition("@ok.awaiting-pong",2e3,{target:"@connecting.busy",effect:$n(1,"Received no pong from server, assume implicit connection loss.")}).addTransitions("@ok.*",{EXPLICIT_SOCKET_ERROR:(b,C)=>C.socket?.readyState===1?null:{target:"@connecting.backoff",effect:Mn},EXPLICIT_SOCKET_CLOSE:b=>{return wu(b.event.code)?{target:"@idle.failed",effect:[cg,o(b.event.reason,b.event.code)]}:(C=b.event.code)>=4100&&C<4200?b.event.code===4109?"@auth.busy":{target:"@auth.backoff",effect:[Mn,_i(b.event)]}:Cu(b.event.code)?{target:"@connecting.backoff",effect:[Du,_i(b.event)]}:{target:"@connecting.backoff",effect:[Mn,_i(b.event)]};var C}}),typeof document<"u"){const b=typeof document<"u"?document:void 0,C=typeof window<"u"?window:void 0,D=C??b;i.onEnter("*",E=>{function A(){i.send({type:"NAVIGATOR_OFFLINE"})}function B(){i.send({type:"NAVIGATOR_ONLINE"})}function O(){b?.visibilityState==="visible"&&i.send({type:"WINDOW_GOT_FOCUS"})}return C?.addEventListener("online",B),C?.addEventListener("offline",A),D?.addEventListener("visibilitychange",O),()=>{D?.removeEventListener("visibilitychange",O),C?.removeEventListener("online",B),C?.removeEventListener("offline",A),c(E.socket)}})}const p=[],{statusDidChange:m,didConnect:g,didDisconnect:y,unsubscribe:f}=function(b){const C=ke(),D=ke(),E=ke();let A=null;const B=b.events.didEnterState.subscribe(()=>{const O=xd(b);O!==A&&C.notify(O),A==="connected"&&O!=="connected"?E.notify():A!=="connected"&&O==="connected"&&D.notify(),A=O});return{statusDidChange:C.observable,didConnect:D.observable,didDisconnect:E.observable,unsubscribe:B}}(i);return p.push(f),t.enableDebugLogging&&p.push(function(b){const C=new Date().getTime();function D(...A){at(`${((new Date().getTime()-C)/1e3).toFixed(2)} [FSM #${b.id}]`,...A)}const E=[b.events.didReceiveEvent.subscribe(A=>D(`Event ${A.type}`)),b.events.willTransition.subscribe(({from:A,to:B})=>D("Transitioning",A,"→",B)),b.events.didIgnoreEvent.subscribe(A=>D("Ignored event",A.type,A,"(current state won't handle it)"))];return()=>{for(const A of E)A()}}(i)),i.start(),{machine:i,cleanups:p,events:{statusDidChange:m,didConnect:g,didDisconnect:y,onMessage:n.observable,onConnectionError:r.observable}}}var dg=class{#e;#t;events;constructor(e,t=!1,n=!0){const{machine:r,events:o,cleanups:i}=lg(e,{waitForActorId:n,enableDebugLogging:t});this.#e=r,this.events=o,this.#t=i}getStatus(){try{return xd(this.#e)}catch{return"initial"}}get authValue(){return this.#e.context.authValue}connect(){this.#e.send({type:"CONNECT"})}reconnect(){this.#e.send({type:"RECONNECT"})}disconnect(){this.#e.send({type:"DISCONNECT"})}destroy(){let e;for(this.#e.stop();e=this.#t.pop();)e()}send(e){const t=this.#e.context?.socket;t===null?at("Cannot send: not connected yet",e):t.readyState!==1?at("Cannot send: WebSocket no longer open",e):t.send(e)}_privateSendMachineEvent(e){this.#e.send(e)}},wa=(e=>(e.Read="room:read",e.Write="room:write",e.PresenceWrite="room:presence:write",e.CommentsWrite="comments:write",e.CommentsRead="comments:read",e))(wa||{});function Ca(e){return e.includes("room:write")}function Sd(e){return e.includes("comments:write")||e.includes("room:write")}function xu(e){const t=e.split(".");if(t.length!==3)throw new Error("Authentication error: invalid JWT token");const n=fi(function(o){try{const i=o.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(i).split("").map(function(a){return"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)}).join(""))}catch{return atob(o)}}(t[1]));if(!n||!Zt(r=n)||r.k!=="acc"&&r.k!=="id"&&r.k!=="sec-legacy")throw new Error("Authentication error: expected a valid token but did not get one. Hint: if you are using a callback, ensure the room is passed when creating the token. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClientCallback");var r;return{raw:e,parsed:n}}function fg(e,t){const n=function(c){const{publicApiKey:l,authEndpoint:d}=c;if(d!==void 0&&l!==void 0)throw new Error("You cannot simultaneously use `publicApiKey` and `authEndpoint` options. Please pick one and leave the other option unspecified. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClient");if(typeof l=="string"){if(l.startsWith("sk_"))throw new Error("Invalid `publicApiKey` option. The value you passed is a secret key, which should not be used from the client. Please only ever pass a public key here. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClientPublicKey");if(!l.startsWith("pk_"))throw new Error("Invalid key. Please use the public key format: pk_<public key>. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClientPublicKey");return{type:"public",publicApiKey:l}}if(typeof d=="string")return{type:"private",url:d};if(typeof d=="function")return{type:"custom",callback:d};throw d!==void 0?new Error("The `authEndpoint` option must be a string or a function. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClientAuthEndpoint"):new Error("Invalid Liveblocks client options. Please provide either a `publicApiKey` or `authEndpoint` option. They cannot both be empty. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClient")}(e),r=new Set,o=[],i=[],a=new Map;function s(c,l){return c==="comments:read"?l.includes("comments:read")||l.includes("comments:write")||l.includes("room:read")||l.includes("room:write"):c==="room:read"&&(l.includes("room:read")||l.includes("room:write"))}async function u(c){const l=e.polyfills?.fetch??(typeof window>"u"?void 0:window.fetch);if(n.type==="private"){if(l===void 0)throw new En("To use Liveblocks client in a non-DOM environment with a url as auth endpoint, you need to provide a fetch polyfill.");const d=xu((await async function(p,m,g){const y=await p(m,{method:"POST",headers:{"Content-Type":"application/json"},body:qt(g)});if(!y.ok){const C=`${(await y.text()).trim()||"reason not provided in auth response"} (${y.status} returned by POST ${m})`;throw y.status===401||y.status===403?new En(`Unauthorized: ${C}`):new Error(`Failed to authenticate: ${C}`)}let f;try{f=await y.json()}catch(C){throw new Error(`Expected a JSON response when doing a POST request on "${m}". ${String(C)}`)}if(!Zt(f)||typeof f.token!="string")throw new Error(`Expected a JSON response of the form \`{ token: "..." }\` when doing a POST request on "${m}", but got ${qt(f)}`);const{token:b}=f;return{token:b}}(l,n.url,{room:c.roomId})).token);if(r.has(d.raw))throw new En("The same Liveblocks auth token was issued from the backend before. Caching Liveblocks tokens is not supported.");return t?.(d.parsed),d}if(n.type==="custom"){const d=await n.callback(c.roomId);if(d&&typeof d=="object"){if(typeof d.token=="string"){const p=xu(d.token);return t?.(p.parsed),p}if(typeof d.error=="string"){const p=`Authentication failed: ${"reason"in d&&typeof d.reason=="string"?d.reason:"Forbidden"}`;throw d.error==="forbidden"?new En(p):new Error(p)}}throw new Error('Your authentication callback function should return a token, but it did not. Hint: the return value should look like: { token: "..." }')}throw new Error("Unexpected authentication type. Must be private or custom.")}return{reset:function(){r.clear(),o.length=0,i.length=0,a.clear()},getAuthValue:async function(c){if(n.type==="public")return{type:"public",publicApiKey:n.publicApiKey};const l=function(p){const m=Math.ceil(Date.now()/1e3);for(let g=o.length-1;g>=0;g--){const y=o[g];if(i[g]<=m)o.splice(g,1),i.splice(g,1);else{if(y.parsed.k==="id")return y;if(y.parsed.k==="acc"){if(!p.roomId&&Object.entries(y.parsed.perms).length===0)return y;for(const[f,b]of Object.entries(y.parsed.perms))if(p.roomId){if(f.includes("*")&&p.roomId.startsWith(f.replace("*",""))||p.roomId===f&&s(p.requestedScope,b))return y}else if(f.includes("*")&&s(p.requestedScope,b))return y}}}}(c);if(l!==void 0)return{type:"secret",token:l};let d;c.roomId?(d=a.get(c.roomId),d===void 0&&(d=u(c),a.set(c.roomId,d))):(d=a.get("liveblocks-user-token"),d===void 0&&(d=u(c),a.set("liveblocks-user-token",d)));try{const p=await d,m=30,g=Math.floor(Date.now()/1e3)+(p.parsed.exp-p.parsed.iat)-m;return r.add(p.raw),p.parsed.k!=="sec-legacy"&&(o.push(p),i.push(g)),{type:"secret",token:p}}finally{c.roomId?a.delete(c.roomId):a.delete("liveblocks-user-token")}}}}var Oe=Symbol();ke().observable;var Tr=Symbol("user-notification-settings-plain");function Zo(e){const t=["email","slack","teams","webPush"],n={[Tr]:{value:e,enumerable:!1}};for(const r of t)n[r]={enumerable:!0,get(){const o=this[Tr][r];return o===void 0?(no(`In order to use the '${r}' channel, please set up your project first. For more information: https://liveblocks.io/docs/errors/enable-a-notification-channel`),null):o}};return function(r,o){return o!==void 0?Object.create(r,o):Object.create(r)}(null,n)}function hg(e,t){const n=Zo({...e[Tr]});for(const o of(r=t,Object.keys(r))){const i=t[o];if(i!==void 0){const a=Object.fromEntries(ga(i).filter(([,s])=>s!==void 0));n[Tr][o]={...n[Tr][o],...a}}}var r;return n}var un=32,An=126,ss=us(0),Ro=us(1),pg=ss+us(-1);function us(e){const t=un+(e<0?95+e:e);if(t<un||t>An)throw new Error(`Invalid n value: ${e}`);return String.fromCharCode(t)}function Vt(e,t){return e!==void 0&&t!==void 0?function(n,r){if(n<r)return Da(n,r);if(n>r)return Da(r,n);throw new Error("Cannot compute value between two equal positions")}(e,t):e!==void 0?function(n){for(let r=0;r<=n.length-1;r++){const o=n.charCodeAt(r);if(!(o>=An))return n.substring(0,r)+String.fromCharCode(o+1)}return n+Ro}(e):t!==void 0?function(n){const r=n.length-1;for(let o=0;o<=r;o++){const i=n.charCodeAt(o);if(!(i<=un))return o===r?i===33?n.substring(0,o)+pg:n.substring(0,o)+String.fromCharCode(i-1):n.substring(0,o+1)}return Ro}(t):Ro}function Da(e,t){let n=0;const r=e.length,o=t.length;for(;;){const i=n<r?e.charCodeAt(n):un,a=n<o?t.charCodeAt(n):An;if(i!==a){if(a-i==1){const s=n+1;let u=e.substring(0,s);return u.length<s&&(u+=ss.repeat(s-u.length)),u+Da(e.substring(s),"")}return mg(e,n)+String.fromCharCode(a+i>>1)}n++}}function mg(e,t){return t<e.length?e.substring(0,t):e+ss.repeat(t-e.length)}function Hr(e){return function(t){if(t==="")return!1;const n=t.length-1,r=t.charCodeAt(n);if(r<33||r>An)return!1;for(let o=0;o<n;o++){const i=t.charCodeAt(o);if(i<un||i>An)return!1}return!0}(e)?e:function(t){const n=[];for(let r=0;r<t.length;r++){const o=t.charCodeAt(r);n.push(o<un?un:o>An?An:o)}for(;n.length>0&&n[n.length-1]===un;)n.length--;return n.length>0?String.fromCharCode(...n):Ro}(e)}function gg(e,t){const{getCurrentConnectionId:n,onDispatch:r,isStorageWritable:o=()=>!0}=t;let i=0,a=0;const s=new Map;return{roomId:e,nodes:s,getNode:u=>s.get(u),addNode:(u,c)=>{s.set(u,c)},deleteNode:u=>{s.delete(u)},generateId:()=>`${n()}:${i++}`,generateOpId:()=>`${n()}:${a++}`,dispatch(u,c,l){r?.(u,c,l)},assertStorageIsWritable:()=>{if(!o())throw new Error("Cannot write to storage with a read only user, please ensure the user has write permissions")}}}function Ou(e,t,n=Hr(t)){return Object.freeze({type:"HasParent",node:e,key:t,pos:n})}var Bu=Object.freeze({type:"NoParent"}),hi=class{#e;#t;#n=Bu;_getParentKeyOrThrow(){switch(this.parent.type){case"HasParent":return this.parent.key;case"NoParent":throw new Error("Parent key is missing");case"Orphaned":return this.parent.oldKey;default:return ft(this.parent,"Unknown state")}}get _parentPos(){switch(this.parent.type){case"HasParent":return this.parent.pos;case"NoParent":throw new Error("Parent key is missing");case"Orphaned":return this.parent.oldPos;default:return ft(this.parent,"Unknown state")}}get _pool(){return this.#e}get roomId(){return this.#e?this.#e.roomId:null}get _id(){return this.#t}get parent(){return this.#n}get _parentKey(){switch(this.parent.type){case"HasParent":return this.parent.key;case"NoParent":return null;case"Orphaned":return this.parent.oldKey;default:return ft(this.parent,"Unknown state")}}_apply(e,t){return e.type===5&&this.parent.type==="HasParent"?this.parent.node._detachChild(this):{modified:!1}}_setParentLink(e,t){switch(this.parent.type){case"HasParent":if(this.parent.node!==e)throw new Error("Cannot set parent: node already has a parent");return void(this.#n=Ou(e,t));case"Orphaned":case"NoParent":return void(this.#n=Ou(e,t));default:return ft(this.parent,"Unknown state")}}_attach(e,t){if(this.#t||this.#e)throw new Error("Cannot attach node: already attached");t.addNode(e,this),this.#t=e,this.#e=t}_detach(){switch(this.#e&&this.#t&&this.#e.deleteNode(this.#t),this.parent.type){case"HasParent":this.#n=function(e,t=Hr(e)){return Object.freeze({type:"Orphaned",oldKey:e,oldPos:t})}(this.parent.key,this.parent.pos);break;case"NoParent":this.#n=Bu;break;case"Orphaned":break;default:ft(this.parent,"Unknown state")}this.#e=void 0}#r;#i;#o;invalidate(){this.#r===void 0&&this.#o===void 0||(this.#r=void 0,this.#o=void 0,this.parent.type==="HasParent"&&this.parent.node.invalidate())}toTreeNode(e){return this.#o!==void 0&&this.#i===e||(this.#i=e,this.#o=this._toTreeNode(e)),this.#o}toImmutable(){return this.#r===void 0&&(this.#r=this._toImmutable()),this.#r}};function vg(e){return e.type===0&&!function(t){return t.parentId!==void 0&&t.parentKey!==void 0}(e)}var pn=class Id extends hi{#e;constructor(t){super(),this.#e=t}get data(){return this.#e}static _deserialize([t,n],r,o){const i=new Id(n.data);return i._attach(t,o),i}_toOps(t,n,r){if(this._id===void 0)throw new Error("Cannot serialize register if parentId or parentKey is undefined");return[{type:8,opId:r?.generateOpId(),id:this._id,parentId:t,parentKey:n,data:this.data}]}_serialize(){if(this.parent.type!=="HasParent")throw new Error("Cannot serialize LiveRegister if parent is missing");return{type:3,parentId:me(this.parent.node._id,"Parent node expected to have ID"),parentKey:this.parent.key,data:this.data}}_attachChild(t){throw new Error("Method not implemented.")}_detachChild(t){throw new Error("Method not implemented.")}_apply(t,n){return super._apply(t,n)}_toTreeNode(t){return{type:"Json",id:this._id??mr(),key:t,payload:this.#e}}_toImmutable(){return this.#e}clone(){return Sr(this.data)}};function yg(e,t){const n=e._parentPos,r=t._parentPos;return n===r?0:n<r?-1:1}var gr=class Ea extends hi{#e;#t;#n;constructor(t){let n;super(),this.#e=[],this.#t=new WeakSet,this.#n=new Map;for(const r of t){const o=Vt(n),i=Zn(r);i._setParentLink(this,o),this.#e.push(i),n=o}}static _deserialize([t],n,r){const o=new Ea([]);o._attach(t,r);const i=n.get(t);if(i===void 0)return o;for(const[a,s]of i){const u=jd([a,s],n,r);u._setParentLink(o,s.parentKey),o._insertAndSort(u)}return o}_toOps(t,n,r){if(this._id===void 0)throw new Error("Cannot serialize item is not attached");const o=[],i={id:this._id,opId:r?.generateOpId(),type:2,parentId:t,parentKey:n};o.push(i);for(const a of this.#e){const s=a._getParentKeyOrThrow(),u=go(a._toOps(this._id,s,r),void 0),c=u[0].opId;c!==void 0&&this.#n.set(s,c),o.push(...u)}return o}_insertAndSort(t){this.#e.push(t),this._sortItems()}_sortItems(){this.#e.sort(yg),this.invalidate()}_indexOfPosition(t){return this.#e.findIndex(n=>n._getParentKeyOrThrow()===t)}_attach(t,n){super._attach(t,n);for(const r of this.#e)r._attach(n.generateId(),n)}_detach(){super._detach();for(const t of this.#e)t._detach()}#r(t){if(this._pool===void 0)throw new Error("Can't attach child if managed pool is not present");const{id:n,parentKey:r}=t,o=Ar(t);o._attach(n,this._pool),o._setParentLink(this,r);const i=t.deletedId,a=this._indexOfPosition(r);if(a!==-1){const s=this.#e[a];if(s._id===i)return s._detach(),this.#e[a]=o,{modified:Ie(this,[Ln(a,o)]),reverse:[]};{this.#t.add(s),this.#e[a]=o;const u=[Ln(a,o)],c=this.#o(t.deletedId);return c&&u.push(c),{modified:Ie(this,u),reverse:[]}}}{const s=[],u=this.#o(t.deletedId);return u&&s.push(u),this._insertAndSort(o),s.push(Ot(this._indexOfPosition(r),o)),{reverse:[],modified:Ie(this,s)}}}#i(t){if(this._pool===void 0)throw new Error("Can't attach child if managed pool is not present");const n=[],r=this.#o(t.deletedId);r&&n.push(r);const o=this.#n.get(t.parentKey);if(o!==void 0){if(o!==t.opId)return n.length===0?{modified:!1}:{modified:Ie(this,n),reverse:[]};this.#n.delete(t.parentKey)}const i=this._indexOfPosition(t.parentKey),a=this.#e.find(s=>s._id===t.id);if(a!==void 0){if(a._parentKey===t.parentKey)return{modified:n.length>0&&Ie(this,n),reverse:[]};if(i!==-1){this.#t.add(this.#e[i]);const[c]=this.#e.splice(i,1);n.push(mo(i,c))}const s=this.#e.indexOf(a);a._setParentLink(this,t.parentKey),this._sortItems();const u=this.#e.indexOf(a);return u!==s&&n.push(bn(s,u,a)),{modified:n.length>0&&Ie(this,n),reverse:[]}}{const s=this._pool.getNode(t.id);if(s&&this.#t.has(s)){s._setParentLink(this,t.parentKey),this.#t.delete(s),this._insertAndSort(s);const u=this.#e.indexOf(s);return{modified:Ie(this,[i===-1?Ot(u,s):Ln(u,s),...n]),reverse:[]}}{i!==-1&&this.#e.splice(i,1);const{newItem:u,newIndex:c}=this.#c(t,t.parentKey);return{modified:Ie(this,[i===-1?Ot(c,u):Ln(c,u),...n]),reverse:[]}}}}#o(t){if(t===void 0||this._pool===void 0)return null;const n=this._pool.getNode(t);if(n===void 0)return null;const r=this._detachChild(n);return r.modified===!1?null:r.modified.updates[0]}#s(t){if(this._pool===void 0)throw new Error("Can't attach child if managed pool is not present");const n=Hr(t.parentKey),r=this._indexOfPosition(n);r!==-1&&this.#u(r,n);const{newItem:o,newIndex:i}=this.#c(t,n);return{modified:Ie(this,[Ot(i,o)]),reverse:[]}}#a(t){const n=this.#e.find(i=>i._id===t.id),r=Hr(t.parentKey),o=this._indexOfPosition(r);if(n){if(n._parentKey===r)return{modified:!1};{const i=this.#e.indexOf(n);o!==-1&&this.#u(o,r),n._setParentLink(this,r),this._sortItems();const a=this._indexOfPosition(r);return a===i?{modified:!1}:{modified:Ie(this,[bn(i,a,n)]),reverse:[]}}}{const i=me(this._pool).getNode(t.id);if(i&&this.#t.has(i))return i._setParentLink(this,r),this.#t.delete(i),this._insertAndSort(i),{modified:Ie(this,[Ot(this._indexOfPosition(r),i)]),reverse:[]};{o!==-1&&this.#u(o,r);const{newItem:a,newIndex:s}=this.#c(t,r);return{modified:Ie(this,[Ot(s,a)]),reverse:[]}}}}#l(t){const{id:n,parentKey:r}=t,o=Ar(t);if(this._pool?.getNode(n)!==void 0)return{modified:!1};o._attach(n,me(this._pool)),o._setParentLink(this,r);const i=this._indexOfPosition(r);let a=r;if(i!==-1){const s=this.#e[i]?._parentPos,u=this.#e[i+1]?._parentPos;a=Vt(s,u),o._setParentLink(this,a)}return this._insertAndSort(o),{modified:Ie(this,[Ot(this._indexOfPosition(a),o)]),reverse:[{type:5,id:n}]}}#f(t){const{id:n,parentKey:r}=t,o=Ar(t);if(this._pool?.getNode(n)!==void 0)return{modified:!1};this.#n.set(r,me(t.opId));const i=this._indexOfPosition(r);o._attach(n,me(this._pool)),o._setParentLink(this,r);const a=r;if(i!==-1){const s=this.#e[i];s._detach(),this.#e[i]=o;const u=go(s._toOps(me(this._id),r,this._pool),t.id),c=[Ln(i,o)],l=this.#o(t.deletedId);return l&&c.push(l),{modified:Ie(this,c),reverse:u}}return this._insertAndSort(o),this.#o(t.deletedId),{reverse:[{type:5,id:n}],modified:Ie(this,[Ot(this._indexOfPosition(a),o)])}}_attachChild(t,n){if(this._pool===void 0)throw new Error("Can't attach child if managed pool is not present");let r;return r=t.intent==="set"?n===1?this.#r(t):n===2?this.#i(t):this.#f(t):n===1?this.#s(t):n===2?this.#a(t):this.#l(t),r.modified!==!1&&this.invalidate(),r}_detachChild(t){if(t){const n=me(t._parentKey),r=t._toOps(me(this._id),n,this._pool),o=this.#e.indexOf(t);if(o===-1)return{modified:!1};const[i]=this.#e.splice(o,1);return this.invalidate(),t._detach(),{modified:Ie(this,[mo(o,i)]),reverse:r}}return{modified:!1}}#h(t,n){if(this.#t.has(n))return this.#t.delete(n),n._setParentLink(this,t),this._insertAndSort(n),{modified:Ie(this,[Ot(this.#e.indexOf(n),n)]),reverse:[]};if(t===n._parentKey)return{modified:!1};const r=this._indexOfPosition(t);if(r===-1){const o=this.#e.indexOf(n);n._setParentLink(this,t),this._sortItems();const i=this.#e.indexOf(n);return i===o?{modified:!1}:{modified:Ie(this,[bn(o,i,n)]),reverse:[]}}{this.#e[r]._setParentLink(this,Vt(t,this.#e[r+1]?._parentPos));const o=this.#e.indexOf(n);n._setParentLink(this,t),this._sortItems();const i=this.#e.indexOf(n);return i===o?{modified:!1}:{modified:Ie(this,[bn(o,i,n)]),reverse:[]}}}#p(t,n){const r=me(n._parentKey);if(this.#t.has(n)){const o=this._indexOfPosition(t);return this.#t.delete(n),o!==-1&&this.#e[o]._setParentLink(this,Vt(t,this.#e[o+1]?._parentPos)),n._setParentLink(this,t),this._insertAndSort(n),{modified:!1}}{if(t===r)return{modified:!1};const o=this.#e.indexOf(n),i=this._indexOfPosition(t);i!==-1&&this.#e[i]._setParentLink(this,Vt(t,this.#e[i+1]?._parentPos)),n._setParentLink(this,t),this._sortItems();const a=this.#e.indexOf(n);return o===a?{modified:!1}:{modified:Ie(this,[bn(o,a,n)]),reverse:[]}}}#d(t,n){const r=me(n._parentKey),o=this.#e.indexOf(n),i=this._indexOfPosition(t);i!==-1&&this.#e[i]._setParentLink(this,Vt(t,this.#e[i+1]?._parentPos)),n._setParentLink(this,t),this._sortItems();const a=this.#e.indexOf(n);return o===a?{modified:!1}:{modified:Ie(this,[bn(o,a,n)]),reverse:[{type:1,id:me(n._id),parentKey:r}]}}_setChildKey(t,n,r){return r===1?this.#h(t,n):r===2?this.#p(t,n):this.#d(t,n)}_apply(t,n){return super._apply(t,n)}_serialize(){if(this.parent.type!=="HasParent")throw new Error("Cannot serialize LiveList if parent is missing");return{type:1,parentId:me(this.parent.node._id,"Parent node expected to have ID"),parentKey:this.parent.key}}get length(){return this.#e.length}push(t){return this._pool?.assertStorageIsWritable(),this.insert(t,this.length)}insert(t,n){if(this._pool?.assertStorageIsWritable(),n<0||n>this.#e.length)throw new Error(`Cannot insert list item at index "${n}". index should be between 0 and ${this.#e.length}`);const r=Vt(this.#e[n-1]?this.#e[n-1]._parentPos:void 0,this.#e[n]?this.#e[n]._parentPos:void 0),o=Zn(t);if(o._setParentLink(this,r),this._insertAndSort(o),this._pool&&this._id){const i=this._pool.generateId();o._attach(i,this._pool),this._pool.dispatch(o._toOps(this._id,r,this._pool),[{type:5,id:i}],new Map([[this._id,Ie(this,[Ot(n,o)])]]))}}move(t,n){if(this._pool?.assertStorageIsWritable(),n<0)throw new Error("targetIndex cannot be less than 0");if(n>=this.#e.length)throw new Error("targetIndex cannot be greater or equal than the list length");if(t<0)throw new Error("index cannot be less than 0");if(t>=this.#e.length)throw new Error("index cannot be greater or equal than the list length");let r=null,o=null;t<n?(o=n===this.#e.length-1?void 0:this.#e[n+1]._parentPos,r=this.#e[n]._parentPos):(o=this.#e[n]._parentPos,r=n===0?void 0:this.#e[n-1]._parentPos);const i=Vt(r,o),a=this.#e[t],s=a._getParentKeyOrThrow();if(a._setParentLink(this,i),this._sortItems(),this._pool&&this._id){const u=new Map([[this._id,Ie(this,[bn(t,n,a)])]]);this._pool.dispatch([{type:1,id:me(a._id),opId:this._pool.generateOpId(),parentKey:i}],[{type:1,id:me(a._id),parentKey:s}],u)}}delete(t){if(this._pool?.assertStorageIsWritable(),t<0||t>=this.#e.length)throw new Error(`Cannot delete list item at index "${t}". index should be between 0 and ${this.#e.length-1}`);const n=this.#e[t];n._detach();const[r]=this.#e.splice(t,1);if(this.invalidate(),this._pool){const o=n._id;if(o){const i=new Map;i.set(me(this._id),Ie(this,[mo(t,r)])),this._pool.dispatch([{id:o,opId:this._pool.generateOpId(),type:5}],n._toOps(me(this._id),n._getParentKeyOrThrow()),i)}}}clear(){if(this._pool?.assertStorageIsWritable(),this._pool){const t=[],n=[],r=[];for(const i of this.#e){i._detach();const a=i._id;a&&(t.push({type:5,id:a,opId:this._pool.generateOpId()}),n.push(...i._toOps(me(this._id),i._getParentKeyOrThrow())),r.push(mo(0,i)))}this.#e=[],this.invalidate();const o=new Map;o.set(me(this._id),Ie(this,r)),this._pool.dispatch(t,n,o)}else{for(const t of this.#e)t._detach();this.#e=[],this.invalidate()}}set(t,n){if(this._pool?.assertStorageIsWritable(),t<0||t>=this.#e.length)throw new Error(`Cannot set list item at index "${t}". index should be between 0 and ${this.#e.length-1}`);const r=this.#e[t],o=r._getParentKeyOrThrow(),i=r._id;r._detach();const a=Zn(n);if(a._setParentLink(this,o),this.#e[t]=a,this.invalidate(),this._pool&&this._id){const s=this._pool.generateId();a._attach(s,this._pool);const u=new Map;u.set(this._id,Ie(this,[Ln(t,a)]));const c=go(a._toOps(this._id,o,this._pool),i);this.#n.set(o,me(c[0].opId));const l=go(r._toOps(this._id,o,void 0),s);this._pool.dispatch(c,l,u)}}toArray(){return this.#e.map(t=>Bn(t))}every(t){return this.toArray().every(t)}filter(t){return this.toArray().filter(t)}find(t){return this.toArray().find(t)}findIndex(t){return this.toArray().findIndex(t)}forEach(t){return this.toArray().forEach(t)}get(t){if(!(t<0||t>=this.#e.length))return Bn(this.#e[t])}indexOf(t,n){return this.toArray().indexOf(t,n)}lastIndexOf(t,n){return this.toArray().lastIndexOf(t,n)}map(t){return this.#e.map((n,r)=>t(Bn(n),r))}some(t){return this.toArray().some(t)}[Symbol.iterator](){return new bg(this.#e)}#c(t,n){const r=Ar(t);return r._attach(t.id,me(this._pool)),r._setParentLink(this,n),this._insertAndSort(r),{newItem:r,newIndex:this._indexOfPosition(n)}}#u(t,n){const r=Vt(n,this.#e.length>t+1?this.#e[t+1]?._parentPos:void 0);this.#e[t]._setParentLink(this,r)}_toTreeNode(t){return{type:"LiveList",id:this._id??mr(),key:t,payload:this.#e.map((n,r)=>n.toTreeNode(r.toString()))}}toImmutable(){return super.toImmutable()}_toImmutable(){return this.#e.map(n=>n.toImmutable())}clone(){return new Ea(this.#e.map(t=>t.clone()))}},bg=class{#e;constructor(e){this.#e=e[Symbol.iterator]()}[Symbol.iterator](){return this}next(){const e=this.#e.next();return e.done?{done:!0,value:void 0}:{value:Bn(e.value)}}};function Ie(e,t){return{node:e,type:"LiveList",updates:t}}function Ln(e,t){return{index:e,type:"set",item:t instanceof pn?t.data:t}}function mo(e,t){return{type:"delete",index:e,deletedItem:t instanceof pn?t.data:t}}function Ot(e,t){return{index:e,type:"insert",item:t instanceof pn?t.data:t}}function bn(e,t,n){return{type:"move",index:t,item:n instanceof pn?n.data:n,previousIndex:e}}function go(e,t){return e.map((n,r)=>r===0?{...n,intent:"set",deletedId:t}:n)}var vr=class Aa extends hi{#e;#t;constructor(t){if(super(),this.#t=new Map,t){const n=[];for(const[r,o]of t){const i=Zn(o);i._setParentLink(this,r),n.push([r,i])}this.#e=new Map(n)}else this.#e=new Map}_toOps(t,n,r){if(this._id===void 0)throw new Error("Cannot serialize item is not attached");const o=[],i={id:this._id,opId:r?.generateOpId(),type:7,parentId:t,parentKey:n};o.push(i);for(const[a,s]of this.#e)o.push(...s._toOps(this._id,a,r));return o}static _deserialize([t,n],r,o){const i=new Aa;i._attach(t,o);const a=r.get(t);if(a===void 0)return i;for(const[s,u]of a){const c=jd([s,u],r,o);c._setParentLink(i,u.parentKey),i.#e.set(u.parentKey,c),i.invalidate()}return i}_attach(t,n){super._attach(t,n);for(const[r,o]of this.#e)Ue(o)&&o._attach(n.generateId(),n)}_attachChild(t,n){if(this._pool===void 0)throw new Error("Can't attach child if managed pool is not present");const{id:r,parentKey:o,opId:i}=t,a=o,s=Ar(t);if(this._pool.getNode(r)!==void 0)return{modified:!1};if(n===2){const l=this.#t.get(a);if(l===i)return this.#t.delete(a),{modified:!1};if(l!==void 0)return{modified:!1}}else n===1&&this.#t.delete(a);const u=this.#e.get(a);let c;if(u){const l=me(this._id);c=u._toOps(l,a),u._detach()}else c=[{type:5,id:r}];return s._setParentLink(this,a),s._attach(r,this._pool),this.#e.set(a,s),this.invalidate(),{modified:{node:this,type:"LiveMap",updates:{[a]:{type:"update"}}},reverse:c}}_detach(){super._detach();for(const t of this.#e.values())t._detach()}_detachChild(t){const n=me(this._id),r=me(t._parentKey),o=t._toOps(n,r,this._pool);for(const[i,a]of this.#e)a===t&&(this.#e.delete(i),this.invalidate());return t._detach(),{modified:{node:this,type:"LiveMap",updates:{[r]:{type:"delete"}}},reverse:o}}_serialize(){if(this.parent.type!=="HasParent")throw new Error("Cannot serialize LiveMap if parent is missing");return{type:2,parentId:me(this.parent.node._id,"Parent node expected to have ID"),parentKey:this.parent.key}}get(t){const n=this.#e.get(t);if(n!==void 0)return Bn(n)}set(t,n){this._pool?.assertStorageIsWritable();const r=this.#e.get(t);r&&r._detach();const o=Zn(n);if(o._setParentLink(this,t),this.#e.set(t,o),this.invalidate(),this._pool&&this._id){const i=this._pool.generateId();o._attach(i,this._pool);const a=new Map;a.set(this._id,{node:this,type:"LiveMap",updates:{[t]:{type:"update"}}});const s=o._toOps(this._id,t,this._pool);this.#t.set(t,me(s[0].opId)),this._pool.dispatch(o._toOps(this._id,t,this._pool),r?r._toOps(this._id,t):[{type:5,id:i}],a)}}get size(){return this.#e.size}has(t){return this.#e.has(t)}delete(t){this._pool?.assertStorageIsWritable();const n=this.#e.get(t);if(n===void 0)return!1;if(n._detach(),this.#e.delete(t),this.invalidate(),this._pool&&n._id){const r=me(this._id),o=new Map;o.set(r,{node:this,type:"LiveMap",updates:{[t]:{type:"delete"}}}),this._pool.dispatch([{type:5,id:n._id,opId:this._pool.generateOpId()}],n._toOps(r,t),o)}return!0}entries(){const t=this.#e.entries();return{[Symbol.iterator](){return this},next(){const n=t.next();return n.done?{done:!0,value:void 0}:{value:[n.value[0],Bn(n.value[1])]}}}}[Symbol.iterator](){return this.entries()}keys(){return this.#e.keys()}values(){const t=this.#e.values();return{[Symbol.iterator](){return this},next(){const n=t.next();return n.done?{done:!0,value:void 0}:{value:Bn(n.value)}}}}forEach(t){for(const n of this)t(n[1],n[0],this)}_toTreeNode(t){return{type:"LiveMap",id:this._id??mr(),key:t,payload:Array.from(this.#e.entries()).map(([n,r])=>r.toTreeNode(n))}}toImmutable(){return super.toImmutable()}_toImmutable(){const t=new Map;for(const[n,r]of this.#e)t.set(n,r.toImmutable());return t}clone(){return new Aa(Array.from(this.#e).map(([t,n])=>[t,n.clone()]))}},Rn=class Er extends hi{#e;#t;static#n(t){const n=new Map;let r=null;for(const[o,i]of t)if(vg(i))r=[o,i];else{const a=[o,i],s=n.get(i.parentId);s!==void 0?s.push(a):n.set(i.parentId,[a])}if(r===null)throw new Error("Root can't be null");return[r,n]}static _fromItems(t,n){const[r,o]=Er.#n(t);return Er._deserialize(r,o,n)}constructor(t={}){super(),this.#t=new Map;const n=Vr(t);for(const r of Object.keys(n)){const o=n[r];Ue(o)&&o._setParentLink(this,r)}this.#e=new Map(Object.entries(n))}_toOps(t,n,r){if(this._id===void 0)throw new Error("Cannot serialize item is not attached");const o=r?.generateOpId(),i=[],a={type:4,id:this._id,opId:o,parentId:t,parentKey:n,data:{}};i.push(a);for(const[s,u]of this.#e)Ue(u)?i.push(...u._toOps(this._id,s,r)):a.data[s]=u;return i}static _deserialize([t,n],r,o){const i=new Er(n.data);return i._attach(t,o),this._deserializeChildren(i,r,o)}static _deserializeChildren(t,n,r){const o=n.get(me(t._id));if(o===void 0)return t;for(const[i,a]of o){const s=wg([i,a],n,r);Kn(s)&&s._setParentLink(t,a.parentKey),t.#e.set(a.parentKey,s),t.invalidate()}return t}_attach(t,n){super._attach(t,n);for(const[r,o]of this.#e)Ue(o)&&o._attach(n.generateId(),n)}_attachChild(t,n){if(this._pool===void 0)throw new Error("Can't attach child if managed pool is not present");const{id:r,opId:o,parentKey:i}=t,a=Fd(t);if(this._pool.getNode(r)!==void 0)return this.#t.get(i)===o&&this.#t.delete(i),{modified:!1};if(n===0)this.#t.set(i,me(o));else if(this.#t.get(i)!==void 0)return this.#t.get(i)===o?(this.#t.delete(i),{modified:!1}):{modified:!1};const s=me(this._id),u=this.#e.get(i);let c;return Ue(u)?(c=u._toOps(s,i),u._detach()):c=u===void 0?[{type:6,id:s,key:i}]:[{type:3,id:s,data:{[i]:u}}],this.#e.set(i,a),this.invalidate(),Kn(a)&&(a._setParentLink(this,i),a._attach(r,this._pool)),{reverse:c,modified:{node:this,type:"LiveObject",updates:{[i]:{type:"update"}}}}}_detachChild(t){if(t){const n=me(this._id),r=me(t._parentKey),o=t._toOps(n,r,this._pool);for(const[i,a]of this.#e)a===t&&(this.#e.delete(i),this.invalidate());return t._detach(),{modified:{node:this,type:"LiveObject",updates:{[r]:{type:"delete"}}},reverse:o}}return{modified:!1}}_detach(){super._detach();for(const t of this.#e.values())Ue(t)&&t._detach()}_apply(t,n){return t.type===3?this.#r(t,n):t.type===6?this.#i(t,n):super._apply(t,n)}_serialize(){const t={};for(const[n,r]of this.#e)Ue(r)||(t[n]=r);return this.parent.type==="HasParent"&&this.parent.node._id?{type:0,parentId:this.parent.node._id,parentKey:this.parent.key,data:t}:{type:0,data:t}}#r(t,n){let r=!1;const o=me(this._id),i=[],a={type:3,id:o,data:{}};for(const u in t.data){const c=this.#e.get(u);Ue(c)?(i.push(...c._toOps(o,u)),c._detach()):c!==void 0?a.data[u]=c:c===void 0&&i.push({type:6,id:o,key:u})}const s={};for(const u in t.data){const c=t.data[u];if(c===void 0)continue;if(n)this.#t.set(u,me(t.opId));else{if(this.#t.get(u)!==void 0){if(this.#t.get(u)===t.opId){this.#t.delete(u);continue}continue}r=!0}const l=this.#e.get(u);Ue(l)&&l._detach(),r=!0,s[u]={type:"update"},this.#e.set(u,c),this.invalidate()}return Object.keys(a.data).length!==0&&i.unshift(a),r?{modified:{node:this,type:"LiveObject",updates:s},reverse:i}:{modified:!1}}#i(t,n){const r=t.key;if(this.#e.has(r)===!1)return{modified:!1};if(!n&&this.#t.get(r)!==void 0)return{modified:!1};const o=this.#e.get(r),i=me(this._id);let a=[];return Ue(o)?(a=o._toOps(i,t.key),o._detach()):o!==void 0&&(a=[{type:3,id:i,data:{[r]:o}}]),this.#e.delete(r),this.invalidate(),{modified:{node:this,type:"LiveObject",updates:{[t.key]:{type:"delete"}}},reverse:a}}toObject(){return Object.fromEntries(this.#e)}set(t,n){this._pool?.assertStorageIsWritable(),this.update({[t]:n})}get(t){return this.#e.get(t)}delete(t){this._pool?.assertStorageIsWritable();const n=t,r=this.#e.get(n);if(r===void 0)return;if(this._pool===void 0||this._id===void 0)return Ue(r)&&r._detach(),this.#e.delete(n),void this.invalidate();let o;Ue(r)?(r._detach(),o=r._toOps(this._id,n)):o=[{type:3,data:{[n]:r},id:this._id}],this.#e.delete(n),this.invalidate();const i=new Map;i.set(this._id,{node:this,type:"LiveObject",updates:{[t]:{type:"delete"}}}),this._pool.dispatch([{type:6,key:n,id:this._id,opId:this._pool.generateOpId()}],o,i)}update(t){if(this._pool?.assertStorageIsWritable(),this._pool===void 0||this._id===void 0){for(const c in t){const l=t[c];if(l===void 0)continue;const d=this.#e.get(c);Ue(d)&&d._detach(),Ue(l)&&l._setParentLink(this,c),this.#e.set(c,l),this.invalidate()}return}const n=[],r=[],o=this._pool.generateOpId(),i={},a={id:this._id,type:3,data:{}},s={};for(const c in t){const l=t[c];if(l===void 0)continue;const d=this.#e.get(c);if(Ue(d)?(r.push(...d._toOps(this._id,c)),d._detach()):d===void 0?r.push({type:6,id:this._id,key:c}):a.data[c]=d,Ue(l)){l._setParentLink(this,c),l._attach(this._pool.generateId(),this._pool);const p=l._toOps(this._id,c,this._pool),m=p.find(g=>g.parentId===this._id);m&&this.#t.set(c,me(m.opId)),n.push(...p)}else i[c]=l,this.#t.set(c,o);this.#e.set(c,l),this.invalidate(),s[c]={type:"update"}}Object.keys(a.data).length!==0&&r.unshift(a),Object.keys(i).length!==0&&n.unshift({opId:o,id:this._id,type:3,data:i});const u=new Map;u.set(this._id,{node:this,type:"LiveObject",updates:s}),this._pool.dispatch(n,r,u)}toImmutable(){return super.toImmutable()}toTreeNode(t){return super.toTreeNode(t)}_toTreeNode(t){const n=this._id??mr();return{type:"LiveObject",id:n,key:t,payload:Array.from(this.#e.entries()).map(([r,o])=>Ue(o)?o.toTreeNode(r):{type:"Json",id:`${n}:${r}`,key:r,payload:o})}}_toImmutable(){const t={};for(const[n,r]of this.#e)t[n]=Kn(r)?r.toImmutable():r;return t}clone(){return new Er(Object.fromEntries(Array.from(this.#e).map(([t,n])=>[t,Kn(n)?n.clone():Sr(n)])))}};function Ar(e){return Zn(Fd(e))}function Fd(e){switch(e.type){case 8:return e.data;case 4:return new Rn(e.data);case 7:return new vr;case 2:return new gr([]);default:return ft(0,"Unknown creation Op")}}function Td(e,t){return e===t||e.parent.type==="HasParent"&&Td(e.parent.node,t)}function jd([e,t],n,r){switch(t.type){case 0:return Rn._deserialize([e,t],n,r);case 1:return gr._deserialize([e,t],n,r);case 2:return vr._deserialize([e,t],n,r);case 3:return pn._deserialize([e,t],n,r);default:throw new Error("Unexpected CRDT type")}}function wg([e,t],n,r){switch(t.type){case 0:return Rn._deserialize([e,t],n,r);case 1:return gr._deserialize([e,t],n,r);case 2:return vr._deserialize([e,t],n,r);case 3:return t.data;default:throw new Error("Unexpected CRDT type")}}function Kn(e){return Rd(e)||function(t){return t instanceof vr}(e)||function(t){return t instanceof Rn}(e)}function Ue(e){return Kn(e)||function(t){return t instanceof pn}(e)}function Rd(e){return e instanceof gr}function Bn(e){return e instanceof pn?e.data:e instanceof gr||e instanceof vr||e instanceof Rn?e:ft(0,"Unknown AbstractCrdt")}function Zn(e){return e instanceof Rn||e instanceof vr||e instanceof gr?e:new pn(e)}function Ni(e,t){return e===void 0?t:e.type==="LiveObject"&&t.type==="LiveObject"?function(n,r){const o=n.updates;for(const[i,a]of ga(r.updates))o[i]=a;return{...r,updates:o}}(e,t):e.type==="LiveMap"&&t.type==="LiveMap"?function(n,r){const o=n.updates;for(const[i,a]of ga(r.updates))o[i]=a;return{...r,updates:o}}(e,t):e.type==="LiveList"&&t.type==="LiveList"?function(n,r){const o=n.updates;return{...r,updates:o.concat(r.updates)}}(e,t):t}var Pi=class{#e;#t;#n;#r;constructor(){this.#e={},this.#t=0,this.#n=1,this.#r=0}get length(){return this.#r}*[Symbol.iterator](){const e=this.#r,t=this.#t;for(let n=0;n<e;n++)yield this.#e[t+n]}push(e){const t=Array.isArray(e)?e:[e];this.#n>Number.MAX_SAFE_INTEGER-t.length-1&&Yt("Deque full");for(const n of t)this.#e[this.#n++-1]=n;this.#r+=t.length}pop(){if(this.#r<1)return;this.#n--;const e=this.#e[this.#n-1];return delete this.#e[this.#n-1],this.#r--,e}pushLeft(e){const t=Array.isArray(e)?e:[e];this.#t<Number.MIN_SAFE_INTEGER+t.length&&Yt("Deque full");for(let n=t.length-1;n>=0;n--)this.#e[--this.#t]=t[n];this.#r+=t.length}popLeft(){if(this.#r<1)return;const e=this.#e[this.#t];return delete this.#e[this.#t],this.#t++,this.#r--,e}};function ku(e){return Array.isArray(e)}var Cg=class{#e;#t;signal;constructor(){this.#e=new On({connections:new Map,presences:new Map}),this.signal=Ke.from(this.#e,e=>va(Array.from(this.#e.get().presences.keys()).map(t=>this.getUser(Number(t))))),this.#t=new Map}get(){return this.signal.get()}connectionIds(){return this.#e.get().connections.keys()}clearOthers(){this.#e.mutate(e=>{e.connections.clear(),e.presences.clear(),this.#t.clear()})}#n(e){const t=this.#e.get(),n=t.connections.get(e),r=t.presences.get(e);if(n!==void 0&&r!==void 0)return function(o,i){const{connectionId:a,id:s,info:u}=o,c=Ca(o.scopes);return Vr({connectionId:a,id:s,info:u,canWrite:c,canComment:Sd(o.scopes),isReadOnly:!c,presence:i})}(n,r)}getUser(e){const t=this.#t.get(e);if(t)return t;const n=this.#n(e);return n?(this.#t.set(e,n),n):void 0}#r(e){this.#t.delete(e)}setConnection(e,t,n,r){this.#e.mutate(o=>(o.connections.set(e,{connectionId:e,id:t,info:n,scopes:r}),!!o.presences.has(e)&&this.#r(e)))}removeConnection(e){this.#e.mutate(t=>{t.connections.delete(e),t.presences.delete(e),this.#r(e)})}setOther(e,t){this.#e.mutate(n=>(n.presences.set(e,Vr(t)),!!n.connections.has(e)&&this.#r(e)))}patchOther(e,t){this.#e.mutate(n=>{const r=n.presences.get(e);if(r===void 0)return!1;const o=bd(r,t);return r!==o&&(n.presences.set(e,o),this.#r(e))})}},_d=class Nd extends Error{context;constructor(t,n,r){super(t,{cause:r}),this.context=n,this.name="LiveblocksError"}get roomId(){return this.context.roomId}get code(){return this.context.code}static from(t,n){return new Nd(function(r){switch(r.type){case"ROOM_CONNECTION_ERROR":switch(r.code){case 4001:return"Not allowed to connect to the room";case 4005:return"Room is already full";case 4006:return"Kicked out of the room, because the room ID changed";default:return"Could not connect to the room"}case"CREATE_THREAD_ERROR":return"Could not create new thread";case"DELETE_THREAD_ERROR":return"Could not delete thread";case"EDIT_THREAD_METADATA_ERROR":return"Could not edit thread metadata";case"MARK_THREAD_AS_RESOLVED_ERROR":return"Could not mark thread as resolved";case"MARK_THREAD_AS_UNRESOLVED_ERROR":return"Could not mark thread as unresolved";case"CREATE_COMMENT_ERROR":return"Could not create new comment";case"EDIT_COMMENT_ERROR":return"Could not edit comment";case"DELETE_COMMENT_ERROR":return"Could not delete comment";case"ADD_REACTION_ERROR":return"Could not add reaction";case"REMOVE_REACTION_ERROR":return"Could not remove reaction";case"MARK_INBOX_NOTIFICATION_AS_READ_ERROR":return"Could not mark inbox notification as read";case"DELETE_INBOX_NOTIFICATION_ERROR":return"Could not delete inbox notification";case"MARK_ALL_INBOX_NOTIFICATIONS_AS_READ_ERROR":return"Could not mark all inbox notifications as read";case"DELETE_ALL_INBOX_NOTIFICATIONS_ERROR":return"Could not delete all inbox notifications";case"UPDATE_NOTIFICATION_SETTINGS_ERROR":return"Could not update notification settings";case"UPDATE_USER_NOTIFICATION_SETTINGS_ERROR":return"Could not update user notification settings";default:return ft(0,"Unhandled case")}}(t),t,n)}},Su=1048064;function Iu(e,t){return{type:"User",id:`${t.connectionId}`,key:e,payload:{connectionId:t.connectionId,id:t.id,info:t.info,presence:t.presence,isReadOnly:!t.canWrite}}}function Dg(e,t){const n=t.roomId,r=e.initialPresence,o=e.initialStorage,i=t.roomHttpClient,[a,s]=function(){const x=typeof document<"u"?document:void 0,L={current:null};function V(){L.current=x?.visibilityState==="hidden"?L.current??Date.now():null}return x?.addEventListener("visibilitychange",V),[L,()=>{x?.removeEventListener("visibilitychange",V)}]}(),u={...t.delegates,canZombie:()=>t.backgroundKeepAliveTimeout!==void 0&&a.current!==null&&Date.now()>a.current+t.backgroundKeepAliveTimeout&&Q()!=="synchronizing"},c=new dg(u,t.enableDebugLogging),l={buffer:{flushTimerID:void 0,lastFlushedAt:0,presenceUpdates:{type:"full",data:r},messages:[],storageOperations:[]},staticSessionInfoSig:new jt(null),dynamicSessionInfoSig:new jt(null),myPresence:new Ym(r),others:new Cg,initialStorage:o,idFactory:null,yjsProvider:void 0,yjsProviderDidChange:ke(),pool:gg(n,{getCurrentConnectionId:function(){const x=l.dynamicSessionInfoSig.get();if(x)return x.actor;throw new Error("Internal. Tried to get connection id but connection was never open")},onDispatch:function(x,L,V){if(l.activeBatch){for(const Y of x)l.activeBatch.ops.push(Y);for(const[Y,ne]of V)l.activeBatch.updates.storageUpdates.set(Y,Ni(l.activeBatch.updates.storageUpdates.get(Y),ne));l.activeBatch.reverseOps.pushLeft(L)}else k(L),l.redoStack.length=0,ie(x),T({storageUpdates:V})},isStorageWritable:function(){const x=l.dynamicSessionInfoSig.get()?.scopes;return x===void 0||Ca(x)}}),root:void 0,undoStack:[],redoStack:[],pausedHistory:null,activeBatch:null,unacknowledgedOps:new Map};let d,p,m=!1;c.events.onMessage.subscribe(function(x){if(typeof x.data!="string")return;const L=function(Y){const ne=fi(Y);return ne===void 0?null:ku(ne)?va(ne.map(fe=>J(fe))):va([J(ne)])}(x.data);if(L===null||L.length===0)return;const V={storageUpdates:new Map,others:[]};for(const Y of L)switch(Y.type){case 101:{const ne=U(Y);ne&&V.others.push(ne);break}case 100:{const ne=P(Y);ne&&V.others.push(ne);break}case 103:{const ne=l.others.get();g.customEvent.notify({connectionId:Y.actor,user:Y.actor<0?null:ne.find(fe=>fe.connectionId===Y.actor)??null,event:Y.event});break}case 102:{const ne=H(Y);ne&&V.others.push(ne);break}case 300:g.ydoc.notify(Y);break;case 104:V.others.push(G(Y));break;case 200:pe(Y);break;case 201:{const ne=F(Y.ops,!1);for(const[fe,xe]of ne.updates.storageUpdates)V.storageUpdates.set(fe,Ni(V.storageUpdates.get(fe),xe));break}case 299:md("Storage mutation rejection error",Y.reason);break;case 400:case 407:case 401:case 408:case 405:case 406:case 402:case 403:case 404:g.comments.notify(Y)}T(V)}),c.events.statusDidChange.subscribe(function(x){const L=c.authValue;if(L!==null){const V=Ed(L);if(V!==d)if(d=V,L.type==="secret"){const Y=L.token.parsed;l.staticSessionInfoSig.set({userId:Y.k==="sec-legacy"?Y.id:Y.uid,userInfo:Y.k==="sec-legacy"?Y.info:Y.ui})}else l.staticSessionInfoSig.set({userId:void 0,userInfo:void 0})}g.status.notify(x),A()}),c.events.statusDidChange.subscribe(function(x){x==="reconnecting"?p=setTimeout(()=>{g.lostConnection.notify("lost"),m=!0,l.others.clearOthers(),T({others:[{type:"reset"}]})},t.lostConnectionTimeout):(clearTimeout(p),m&&(x==="disconnected"?g.lostConnection.notify("failed"):g.lostConnection.notify("restored"),m=!1))}),c.events.didConnect.subscribe(function(){l.buffer.presenceUpdates={type:"full",data:{...l.myPresence.get()}},de!==null&&I({flush:!1}),X()}),c.events.didDisconnect.subscribe(function(){clearTimeout(l.buffer.flushTimerID)}),c.events.onConnectionError.subscribe(({message:x,code:L})=>{const V=new _d(x,{type:"ROOM_CONNECTION_ERROR",code:L,roomId:n});t.errorEventSource.notify(V)});const g={status:ke(),lostConnection:ke(),customEvent:ke(),self:ke(),myPresence:ke(),others:ke(),storageBatch:ke(),history:ke(),storageDidLoad:ke(),storageStatus:ke(),ydoc:ke(),comments:ke(),roomWillDestroy:ke()};function*y(x){const{ops:L,...V}=x;if(L.length<2)throw new Error("Cannot split ops into smaller chunks");const Y=Math.floor(L.length/2),ne=L.slice(0,Y),fe=L.slice(Y);for(const xe of[ne,fe]){const De={ops:xe,...V},Fe=qt([De]);b(Fe)?yield*y(De):yield Fe}}function*f(x){if(x.length<2){if(x[0].type===201)return void(yield*y(x[0]));throw new Error("Cannot split into chunks smaller than the allowed message size")}const L=Math.floor(x.length/2),V=x.slice(0,L),Y=x.slice(L);for(const ne of[V,Y]){const fe=qt(ne);b(fe)?yield*f(ne):yield fe}}function b(x){return!(4*x.length<Su)&&new TextEncoder().encode(x).length>=Su}function C(x){const L=t.largeMessageStrategy??"default",V=qt(x);if(!b(V))return c.send(V);switch(L){case"default":return void no("Message is too large for websockets, not sending. Configure largeMessageStrategy option to deal with this.");case"split":at("Message is too large for websockets, splitting into smaller chunks");for(const Y of f(x))c.send(Y);return;case"experimental-fallback-to-http":{at("Message is too large for websockets, so sending over HTTP instead");const Y=l.dynamicSessionInfoSig.get()?.nonce??Yt("Session is not authorized to send message over HTTP");return void i.sendMessages({roomId:n,nonce:Y,messages:x}).then(ne=>{ne.ok||ne.status!==403||c.reconnect()})}}}const D=Ke.from(l.staticSessionInfoSig,l.dynamicSessionInfoSig,l.myPresence,(x,L,V)=>{if(x===null||L===null)return null;{const Y=Ca(L.scopes);return{connectionId:L.actor,id:x.userId,info:x.userInfo,presence:V,canWrite:Y,canComment:Sd(L.scopes)}}});let E;function A(){const x=D.get();x!==null&&x!==E&&(g.self.notify(x),E=x)}const B=Ke.from(D,x=>x!==null?Iu("Me",x):null);function O(x){if(x.items.length===0)throw new Error("Internal error: cannot load storage without items");l.root!==void 0?function(ne){if(l.root===void 0)return;const fe=new Map;for(const[De,Fe]of l.pool.nodes)fe.set(De,Fe._serialize());const xe=function(De,Fe){const $e=[];return De.forEach((Se,Me)=>{Fe.get(Me)||$e.push({type:5,id:Me})}),Fe.forEach((Se,Me)=>{const xt=De.get(Me);if(xt)Se.type===0&&(xt.type===0&&qt(Se.data)===qt(xt.data)||$e.push({type:3,id:Me,data:Se.data})),Se.parentKey!==xt.parentKey&&$e.push({type:1,id:Me,parentKey:me(Se.parentKey,"Parent key must not be missing")});else switch(Se.type){case 3:$e.push({type:8,id:Me,parentId:Se.parentId,parentKey:Se.parentKey,data:Se.data});break;case 1:$e.push({type:2,id:Me,parentId:Se.parentId,parentKey:Se.parentKey});break;case 0:if(Se.parentId===void 0||Se.parentKey===void 0)throw new Error("Internal error. Cannot serialize storage root into an operation");$e.push({type:4,id:Me,parentId:Se.parentId,parentKey:Se.parentKey,data:Se.data});break;case 2:$e.push({type:7,id:Me,parentId:Se.parentId,parentKey:Se.parentKey})}}),$e}(fe,new Map(ne));T(F(xe,!1).updates)}(x.items):l.root=Rn._fromItems(x.items,l.pool);const L=D.get()?.canWrite??!0,V=l.undoStack.length;for(const ne in l.initialStorage)l.root.get(ne)===void 0&&(L?l.root.set(ne,(Y=l.initialStorage[ne])===void 0?void 0:Kn(Y)?Y.clone():Sr(Y)):at(`Attempted to populate missing storage key '${ne}', but current user has no write access`));var Y;l.undoStack.length=V}function S(x){l.undoStack.length>=50&&l.undoStack.shift(),l.undoStack.push(x),W()}function k(x){l.pausedHistory!==null?l.pausedHistory.pushLeft(x):S(x)}function T(x){const L=x.storageUpdates,V=x.others;if(V!==void 0&&V.length>0){const Y=l.others.get();for(const ne of V)g.others.notify({...ne,others:Y})}if(x.presence&&(A(),g.myPresence.notify(l.myPresence.get())),L!==void 0&&L.size>0){const Y=Array.from(L.values());g.storageBatch.notify(Y)}ce()}function F(x,L){const V={reverse:new Pi,storageUpdates:new Map,presence:!1},Y=new Set,ne=x.map(fe=>fe.type==="presence"||fe.opId?fe:{...fe,opId:l.pool.generateOpId()});for(const fe of ne)if(fe.type==="presence"){const xe={type:"presence",data:{}};for(const De in fe.data)xe.data[De]=l.myPresence.get()[De];if(l.myPresence.patch(fe.data),l.buffer.presenceUpdates===null)l.buffer.presenceUpdates={type:"partial",data:fe.data};else for(const De in fe.data)l.buffer.presenceUpdates.data[De]=fe.data[De];V.reverse.pushLeft(xe),V.presence=!0}else{let xe;if(L)xe=0;else{const Fe=me(fe.opId);xe=l.unacknowledgedOps.delete(Fe)?2:1}const De=R(fe,xe);if(De.modified){const Fe=De.modified.node._id;Fe&&Y.has(Fe)||(V.storageUpdates.set(me(De.modified.node._id),Ni(V.storageUpdates.get(me(De.modified.node._id)),De.modified)),V.reverse.pushLeft(De.reverse)),fe.type!==2&&fe.type!==7&&fe.type!==4||Y.add(me(fe.id))}}return{ops:ne,reverse:Array.from(V.reverse),updates:{storageUpdates:V.storageUpdates,presence:V.presence}}}function R(x,L){if(function(V){return V.type===5&&V.id==="ACK"}(x))return{modified:!1};switch(x.type){case 6:case 3:case 5:{const V=l.pool.nodes.get(x.id);return V===void 0?{modified:!1}:V._apply(x,L===0)}case 1:{const V=l.pool.nodes.get(x.id);return V===void 0?{modified:!1}:V.parent.type==="HasParent"&&Rd(V.parent.node)?V.parent.node._setChildKey(Hr(x.parentKey),V,L):{modified:!1}}case 4:case 2:case 7:case 8:{if(x.parentId===void 0)return{modified:!1};const V=l.pool.nodes.get(x.parentId);return V===void 0?{modified:!1}:V._attachChild(x,L)}}}function P(x){if(x.targetActor!==void 0){const V=l.others.getUser(x.actor);l.others.setOther(x.actor,x.data);const Y=l.others.getUser(x.actor);if(V===void 0&&Y!==void 0)return{type:"enter",user:Y}}else l.others.patchOther(x.actor,x.data);const L=l.others.getUser(x.actor);return L?{type:"update",updates:x.data,user:L}:void 0}function H(x){const L=l.others.getUser(x.actor);return L?(l.others.removeConnection(x.actor),{type:"leave",user:L}):null}function G(x){l.dynamicSessionInfoSig.set({actor:x.actor,nonce:x.nonce,scopes:x.scopes}),l.idFactory=function(L){let V=0;return()=>`${L}:${V++}`}(x.actor),A();for(const L of l.others.connectionIds())x.users[L]===void 0&&l.others.removeConnection(L);for(const L in x.users){const V=x.users[L],Y=Number(L);l.others.setConnection(Y,V.id,V.info,V.scopes)}return{type:"reset"}}function Z(){return l.undoStack.length>0}function $(){return l.redoStack.length>0}function W(){g.history.notify({canUndo:Z(),canRedo:$()})}function U(x){l.others.setConnection(x.actor,x.id,x.info,x.scopes),l.buffer.messages.push({type:100,data:l.myPresence.get(),targetActor:x.actor}),X();const L=l.others.getUser(x.actor);return L?{type:"enter",user:L}:void 0}function J(x){return function(L){return!function(V){return V===null||typeof V=="string"||typeof V=="number"||typeof V=="boolean"}(L)&&!ku(L)}(x)?x:null}function X(){const x=l.buffer.storageOperations;if(x.length>0){for(const Y of x)l.unacknowledgedOps.set(me(Y.opId),Y);ce()}if(c.getStatus()!=="connected")return void(l.buffer.storageOperations=[]);const L=Date.now(),V=L-l.buffer.lastFlushedAt;if(V>=t.throttleDelay){const Y=function(){const ne=[];l.buffer.presenceUpdates&&ne.push(l.buffer.presenceUpdates.type==="full"?{type:100,targetActor:-1,data:l.buffer.presenceUpdates.data}:{type:100,data:l.buffer.presenceUpdates.data});for(const fe of l.buffer.messages)ne.push(fe);return l.buffer.storageOperations.length>0&&ne.push({type:201,ops:l.buffer.storageOperations}),ne}();if(Y.length===0)return;C(Y),l.buffer={flushTimerID:void 0,lastFlushedAt:L,messages:[],storageOperations:[],presenceUpdates:null}}else clearTimeout(l.buffer.flushTimerID),l.buffer.flushTimerID=setTimeout(X,t.throttleDelay-V)}function ie(x){const{storageOperations:L}=l.buffer;for(const V of x)L.push(V);X()}let de=null,ee=null;function pe(x){const L=new Map(l.unacknowledgedOps);O(x),function(V){if(V.size===0)return;const Y=[],ne=F(Array.from(V.values()),!0);Y.push({type:201,ops:ne.ops}),T(ne.updates),C(Y)}(L),ee?.(),ce(),g.storageDidLoad.notify()}function I(x){const L=l.buffer.messages;t.unstable_streamData?async function(){c.authValue&&pe({items:await i.streamStorage({roomId:n})})}():L.some(V=>V.type===200)||L.push({type:200}),x.flush&&X()}function N(){return de===null&&(I({flush:!0}),de=new Promise(x=>{ee=x}),ce()),de}function _(){const x=l.root;return x!==void 0?x:(N(),null)}async function K(){return l.root!==void 0?Promise.resolve({root:l.root}):(await N(),{root:me(l.root)})}const oe=t.createSyncSource();function Q(){return l.root===void 0?de===null?"not-loaded":"loading":l.unacknowledgedOps.size===0?"synchronized":"synchronizing"}let ue=Q();function ce(){const x=Q();ue!==x&&(ue=x,g.storageStatus.notify(x)),oe.setSyncStatus(x==="synchronizing"?"synchronizing":"synchronized")}function he(){return D.get()!==null}function be(){return _()!==null}const le=Ke.from(l.others.signal,x=>x.map((L,V)=>Iu(`Other ${V}`,L))),Ae={status:g.status.observable,lostConnection:g.lostConnection.observable,customEvent:g.customEvent.observable,others:g.others.observable,self:g.self.observable,myPresence:g.myPresence.observable,storage:g.storageBatch.observable,storageBatch:g.storageBatch.observable,history:g.history.observable,storageDidLoad:g.storageDidLoad.observable,storageStatus:g.storageStatus.observable,ydoc:g.ydoc.observable,comments:g.comments.observable,roomWillDestroy:g.roomWillDestroy.observable},re=t.createSyncSource();function Ce(x){return re.setSyncStatus(x==="synchronizing"?"synchronizing":"synchronized")}return Object.defineProperty({[Oe]:{get presenceBuffer(){return Sr(l.buffer.presenceUpdates?.data??null)},get undoStack(){return Sr(l.undoStack)},get nodeCount(){return l.pool.nodes.size},getYjsProvider:()=>l.yjsProvider,setYjsProvider(x){l.yjsProvider?.off("status",Ce),l.yjsProvider=x,x?.on("status",Ce),l.yjsProviderDidChange.notify()},yjsProviderDidChange:l.yjsProviderDidChange.observable,reportTextEditor:async function(x,L){await i.reportTextEditor({roomId:n,type:x,rootKey:L})},createTextMention:async function(x,L){return i.createTextMention({roomId:n,userId:x,mentionId:L})},deleteTextMention:async function(x){return i.deleteTextMention({roomId:n,mentionId:x})},listTextVersions:async function(){return i.listTextVersions({roomId:n})},listTextVersionsSince:async function(x){return i.listTextVersionsSince({roomId:n,since:x.since,signal:x.signal})},getTextVersion:async function(x){return i.getTextVersion({roomId:n,versionId:x})},createTextVersion:async function(){return i.createTextVersion({roomId:n})},executeContextualPrompt:async function(x){return i.executeContextualPrompt({roomId:n,...x})},getSelf_forDevTools:()=>B.get(),getOthers_forDevTools:()=>le.get(),simulate:{explicitClose:x=>c._privateSendMachineEvent({type:"EXPLICIT_SOCKET_CLOSE",event:x}),rawSend:x=>c.send(x)},attachmentUrlsStore:i.getOrCreateAttachmentUrlsStore(n)},id:n,subscribe:Eg(n,Ae,t.errorEventSource),connect:()=>c.connect(),reconnect:()=>c.reconnect(),disconnect:()=>c.disconnect(),destroy:()=>{const{roomWillDestroy:x,...L}=g;for(const V of Object.values(L))V[Symbol.dispose]();g.roomWillDestroy.notify(),l.yjsProvider?.off("status",Ce),oe.destroy(),re.destroy(),s(),c.destroy(),x[Symbol.dispose]()},updatePresence:function(x,L){const V={};l.buffer.presenceUpdates===null&&(l.buffer.presenceUpdates={type:"partial",data:{}});for(const Y in x){const ne=x[Y];ne!==void 0&&(l.buffer.presenceUpdates.data[Y]=ne,V[Y]=l.myPresence.get()[Y])}l.myPresence.patch(x),l.activeBatch?(L?.addToHistory&&l.activeBatch.reverseOps.pushLeft({type:"presence",data:V}),l.activeBatch.updates.presence=!0):(X(),L?.addToHistory&&k([{type:"presence",data:V}]),T({presence:!0}))},updateYDoc:function(x,L,V){const Y={type:301,update:x,guid:L,v2:V};l.buffer.messages.push(Y),g.ydoc.notify(Y),X()},broadcastEvent:function(x,L={shouldQueueEventIfNotReady:!1}){(c.getStatus()==="connected"||L.shouldQueueEventIfNotReady)&&(l.buffer.messages.push({type:103,event:x}),X())},batch:function(x){if(l.activeBatch)return x();let L;l.activeBatch={ops:[],updates:{storageUpdates:new Map,presence:!1,others:[]},reverseOps:new Pi};try{L=x()}finally{const V=l.activeBatch;l.activeBatch=null,V.reverseOps.length>0&&k(Array.from(V.reverseOps)),V.ops.length>0&&(l.redoStack.length=0),V.ops.length>0&&ie(V.ops),T(V.updates),X()}return L},history:{undo:function(){if(l.activeBatch)throw new Error("undo is not allowed during a batch");const x=l.undoStack.pop();if(x===void 0)return;l.pausedHistory=null;const L=F(x,!0);T(L.updates),l.redoStack.push(L.reverse),W();for(const V of L.ops)V.type!=="presence"&&l.buffer.storageOperations.push(V);X()},redo:function(){if(l.activeBatch)throw new Error("redo is not allowed during a batch");const x=l.redoStack.pop();if(x===void 0)return;l.pausedHistory=null;const L=F(x,!0);T(L.updates),l.undoStack.push(L.reverse),W();for(const V of L.ops)V.type!=="presence"&&l.buffer.storageOperations.push(V);X()},canUndo:Z,canRedo:$,clear:function(){l.undoStack.length=0,l.redoStack.length=0},pause:function(){l.pausedHistory===null&&(l.pausedHistory=new Pi)},resume:function(){const x=l.pausedHistory;l.pausedHistory=null,x!==null&&x.length>0&&S(Array.from(x))}},fetchYDoc:function(x,L,V){l.buffer.messages.find(Y=>Y.type===300&&Y.vector===x&&Y.guid===L&&Y.v2===V)||l.buffer.messages.push({type:300,vector:x,guid:L,v2:V}),X()},getStorage:K,getStorageSnapshot:_,getStorageStatus:Q,isPresenceReady:he,isStorageReady:be,waitUntilPresenceReady:pu(async function(){for(;!he();){const{promise:x,resolve:L}=yd(),V=Ae.self.subscribeOnce(L),Y=Ae.status.subscribeOnce(L);await x,V(),Y()}}),waitUntilStorageReady:pu(async function(){for(;!be();)await K()}),events:Ae,getStatus:()=>c.getStatus(),getSelf:()=>D.get(),getPresence:()=>l.myPresence.get(),getOthers:()=>l.others.get(),getThreads:async function(x){return i.getThreads({roomId:n,query:x?.query,cursor:x?.cursor})},getThreadsSince:async function(x){return i.getThreadsSince({roomId:n,since:x.since,signal:x.signal})},getThread:async function(x){return i.getThread({roomId:n,threadId:x})},createThread:async function(x){return i.createThread({roomId:n,threadId:x.threadId,commentId:x.commentId,metadata:x.metadata,body:x.body,attachmentIds:x.attachmentIds})},deleteThread:async function(x){return i.deleteThread({roomId:n,threadId:x})},editThreadMetadata:async function({metadata:x,threadId:L}){return i.editThreadMetadata({roomId:n,threadId:L,metadata:x})},markThreadAsResolved:async function(x){return i.markThreadAsResolved({roomId:n,threadId:x})},markThreadAsUnresolved:async function(x){return i.markThreadAsUnresolved({roomId:n,threadId:x})},createComment:async function(x){return i.createComment({roomId:n,threadId:x.threadId,commentId:x.commentId,body:x.body,attachmentIds:x.attachmentIds})},editComment:async function(x){return i.editComment({roomId:n,threadId:x.threadId,commentId:x.commentId,body:x.body,attachmentIds:x.attachmentIds})},deleteComment:async function({threadId:x,commentId:L}){return i.deleteComment({roomId:n,threadId:x,commentId:L})},addReaction:async function({threadId:x,commentId:L,emoji:V}){return i.addReaction({roomId:n,threadId:x,commentId:L,emoji:V})},removeReaction:async function({threadId:x,commentId:L,emoji:V}){return await i.removeReaction({roomId:n,threadId:x,commentId:L,emoji:V})},prepareAttachment:function(x){return{type:"localAttachment",status:"idle",id:Cd(),name:x.name,size:x.size,mimeType:x.type,file:x}},uploadAttachment:async function(x,L={}){return i.uploadAttachment({roomId:n,attachment:x,signal:L.signal})},getAttachmentUrl:function(x){return i.getAttachmentUrl({roomId:n,attachmentId:x})},getNotificationSettings:function(x){return i.getNotificationSettings({roomId:n,signal:x?.signal})},updateNotificationSettings:function(x){return i.updateNotificationSettings({roomId:n,settings:x})},markInboxNotificationAsRead:async function(x){await i.markRoomInboxNotificationAsRead({roomId:n,inboxNotificationId:x})}},Oe,{enumerable:!1})}function Eg(e,t,n){function r(o,i){return t.storageBatch.subscribe(a=>{const s=a.filter(u=>Td(u.node,o));s.length>0&&i(s)})}return function(o,i,a){if(typeof o=="string"&&((s=o)==="my-presence"||s==="others"||s==="event"||s==="error"||s==="history"||s==="status"||s==="storage-status"||s==="lost-connection"||s==="connection"||s==="comments")){if(typeof i!="function")throw new Error("Second argument must be a callback function");const u=i;switch(o){case"event":return t.customEvent.subscribe(u);case"my-presence":return t.myPresence.subscribe(u);case"others":{const c=u;return t.others.subscribe(l=>{const{others:d,...p}=l;return c(d,p)})}case"error":return n.subscribe(c=>{if(c.roomId===e)return u(c)});case"status":return t.status.subscribe(u);case"lost-connection":return t.lostConnection.subscribe(u);case"history":return t.history.subscribe(u);case"storage-status":return t.storageStatus.subscribe(u);case"comments":return t.comments.subscribe(u);default:return ft(0,`"${String(o)}" is not a valid event name`)}}var s;if(i===void 0||typeof o=="function"){if(typeof o=="function"){const u=o;return t.storageBatch.subscribe(u)}throw new Error("Please specify a listener callback")}if(Ue(o)){const u=o;return a?.isDeep?r(u,i):function(c,l){return t.storageBatch.subscribe(d=>{for(const p of d)p.node._id===c._id&&l(p.node)})}(u,i)}throw new Error(`${String(o)} is not a value that can be subscribed to.`)}}function Ag(e,t){return async()=>t.getAuthValue({requestedScope:"room:read",roomId:e})}function xg(e,t,n){return r=>{const o=n??(typeof WebSocket>"u"?void 0:WebSocket);if(o===void 0)throw new En("To use Liveblocks client in a non-DOM environment, you need to provide a WebSocket polyfill.");const i=new URL(t);if(i.protocol=i.protocol==="http:"?"ws":"wss",i.pathname="/v7",i.searchParams.set("roomId",e),r.type==="secret")i.searchParams.set("tok",r.token.raw);else{if(r.type!=="public")return ft(0,"Unhandled case");i.searchParams.set("pubkey",r.publicApiKey)}return i.searchParams.set("version",ns),new o(i.toString())}}function Og(e){const t=e,n=Mi("throttle",t.throttle??100,16,1e3),r=function(k){return Mi("lostConnectionTimeout",k,200,3e4,1e3)}(t.lostConnectionTimeout??5e3),o=function(k){return k===void 0?void 0:Mi("backgroundKeepAliveTimeout",k,15e3)}(t.backgroundKeepAliveTimeout),i=function(k){return typeof k=="string"&&k.startsWith("http")?k:"https://api.liveblocks.io"}(t.baseUrl),a=new jt(void 0),s=fg(e,k=>{const T=k.k==="sec-legacy"?k.id:k.uid;a.set(()=>T)}),u=t.polyfills?.fetch||globalThis.fetch?.bind(globalThis),c=og({baseUrl:i,fetchPolyfill:u,authManager:s}),l=new Map;function d(k){const T=()=>{const F=T;var R;k.unsubs.delete(F)?k.unsubs.size===0&&((R=k.room).id,l.delete(R.id),R.destroy()):at("This leave function was already called. Calling it more than once has no effect.")};return k.unsubs.add(T),{room:k.room,leave:T}}const p=t.resolveUsers,m=Fu(()=>!p,"Set the resolveUsers option in createClient to specify user info."),g=ba(new Fr(async k=>{const T=k.flat(),F=await p?.({userIds:T});return m(),F??T.map(()=>{})},{delay:50})),y=t.resolveRoomsInfo,f=Fu(()=>!y,"Set the resolveRoomsInfo option in createClient to specify room info."),b=ba(new Fr(async k=>{const T=k.flat(),F=await y?.({roomIds:T});return f(),F??T.map(()=>{})},{delay:50})),C=new Map,D=[],E=new jt("synchronized"),A=ke();function B(){E.set(D.some(k=>k.get()==="synchronizing")?"synchronizing":D.some(k=>k.get()==="has-local-changes")?"has-local-changes":"synchronized")}function O(){const k=new jt("synchronized");D.push(k);const T=k.subscribe(()=>B());return{setSyncStatus:function(F){k.set(F)},destroy:function(){T();const F=D.findIndex(R=>R===k);if(F>-1){const[R]=D.splice(F,1);R.get()!=="synchronized"&&B()}}}}{const k=F=>{t.preventUnsavedChanges&&E.get()!=="synchronized"&&F.preventDefault()};(typeof window<"u"?window:void 0)?.addEventListener("beforeunload",k)}const S=Object.defineProperty({enterRoom:function(k,...T){const F=l.get(k);if(F!==void 0)return d(F);const R=T[0]??{},P=Dg({initialPresence:(typeof R.initialPresence=="function"?R.initialPresence(k):R.initialPresence)??{},initialStorage:(typeof R.initialStorage=="function"?R.initialStorage(k):R.initialStorage)??{}},{roomId:k,throttleDelay:n,lostConnectionTimeout:r,backgroundKeepAliveTimeout:o,polyfills:t.polyfills,delegates:t.mockedDelegates??{createSocket:xg(k,i,t.polyfills?.WebSocket),authenticate:Ag(k,s)},enableDebugLogging:t.enableDebugLogging,baseUrl:i,errorEventSource:A,largeMessageStrategy:t.largeMessageStrategy??(t.unstable_fallbackToHTTP?"experimental-fallback-to-http":void 0),unstable_streamData:!!t.unstable_streamData,roomHttpClient:c,createSyncSource:O}),H={room:P,unsubs:new Set};if(l.set(k,H),R.autoConnect??!0){if(typeof atob>"u"){if(t.polyfills?.atob===void 0)throw new Error("You need to polyfill atob to use the client in your environment. Please follow the instructions at https://liveblocks.io/docs/errors/liveblocks-client/atob-polyfill");ha.atob=t.polyfills.atob}P.connect()}return d(H)},getRoom:function(k){return l.get(k)?.room||null},logout:function(){s.reset(),a.set(()=>{});for(const{room:T}of l.values())(k=T.getStatus())!=="initial"&&k!=="disconnected"&&T.reconnect();var k},getInboxNotifications:c.getInboxNotifications,getInboxNotificationsSince:c.getInboxNotificationsSince,getUnreadInboxNotificationsCount:c.getUnreadInboxNotificationsCount,markAllInboxNotificationsAsRead:c.markAllInboxNotificationsAsRead,markInboxNotificationAsRead:c.markInboxNotificationAsRead,deleteAllInboxNotifications:c.deleteAllInboxNotifications,deleteInboxNotification:c.deleteInboxNotification,getNotificationSettings:async function(k){return Zo(await c.getUserNotificationSettings(k))},updateNotificationSettings:async function(k){return Zo(await c.updateUserNotificationSettings(k))},resolvers:{invalidateUsers:function(k){g.invalidate(k)},invalidateRoomsInfo:function(k){b.invalidate(k)},invalidateMentionSuggestions:function(){C.clear()}},getSyncStatus:function(){const k=E.get();return k==="synchronizing"?k:"synchronized"},events:{error:A,syncStatus:E},[Oe]:{currentUserId:a,mentionSuggestionsCache:C,resolveMentionSuggestions:t.resolveMentionSuggestions,usersStore:g,roomsInfoStore:b,getRoomIds:()=>Array.from(l.keys()),httpClient:c,as:()=>S,createSyncSource:O,emitError:(k,T)=>{const F=_d.from(k,T);A.notify(F)||no(F.message)}}},Oe,{enumerable:!1});return S}function Mi(e,t,n,r,o){if(typeof t!="number"||t<n||r!==void 0&&t>r)throw new Error(r!==void 0?`${e} should be between ${o??n} and ${r}.`:`${e} should be at least ${o??n}.`);return t}function Fu(e,...t){return()=>{}}new RegExp(Object.keys({"&":"&","<":"<",">":">",'"':""","'":"'"}).map(e=>`\\${e}`).join("|"),"g");new RegExp(Object.keys({_:"\\_","*":"\\*","#":"\\#","`":"\\`","~":"\\~","!":"\\!","|":"\\|","(":"\\(",")":"\\)","{":"\\{","}":"\\}","[":"\\[","]":"\\]"}).map(e=>`\\${e}`).join("|"),"g");var Li=[1e3,2e3,4e3,8e3,1e4];function Yn(e,t,n){const r=performance.now(),o=typeof document<"u"?document:void 0,i=typeof window<"u"?window:void 0,a=n?.maxStaleTimeMs??Number.POSITIVE_INFINITY,s={inForeground:o?.visibilityState!=="hidden",lastSuccessfulPollAt:r,count:0,backoff:0};function u(){return s.count>0&&s.inForeground}const c=new Ad({}).addState("@idle").addState("@enabled").addState("@polling");function l(){u()?c.send({type:"START"}):c.send({type:"STOP"})}function d(){performance.now()-s.lastSuccessfulPollAt>a&&c.send({type:"POLL"})}function p(g){s.inForeground=g,l(),d()}function m(){p(o?.visibilityState!=="hidden")}return c.addTransitions("@idle",{START:"@enabled"}),c.addTransitions("@enabled",{STOP:"@idle",POLL:"@polling"}),c.addTimedTransition("@enabled",()=>{const g=s.lastSuccessfulPollAt+t;return Math.max(0,g-performance.now())+s.backoff},"@polling"),c.onEnterAsync("@polling",async(g,y)=>{await e(y),y.aborted||(s.lastSuccessfulPollAt=performance.now())},()=>({target:u()?"@enabled":"@idle",effect:()=>{s.backoff=0}}),()=>({target:u()?"@enabled":"@idle",effect:()=>{s.backoff=Li.find(g=>g>s.backoff)??Li[Li.length-1]}}),3e4),o?.addEventListener("visibilitychange",m),i?.addEventListener("online",m),i?.addEventListener("focus",d),c.start(),{inc:function(){s.count++,l()},dec:function(){s.count--,s.count<0&&(s.count=0),l()},pollNowIfStale:d,setInForeground:p}}function Tt(e,t){if(Object.is(e,t))return!0;const n=Array.isArray(e),r=Array.isArray(t);return n||r?!(!n||!r)&&function(o,i){if(o.length!==i.length)return!1;for(let a=0;a<o.length;a++)if(!Object.is(o[a],i[a]))return!1;return!0}(e,t):function(o,i){if(!Zt(o)||!Zt(i))return!1;const a=Object.keys(o);return a.length===Object.keys(i).length&&a.every(s=>Object.prototype.hasOwnProperty.call(i,s)&&Object.is(o[s],i[s]))}(e,t)}var Tu=class _o{#e;#t;constructor(t,n){this.#t=n,this.#e=t}static from(t,n){const r=new _o([],n);for(const o of t)r.add(o);return r}static fromAlreadySorted(t,n){return new _o(t,n)}clone(){return new _o(this.#e.slice(),this.#t)}add(t){const n=function(r,o,i){let a=0,s=r.length;for(;a<s;){const u=a+(s-a>>1);i(o,r[u])?s=u:a=u+1}return a}(this.#e,t,this.#t);this.#e.splice(n,0,t)}remove(t){const n=this.#e.indexOf(t);return n>=0&&(this.#e.splice(n,1),!0)}get length(){return this.#e.length}*filter(t){for(const n of this.#e)t(n)&&(yield n)}[Symbol.iterator](){return this.#e[Symbol.iterator]()}};rs("@liveblocks/core",ns,"esm");rs("@liveblocks/client","2.23.0","esm");var Pd=h.createContext(null);function cs(e,t,n,r,o){const i=h.useRef(null);let a;i.current===null?(a={hasValue:!1,value:null},i.current=a):a=i.current;const[s,u]=h.useMemo(()=>{let l,d,p=!1;const m=y=>{if(!p){p=!0,l=y;const C=r(y);if(o!==void 0&&a.hasValue){const D=a.value;if(o(D,C))return d=D,D}return d=C,C}const f=d;if(function(C,D){return C===D&&(C!==0||1/C==1/D)||C!=C&&D!=D}(l,y))return f;const b=r(y);return o!==void 0&&o(f,b)?(l=y,f):(l=y,d=b,b)},g=n===void 0?null:n;return[()=>m(t()),g===null?void 0:()=>m(g())]},[t,n,r,o]),c=h.useSyncExternalStore(e,s,u);return h.useEffect(()=>{a.hasValue=!0,a.value=c},[c]),h.useDebugValue(c),c}var Bg=e=>e;function yr(e,t,n){return cs(e.subscribe,e.get,e.get,t??Bg,n)}var dt={NOTIFICATIONS_POLL_INTERVAL:6e4,NOTIFICATIONS_MAX_STALE_TIME:5e3,ROOM_THREADS_POLL_INTERVAL:3e5,ROOM_THREADS_MAX_STALE_TIME:5e3,USER_THREADS_POLL_INTERVAL:6e4,USER_THREADS_MAX_STALE_TIME:3e4,HISTORY_VERSIONS_POLL_INTERVAL:6e4,HISTORY_VERSIONS_MAX_STALE_TIME:5e3,NOTIFICATION_SETTINGS_POLL_INTERVAL:6e4,NOTIFICATION_SETTINGS_MAX_STALE_TIME:5e3,USER_NOTIFICATION_SETTINGS_INTERVAL:3e5,USER_NOTIFICATION_SETTINGS_MAX_STALE_TIME:6e4},Yo=Object.freeze({isLoading:!0}),Md=e=>Object.freeze({isLoading:!1,error:e});function Jn(e,t){return arguments.length===1?Object.freeze({isLoading:!1,data:e}):Object.freeze({isLoading:!1,[e]:t})}var kg=e=>e;function nt(e){return h.useReducer(kg,e)[0]}function vo(e){const t=nt(e);if(typeof t=="function"){const n=function(r){const o=h.useRef(r);return h.useEffect(()=>{o.current=r},[r]),o}(e);return h.useCallback((...r)=>n.current(...r),[n])}return t}function ls(e){const t=new Set;t.add("constructor");let n=e.constructor.prototype;do for(const r of Reflect.ownKeys(n)){if(t.has(r))continue;typeof Reflect.getOwnPropertyDescriptor(n,r)?.value=="function"&&(t.add(r),e[r]=e[r].bind(e))}while((n=Reflect.getPrototypeOf(n))&&n!==Object.prototype)}function ju(e,t){if(!Zt(e)||!Zt(t))return Tt(e,t);const n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(r=>Object.prototype.hasOwnProperty.call(t,r)&&Tt(e[r],t[r]))}function Sg(e){return t=>function(n,r){return r.resolved===void 0||n.resolved===r.resolved}(t,e)&&function(n,r){const o=n.metadata;return r.metadata===void 0||Object.entries(r.metadata).every(([i,a])=>a===void 0||function(s,u){return u===null?s===void 0:ma(u)?typeof s=="string"&&s.startsWith(u.startsWith):s===u}(o[i],a))}(t,e)}var Ig=class Ld{#e;#t;#n;signal;constructor(){this.#t=Tu.from([],(t,n)=>{const r=t.createdAt,o=n.createdAt;return r<o||r===o&&t.id<n.id}),this.#n=Tu.from([],(t,n)=>{const r=n.updatedAt,o=t.updatedAt;return r<o||r===o&&n.id<t.id}),this.#e=new Map,this.signal=new On(this)}clone(){const t=new Ld;return t.#e=new Map(this.#e),t.#t=this.#t.clone(),t.#n=this.#n.clone(),t}get(t){const n=this.getEvenIfDeleted(t);return n?.deletedAt?void 0:n}getEvenIfDeleted(t){return this.#e.get(t)}upsert(t){this.signal.mutate(()=>{const n=(t=function(o){return o.deletedAt&&o.comments.length>0?{...o,comments:[]}:o.comments.some(i=>!i.deletedAt)?o:{...o,deletedAt:new Date,comments:[]}}(t)).id,r=this.#e.get(n);if(r){if(r.deletedAt)return!1;this.#t.remove(r),this.#n.remove(r)}return t.deletedAt||(this.#t.add(t),this.#n.add(t)),this.#e.set(n,t),!0})}upsertIfNewer(t){const n=this.get(t.id);(!n||t.updatedAt>=n.updatedAt)&&this.upsert(t)}applyDelta(t,n){rt(()=>{for(const r of t)this.upsertIfNewer(r);for(const{id:r,deletedAt:o}of n)this.getEvenIfDeleted(r)&&this.delete(r,o)})}delete(t,n){const r=this.#e.get(t);r&&!r.deletedAt&&this.upsert({...r,deletedAt:n,updatedAt:n})}findMany(t,n,r){const o=r==="desc"?this.#n:this.#t,i=[];return t!==void 0&&i.push(a=>a.roomId===t),i.push(Sg(n)),Array.from(o.filter(a=>i.every(s=>s(a))))}};function Ud(e){if("status"in e)return e;const t=e;return t.status="pending",t.then(n=>{t.status="fulfilled",t.value=n},n=>{t.status="rejected",t.reason=n}),t}var Fg=Promise.resolve(),Ui=class{#e;signal;#t;#n;constructor(e){this.#e=new jt(Yo),this.#t=e,this.#n=null,this.signal=this.#e.asReadonly(),ls(this)}get(){return this.#e.get()}#r(e){const t=this.#e.get();t.data!==void 0&&this.#e.set(Jn({...t.data,...e}))}async#i(){const e=this.#e.get();if(e.data?.cursor&&!e.data.isFetchingMore){this.#r({isFetchingMore:!0});try{const t=await this.#t(e.data.cursor);this.#r({cursor:t,hasFetchedAll:t===null,fetchMoreError:void 0,isFetchingMore:!1})}catch(t){this.#r({isFetchingMore:!1,fetchMoreError:t})}}}fetchMore(){return this.#e.get().data?.cursor?(this.#n||(this.#n=this.#i().finally(()=>{this.#n=null})),this.#n):Fg}#o=null;waitUntilLoaded(){if(this.#o)return this.#o;const e=Ud(Ir(()=>this.#t(void 0),5,[5e3,5e3,1e4,15e3]));return e.then(t=>{this.#e.set(Jn({cursor:t,hasFetchedAll:t===null,isFetchingMore:!1,fetchMoreError:void 0,fetchMore:this.fetchMore}))},t=>{this.#e.set(Md(t)),setTimeout(()=>{this.#o=null,this.#e.set(Yo)},5e3)}),this.#o=e,this.#o}},Vi=class{#e;signal;#t;constructor(e){this.#e=new jt(Yo),this.signal=this.#e.asReadonly(),this.#t=e,ls(this)}get(){return this.#e.get()}#n=null;waitUntilLoaded(){if(this.#n)return this.#n;const e=Ud(Ir(()=>this.#t(),5,[5e3,5e3,1e4,15e3]));return e.then(()=>{this.#e.set(Jn(void 0))},t=>{this.#e.set(Md(t)),setTimeout(()=>{this.#n=null,this.#e.set(Yo)},5e3)}),this.#n=e,e}};function Tg(e){const t=new On(new Map);return{signal:Ke.from(t,e,(n,r)=>function(o,i){const a=Object.fromEntries(o);for(const s of i)switch(s.type){case"update-notification-settings":{const u=a[s.roomId];if(u===void 0)break;a[s.roomId]={...u,...s.settings}}}return a}(n,r)),update:function(n,r){t.mutate(o=>{o.set(n,r)})}}}function jg(e){const t=new jt(Zo({}));return{signal:Ke.from(t,e,(n,r)=>function(o,i){let a=o;for(const s of i)s.type==="update-user-notification-settings"&&(a=hg(a,s.settings));return a}(n,r)),update:function(n){t.set(n)}}}var Rg=class{#e;threads;notifications;roomNotificationSettings;historyVersions;permissionHints;userNotificationSettings;optimisticUpdates;outputs;#t=null;#n;#r=new Map;#i=null;#o=new Map;#s;constructor(e){this.#e=e[Oe].as(),this.optimisticUpdates=function(l){const d=new jt([]),p=l[Oe].createSyncSource();return d.subscribe(()=>p.setSyncStatus(d.get().length>0?"synchronizing":"synchronized")),{signal:d.asReadonly(),add:function(m){const g=mr(),y={...m,id:g};return d.set(f=>[...f,y]),g},remove:function(m){d.set(g=>g.filter(y=>y.id!==m))}}}(this.#e),this.permissionHints=function(){const l=new On(new vt(()=>new Set));return{signal:l.asReadonly(),update:function(d){l.mutate(p=>{for(const[m,g]of Object.entries(d)){const y=p.getOrCreate(m);for(const f of g)y.add(f)}})}}}(),this.#n=new Ui(async l=>{const d=await this.#e.getInboxNotifications({cursor:l});return this.updateThreadifications(d.threads,d.inboxNotifications),this.#t===null&&(this.#t=d.requestedAt),d.nextCursor}),this.userNotificationSettings=jg(this.optimisticUpdates.signal),this.#s=new Vi(async()=>{const l=await this.#e.getNotificationSettings();this.userNotificationSettings.update(l)}),this.threads=new Ig,this.notifications=function(){const l=new On(new Map);return{signal:l.asReadonly(),markAllRead:function(d){l.mutate(p=>{for(const m of p.values())m.readAt=d})},markRead:function(d,p){l.mutate(m=>{const g=m.get(d);return!!g&&(m.set(d,{...g,readAt:p}),!0)})},delete:function(d){l.mutate(p=>p.delete(d))},applyDelta:function(d,p){l.mutate(m=>{let g=!1;for(const y of d){const f=m.get(y.id);f&&_g(f,y)===1||(m.set(y.id,y),g=!0)}for(const y of p)m.delete(y.id),g=!0;return g})},clear:function(){l.mutate(d=>d.clear())},updateAssociatedNotification:function(d){l.mutate(p=>{const m=function(g,y){for(const f of g)if(y(f))return f}(p.values(),g=>g.kind==="thread"&&g.threadId===d.threadId);return!!m&&(p.set(m.id,{...m,notifiedAt:d.createdAt,readAt:d.createdAt}),!0)})},upsert:function(d){l.mutate(p=>{p.set(d.id,d)})}}}(),this.roomNotificationSettings=Tg(this.optimisticUpdates.signal),this.historyVersions=function(){const l=new On(new vt(()=>new Map));return{signal:Ke.from(l,d=>Object.fromEntries([...d].map(([p,m])=>[p,Object.fromEntries(m)]))),update:function(d,p){l.mutate(m=>{const g=m.getOrCreate(d);for(const y of p)g.set(y.id,y)})}}}();const t=Ke.from(this.threads.signal,this.notifications.signal,this.optimisticUpdates.signal,(l,d,p)=>function(m,g,y){const f=m.clone();let b=Object.fromEntries(g);for(const C of y)switch(C.type){case"create-thread":f.upsert(C.thread);break;case"edit-thread-metadata":{const D=f.get(C.threadId);if(D===void 0||D.updatedAt>C.updatedAt)break;f.upsert({...D,updatedAt:C.updatedAt,metadata:{...D.metadata,...C.metadata}});break}case"mark-thread-as-resolved":{const D=f.get(C.threadId);if(D===void 0)break;f.upsert({...D,resolved:!0});break}case"mark-thread-as-unresolved":{const D=f.get(C.threadId);if(D===void 0)break;f.upsert({...D,resolved:!1});break}case"create-comment":{const D=f.get(C.comment.threadId);if(D===void 0)break;f.upsert(yo(D,C.comment));const E=Object.values(b).find(A=>A.kind==="thread"&&A.threadId===D.id);if(E===void 0)break;b[E.id]={...E,notifiedAt:C.comment.createdAt,readAt:C.comment.createdAt};break}case"edit-comment":{const D=f.get(C.comment.threadId);if(D===void 0)break;f.upsert(yo(D,C.comment));break}case"delete-comment":{const D=f.get(C.threadId);if(D===void 0)break;f.upsert(Ru(D,C.commentId,C.deletedAt));break}case"delete-thread":{const D=f.get(C.threadId);if(D===void 0)break;f.upsert({...D,deletedAt:C.deletedAt,updatedAt:C.deletedAt,comments:[]});break}case"add-reaction":{const D=f.get(C.threadId);if(D===void 0)break;f.upsert(_u(D,C.commentId,C.reaction));break}case"remove-reaction":{const D=f.get(C.threadId);if(D===void 0)break;f.upsert(Nu(D,C.commentId,C.emoji,C.userId,C.removedAt));break}case"mark-inbox-notification-as-read":{const D=b[C.inboxNotificationId];if(D===void 0)break;b[C.inboxNotificationId]={...D,readAt:C.readAt};break}case"mark-all-inbox-notifications-as-read":for(const D in b){const E=b[D];if(E===void 0)break;b[D]={...E,readAt:C.readAt}}break;case"delete-inbox-notification":delete b[C.inboxNotificationId];break;case"delete-all-inbox-notifications":b={}}return{sortedNotifications:Object.values(b).filter(C=>C.kind!=="thread"||f.get(C.threadId)!==void 0).sort((C,D)=>D.notifiedAt.getTime()-C.notifiedAt.getTime()),notificationsById:b,threadsDB:f}}(l,d,p)),n=Ke.from(t,l=>l.threadsDB),r=Ke.from(t,l=>({sortedNotifications:l.sortedNotifications,notificationsById:l.notificationsById}),Tt),o=new vt(l=>{const d=JSON.parse(l),p=new Ui(async m=>{const g=await this.#e[Oe].httpClient.getUserThreads_experimental({cursor:m,query:d});return this.updateThreadifications(g.threads,g.inboxNotifications),this.permissionHints.update(g.permissionHints),this.#i===null&&(this.#i=g.requestedAt),g.nextCursor});return{signal:Ke.from(()=>{const m=p.get();if(m.isLoading||m.error)return m;const g=this.outputs.threads.get().findMany(void 0,d??{},"desc"),y=m.data;return{isLoading:!1,threads:g,hasFetchedAll:y.hasFetchedAll,isFetchingMore:y.isFetchingMore,fetchMoreError:y.fetchMoreError,fetchMore:y.fetchMore}},ju),waitUntilLoaded:p.waitUntilLoaded}}),i=new vt(l=>{const[d,p]=JSON.parse(l),m=new Ui(async g=>{const y=await this.#e[Oe].httpClient.getThreads({roomId:d,cursor:g,query:p});this.updateThreadifications(y.threads,y.inboxNotifications),this.permissionHints.update(y.permissionHints);const f=this.#r.get(d);return(f===void 0||f>y.requestedAt)&&this.#r.set(d,y.requestedAt),y.nextCursor});return{signal:Ke.from(()=>{const g=m.get();if(g.isLoading||g.error)return g;const y=this.outputs.threads.get().findMany(d,p??{},"asc"),f=g.data;return{isLoading:!1,threads:y,hasFetchedAll:f.hasFetchedAll,isFetchingMore:f.isFetchingMore,fetchMoreError:f.fetchMoreError,fetchMore:f.fetchMore}},ju),waitUntilLoaded:m.waitUntilLoaded}}),a={signal:Ke.from(()=>{const l=this.#n.get();if(l.isLoading||l.error)return l;const d=l.data;return{isLoading:!1,inboxNotifications:this.outputs.notifications.get().sortedNotifications,hasFetchedAll:d.hasFetchedAll,isFetchingMore:d.isFetchingMore,fetchMoreError:d.fetchMoreError,fetchMore:d.fetchMore}}),waitUntilLoaded:this.#n.waitUntilLoaded},s=new vt(l=>{const d=new Vi(async()=>{const p=this.#e.getRoom(l);if(p===null)throw new Error(`Room '${l}' is not available on client`);const m=await p.getNotificationSettings();this.roomNotificationSettings.update(l,m)});return{signal:Ke.from(()=>{const p=d.get();return p.isLoading||p.error?p:Jn("settings",me(this.roomNotificationSettings.signal.get()[l]))},Tt),waitUntilLoaded:d.waitUntilLoaded}}),u=new vt(l=>{const d=new Vi(async()=>{const p=this.#e.getRoom(l);if(p===null)throw new Error(`Room '${l}' is not available on client`);const m=await p[Oe].listTextVersions();this.historyVersions.update(l,m.versions);const g=this.#o.get(l);(g===void 0||g>m.requestedAt)&&this.#o.set(l,m.requestedAt)});return{signal:Ke.from(()=>{const p=d.get();return p.isLoading||p.error?p:Jn("versions",Object.values(this.historyVersions.signal.get()[l]??{}))},Tt),waitUntilLoaded:d.waitUntilLoaded}}),c={signal:Ke.from(()=>{const l=this.#s.get();return l.isLoading||l.error?l:Jn("settings",me(this.userNotificationSettings.signal.get()))},Tt),waitUntilLoaded:this.#s.waitUntilLoaded};this.outputs={threadifications:t,threads:n,loadingRoomThreads:i,loadingUserThreads:o,notifications:r,loadingNotifications:a,settingsByRoomId:s,versionsByRoomId:u,userNotificationSettings:c},ls(this)}markInboxNotificationRead(e,t,n){rt(()=>{this.optimisticUpdates.remove(n),this.notifications.markRead(e,t)})}markAllInboxNotificationsRead(e,t){rt(()=>{this.optimisticUpdates.remove(e),this.notifications.markAllRead(t)})}deleteInboxNotification(e,t){rt(()=>{this.optimisticUpdates.remove(t),this.notifications.delete(e)})}deleteAllInboxNotifications(e){rt(()=>{this.optimisticUpdates.remove(e),this.notifications.clear()})}createThread(e,t){rt(()=>{this.optimisticUpdates.remove(e),this.threads.upsert(t)})}#a(e,t,n,r){rt(()=>{t!==null&&this.optimisticUpdates.remove(t);const o=this.threads,i=o.get(e);i&&(r&&i.updatedAt>r||o.upsert(n(i)))})}patchThread(e,t,n,r){return this.#a(e,t,o=>({...o,...Vr(n)}),r)}addReaction(e,t,n,r,o){this.#a(e,t,i=>_u(i,n,r),o)}removeReaction(e,t,n,r,o,i){this.#a(e,t,a=>Nu(a,n,r,o,i),i)}deleteThread(e,t){return this.#a(e,t,n=>({...n,updatedAt:new Date,deletedAt:new Date}))}createComment(e,t){rt(()=>{this.optimisticUpdates.remove(t);const n=this.threads.get(e.threadId);n&&(this.threads.upsert(yo(n,e)),this.notifications.updateAssociatedNotification(e))})}editComment(e,t,n){return this.#a(e,t,r=>yo(r,n))}deleteComment(e,t,n,r){return this.#a(e,t,o=>Ru(o,n,r),r)}updateThreadifications(e,t,n=[],r=[]){rt(()=>{this.threads.applyDelta(e,n),this.notifications.applyDelta(t,r)})}updateRoomNotificationSettings(e,t,n){rt(()=>{this.optimisticUpdates.remove(t),this.roomNotificationSettings.update(e,n)})}async fetchNotificationsDeltaUpdate(e){const t=this.#t;if(t===null)return;const n=await this.#e.getInboxNotificationsSince({since:t,signal:e});t<n.requestedAt&&(this.#t=n.requestedAt),this.updateThreadifications(n.threads.updated,n.inboxNotifications.updated,n.threads.deleted,n.inboxNotifications.deleted)}async fetchRoomThreadsDeltaUpdate(e,t){const n=this.#r.get(e);if(n===void 0)return;const r=await this.#e[Oe].httpClient.getThreadsSince({roomId:e,since:n,signal:t});this.updateThreadifications(r.threads.updated,r.inboxNotifications.updated,r.threads.deleted,r.inboxNotifications.deleted),this.permissionHints.update(r.permissionHints),n<r.requestedAt&&this.#r.set(e,r.requestedAt)}async fetchUserThreadsDeltaUpdate(e){const t=this.#i;if(t===null)return;const n=await this.#e[Oe].httpClient.getUserThreadsSince_experimental({since:t,signal:e});t<n.requestedAt&&(this.#t=n.requestedAt),this.updateThreadifications(n.threads.updated,n.inboxNotifications.updated,n.threads.deleted,n.inboxNotifications.deleted),this.permissionHints.update(n.permissionHints)}async fetchRoomVersionsDeltaUpdate(e,t){const n=this.#o.get(e);if(n===void 0)return;const r=me(this.#e.getRoom(e),`Room with id ${e} is not available on client`),o=await r[Oe].listTextVersionsSince({since:n,signal:t});this.historyVersions.update(e,o.versions),n<o.requestedAt&&this.#o.set(e,o.requestedAt)}async refreshRoomNotificationSettings(e,t){const n=me(this.#e.getRoom(e),`Room with id ${e} is not available on client`),r=await n.getNotificationSettings({signal:t});this.roomNotificationSettings.update(e,r)}async refreshUserNotificationSettings(e){const t=await this.#e.getNotificationSettings({signal:e});this.userNotificationSettings.update(t)}updateUserNotificationSettings_confirmOptimisticUpdate(e,t){rt(()=>{this.optimisticUpdates.remove(t),this.userNotificationSettings.update(e)})}};function _g(e,t){return e.notifiedAt>t.notifiedAt?1:e.notifiedAt<t.notifiedAt?-1:e.readAt&&t.readAt?e.readAt>t.readAt?1:e.readAt<t.readAt?-1:0:e.readAt||t.readAt?e.readAt?1:-1:0}function yo(e,t){if(e.deletedAt!==void 0)return e;if(t.threadId!==e.id)return sn.warn(`Comment ${t.id} does not belong to thread ${e.id}`),e;const n=e.comments.find(r=>r.id===t.id);if(n===void 0){const r=new Date(Math.max(e.updatedAt.getTime(),t.createdAt.getTime()));return{...e,updatedAt:r,comments:[...e.comments,t]}}if(n.deletedAt!==void 0)return e;if(n.editedAt===void 0||t.editedAt===void 0||n.editedAt<=t.editedAt){const r=e.comments.map(o=>o.id===t.id?t:o);return{...e,updatedAt:new Date(Math.max(e.updatedAt.getTime(),t.editedAt?.getTime()||t.createdAt.getTime())),comments:r}}return e}function Ru(e,t,n){if(e.deletedAt!==void 0)return e;const r=e.comments.find(i=>i.id===t);if(r===void 0||r.deletedAt!==void 0)return e;const o=e.comments.map(i=>i.id===t?{...i,deletedAt:n,body:void 0,attachments:[]}:i);return o.every(i=>i.deletedAt!==void 0)?{...e,deletedAt:n,updatedAt:n}:{...e,updatedAt:n,comments:o}}function _u(e,t,n){if(e.deletedAt!==void 0)return e;const r=e.comments.find(i=>i.id===t);if(r===void 0||r.deletedAt!==void 0)return e;const o=e.comments.map(i=>i.id===t?{...i,reactions:Ng(i.reactions,n)}:i);return{...e,updatedAt:new Date(Math.max(n.createdAt.getTime(),e.updatedAt.getTime())),comments:o}}function Nu(e,t,n,r,o){if(e.deletedAt!==void 0)return e;const i=e.comments.find(s=>s.id===t);if(i===void 0||i.deletedAt!==void 0)return e;const a=e.comments.map(s=>s.id===t?{...s,reactions:s.reactions.map(u=>u.emoji===n?{...u,users:u.users.filter(c=>c.id!==r)}:u).filter(u=>u.users.length>0)}:s);return{...e,updatedAt:new Date(Math.max(o.getTime(),e.updatedAt.getTime())),comments:a}}function Ng(e,t){const n=e.find(r=>r.emoji===t.emoji);return n===void 0?[...e,{emoji:t.emoji,createdAt:t.createdAt,users:[{id:t.userId}]}]:n.users.some(r=>r.id===t.userId)===!1?e.map(r=>r.emoji===t.emoji?{...r,users:[...r.users,{id:t.userId}]}:r):e}var Vd=h.createContext(null);function Pg(e){return new Error(`resolveUsers didn't return anything for user '${e}'`)}function Mg(e){return e}var Pu=new WeakMap,Mu=new WeakMap;function Hd(e){let t=Pu.get(e);return t||(t=new Rg(e),Pu.set(e,t)),t}function ds(e){let t=Mu.get(e);return t||(t=function(n){const r=Hd(n),o=Yn(async s=>{try{return await r.fetchNotificationsDeltaUpdate(s)}catch(u){throw console.warn(`Polling new inbox notifications failed: ${String(u)}`),u}},dt.NOTIFICATIONS_POLL_INTERVAL,{maxStaleTimeMs:dt.NOTIFICATIONS_MAX_STALE_TIME}),i=Yn(async s=>{try{return await r.fetchUserThreadsDeltaUpdate(s)}catch(u){throw console.warn(`Polling new user threads failed: ${String(u)}`),u}},dt.USER_THREADS_POLL_INTERVAL,{maxStaleTimeMs:dt.USER_THREADS_MAX_STALE_TIME}),a=Yn(async s=>{try{return await r.refreshUserNotificationSettings(s)}catch(u){throw console.warn(`Polling new user notification settings failed: ${String(u)}`),u}},dt.USER_NOTIFICATION_SETTINGS_INTERVAL,{maxStaleTimeMs:dt.USER_NOTIFICATION_SETTINGS_MAX_STALE_TIME});return{store:r,notificationsPoller:o,userThreadsPoller:i,userNotificationSettingsPoller:a}}(e),Mu.set(e,t)),t}function Lg(e,t){const n=e[Oe].usersStore,r=h.useCallback(()=>n.getItemState(t),[n,t]),o=h.useCallback(a=>function(s,u){return s===void 0||s?.isLoading?s??{isLoading:!0}:s.error?s:s.data?{isLoading:!1,user:s.data}:{isLoading:!1,error:Pg(u)}}(a,t),[t]),i=cs(n.subscribe,r,r,o,Tt);return h.useEffect(()=>{n.enqueue(t)}),i}function fs(){return h.useContext(Vd)}function je(){return fs()??Yt("LiveblocksProvider is missing from the React tree.")}function Ug(e){return function(t){const n=fs();if(!t?.allowNesting&&n!==null)throw new Error("You cannot nest multiple LiveblocksProvider instances in the same React tree.")}(e),v.jsx(Vd.Provider,{value:e.client,children:e.children})}function WD(e){const{children:t,...n}=e,r={publicApiKey:nt(n.publicApiKey),throttle:nt(n.throttle),lostConnectionTimeout:nt(n.lostConnectionTimeout),backgroundKeepAliveTimeout:nt(n.backgroundKeepAliveTimeout),polyfills:nt(n.polyfills),largeMessageStrategy:nt(n.largeMessageStrategy),unstable_fallbackToHTTP:nt(n.unstable_fallbackToHTTP),unstable_streamData:nt(n.unstable_streamData),preventUnsavedChanges:nt(n.preventUnsavedChanges),authEndpoint:vo(n.authEndpoint),resolveMentionSuggestions:vo(n.resolveMentionSuggestions),resolveUsers:vo(n.resolveUsers),resolveRoomsInfo:vo(n.resolveRoomsInfo),baseUrl:nt(n.baseUrl),enableDebugLogging:nt(n.enableDebugLogging)},o=h.useMemo(()=>Og(r),[]);return v.jsx(Ug,{client:o,children:t})}function zD(){return function(e,t,n){const{store:r,notificationsPoller:o}=ds(e);return h.useEffect(()=>{r.outputs.loadingNotifications.waitUntilLoaded()}),h.useEffect(()=>(o.inc(),o.pollNowIfStale(),()=>{o.dec()}),[o]),yr(r.outputs.loadingNotifications.signal,t,n)}(je(),Mg,Tt)}function $D(){return e=je(),h.useCallback(t=>{const{store:n}=ds(e),r=new Date,o=n.optimisticUpdates.add({type:"mark-inbox-notification-as-read",inboxNotificationId:t,readAt:r});e.markInboxNotificationAsRead(t).then(()=>{n.markInboxNotificationRead(t,r,o)},i=>{n.optimisticUpdates.remove(o),e[Oe].emitError({type:"MARK_INBOX_NOTIFICATION_AS_READ_ERROR",inboxNotificationId:t},i)})},[e]);var e}var Wd=function(e){return Lg(je(),e)},qD=function(e={}){const t=je(),{store:n,userThreadsPoller:r}=ds(t),o=Tn(e.query??{});return h.useEffect(()=>{n.outputs.loadingUserThreads.getOrCreate(o).waitUntilLoaded()}),h.useEffect(()=>(r.inc(),r.pollNowIfStale(),()=>{r.dec()}),[r]),yr(n.outputs.loadingUserThreads.getOrCreate(o).signal)};function Vg(e,t){h.useEffect(()=>{(function(n,r){if(n===!1||!r.threads||typeof window>"u")return;const o=window.location.hash.slice(1);if(!o.startsWith("cm_"))return;const i=document.getElementById(o);i!==null&&r.threads.flatMap(a=>a.comments).some(a=>a.id===o)&&i.scrollIntoView()})(e,t)},[t.isLoading])}function pi(e){const t=e[Oe].currentUserId.get();return t===void 0?"anonymous":t}var Lu=new WeakMap;function st(e){let t=Lu.get(e);return t||(t=function(n){const r=Hd(n);function o(u,c,l){if(r.optimisticUpdates.remove(u),!(l instanceof ir))throw l;if(l.status===403){const d=[l.message,l.details?.suggestion,l.details?.docs].filter(Boolean).join(`
|
|
3
3
|
`);sn.error(d)}n[Oe].emitError(c,l)}const i=new vt(u=>Yn(async c=>{try{return await r.fetchRoomThreadsDeltaUpdate(u,c)}catch(l){throw sn.warn(`Polling new threads for '${u}' failed: ${String(l)}`),l}},dt.ROOM_THREADS_POLL_INTERVAL,{maxStaleTimeMs:dt.ROOM_THREADS_MAX_STALE_TIME})),a=new vt(u=>Yn(async c=>{try{return await r.fetchRoomVersionsDeltaUpdate(u,c)}catch(l){throw sn.warn(`Polling new history versions for '${u}' failed: ${String(l)}`),l}},dt.HISTORY_VERSIONS_POLL_INTERVAL,{maxStaleTimeMs:dt.HISTORY_VERSIONS_MAX_STALE_TIME})),s=new vt(u=>Yn(async c=>{try{return await r.refreshRoomNotificationSettings(u,c)}catch(l){throw sn.warn(`Polling notification settings for '${u}' failed: ${String(l)}`),l}},dt.NOTIFICATION_SETTINGS_POLL_INTERVAL,{maxStaleTimeMs:dt.NOTIFICATION_SETTINGS_MAX_STALE_TIME}));return{store:r,onMutationFailure:o,getOrCreateThreadsPollerForRoomId:i.getOrCreate.bind(i),getOrCreateVersionsPollerForRoomId:a.getOrCreate.bind(a),getOrCreateNotificationsSettingsPollerForRoomId:s.getOrCreate.bind(s)}}(e),Lu.set(e,t)),t}function Hg(e){const t=je(),{id:n,stableEnterRoom:r}=e,o=nt({initialPresence:e.initialPresence,initialStorage:e.initialStorage,autoConnect:e.autoConnect??typeof window<"u"}),[{room:i},a]=h.useState(()=>r(n,{...o,autoConnect:!1}));return h.useEffect(()=>{const{store:s}=st(t);return i.events.comments.subscribe(u=>{(async function(c){if(c.type===zt.THREAD_DELETED)return void s.deleteThread(c.threadId,null);const l=await i.getThread(c.threadId);if(!l.thread)return void s.deleteThread(c.threadId,null);const{thread:d,inboxNotification:p}=l,m=s.outputs.threads.get().getEvenIfDeleted(c.threadId);switch(c.type){case zt.COMMENT_EDITED:case zt.THREAD_METADATA_UPDATED:case zt.THREAD_UPDATED:case zt.COMMENT_REACTION_ADDED:case zt.COMMENT_REACTION_REMOVED:case zt.COMMENT_DELETED:if(!m)break;s.updateThreadifications([d],p?[p]:[]);break;case zt.COMMENT_CREATED:s.updateThreadifications([d],p?[p]:[])}})(u)})},[t,i]),h.useEffect(()=>{const s=r(n,o);a(s);const{room:u,leave:c}=s;return o.autoConnect&&u.connect(),()=>{c()}},[n,o,r]),v.jsx(Pd.Provider,{value:i,children:e.children})}function hs(e){const t=h.useContext(Pd);if(t===null&&!e?.allowOutsideRoom)throw new Error("RoomProvider is missing from the React tree.");return t}function ps(){return je()[Oe].resolveMentionSuggestions}function zd(e){const t=je();return h.useCallback(n=>{const r=n.body,o=n.metadata??{},i=n.attachments,a=wd(),s=Xo(),u=new Date,c={id:s,threadId:a,roomId:e,createdAt:u,type:"comment",userId:pi(t),body:r,reactions:[],attachments:i??[]},l={id:a,type:"thread",createdAt:u,updatedAt:u,roomId:e,metadata:o,comments:[c],resolved:!1},{store:d,onMutationFailure:p}=st(t),m=d.optimisticUpdates.add({type:"create-thread",thread:l,roomId:e}),g=i?.map(y=>y.id);return t[Oe].httpClient.createThread({roomId:e,threadId:a,commentId:s,body:r,metadata:o,attachmentIds:g}).then(y=>{d.createThread(m,y)},y=>p(m,{type:"CREATE_THREAD_ERROR",roomId:e,threadId:a,commentId:s,body:r,metadata:o},y)),l},[t,e])}function $d(e){const t=je();return h.useCallback(({threadId:n,commentId:r,body:o,attachments:i})=>{const a=new Date,{store:s,onMutationFailure:u}=st(t),c=s.outputs.threads.get().getEvenIfDeleted(n);if(c===void 0)return void sn.warn(`Internal unexpected behavior. Cannot edit comment in thread "${n}" because the thread does not exist in the cache.`);const l=c.comments.find(m=>m.id===r);if(l===void 0||l.deletedAt!==void 0)return void sn.warn(`Internal unexpected behavior. Cannot edit comment "${r}" in thread "${n}" because the comment does not exist in the cache.`);const d=s.optimisticUpdates.add({type:"edit-comment",comment:{...l,editedAt:a,body:o,attachments:i??[]}}),p=i?.map(m=>m.id);t[Oe].httpClient.editComment({roomId:e,threadId:n,commentId:r,body:o,attachmentIds:p}).then(m=>{s.editComment(n,d,m)},m=>u(d,{type:"EDIT_COMMENT_ERROR",roomId:e,threadId:n,commentId:r,body:o},m))},[t,e])}function qd(e){const t=je();return h.useCallback(({threadId:n,commentId:r,emoji:o})=>{const i=new Date,a=pi(t),{store:s,onMutationFailure:u}=st(t),c=s.optimisticUpdates.add({type:"add-reaction",threadId:n,commentId:r,reaction:{emoji:o,userId:a,createdAt:i}});t[Oe].httpClient.addReaction({roomId:e,threadId:n,commentId:r,emoji:o}).then(l=>{s.addReaction(n,c,r,l,i)},l=>u(c,{type:"ADD_REACTION_ERROR",roomId:e,threadId:n,commentId:r,emoji:o},l))},[t,e])}function Kd(e){const t=je();return h.useCallback(({threadId:n,commentId:r,emoji:o})=>{const i=pi(t),a=new Date,{store:s,onMutationFailure:u}=st(t),c=s.optimisticUpdates.add({type:"remove-reaction",threadId:n,commentId:r,emoji:o,userId:i,removedAt:a});t[Oe].httpClient.removeReaction({roomId:e,threadId:n,commentId:r,emoji:o}).then(()=>{s.removeReaction(n,c,r,o,i,a)},l=>u(c,{type:"REMOVE_REACTION_ERROR",roomId:e,threadId:n,commentId:r,emoji:o},l))},[t,e])}function Wg(e){return e===void 0||e?.isLoading?e??{isLoading:!0}:e.error?e:(e.data,{isLoading:!1,url:e.data})}function mi(e,t){const n=je()[Oe].httpClient.getOrCreateAttachmentUrlsStore(t),r=h.useCallback(()=>n.getItemState(e),[n,e]);return h.useEffect(()=>{n.enqueue(e)},[n,e]),cs(n.subscribe,r,r,Wg,Tt)}var zg=new Set,KD=function(e){const t=je(),[n]=h.useState(()=>new Map),r=h.useCallback((o,i)=>{const a=n.get(o);if(a)return a;const s=t.enterRoom(o,i),u=s.leave;return s.leave=()=>{u(),n.delete(o)},n.set(o,s),s},[t,n]);return v.jsx(Hg,{...e,stableEnterRoom:r})},Gd=hs,GD=function(){return zd(hs().id)},XD=function(e={}){const{scrollOnLoad:t=!0}=e,n=je(),r=hs(),{store:o,getOrCreateThreadsPollerForRoomId:i}=st(n),a=(s=r.id,u=e.query,Tn([s,u??{}]));var s,u;const c=i(r.id);h.useEffect(()=>{o.outputs.loadingRoomThreads.getOrCreate(a).waitUntilLoaded()}),h.useEffect(()=>(c.inc(),c.pollNowIfStale(),()=>c.dec()),[c]);const l=yr(o.outputs.loadingRoomThreads.getOrCreate(a).signal);return Vg(t,l),l};rs("@liveblocks/react","2.23.0","esm");var Nt=typeof window<"u"?h.useLayoutEffect:h.useEffect;function $g(e,t){const[n,r]=h.useState(),o=h.useRef(),i=ps(),a=je()[Oe].mentionSuggestionsCache;return h.useEffect(()=>{if(t===void 0||!i)return;const s={text:t,roomId:e},u=Tn(s);let c,l=!1;const d=async()=>{try{o.current=performance.now();const p=await i(s);l||(r(p),a.set(u,p))}catch(p){console.error(p?.message)}};return a.has(u)?r(a.get(u)):!o.current||Math.abs(performance.now()-o.current)>500?d():c=window.setTimeout(()=>{d()},500),()=>{l=!0,window.clearTimeout(c)}},[t,e,i,a]),n}function qg(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function wt(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>t.current?.(...n),[])}function ro({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=function({defaultProp:u,onChange:c}){const l=h.useState(u),[d]=l,p=h.useRef(d),m=wt(c);return h.useEffect(()=>{p.current!==d&&(m(d),p.current=d)},[d,p,m]),l}({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=wt(n);return[a,h.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else o(u)},[i,e,o,s])]}function Kg(...e){return t=>e.forEach(n=>function(r,o){typeof r=="function"?r(o):r!=null&&(r.current=o)}(n,t))}var Xd=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(Xg);if(i){const a=i.props.children,s=o.map(u=>u===i?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:u);return v.jsx(xa,{...r,ref:t,children:h.isValidElement(a)?h.cloneElement(a,void 0,s):null})}return v.jsx(xa,{...r,ref:t,children:n})});Xd.displayName="Slot";var xa=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=function(i){let a=Object.getOwnPropertyDescriptor(i.props,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?i.ref:(a=Object.getOwnPropertyDescriptor(i,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?i.props.ref:i.props.ref||i.ref)}(n);return h.cloneElement(n,{...Zg(r,n.props),ref:t?Kg(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});xa.displayName="SlotClone";var Gg=({children:e})=>v.jsx(v.Fragment,{children:e});function Xg(e){return h.isValidElement(e)&&e.type===Gg}function Zg(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}var Yg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?Xd:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(s,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Zd=h.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...i}=e,[a=!1,s]=ro({prop:n,onChange:o,defaultProp:r});return v.jsx(Yg.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:qg(e.onClick,()=>{e.disabled||s(!a)})})});Zd.displayName="Toggle";var ms=Zd;function Be(...e){return e.filter(t=>typeof t=="string"||typeof t=="number").join(" ")}function Ne({children:e,className:t,...n}){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",role:"presentation",className:Be("lb-icon",t),...n,children:e})}function Jg(e){return v.jsx(Ne,{...e,children:v.jsx("path",{d:"M16 6L8 14L4 10"})})}function gs(e){return v.jsxs(Ne,{...e,children:[v.jsx("path",{d:"M15 5L5 15"}),v.jsx("path",{d:"M5 5L15 15"})]})}function Qg(e){return v.jsx(Ne,{...e,children:v.jsx("path",{d:"M4.5 6.5h11M14 6.5V14a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 6 14V6.5M7.5 6.5V5a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1.5"})})}function ev(e){return v.jsx(Ne,{...e,children:v.jsx("path",{d:"m11.784 5.797-6.13 6.138a4 4 0 0 0-1.03 1.775L4 16l2.285-.624a4 4 0 0 0 1.776-1.032l6.145-6.152m-2.422-2.395 1.244-1.246c.608-.608 1.826-.81 2.53-.104.7.7.499 1.893-.122 2.515l-1.23 1.23m-2.422-2.395 2.422 2.395"})})}function tv(e){return v.jsxs(Ne,{fill:"currentColor",...e,children:[v.jsx("circle",{cx:5,cy:10,r:.75}),v.jsx("circle",{cx:10,cy:10,r:.75}),v.jsx("circle",{cx:15,cy:10,r:.75})]})}function Uu(e){return v.jsxs(Ne,{...e,children:[v.jsx("path",{d:"M11 3.07A7 7 0 1 0 16.93 9"}),v.jsx("path",{d:"M7.5 11.5S8.25 13 10 13s2.5-1.5 2.5-1.5M8 8h0"}),v.jsx("path",{d:"M12 8h0"}),v.jsx("path",{d:"M13 5h4m-2-2v4"}),v.jsx("circle",{cx:"8",cy:"8",r:".25"}),v.jsx("circle",{cx:"12",cy:"8",r:".25"})]})}function Vu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gi(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Vu(o,t);return n||typeof i!="function"||(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Vu(e[o],null)}}}}function We(...e){return h.useCallback(gi(...e),e)}var Re=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(nv);if(i){const a=i.props.children,s=o.map(u=>u===i?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:u);return v.jsx(Oa,{...r,ref:t,children:h.isValidElement(a)?h.cloneElement(a,void 0,s):null})}return v.jsx(Oa,{...r,ref:t,children:n})});Re.displayName="Slot";var Oa=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=function(a){let s=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,u=s&&"isReactWarning"in s&&s.isReactWarning;return u?a.ref:(s=Object.getOwnPropertyDescriptor(a,"ref")?.get,u=s&&"isReactWarning"in s&&s.isReactWarning,u?a.props.ref:a.props.ref||a.ref)}(n),i=function(a,s){const u={...s};for(const c in s){const l=a[c],d=s[c];/^on[A-Z]/.test(c)?l&&d?u[c]=(...p)=>{d(...p),l(...p)}:l&&(u[c]=l):c==="style"?u[c]={...l,...d}:c==="className"&&(u[c]=[l,d].filter(Boolean).join(" "))}return{...a,...u}}(r,n.props);return n.type!==h.Fragment&&(i.ref=t?gi(t,o):o),h.cloneElement(n,i)}return h.Children.count(n)>1?h.Children.only(null):null});Oa.displayName="SlotClone";var vs=({children:e})=>v.jsx(v.Fragment,{children:e});function nv(e){return h.isValidElement(e)&&e.type===vs}const rv=h.forwardRef(({emoji:e,style:t,asChild:n,...r},o)=>{const i=n?Re:"span";return v.jsx(i,{role:"img","aria-label":e,"data-emoji":e,style:{...t,fontFamily:"'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', 'Android Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', EmojiSymbols, sans-serif",display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",whiteSpace:"nowrap"},...r,ref:o,children:e})}),ys=h.forwardRef(({className:e,...t},n)=>v.jsx(rv,{className:Be("lb-emoji",e),...t,ref:n}));function Hi(e,t,n){return e===1?t:n??`${t}s`}const ov={locale:"en",dir:"ltr",USER_SELF:"you",USER_UNKNOWN:"Anonymous",LIST_REMAINING:e=>`${e} more`,LIST_REMAINING_USERS:e=>`${e} ${Hi(e,"other")}`,LIST_REMAINING_COMMENTS:e=>`${e} more ${Hi(e,"comment")}`,EMOJI_PICKER_SEARCH_PLACEHOLDER:"Search…",EMOJI_PICKER_EMPTY:"No emoji found.",EMOJI_PICKER_ERROR:()=>"There was an error while getting the list of emoji.",EMOJI_PICKER_CHANGE_SKIN_TONE:"Change skin tone",ATTACHMENT_TOO_LARGE:e=>e?`The file is larger than ${e}`:"The file is too large",ATTACHMENT_ERROR:()=>"The file couldn’t be uploaded.",COMPOSER_INSERT_MENTION:"Mention someone",COMPOSER_INSERT_EMOJI:"Add emoji",COMPOSER_ATTACH_FILES:"Attach files",COMPOSER_REMOVE_ATTACHMENT:"Remove attachment",COMPOSER_PLACEHOLDER:"Write a comment…",COMPOSER_SEND:"Send",COMPOSER_TOGGLE_MARK:e=>{switch(e){case"bold":return"Bold";case"italic":return"Italic";case"strikethrough":return"Strikethrough";case"code":return"Inline code";default:return ft(0,"Unexpected mark")}},COMMENT_EDITED:"(edited)",COMMENT_DELETED:"This comment has been deleted.",COMMENT_MORE:"More",COMMENT_EDIT:"Edit comment",COMMENT_EDIT_COMPOSER_PLACEHOLDER:"Edit comment…",COMMENT_EDIT_COMPOSER_CANCEL:"Cancel",COMMENT_EDIT_COMPOSER_SAVE:"Save",COMMENT_DELETE:"Delete comment",COMMENT_DELETE_ATTACHMENT:"Delete attachment",COMMENT_ADD_REACTION:"Add reaction",COMMENT_REACTION_LIST:(e,t)=>v.jsxs(v.Fragment,{children:[e," reacted with ",v.jsx(ys,{emoji:t})]}),COMMENT_REACTION_DESCRIPTION:(e,t)=>`${t} ${Hi(t,"reaction")}, react with ${e}`,THREAD_RESOLVE:"Resolve thread",THREAD_UNRESOLVE:"Re-open thread",THREAD_NEW_INDICATOR:"New",THREAD_NEW_INDICATOR_DESCRIPTION:"New comments",THREAD_COMPOSER_PLACEHOLDER:"Reply to thread…",THREAD_COMPOSER_SEND:"Reply",INBOX_NOTIFICATION_MORE:"More",INBOX_NOTIFICATION_MARK_AS_READ:"Mark as read",INBOX_NOTIFICATION_DELETE:"Delete notification",INBOX_NOTIFICATION_THREAD_COMMENTS_LIST:(e,t)=>v.jsxs(v.Fragment,{children:[e," commented",t?v.jsxs(v.Fragment,{children:[" in ",t]}):v.jsx(v.Fragment,{children:" in a thread"})]}),INBOX_NOTIFICATION_THREAD_MENTION:(e,t)=>v.jsxs(v.Fragment,{children:[e," mentioned you",t?v.jsxs(v.Fragment,{children:[" in ",t]}):null]}),INBOX_NOTIFICATION_TEXT_MENTION:(e,t)=>v.jsxs(v.Fragment,{children:[e," mentioned you",t?v.jsxs(v.Fragment,{children:[" in ",t]}):null]}),HISTORY_VERSION_PREVIEW_AUTHORS_LIST:e=>v.jsxs(v.Fragment,{children:["Edits from ",e]}),HISTORY_VERSION_PREVIEW_RESTORE:"Restore",HISTORY_VERSION_PREVIEW_EMPTY:"No content.",HISTORY_VERSION_PREVIEW_ERROR:()=>"There was an error while getting this version."},iv=h.createContext(void 0);function mt(e){const t=h.useContext(iv);return h.useMemo(()=>({...ov,...t,...e}),[t,e])}/*!
|
|
4
4
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|