@zeniai/web-cockpit-ui 1.15.4-qa → 1.15.5-dev
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-uGxVPurg-CSTBBuQO.js → ACHDetailsPage-BLKhKkZC-CoU9qIfj.js} +1 -1
- package/dist/assets/{AIPerformancePage-DqmxZNlX-CD4PTSl6.js → AIPerformancePage-J3dtNEgn-DnDSfWCN.js} +103 -103
- package/dist/assets/{AccountInfoPage-C2Dq8UPa-DbUqKkGr.js → AccountInfoPage-CI5UcHFj-BegJKMi4.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-HVhR3c9c-BTAStM9V.js → AccountInfoPageContent-D8oVcn1T-BXq3_V4W.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DM9AQ-14-CoO7wjK9.js → AccountLockedInfoModal-B9_FdrYm-5NyxuZ6Z.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-zcvYkXrD-Dbe0H637.js → AccountReconDetailsDrawerPage-DFjW0u9--BQEqjGYe.js} +39 -39
- package/dist/assets/{AccountRow-B3ULDo0k-C-jIzuWE.js → AccountRow-Bq6uJ1hA-Vc9-Z3M-.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CJZlWV2d-1dJ7ni4T.js → AccountsPromoCardStack-DQmHrc8b-Vd3CyDRc.js} +3 -3
- package/dist/assets/{AddAddressForCardDrawer-Rm7tH3HQ-DZTmUgpi.js → AddAddressForCardDrawer-O987RTn2-BVD6IV9k.js} +1 -1
- package/dist/assets/{AddToWalletPage-DfB-vvqh-DUAF88ZP.js → AddToWalletPage-C2Z6f8Y6-DKRITatO.js} +1 -1
- package/dist/assets/{AgingReportsPage-__jUwahK-B6-kjXQe.js → AgingReportsPage-BlPqvXdx-BhMR9uMZ.js} +3 -3
- package/dist/assets/{AllUserItems-Coo6Qik6-CvwzldZi.js → AllUserItems-CL17FcAl-HA7Ybf9E.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-C1LyqY_A-CwTL7ATF.js → ApAgingDetailPage-CHVwRH_g-DOXwF09t.js} +1 -1
- package/dist/assets/{AppBasePage-Cz2ddFfo-BclY1Wkm.js → AppBasePage-CnlPnTBn-DzDs3_Wg.js} +1 -1
- package/dist/assets/{AppDrawerContent-CObWehh2-DDaZ77eU.js → AppDrawerContent-C2CNe5yn-CV61WWnW.js} +5 -5
- package/dist/assets/{ApprovalRulesSettingsPage-ZqKHe7B_-CU8TBRQ0.js → ApprovalRulesSettingsPage-XsMzIe4e-WBRcfJJV.js} +1 -1
- package/dist/assets/{ArAgingChart-CjRE8wyO-DuIHY7ik.js → ArAgingChart-Ck1uAv_a-BqG8XmZ6.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DXjs7XAS-DXCvwuMN.js → ArAgingDetailPage-KRWJzbCq-SXmC1xou.js} +5 -5
- package/dist/assets/{AttachmentView-C3WpRmXR-Bolhu6cG.js → AttachmentView-uaen0kuU-Bv_0F11t.js} +1 -1
- package/dist/assets/{BankAccountSection-BigS_oOq-DdGfIYIY.js → BankAccountSection-CwOhGEgT-CV3SB5KM.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Czlvc-qX-rUlWK1Jd.js → BankAccountWarningSection-D7BVcqIu-RUBf41j-.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BgliKI11-3RjzZ2Bg.js → BankConnectionsSettingsPage-BOdlcBfa-aX1YHXK9.js} +1 -1
- package/dist/assets/{BillDetailPage-DNPgeuje-C8neAjYh.js → BillDetailPage-Ct4Q960V-B1Ta0IG7.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-OrTzXAEP-QAGSeB_n.js → BillPayApprovalRuleDetailPage-DUU4rXuM-DI9nvx98.js} +4 -4
- package/dist/assets/{BillPayApprovalRulesPage-DXcPkwwf-CiS_5AAk.js → BillPayApprovalRulesPage-C0pcFzje-Rb9cSqGe.js} +1 -1
- package/dist/assets/{BillPayPromoPage-fBpp10um-DK5_Xpo1.js → BillPayPromoPage-BsEtxcjB-BRyrvd2x.js} +13 -13
- package/dist/assets/{BillPaySetUpPage-9iEVFLUa-SVF28UG7.js → BillPaySetUpPage-B-rBYCtR-CKuO1PYp.js} +1 -1
- package/dist/assets/{BillingSettingsPage-IL6J1DV0-Se1sNo_q.js → BillingSettingsPage-BadzsZdt-CdWNz3my.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DcRTKRMw-BopU9rI-.js → BillsBulkReviewDrawerPage-CbA-LUIt-BCAx-hEw.js} +1 -1
- package/dist/assets/{BoxItem-Cg9N_YPt-D0t-3bl5.js → BoxItem-BoanamYM-C9a7ISxI.js} +3 -3
- package/dist/assets/{BusinessVerificationPage-KZWTxmeh-ChQXq_Mg.js → BusinessVerificationPage-B9hjIdCd-fjXOOEEK.js} +2 -2
- package/dist/assets/{CardNumberSubText-DqtkAe0V-4_G8Lsb0.js → CardNumberSubText-DFO_EKrs-fq6YqMPG.js} +1 -1
- package/dist/assets/{CashbackDetailPage-D-l7cqjW-DQ3Pl_mP.js → CashbackDetailPage-Bp85-5Ie-BrWWJ_z3.js} +8 -8
- package/dist/assets/{ChargeCardDetailPage-ChwrpnhL-C74i3xWs.js → ChargeCardDetailPage-D8dY9X8Q-CY9gkPfd.js} +1 -1
- package/dist/assets/{ChargeCardListPage-zDV88I5X-7k0VThqH.js → ChargeCardListPage-CxplfJ1W-Cs-f2f69.js} +1 -1
- package/dist/assets/{ChargeCardListTable-Cu1sCT_g-C0NdA71e.js → ChargeCardListTable-scY11ryy-Biigjr-j.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-Db6zW203-BuQibLL8.js → ChargeCardPaymentHistoryPage-Brh4ot5q-B0jRGM62.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DsrTt5B0-D5poeoI3.js → ChargeCardPromoPage-CPURUrkI-ElY1-FvK.js} +10 -10
- package/dist/assets/{ChargeCardSetupPage-DcYthQvc-DDpbhz_U.js → ChargeCardSetupPage-Bumq17f6-CZtiCi9E.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-DkUJKxIz-W8sJIYuD.js → ChargeCardStatementsPage-DbU7LEIP-BvT1248-.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-C7rL0Ts2-DvlJgu1r.js → CheckDepositDrawerPage-CFl7Vr_I-m-GUaKwL.js} +1 -1
- package/dist/assets/{CollapsableReportTable-B0N8Ybey-lucDiVV7.js → CollapsableReportTable-CRaZZnGr-DHalWth7.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-5DfSL2V8-DYZPeRCn.js → CompanyOfficerDetailsSection-C4rN7mXr-DfF7L_UZ.js} +1 -1
- package/dist/assets/{CompanyPassportCard-BLw_MMZR-WOarnR-d.js → CompanyPassportCard-I21kA_Ir-BLJfyfQk.js} +3 -3
- package/dist/assets/{CompanyPassportPage-BamWWVQB-56Enokzr.js → CompanyPassportPage-BSDnF5-7-Cj98T4ob.js} +1 -1
- package/dist/assets/{CompleteProfile-CPwV8diq-8P18d35b.js → CompleteProfile-uultMZ5R-wTNN90nG.js} +1 -1
- package/dist/assets/{ConfettiBurst-CJc1ZWFJ-3-Ap54Ud.js → ConfettiBurst-CpmYtgfk-D3B4eByY.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CDqjntBH-bCKETiwb.js → CreateOrEditVendorPage-AfKsEb9G-Dm36bf3i.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-cBCHuatx-PXPlAMN0.js → CreditCardPaymentDrawerPage-D0Lh5Tw1-XpTz-POB.js} +1 -1
- package/dist/assets/{CurrencySelectField-kA2N_h2r-TVoT6MZb.js → CurrencySelectField-BvNBUOqg-A4J8Uxia.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BU5SX7SV-dB7jbnPX.js → CustomerOnboardingActivationPage-OtCugBPI-qX05IlgL.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DGhE9fpo-BZZCLRzR.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DGG2nFxO-Dh4J5UV1.js → CustomerOnboardingDetailPageSkeleton-CMqEIIWe-DnAkQb7J.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-Dx_Py2Fa-DzOp0_kE.js → CustomerOnboardingNoStepsPage-p062pNc5-C-l3wTbU.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-AHQX5bSN-DyVDcmlu.js → CustomerOnboardingPage-Byojt-WN-CQTmwoTL.js} +1 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-C9W7h_tT-Brpfoewd.js +202 -0
- package/dist/assets/{Dashboard-BQGdcgDK-C1nmLdwJ.js → Dashboard-Dkwr9npN-BXZ9_-Zj.js} +1 -1
- package/dist/assets/{DashboardReportPage-C9eB1Lz--CKXkiVgD.js → DashboardReportPage-Qk5_OFw7-BDc17Jc3.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Cu7qPhOd-HDfgdRgZ.js → DashboardSidebarBackgroundAnimation-BiD26wyg-CHBm92QN.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DOcqx_qa-l3Aculh3.js → DepositAccTransactionItem-13TnlK6P-m98DXUKx.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-gxOQSQ9a-DSufMjrN.js → DepositAccTransactionListPage-Dc3G81fB-A9cH7zUI.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-C_chbExL-CRI2B4vd.js → DomesticWireDetailsPage-CCIoGmZO-B4_Jo1Es.js} +1 -1
- package/dist/assets/{DownloadOverlay-a0IFrzRd-D3xHdLjr.js → DownloadOverlay-Nc_Ra7Co-DN1ubFHO.js} +1 -1
- package/dist/assets/{DrawerPage-D3ezgD8z-BT84_uAX.js → DrawerPage-Bq1naYya-CQiLfSVq.js} +1 -1
- package/dist/assets/{EditPeoplePage-BnCysZo9-DOsQLMpG.js → EditPeoplePage-BnYTxq_9-DPMlpday.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-BzKR9gus-DXDSnq7N.js → EditReimbursementDetailPage-D-uH9OV3-BSdAEEMn.js} +1 -1
- package/dist/assets/{EntityDetailPage-B8vx2Mri-D3jt8mho.js → EntityDetailPage-DCcgGupN-C9TRJ7Es.js} +2 -2
- package/dist/assets/{EntitySummarySection-B5pV5wTI-BHU_C13G.js → EntitySummarySection-BI44dDjO-CYCNaLvg.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-D25gPCR4-Dfqi0A-P.js → ExpenseAutomationOverviewPage-XA0L4mZw-dYnFXq-m.js} +4 -4
- package/dist/assets/{ExpenseAutomationPage-BUAS2p9i-BpbTS8YU.js → ExpenseAutomationPage-CGkJWoKY-B55w2jvQ.js} +1 -1
- package/dist/assets/{ExpressPayPage-DfIwfewF-DNrp1uq8.js → ExpressPayPage-BX3rmT8V-AcNsZZN-.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-AXorSpml-V2Mh62fT.js → FeaturePreviewPage-W5YS3_F--DlENOTKC.js} +1 -1
- package/dist/assets/{FollowStepsSection-YR8SDxZC-TRiRAqO5.js → FollowStepsSection-C1Nmspra-Cdu3naRV.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-CxH9D6qC-LJp8AeZZ.js → GlobalReviewListPage-BfVSGVJe-Bw9xs6tt.js} +1 -1
- package/dist/assets/{InformationCardStack-GuTsARmk-CLzorLL7.js → InformationCardStack-BwgEyJER-uNbIwCBo.js} +3 -3
- package/dist/assets/{InsightsCardStack-CmTNccBr-q2L1pr7k.js → InsightsCardStack-BnEWSQ0m-VtqL0Nqc.js} +2 -2
- package/dist/assets/{InsightsSection-Bu-MplmN-CDkIWrcN.js → InsightsSection-hFNVHtei-D2NFl-zU.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-JZMYvwgs-zsnKO8Tk.js → IntegrationsSettingsPage-De8DEt0a-Cw9Ydly2.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-CM50BUc0-BymHyzzP.js → InternationalWireSwiftDetailsPage-Dri_Nj57-i38KBpxN.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-Cg0oEA0I-D4laLv6p.js → InternationalWireVerificationPage-CPIRgDy5-DxjBH4Le.js} +3 -3
- package/dist/assets/{InviteFormPage-CDlB29vX-CQLcphyk.js → InviteFormPage-Ca_tdccZ-C7hXm59I.js} +1 -1
- package/dist/assets/{InvitePageListView-74Ymz8Xr-6S5FKTrd.js → InvitePageListView-BQbRhQ6V-DRrSpNW9.js} +1 -1
- package/dist/assets/{InvitePeoplePage-DxLF-5KU-9xQ616eR.js → InvitePeoplePage-BKffwOP--D-GaMZqa.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-De-7n3RO-ByskKeOl.js → InvoiceUploadSection-H-JhX_DQ-B3PXCVQk.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CzKlIsrE-wJKAxEPa.js → IssueChargeCardPage-rinAPB-d-By9lpPwl.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CZwyvCy5-mzRhvk5Q.js → LabeledAddressValue-kPYLLOgv-BlJjmDxn.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-k9TP-qlZ-C3UyFf5u.js → LabeledAddressValueField-B_N4O3Mv-CAfERVwt.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DBnXkX-G-BVvCdbZP.js → LabeledControlledCheckBoxField-DiD9FNgO-CEPdNCHK.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-CiWNHg9A--H0753C7.js → LabeledCountryMultiSelectField-BCYMtV4j-BR8aIp2g.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DdVE_wVv-BxAFv7k5.js → LabeledCreatableSingleSelectField-Dm03LVdQ-DGBXlNr1.js} +1 -1
- package/dist/assets/{LabeledDocumentField-DGnh1cGh-BaCn_klM.js → LabeledDocumentField-CWqz_jSU-BI4o2Iwv.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BnaconeO-DhKbuFEk.js → LabeledDropDownFormattedTextField-DhwPnDY8-yVeJPc_Q.js} +1 -1
- package/dist/assets/{LabeledMultiSelectField-Bt5PGbgf-DEYw3JnO.js → LabeledMultiSelectField-C9feGqHN-OE3NSO1-.js} +1 -1
- package/dist/assets/{LabeledText-D9rbUJbs-9wMKxYu7.js → LabeledText-C91Eu04E-DW9Q389z.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DsstNVEx-Ds7lbv89.js → LabeledUserSingleSelectWithSubtitlesField-uruIe6mr--Ku_p9uL.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DhvE24vx-CMJcsG0B.js → LabeledZeniRolesDropDownField-BBpe1-wI-fb12_Q3E.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-CpttcuV1-DuV4F8Zk.js → LinkJETransactionPage-Cn7He0uo-CU1EJOb0.js} +2 -2
- package/dist/assets/{LockCardPage-FMI6xt1u-CaDqCq7u.js → LockCardPage-CaIor45t-fxRy_eBL.js} +1 -1
- package/dist/assets/{LowBalancePopup-UNnJZwgC-CkWspEoQ.js → LowBalancePopup-DQJYforY-CaW9bnoT.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-CTqUXhIp-BPw-bzqm.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Dn7zRSmC-Cp1zfiCQ.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BP3vdY52-BzDP-7_t.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-MURH2rp8-CLSHC5Hv.js → MagicLinkSuccessPage-RsvHwQTQ-DKdw4jPk.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-Cyx2YimC-CumkPG7L.js → MagicLinkTitleSection-DaThYY60-DuPzkS6C.js} +1 -1
- package/dist/assets/{MailingDetailsSection-Ro9Lxvtp-DaRqYLgY.js → MailingDetailsSection-DKs9SGYB-DpYzwmUT.js} +2 -2
- package/dist/assets/{Menu-XT10vy6U-CU6mTufV.js → Menu-DWx47kcG-CqRpt11Z.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BwD3OyXL-CYJkaop_.js → MyBankConnectionsSettingsPage-DtnGJLK--62eLaU86.js} +5 -5
- package/dist/assets/{MyPendingActivationChargeCardListPage-B4yQ0O4T-DshQIKqq.js → MyPendingActivationChargeCardListPage-B1A2Dxw3-KQAV9F2y.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-Bb4QkILK-dnKU-rey.js → MyProfileSettingsPage-BHpnpTmJ-DUJX3teA.js} +5 -5
- package/dist/assets/{NavBarWithPicker-DhLovvzt-BucppuZh.js → NavBarWithPicker-Biz620wH-BwhpY8Dt.js} +1 -1
- package/dist/assets/{NavigationArrow-lK8LcatV-CeIdwn4T.js → NavigationArrow-CV_u5I1d-Dq_Cpl0i.js} +1 -1
- package/dist/assets/{NavigationDots-Dp0jKWtv-CRltAfKx.js → NavigationDots-DBshnTnS-eQudWkl3.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DFt03MpW-DlxPCqjn.js → NewGlobalMerchantPage-DV2k3q5N-BcTx-Ahj.js} +1 -1
- package/dist/assets/{NoDataChart-BVStkyEY-D2SnG7M_.js → NoDataChart-DmThvRWS-pxiREfeT.js} +1 -1
- package/dist/assets/{NoDataTable-CBglXVQp-Bo5PkCij.js → NoDataTable-8GCzndE4-Bqx95DdJ.js} +1 -1
- package/dist/assets/{NotFoundPage-8N4Q0cRS-BFLKl-lt.js → NotFoundPage-VR72eVPP-RofDTL3E.js} +4 -4
- package/dist/assets/{NotificationSettingsPage--cl75C4Y-f1m5g0NX.js → NotificationSettingsPage-Bwf-7o4F-Aj6P3Xzl.js} +3 -3
- package/dist/assets/{NotificationsListConfig-BvqUVi6A-B8H0H-lA.js → NotificationsListConfig-Dn_RFaAK-YhpveZOf.js} +1 -1
- package/dist/assets/{NotificationsPage-ClhmC4cD-DPPL3j0E.js → NotificationsPage-B8GufkTS-DUQT6vp2.js} +18 -18
- package/dist/assets/{OpExByVendorPage-B24tsc-s-kLP2AkBc.js → OpExByVendorPage-BlEqljuU-DVw46mxv.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-DZPeSqh9.js → OverlayContainerPage-Daz3A7cI-jq9xEsKm.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-ChmIZfeB-ClSkfHo-.js → PandLWithForecastPage-GOxiUR2j-BGagWawc.js} +2 -2
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-rhNK3_SE-1vs8c8G7.js → PaymentAccountSetupBillingAddressSection-BIxsEOJG-BjXFADJ0.js} +1 -1
- package/dist/assets/{PeoplePage-PetKjS8P-BPodINWd.js → PeoplePage-DahKRMoB-F0cHCzgT.js} +13 -13
- package/dist/assets/{Preview-B0dy4K56.js → Preview-CrPzNPnm.js} +1 -1
- package/dist/assets/{ProductsCarousel-DzhNUiJk-j7XkXPk6.js → ProductsCarousel-1P24z1p4-CeCLsS0U.js} +1 -1
- package/dist/assets/{PromoBaseCards-ZTN2uS4W-5Q0VbcDD.js → PromoBaseCards-DiKj0_oo-CtEGMdvr.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CBtavUIz-B6M_dsQg.js → QBOConnectionDialog-A0ysjdIC-Eqpwl6_L.js} +1 -1
- package/dist/assets/{QBOSetupSection-jcVYFWfP-C5e7X1Mu.js → QBOSetupSection-Me828i1a-N1PCk_UL.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BoarRMWS-BectwrxR.js → ReimbursementApprovalRuleDetailPage-dID4dZbu-DAIygneU.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-B5hHz-7T-Dv8WAEdQ.js → ReimbursementApprovalRulesPage-D8stgYq_-CqsPNPUT.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-YfiCLu3C-CwkxO_yG.js → ReimbursementDetailPage-DaYD1eTP-BBI-ZKs3.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-CC_zFd3U-CTzC3o_d.js → ReimbursementPromoPage-ClRa3wo6-GK77Fy92.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-ChjBTodZ-BOCtoEcr.js → ReimbursementSetUpPage-CaJCRajP-Bhbzq9G6.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DOSDVT4u-eNIlif5R.js → ReimbursementsBulkReviewDrawerPage-BuBVWui--heWobZZd.js} +1 -1
- package/dist/assets/{ReloadCard-qzpNu5-B-B1j5ZU_S.js → ReloadCard-DzxA-pGI-BwtgRkm9.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-kzIQLZ5u-BhME63dM.js → ReportTableViewSelector-D1k2eDtE-DWKTaUmF.js} +1 -1
- package/dist/assets/{ReportsPage-DVZ3Rcn1-Wq7Sa7FA.js → ReportsPage-DqXYfBQC-DTOBKK0U.js} +5 -5
- package/dist/assets/{RevenueChart-Bu8VCI9M-_G1P_vqG.js → RevenueChart-C0vx4zUX-Uw0PsYMZ.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-Cl2_0ldt-I0ORbaK-.js → ReviewDetailsPage-DmHHVA8I-Sy4HvXq_.js} +52 -52
- package/dist/assets/{ReviewOverlay-vmoQ2B3U-U5POiYSb.js → ReviewOverlay-tGj059Ib-BvRNdoTH.js} +1 -1
- package/dist/assets/{RoleWithToolTip-CEcusyL7-CTwR219H.js → RoleWithToolTip-BGafXnoE-Cs8CtpyO.js} +5 -5
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-D9w3rUch-DJz9Yey_.js → ScheduleDetailsFixedAssetsPage-DuuvsMhX-gKNOvkFU.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-LbjrnfcH-B4mXvCnN.js → ScheduleDetailsPage-BCw7YaHZ-CsQRejR9.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-2IpjhbUO-yzYUZewQ.js → ScheduleSequenceTable-C31xhtxt-m1Npa7Ri.js} +1 -1
- package/dist/assets/{ScreenRoutes-Dj7TdnaB.js → ScreenRoutes-CcDq1jZA.js} +1 -1
- package/dist/assets/{SetUpAccountSection-p_viPmIN-BlBdymA0.js → SetUpAccountSection-D8PGmPML-_7698rPN.js} +1 -1
- package/dist/assets/SignIn-CwWQnPnB-BjWxjduT.js +491 -0
- package/dist/assets/{SignInScreen-Bn4nYRQE.js → SignInScreen-CMNwX-LP.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-C3i-Mkip-DzQMh6GP.js → SpendManagementListViewPage-B-EbBpvJ-ON20KKOZ.js} +5 -5
- package/dist/assets/{SpendManagementPerTabPage-dTz2pMKg-DYfwutDo.js → SpendManagementPerTabPage-DANa2aTd-C61KLHM_.js} +1 -1
- package/dist/assets/{SpendManagementSection-DKMG4ReN-BvPjO4KM.js → SpendManagementSection-CXYhrJSF-CXDxQfGM.js} +7 -7
- package/dist/assets/StatementItem-DeYhvD3S-1QR10Whm.js +31 -0
- package/dist/assets/{StatementsPage-DwvWOETo-CXlDv2KT.js → StatementsPage-2OCuox8g-8nyeHbc9.js} +1 -1
- package/dist/assets/{StatusSwitcher-Moxr70rd-DARIPkKt.js → StatusSwitcher-CfBOEbYV-jyQUqc0h.js} +1 -1
- package/dist/assets/{SubTabSwitcher-DnCoUKmO-3giMprMe.js → SubTabSwitcher-LzrZe6zz-Bq05ehgW.js} +4 -4
- package/dist/assets/SummaryCard-DTbKziXk-DQjaUfYU.js +1 -0
- package/dist/assets/{TaskManagementPage-kHOwTTeJ-CfCX6wr3.js → TaskManagementPage-J0L5w2Wc-ChHzcbst.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-8DihGZnj-Cf-1grC_.js → TimeRangeSwitcher-CIhE-4dW-CNYy5JM_.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-Dy5hbFn4-nqznt7nk.js → TimeframeSwitcher-YlXclGGy-Dzk_QBMX.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-BKRmBPLL-D7T-iUSK.js +31 -0
- package/dist/assets/{TopExCard-D_okDk9T-Ba1Fp_3J.js → TopExCard-D1k8bh_F-C0WRKW8Q.js} +1 -1
- package/dist/assets/{TopExDetailPage-pOK_Ly9f-YYkSMo_K.js → TopExDetailPage-BRJ9k9hY-DGh-mViS.js} +1 -1
- package/dist/assets/{TransactionDetailPage-T1xurXsz-CH4IU-6k.js → TransactionDetailPage-CJjGDJoM-4j_0Nnvx.js} +1 -1
- package/dist/assets/{TransactionList-DblCSg0s-uevCyEQB.js → TransactionList-CLJV-J8J-DPWKYbwQ.js} +6 -6
- package/dist/assets/{TransactionListBig-JLNkkeay-GwIa9a3j.js → TransactionListBig-CDMd8KmW-BMMhha0s.js} +1 -1
- package/dist/assets/{TransactionListPage-Cf2i0F_k-BRw5VvHr.js → TransactionListPage-Dm_JZDPM-CpkM0KX9.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-B4T07nWa-Hek7YOkl.js → TransactionVendorDetailPage-BDuBQged-CAcA5ymW.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BukQB5RF-BaFvth7f.js → TransferDrawerPage-lY_wB7eB-BHJQPQzp.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-C0bQkCDh-BSIFfKG0.js → TreasuryOverviewPage-D5OetJEP-DU_svhq3.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BaXLj90f-DyGHzvkx.js → TreasuryPromoPage-8tXexPVv-CiI-0ZNb.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-CNK6wX8W-BBctfBrh.js → TreasuryStatementsPage-DEOyNQFW-CWB-xLSh.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DEnUpGEu-PzAYgPYT.js → TreasuryTaxLetterPage-B2AurZ-A-Dvkl-xbT.js} +1 -1
- package/dist/assets/{TrendChart-BhcSso96-D1M97qk4.js → TrendChart-DhH1bAfv-Bh3qy9e2.js} +1 -1
- package/dist/assets/{TrendWithTransactions-B6xQ_DkB-BEFPt74D.js → TrendWithTransactions-BLYyM3MY-D_wSnssv.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-DDqyVfnh-Crd__Sgm.js → UncategorizedAccountsMappingPage-CFir4dX5-DJbsYjHd.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-BpT6E05N-e92ZbAwu.js → UnitIntegrationPage-CHR1UsV3-CoAODj2A.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-Dgwmxm6G-BEL8mMiP.js → UploadAdditionalDocumentOverlay-CVb-0jqF-BDqTVyrb.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-CayW9AB7-x46gcb9G.js → Vendor2FAPopup-BJI6SeE0-CTu9U0EV.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CjsWjEGI-Dx-cpWMi.js → VendorACHDetailsPage-DLY7vm1r-DGGLogkV.js} +1 -1
- package/dist/assets/{VendorDetailPage-DQKnd_wl-DgCC2d7y.js → VendorDetailPage-Bl6Xaq0d-DsXiZRzL.js} +5 -5
- package/dist/assets/VendorDomesticWireDetailsPage-B83WB2Vz-DFPT0ZYm.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-monlt0GX-D11nhKRT.js → VendorFiling1099EditablePage-DHabnH22-CEFAMCGK.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-B_5VMGPE-BQGRha_7.js → VendorFirstReviewPage-JhwEqiFF-kofbScrA.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-Czz9BmEm-j7TWYMZY.js → VendorInternationalWireDetailsPage-DKsYBIjo-D8VzNPtl.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-XKp9TJ4g-m_5Ao1BR.js +1 -0
- package/dist/assets/{VendorsAccountsSection-BCxVL3Vy-CVp3oyuz.js → VendorsAccountsSection-Bvhib6Hd-BRinGYjw.js} +3 -3
- package/dist/assets/{VerifyDevice-CzW6x8kw-DL7_PzvN.js → VerifyDevice-DGjS39sh-CtcNv75O.js} +1 -1
- package/dist/assets/{VideoPlayer-B6HamlwN-B0K1YC8V.js → VideoPlayer-DufuoQRs-CzFmZCl7.js} +2 -2
- package/dist/assets/{VideoPopup-D2mt1wC7-DX7NeQAc.js → VideoPopup-1aNRmLD6-E6I5SdxR.js} +2 -2
- package/dist/assets/{WarningsDrawerPage-BbN2G_rG-hi1DPTM_.js → WarningsDrawerPage-Bikg48FF-BUXgPrL6.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Bs_CVksP-BDdSvLD_.js → ZeniAccountDetailPage-DJiB-R44-8YHKJ_Rk.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-D5VNz-Hq-5LAtN_Rm.js → ZeniAccountListViewPage-BJF3-1hq-aqs0GGLS.js} +7 -7
- package/dist/assets/{ZeniAccountNavBarPieces-Dr8RdhtI-B5O0ky0e.js → ZeniAccountNavBarPieces-ZZoVi49V-B5zNoIEH.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-DvOrXg46-dzcFBDQn.js → ZeniAccountPromoPage-VfZj6e9J-CEBstujd.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-zxlxRsQl-B6ap5Abk.js → ZeniAccountSetupPage-CfUBgLaM-ZmrhqCPO.js} +1 -1
- package/dist/assets/{ZeniCopyright-F1ki_Lss-DFx9p5Fp.js → ZeniCopyright-UUk3LylG-VfT1dTbC.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CK6HDTK_-B4HkHgTv.js → ZeniTransferAmountSlider-DuyKUAsb-Di2nbbIa.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-BDLvoxng.js → add-to-wallet-DgdBD8_G-DHth-HM4.js} +1 -1
- package/dist/assets/{analytics-DWna4COD.js → analytics-CxT-6Gc4.js} +1 -1
- package/dist/assets/{analyticsHelper-BTX5S1zu.js → analyticsHelper-BbgU3YZ3.js} +1 -1
- package/dist/assets/{analyticsHelper-BgGQcED5-DKVZbHBv.js → analyticsHelper-C_CHYSrd-D1gtzETx.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DOt54l-M.js → arrow-south-east-round-PEovUgvH-jJL-u3ku.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-B8Z0z-Ku.js → auto-transfer-rule-mbafm5D3-Bxbaldq-.js} +1 -1
- package/dist/assets/{chartTypes-Cdx27b7W-BwAd9kGM.js → chartTypes-CfyGWP2E-zDFdatAv.js} +1 -1
- package/dist/assets/{commonDimensions-BIRY_wCD-Js86v9fG.js → commonDimensions-uDLC8oOH-DZ9sBzhX.js} +1 -1
- package/dist/assets/{commonTypes-DfehYs8A-CmS8iBUI.js → commonTypes-DBWmGaRi-Bvj_-gYH.js} +1 -1
- package/dist/assets/{constants-Cr4RUUPf.js → constants-Dpo-zUMa.js} +1 -1
- package/dist/assets/{core-d8TJZx_K.js → core-CYa2vsSD.js} +1 -1
- package/dist/assets/{dash.all.min-yh9LxFx1.js → dash.all.min-BwfoNW06.js} +1 -1
- package/dist/assets/{detailCommon-C4lCnx9f-CT9Wovwc.js → detailCommon-CUjnzfBn-Bjs9ry6w.js} +3 -3
- package/dist/assets/{downloadPdf-BuszScX2-CQQvmAzj.js → downloadPdf-DZnGQqi5-DWxICXE5.js} +1 -1
- package/dist/assets/{empty-CKmL-VR3.js → empty-BSEyVh8N.js} +1 -1
- package/dist/assets/{empty-D8Gd0v1U.js → empty-CFYi5Ru2.js} +1 -1
- package/dist/assets/{epic-BPaG5vPL.js → epic-BaGEtIuG.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-DUMEeA-V.js → gift-box-Cmt9OgIZ-D2c9pOix.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-BVFGUXFG.js → graphic-no-data-l-DU4J8fDt-Dm8Nhvl9.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DHRR03zj.js → graphic-no-data-net-burn-l-CzmycA0m-CTFvUdJH.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-C5j99nww.js → handshake-BPg58FML-cD35y_0x.js} +1 -1
- package/dist/assets/{index-BxCf7Wvz.js → index-CLqQIFvx.js} +9 -9
- package/dist/assets/{index-Z0vhp4UP.js → index-D1NG7F-c.js} +1 -1
- package/dist/assets/{index-DAQTbb-z.js → index-DEJ7sanz.js} +1 -1
- package/dist/assets/{index-CXhd2ski.js → index-DhBlfmDf.js} +1 -1
- package/dist/assets/{index-BHy2xz_i.js → index-WnHIYL2y.js} +1 -1
- package/dist/assets/{index-ypb5f_6G.js → index-o7l6M0TC.js} +1 -1
- package/dist/assets/{index-P2JRDBkg.js → index-oF3vysIj.js} +1 -1
- package/dist/assets/{lexical-C6LLNKxw.js → lexical-DzVC4tTe.js} +1 -1
- package/dist/assets/{liveblocks-CGDIIAIj.js → liveblocks-DZksneMc.js} +1 -1
- package/dist/assets/{lottie-LB826b2R.js → lottie-EtzJiaFi.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-BNip5yf2-B8eJRUmh.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-KPnNJcR6-BNt8WVWD.js → mapSectionWithAcOnlyToTreeNode-6D3s6K5H-Bt6Ormba.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-BgJYIgvo-CUvrjAxs.js → mapSpacerToTreeNode-D950gQIm-BVvu7Mmj.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BwoNhSxI-9FFTEIt6.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-CpO1mQ6n-CJZiBXdi.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-tLFl9PXK-2yg-AGqh.js +1 -0
- package/dist/assets/{mui-BH8m6kGU.js → mui-Co4rhSdf.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DEwJ4YhF.js → page-detail-CWX5S47F-DzQ9yNth.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-9-L1Tl9m.js → radio-default-CiSgisfh-DdBmb3s2.js} +1 -1
- package/dist/assets/{react-1TS5Pz5D.js → react-B9BOYeX6.js} +2 -2
- package/dist/assets/{react-BZg321WR.js → react-BHvhexjt.js} +1 -1
- package/dist/assets/{react-DXqousR1.js → react-BcTgPaBt.js} +1 -1
- package/dist/assets/{react-DjFxauce.js → react-BfmS3tc2.js} +1 -1
- package/dist/assets/{react-BZPwYTgt.js → react-BrZdHxR5.js} +1 -1
- package/dist/assets/{react-DbC4BMti.js → react-DaPNcQnJ.js} +1 -1
- package/dist/assets/{react-ChgBiDic.js → react-USABo3kI.js} +1 -1
- package/dist/assets/{react-B98PZ5oz.js → react-hKmyc3EK.js} +1 -1
- package/dist/assets/{recharts-DuImoJah.js → recharts-C4PW-81v.js} +1 -1
- package/dist/assets/{sentry-RNV3Di4s.js → sentry-Cue4MgLi.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-Dq2KOj6m.js → shield-DOlUxcFf-UAy-EXjs.js} +1 -1
- package/dist/assets/toCOABalancesWithID-B6AaIKKE-ZUVHY5cX.js +1 -0
- package/dist/assets/{toChartData-B0HFgnVy-BWQxPZy2.js → toChartData-DD8ISjzM-DQ9NjKIx.js} +1 -1
- package/dist/assets/{uploadAttachment-DlvokhTk-BnXZd0ih.js → uploadAttachment-CEqqTe84-MicetzMb.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-CC4d6kSy.js → uploadReceipts-CPw64UYa-BwoznkPo.js} +1 -1
- package/dist/assets/{url-CMWGXMaV.js → url-CIbQHzW3.js} +1 -1
- package/dist/assets/{url-Q92EHF6-.js → url-CpxLPhmr.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-Ify9QpX5.js → useLongPress-GCK2COYQ-Da6NOL1P.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-C6G0Rq76.js → usp-line-BBd1wKwW-BZcVCehg.js} +1 -1
- package/dist/assets/{utils-BXiVsZbS.js → utils-CxOjlxtI.js} +1 -1
- package/dist/assets/{zeni-epic-state-BSaicoAp.js → zeni-epic-state-DcWK4mxP.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-CY24zxv4-Dlglmitj.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-CJ9rX2hA-D_AGKikc.js +0 -202
- package/dist/assets/MagicLinkACHDetailsPage-Bwzk6331-DJfV3lU-.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-23WXWUBb-DJ6qKsHx.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-XqDeRmny-DL7ST80r.js +0 -1
- package/dist/assets/SignIn-DhRwLJFX-CJyBsyvF.js +0 -448
- package/dist/assets/StatementItem-Dk8gBfGY-DC0R9g1b.js +0 -31
- package/dist/assets/SummaryCard-DvdjDQ13-6ipWCmEa.js +0 -1
- package/dist/assets/TimeframeSwitcherWithToggle-V2cHhGoQ-CE78-HgD.js +0 -31
- package/dist/assets/VendorDomesticWireDetailsPage-DBOWshWu-2HsQayCN.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-B-mh5P3v-Ca_AkD0f.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-COOEc1T9-xGax8DFV.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DAnYNYrr-DY_OPsK8.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DKbBYyC9-BJ1iRUxh.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BeGSkZpM-C-b_T2TM.js +0 -1
- package/dist/assets/toCOABalancesWithID-C__BVdeG-BfFHgnXd.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/empty-CKmL-VR3.js","assets/sentry-RNV3Di4s.js","assets/empty-D8Gd0v1U.js","assets/index-DAQTbb-z.js","assets/index-P2JRDBkg.js","assets/zeni-epic-state-BSaicoAp.js","assets/core-d8TJZx_K.js","assets/utils-BXiVsZbS.js","assets/recharts-DuImoJah.js","assets/url-CMWGXMaV.js","assets/index-ypb5f_6G.js","assets/index-CXhd2ski.js","assets/url-Q92EHF6-.js","assets/index-BHy2xz_i.js","assets/constants-Cr4RUUPf.js","assets/OverlayContainerPage-Daz3A7cI-DZPeSqh9.js","assets/mui-BH8m6kGU.js","assets/liveblocks-CGDIIAIj.js","assets/lottie-LB826b2R.js","assets/analytics-DWna4COD.js","assets/lexical-C6LLNKxw.js","assets/ConfettiBurst-CJc1ZWFJ-3-Ap54Ud.js","assets/SignIn-DhRwLJFX-CJyBsyvF.js","assets/ZeniCopyright-F1ki_Lss-DFx9p5Fp.js","assets/ProductsCarousel-DzhNUiJk-j7XkXPk6.js","assets/handshake-BPg58FML-C5j99nww.js","assets/Dashboard-BQGdcgDK-C1nmLdwJ.js","assets/DashboardSidebarBackgroundAnimation-Cu7qPhOd-HDfgdRgZ.js","assets/ArAgingChart-CjRE8wyO-DuIHY7ik.js","assets/chartTypes-Cdx27b7W-BwAd9kGM.js","assets/ReloadCard-qzpNu5-B-B1j5ZU_S.js","assets/TopExCard-D_okDk9T-Ba1Fp_3J.js","assets/graphic-no-data-l-DU4J8fDt-BVFGUXFG.js","assets/RevenueChart-Bu8VCI9M-_G1P_vqG.js","assets/toCOABalancesWithID-C__BVdeG-BfFHgnXd.js","assets/toChartData-B0HFgnVy-BWQxPZy2.js","assets/InsightsCardStack-CmTNccBr-q2L1pr7k.js","assets/SummaryCard-DvdjDQ13-6ipWCmEa.js","assets/NavigationArrow-lK8LcatV-CeIdwn4T.js","assets/NavigationDots-Dp0jKWtv-CRltAfKx.js","assets/arrow-south-east-round-PEovUgvH-DOt54l-M.js","assets/AccountsPromoCardStack-CJZlWV2d-1dJ7ni4T.js","assets/CompanyPassportCard-BLw_MMZR-WOarnR-d.js","assets/gift-box-Cmt9OgIZ-DUMEeA-V.js","assets/InformationCardStack-GuTsARmk-CLzorLL7.js","assets/graphic-no-data-net-burn-l-CzmycA0m-DHRR03zj.js","assets/PromoBaseCards-ZTN2uS4W-5Q0VbcDD.js","assets/VideoPlayer-B6HamlwN-B0K1YC8V.js","assets/AppDrawerContent-CObWehh2-DDaZ77eU.js","assets/TransactionListBig-JLNkkeay-GwIa9a3j.js","assets/TransactionListPage-Cf2i0F_k-BRw5VvHr.js","assets/TransactionList-DblCSg0s-uevCyEQB.js","assets/BoxItem-Cg9N_YPt-D0t-3bl5.js","assets/commonDimensions-BIRY_wCD-Js86v9fG.js","assets/page-detail-CWX5S47F-DEwJ4YhF.js","assets/DashboardReportPage-C9eB1Lz--CKXkiVgD.js","assets/analyticsHelper-BgGQcED5-DKVZbHBv.js","assets/ReportTableViewSelector-kzIQLZ5u-BhME63dM.js","assets/CollapsableReportTable-B0N8Ybey-lucDiVV7.js","assets/AccountRow-B3ULDo0k-C-jIzuWE.js","assets/InsightsSection-Bu-MplmN-CDkIWrcN.js","assets/detailCommon-C4lCnx9f-CT9Wovwc.js","assets/NoDataChart-BVStkyEY-D2SnG7M_.js","assets/getReferrerType-DjPOy76W-DRP5VHem.js","assets/TimeRangeSwitcher-8DihGZnj-Cf-1grC_.js","assets/TimeframeSwitcher-Dy5hbFn4-nqznt7nk.js","assets/mapSectionWithAcOnlyToTreeNode-KPnNJcR6-BNt8WVWD.js","assets/NoDataTable-CBglXVQp-Bo5PkCij.js","assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BeGSkZpM-C-b_T2TM.js","assets/mapLoadingInProgressToTreeNode-COOEc1T9-xGax8DFV.js","assets/ReportsPage-DVZ3Rcn1-Wq7Sa7FA.js","assets/TimeframeSwitcherWithToggle-V2cHhGoQ-CE78-HgD.js","assets/DownloadOverlay-a0IFrzRd-D3xHdLjr.js","assets/mapTimeframeBalancesToTreeNode-DKbBYyC9-BJ1iRUxh.js","assets/TopExDetailPage-pOK_Ly9f-YYkSMo_K.js","assets/TransactionDetailPage-T1xurXsz-CH4IU-6k.js","assets/LabeledControlledCheckBoxField-DBnXkX-G-BVvCdbZP.js","assets/TrendWithTransactions-B6xQ_DkB-BEFPt74D.js","assets/TrendChart-BhcSso96-D1M97qk4.js","assets/uploadAttachment-DlvokhTk-BnXZd0ih.js","assets/radio-default-CiSgisfh-9-L1Tl9m.js","assets/QBOConnectionDialog-CBtavUIz-B6M_dsQg.js","assets/VerifyDevice-CzW6x8kw-DL7_PzvN.js","assets/AccountLockedInfoModal-DM9AQ-14-CoO7wjK9.js","assets/PeoplePage-PetKjS8P-BPodINWd.js","assets/Menu-XT10vy6U-CU6mTufV.js","assets/RoleWithToolTip-CEcusyL7-CTwR219H.js","assets/PandLWithForecastPage-ChmIZfeB-ClSkfHo-.js","assets/NavBarWithPicker-DhLovvzt-BucppuZh.js","assets/usp-line-BBd1wKwW-C6G0Rq76.js","assets/EntityDetailPage-B8vx2Mri-D3jt8mho.js","assets/NotFoundPage-8N4Q0cRS-BFLKl-lt.js","assets/CompanyPassportPage-BamWWVQB-56Enokzr.js","assets/LabeledCreatableSingleSelectField-DdVE_wVv-BxAFv7k5.js","assets/LabeledDocumentField-DGnh1cGh-BaCn_klM.js","assets/LabeledAddressValue-CZwyvCy5-mzRhvk5Q.js","assets/LabeledMultiSelectField-Bt5PGbgf-DEYw3JnO.js","assets/CreateOrEditVendorPage-CDqjntBH-bCKETiwb.js","assets/VendorACHDetailsPage-CjsWjEGI-Dx-cpWMi.js","assets/ACHDetailsPage-uGxVPurg-CSTBBuQO.js","assets/BankAccountWarningSection-Czlvc-qX-rUlWK1Jd.js","assets/MagicLinkTitleSection-Cyx2YimC-CumkPG7L.js","assets/BankAccountSection-BigS_oOq-DdGfIYIY.js","assets/VendorDomesticWireDetailsPage-DBOWshWu-2HsQayCN.js","assets/DomesticWireDetailsPage-C_chbExL-CRI2B4vd.js","assets/MailingDetailsSection-Ro9Lxvtp-DaRqYLgY.js","assets/LabeledAddressValueField-k9TP-qlZ-C3UyFf5u.js","assets/VendorInternationalWireDetailsPage-Czz9BmEm-j7TWYMZY.js","assets/CurrencySelectField-kA2N_h2r-TVoT6MZb.js","assets/ReviewDetailsPage-Cl2_0ldt-I0ORbaK-.js","assets/LowBalancePopup-UNnJZwgC-CkWspEoQ.js","assets/LabeledText-D9rbUJbs-9wMKxYu7.js","assets/BillPayPromoPage-fBpp10um-DK5_Xpo1.js","assets/VideoPopup-D2mt1wC7-DX7NeQAc.js","assets/BillPaySetUpPage-9iEVFLUa-SVF28UG7.js","assets/UploadAdditionalDocumentOverlay-Dgwmxm6G-BEL8mMiP.js","assets/ApprovalRulesSettingsPage-ZqKHe7B_-CU8TBRQ0.js","assets/BankConnectionsSettingsPage-BgliKI11-3RjzZ2Bg.js","assets/SetUpAccountSection-p_viPmIN-BlBdymA0.js","assets/MyBankConnectionsSettingsPage-BwD3OyXL-CYJkaop_.js","assets/MyProfileSettingsPage-Bb4QkILK-dnKU-rey.js","assets/LabeledUserSingleSelectWithSubtitlesField-DsstNVEx-Ds7lbv89.js","assets/LabeledZeniRolesDropDownField-DhvE24vx-CMJcsG0B.js","assets/NotificationSettingsPage--cl75C4Y-f1m5g0NX.js","assets/BusinessVerificationPage-KZWTxmeh-ChQXq_Mg.js","assets/CompanyOfficerDetailsSection-5DfSL2V8-DYZPeRCn.js","assets/LabeledCountryMultiSelectField-CiWNHg9A--H0753C7.js","assets/commonTypes-DfehYs8A-CmS8iBUI.js","assets/ReimbursementPromoPage-CC_zFd3U-CTzC3o_d.js","assets/ReimbursementSetUpPage-ChjBTodZ-BOCtoEcr.js","assets/BillDetailPage-DNPgeuje-C8neAjYh.js","assets/InvoiceUploadSection-De-7n3RO-ByskKeOl.js","assets/AttachmentView-C3WpRmXR-Bolhu6cG.js","assets/uploadReceipts-CPw64UYa-CC4d6kSy.js","assets/BillPayApprovalRulesPage-DXcPkwwf-CiS_5AAk.js","assets/BillPayApprovalRuleDetailPage-OrTzXAEP-QAGSeB_n.js","assets/FollowStepsSection-YR8SDxZC-TRiRAqO5.js","assets/ReimbursementApprovalRulesPage-B5hHz-7T-Dv8WAEdQ.js","assets/ReimbursementApprovalRuleDetailPage-BoarRMWS-BectwrxR.js","assets/EditReimbursementDetailPage-BzKR9gus-DXDSnq7N.js","assets/types-DyvtCprH-NFPm5TaG.js","assets/ReimbursementDetailPage-YfiCLu3C-CwkxO_yG.js","assets/InvitePeoplePage-DxLF-5KU-9xQ616eR.js","assets/AllUserItems-Coo6Qik6-CvwzldZi.js","assets/CompleteProfile-CPwV8diq-8P18d35b.js","assets/EditPeoplePage-BnCysZo9-DOsQLMpG.js","assets/AppBasePage-Cz2ddFfo-BclY1Wkm.js","assets/SpendManagementListViewPage-C3i-Mkip-DzQMh6GP.js","assets/SpendManagementSection-DKMG4ReN-BvPjO4KM.js","assets/StatusSwitcher-Moxr70rd-DARIPkKt.js","assets/VendorDetailPage-DQKnd_wl-DgCC2d7y.js","assets/SubTabSwitcher-DnCoUKmO-3giMprMe.js","assets/LabeledDropDownFormattedTextField-BnaconeO-DhKbuFEk.js","assets/VendorFiling1099EditablePage-monlt0GX-D11nhKRT.js","assets/ZeniAccountListViewPage-D5VNz-Hq-5LAtN_Rm.js","assets/auto-transfer-rule-mbafm5D3-B8Z0z-Ku.js","assets/shield-DOlUxcFf-Dq2KOj6m.js","assets/ZeniAccountNavBarPieces-Dr8RdhtI-B5O0ky0e.js","assets/ZeniTransferAmountSlider-CK6HDTK_-B4HkHgTv.js","assets/ZeniAccountDetailPage-Bs_CVksP-BDdSvLD_.js","assets/downloadPdf-BuszScX2-CQQvmAzj.js","assets/DepositAccTransactionItem-DOcqx_qa-l3Aculh3.js","assets/AccountInfoPage-C2Dq8UPa-DbUqKkGr.js","assets/AccountInfoPageContent-HVhR3c9c-BTAStM9V.js","assets/TransferDrawerPage-BukQB5RF-BaFvth7f.js","assets/CreditCardPaymentDrawerPage-cBCHuatx-PXPlAMN0.js","assets/CheckDepositDrawerPage-C7rL0Ts2-DvlJgu1r.js","assets/ZeniAccountPromoPage-DvOrXg46-dzcFBDQn.js","assets/ZeniAccountSetupPage-zxlxRsQl-B6ap5Abk.js","assets/DepositAccTransactionListPage-gxOQSQ9a-DSufMjrN.js","assets/StatementsPage-DwvWOETo-CXlDv2KT.js","assets/StatementItem-Dk8gBfGY-DC0R9g1b.js","assets/TransactionVendorDetailPage-B4T07nWa-Hek7YOkl.js","assets/CustomerOnboardingPage-AHQX5bSN-DyVDcmlu.js","assets/PaymentAccountSetupBillingAddressSection-rhNK3_SE-1vs8c8G7.js","assets/CustomerOnboardingDetailPageSkeleton-DGG2nFxO-Dh4J5UV1.js","assets/QBOSetupSection-jcVYFWfP-C5e7X1Mu.js","assets/CustomerOnboardingContainerPage-CY24zxv4-Dlglmitj.js","assets/CustomerOnboardingNoStepsPage-Dx_Py2Fa-DzOp0_kE.js","assets/CustomerOnboardingProductSuitePage-CJ9rX2hA-D_AGKikc.js","assets/CustomerOnboardingActivationPage-BU5SX7SV-dB7jbnPX.js","assets/BillingSettingsPage-IL6J1DV0-Se1sNo_q.js","assets/UncategorizedAccountsMappingPage-DDqyVfnh-Crd__Sgm.js","assets/VendorsAccountsSection-BCxVL3Vy-CVp3oyuz.js","assets/IntegrationsSettingsPage-JZMYvwgs-zsnKO8Tk.js","assets/UnitIntegrationPage-BpT6E05N-e92ZbAwu.js","assets/MagicLinkACHDetailsPage-Bwzk6331-DJfV3lU-.js","assets/MagicLinkDomesticWireDetailsPage-23WXWUBb-DJ6qKsHx.js","assets/MagicLinkInternationalWireDetailsPage-XqDeRmny-DL7ST80r.js","assets/InternationalWireSwiftDetailsPage-CM50BUc0-BymHyzzP.js","assets/MagicLinkSuccessPage-MURH2rp8-CLSHC5Hv.js","assets/Vendor2FAPopup-CayW9AB7-x46gcb9G.js","assets/AgingReportsPage-__jUwahK-B6-kjXQe.js","assets/mapSpacerToTreeNode-BgJYIgvo-CUvrjAxs.js","assets/agingReportHelper-ovKP-qSS-Cx4Hdid-.js","assets/ApAgingDetailPage-C1LyqY_A-CwTL7ATF.js","assets/EntitySummarySection-B5pV5wTI-BHU_C13G.js","assets/ArAgingDetailPage-DXjs7XAS-DXCvwuMN.js","assets/OpExByVendorPage-B24tsc-s-kLP2AkBc.js","assets/mapTimeframeBalancesToTreeNode-DAnYNYrr-DY_OPsK8.js","assets/VendorInternationalWireSwiftDetailsPage-B-mh5P3v-Ca_AkD0f.js","assets/VendorFirstReviewPage-B_5VMGPE-BQGRha_7.js","assets/NewGlobalMerchantPage-DFt03MpW-DlxPCqjn.js","assets/GlobalReviewListPage-CxH9D6qC-LJp8AeZZ.js","assets/ScheduleDetailsPage-LbjrnfcH-B4mXvCnN.js","assets/ScheduleSequenceTable-2IpjhbUO-yzYUZewQ.js","assets/ScheduleDetailsFixedAssetsPage-D9w3rUch-DJz9Yey_.js","assets/LinkJETransactionPage-CpttcuV1-DuV4F8Zk.js","assets/ChargeCardPromoPage-DsrTt5B0-D5poeoI3.js","assets/ChargeCardSetupPage-DcYthQvc-DDpbhz_U.js","assets/ChargeCardListPage-zDV88I5X-7k0VThqH.js","assets/ChargeCardListTable-Cu1sCT_g-C0NdA71e.js","assets/CardNumberSubText-DqtkAe0V-4_G8Lsb0.js","assets/LockCardPage-FMI6xt1u-CaDqCq7u.js","assets/MyPendingActivationChargeCardListPage-B4yQ0O4T-DshQIKqq.js","assets/ChargeCardDetailPage-ChwrpnhL-C74i3xWs.js","assets/add-to-wallet-DgdBD8_G-BDLvoxng.js","assets/CashbackDetailPage-D-l7cqjW-DQ3Pl_mP.js","assets/ChargeCardStatementsPage-DkUJKxIz-W8sJIYuD.js","assets/ChargeCardPaymentHistoryPage-Db6zW203-BuQibLL8.js","assets/IssueChargeCardPage-CzKlIsrE-wJKAxEPa.js","assets/AddToWalletPage-DfB-vvqh-DUAF88ZP.js","assets/AddAddressForCardDrawer-Rm7tH3HQ-DZTmUgpi.js","assets/TaskManagementPage-kHOwTTeJ-CfCX6wr3.js","assets/NotificationsListConfig-BvqUVi6A-B8H0H-lA.js","assets/InvitePageListView-74Ymz8Xr-6S5FKTrd.js","assets/InviteFormPage-CDlB29vX-CQLcphyk.js","assets/DrawerPage-D3ezgD8z-BT84_uAX.js","assets/NotificationsPage-ClhmC4cD-DPPL3j0E.js","assets/useLongPress-GCK2COYQ-Ify9QpX5.js","assets/FeaturePreviewPage-AXorSpml-V2Mh62fT.js","assets/BillsBulkReviewDrawerPage-DcRTKRMw-BopU9rI-.js","assets/ReviewOverlay-vmoQ2B3U-U5POiYSb.js","assets/ReimbursementsBulkReviewDrawerPage-DOSDVT4u-eNIlif5R.js","assets/ExpenseAutomationOverviewPage-D25gPCR4-Dfqi0A-P.js","assets/AIPerformancePage-DqmxZNlX-CD4PTSl6.js","assets/ExpenseAutomationPage-BUAS2p9i-BpbTS8YU.js","assets/AccountReconDetailsDrawerPage-zcvYkXrD-Dbe0H637.js","assets/InternationalWireVerificationPage-Cg0oEA0I-D4laLv6p.js","assets/ExpressPayPage-DfIwfewF-DNrp1uq8.js","assets/TreasuryPromoPage-BaXLj90f-DyGHzvkx.js","assets/TreasuryOverviewPage-C0bQkCDh-BSIFfKG0.js","assets/TreasuryStatementsPage-CNK6wX8W-BBctfBrh.js","assets/TreasuryTaxLetterPage-DEnUpGEu-PzAYgPYT.js","assets/WarningsDrawerPage-BbN2G_rG-hi1DPTM_.js","assets/ScreenRoutes-Dj7TdnaB.js","assets/analyticsHelper-BTX5S1zu.js","assets/SignInScreen-Bn4nYRQE.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as b,S as C,R as Lye,b as Mc,p as l1,g as lw,e as Dye,s as Dz,d as Mz,r as Ts,w as Mye,f as Pye,i as Iye,j as jye,k as Rye,l as Oye,m as Fye}from"./sentry-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/empty-BSEyVh8N.js","assets/sentry-Cue4MgLi.js","assets/empty-CFYi5Ru2.js","assets/index-DEJ7sanz.js","assets/index-oF3vysIj.js","assets/zeni-epic-state-DcWK4mxP.js","assets/core-CYa2vsSD.js","assets/utils-CxOjlxtI.js","assets/recharts-C4PW-81v.js","assets/url-CIbQHzW3.js","assets/index-o7l6M0TC.js","assets/index-DhBlfmDf.js","assets/url-CpxLPhmr.js","assets/index-WnHIYL2y.js","assets/constants-Dpo-zUMa.js","assets/OverlayContainerPage-Daz3A7cI-jq9xEsKm.js","assets/mui-Co4rhSdf.js","assets/liveblocks-DZksneMc.js","assets/lottie-EtzJiaFi.js","assets/analytics-CxT-6Gc4.js","assets/lexical-DzVC4tTe.js","assets/ConfettiBurst-CpmYtgfk-D3B4eByY.js","assets/SignIn-CwWQnPnB-BjWxjduT.js","assets/ZeniCopyright-UUk3LylG-VfT1dTbC.js","assets/ProductsCarousel-1P24z1p4-CeCLsS0U.js","assets/handshake-BPg58FML-cD35y_0x.js","assets/Dashboard-Dkwr9npN-BXZ9_-Zj.js","assets/DashboardSidebarBackgroundAnimation-BiD26wyg-CHBm92QN.js","assets/ArAgingChart-Ck1uAv_a-BqG8XmZ6.js","assets/chartTypes-CfyGWP2E-zDFdatAv.js","assets/ReloadCard-DzxA-pGI-BwtgRkm9.js","assets/TopExCard-D1k8bh_F-C0WRKW8Q.js","assets/graphic-no-data-l-DU4J8fDt-Dm8Nhvl9.js","assets/RevenueChart-C0vx4zUX-Uw0PsYMZ.js","assets/toCOABalancesWithID-B6AaIKKE-ZUVHY5cX.js","assets/toChartData-DD8ISjzM-DQ9NjKIx.js","assets/InsightsCardStack-BnEWSQ0m-VtqL0Nqc.js","assets/SummaryCard-DTbKziXk-DQjaUfYU.js","assets/NavigationArrow-CV_u5I1d-Dq_Cpl0i.js","assets/NavigationDots-DBshnTnS-eQudWkl3.js","assets/arrow-south-east-round-PEovUgvH-jJL-u3ku.js","assets/AccountsPromoCardStack-DQmHrc8b-Vd3CyDRc.js","assets/CompanyPassportCard-I21kA_Ir-BLJfyfQk.js","assets/gift-box-Cmt9OgIZ-D2c9pOix.js","assets/InformationCardStack-BwgEyJER-uNbIwCBo.js","assets/graphic-no-data-net-burn-l-CzmycA0m-CTFvUdJH.js","assets/PromoBaseCards-DiKj0_oo-CtEGMdvr.js","assets/VideoPlayer-DufuoQRs-CzFmZCl7.js","assets/AppDrawerContent-C2CNe5yn-CV61WWnW.js","assets/TransactionListBig-CDMd8KmW-BMMhha0s.js","assets/TransactionListPage-Dm_JZDPM-CpkM0KX9.js","assets/TransactionList-CLJV-J8J-DPWKYbwQ.js","assets/BoxItem-BoanamYM-C9a7ISxI.js","assets/commonDimensions-uDLC8oOH-DZ9sBzhX.js","assets/page-detail-CWX5S47F-DzQ9yNth.js","assets/DashboardReportPage-Qk5_OFw7-BDc17Jc3.js","assets/analyticsHelper-C_CHYSrd-D1gtzETx.js","assets/ReportTableViewSelector-D1k2eDtE-DWKTaUmF.js","assets/CollapsableReportTable-CRaZZnGr-DHalWth7.js","assets/AccountRow-Bq6uJ1hA-Vc9-Z3M-.js","assets/InsightsSection-hFNVHtei-D2NFl-zU.js","assets/detailCommon-CUjnzfBn-Bjs9ry6w.js","assets/NoDataChart-DmThvRWS-pxiREfeT.js","assets/getReferrerType-DjPOy76W-DRP5VHem.js","assets/TimeRangeSwitcher-CIhE-4dW-CNYy5JM_.js","assets/TimeframeSwitcher-YlXclGGy-Dzk_QBMX.js","assets/mapSectionWithAcOnlyToTreeNode-6D3s6K5H-Bt6Ormba.js","assets/NoDataTable-8GCzndE4-Bqx95DdJ.js","assets/mapTimeframeHeaderLoadingInProgressToTreeNode-tLFl9PXK-2yg-AGqh.js","assets/mapLoadingInProgressToTreeNode-BNip5yf2-B8eJRUmh.js","assets/ReportsPage-DqXYfBQC-DTOBKK0U.js","assets/TimeframeSwitcherWithToggle-BKRmBPLL-D7T-iUSK.js","assets/DownloadOverlay-Nc_Ra7Co-DN1ubFHO.js","assets/mapTimeframeBalancesToTreeNode-BwoNhSxI-9FFTEIt6.js","assets/TopExDetailPage-BRJ9k9hY-DGh-mViS.js","assets/TransactionDetailPage-CJjGDJoM-4j_0Nnvx.js","assets/LabeledControlledCheckBoxField-DiD9FNgO-CEPdNCHK.js","assets/TrendWithTransactions-BLYyM3MY-D_wSnssv.js","assets/TrendChart-DhH1bAfv-Bh3qy9e2.js","assets/uploadAttachment-CEqqTe84-MicetzMb.js","assets/radio-default-CiSgisfh-DdBmb3s2.js","assets/QBOConnectionDialog-A0ysjdIC-Eqpwl6_L.js","assets/VerifyDevice-DGjS39sh-CtcNv75O.js","assets/AccountLockedInfoModal-B9_FdrYm-5NyxuZ6Z.js","assets/PeoplePage-DahKRMoB-F0cHCzgT.js","assets/Menu-DWx47kcG-CqRpt11Z.js","assets/RoleWithToolTip-BGafXnoE-Cs8CtpyO.js","assets/PandLWithForecastPage-GOxiUR2j-BGagWawc.js","assets/NavBarWithPicker-Biz620wH-BwhpY8Dt.js","assets/usp-line-BBd1wKwW-BZcVCehg.js","assets/EntityDetailPage-DCcgGupN-C9TRJ7Es.js","assets/NotFoundPage-VR72eVPP-RofDTL3E.js","assets/CompanyPassportPage-BSDnF5-7-Cj98T4ob.js","assets/LabeledCreatableSingleSelectField-Dm03LVdQ-DGBXlNr1.js","assets/LabeledDocumentField-CWqz_jSU-BI4o2Iwv.js","assets/LabeledAddressValue-kPYLLOgv-BlJjmDxn.js","assets/LabeledMultiSelectField-C9feGqHN-OE3NSO1-.js","assets/CreateOrEditVendorPage-AfKsEb9G-Dm36bf3i.js","assets/VendorACHDetailsPage-DLY7vm1r-DGGLogkV.js","assets/ACHDetailsPage-BLKhKkZC-CoU9qIfj.js","assets/BankAccountWarningSection-D7BVcqIu-RUBf41j-.js","assets/MagicLinkTitleSection-DaThYY60-DuPzkS6C.js","assets/BankAccountSection-CwOhGEgT-CV3SB5KM.js","assets/VendorDomesticWireDetailsPage-B83WB2Vz-DFPT0ZYm.js","assets/DomesticWireDetailsPage-CCIoGmZO-B4_Jo1Es.js","assets/MailingDetailsSection-DKs9SGYB-DpYzwmUT.js","assets/LabeledAddressValueField-B_N4O3Mv-CAfERVwt.js","assets/VendorInternationalWireDetailsPage-DKsYBIjo-D8VzNPtl.js","assets/CurrencySelectField-BvNBUOqg-A4J8Uxia.js","assets/ReviewDetailsPage-DmHHVA8I-Sy4HvXq_.js","assets/LowBalancePopup-DQJYforY-CaW9bnoT.js","assets/LabeledText-C91Eu04E-DW9Q389z.js","assets/BillPayPromoPage-BsEtxcjB-BRyrvd2x.js","assets/VideoPopup-1aNRmLD6-E6I5SdxR.js","assets/BillPaySetUpPage-B-rBYCtR-CKuO1PYp.js","assets/UploadAdditionalDocumentOverlay-CVb-0jqF-BDqTVyrb.js","assets/ApprovalRulesSettingsPage-XsMzIe4e-WBRcfJJV.js","assets/BankConnectionsSettingsPage-BOdlcBfa-aX1YHXK9.js","assets/SetUpAccountSection-D8PGmPML-_7698rPN.js","assets/MyBankConnectionsSettingsPage-DtnGJLK--62eLaU86.js","assets/MyProfileSettingsPage-BHpnpTmJ-DUJX3teA.js","assets/LabeledUserSingleSelectWithSubtitlesField-uruIe6mr--Ku_p9uL.js","assets/LabeledZeniRolesDropDownField-BBpe1-wI-fb12_Q3E.js","assets/NotificationSettingsPage-Bwf-7o4F-Aj6P3Xzl.js","assets/BusinessVerificationPage-B9hjIdCd-fjXOOEEK.js","assets/CompanyOfficerDetailsSection-C4rN7mXr-DfF7L_UZ.js","assets/LabeledCountryMultiSelectField-BCYMtV4j-BR8aIp2g.js","assets/commonTypes-DBWmGaRi-Bvj_-gYH.js","assets/ReimbursementPromoPage-ClRa3wo6-GK77Fy92.js","assets/ReimbursementSetUpPage-CaJCRajP-Bhbzq9G6.js","assets/BillDetailPage-Ct4Q960V-B1Ta0IG7.js","assets/InvoiceUploadSection-H-JhX_DQ-B3PXCVQk.js","assets/AttachmentView-uaen0kuU-Bv_0F11t.js","assets/uploadReceipts-CPw64UYa-BwoznkPo.js","assets/BillPayApprovalRulesPage-C0pcFzje-Rb9cSqGe.js","assets/BillPayApprovalRuleDetailPage-DUU4rXuM-DI9nvx98.js","assets/FollowStepsSection-C1Nmspra-Cdu3naRV.js","assets/ReimbursementApprovalRulesPage-D8stgYq_-CqsPNPUT.js","assets/ReimbursementApprovalRuleDetailPage-dID4dZbu-DAIygneU.js","assets/EditReimbursementDetailPage-D-uH9OV3-BSdAEEMn.js","assets/types-DyvtCprH-NFPm5TaG.js","assets/ReimbursementDetailPage-DaYD1eTP-BBI-ZKs3.js","assets/InvitePeoplePage-BKffwOP--D-GaMZqa.js","assets/AllUserItems-CL17FcAl-HA7Ybf9E.js","assets/CompleteProfile-uultMZ5R-wTNN90nG.js","assets/EditPeoplePage-BnYTxq_9-DPMlpday.js","assets/AppBasePage-CnlPnTBn-DzDs3_Wg.js","assets/SpendManagementListViewPage-B-EbBpvJ-ON20KKOZ.js","assets/SpendManagementSection-CXYhrJSF-CXDxQfGM.js","assets/StatusSwitcher-CfBOEbYV-jyQUqc0h.js","assets/VendorDetailPage-Bl6Xaq0d-DsXiZRzL.js","assets/SubTabSwitcher-LzrZe6zz-Bq05ehgW.js","assets/LabeledDropDownFormattedTextField-DhwPnDY8-yVeJPc_Q.js","assets/VendorFiling1099EditablePage-DHabnH22-CEFAMCGK.js","assets/ZeniAccountListViewPage-BJF3-1hq-aqs0GGLS.js","assets/auto-transfer-rule-mbafm5D3-Bxbaldq-.js","assets/shield-DOlUxcFf-UAy-EXjs.js","assets/ZeniAccountNavBarPieces-ZZoVi49V-B5zNoIEH.js","assets/ZeniTransferAmountSlider-DuyKUAsb-Di2nbbIa.js","assets/ZeniAccountDetailPage-DJiB-R44-8YHKJ_Rk.js","assets/downloadPdf-DZnGQqi5-DWxICXE5.js","assets/DepositAccTransactionItem-13TnlK6P-m98DXUKx.js","assets/AccountInfoPage-CI5UcHFj-BegJKMi4.js","assets/AccountInfoPageContent-D8oVcn1T-BXq3_V4W.js","assets/TransferDrawerPage-lY_wB7eB-BHJQPQzp.js","assets/CreditCardPaymentDrawerPage-D0Lh5Tw1-XpTz-POB.js","assets/CheckDepositDrawerPage-CFl7Vr_I-m-GUaKwL.js","assets/ZeniAccountPromoPage-VfZj6e9J-CEBstujd.js","assets/ZeniAccountSetupPage-CfUBgLaM-ZmrhqCPO.js","assets/DepositAccTransactionListPage-Dc3G81fB-A9cH7zUI.js","assets/StatementsPage-2OCuox8g-8nyeHbc9.js","assets/StatementItem-DeYhvD3S-1QR10Whm.js","assets/TransactionVendorDetailPage-BDuBQged-CAcA5ymW.js","assets/CustomerOnboardingPage-Byojt-WN-CQTmwoTL.js","assets/PaymentAccountSetupBillingAddressSection-BIxsEOJG-BjXFADJ0.js","assets/CustomerOnboardingDetailPageSkeleton-CMqEIIWe-DnAkQb7J.js","assets/QBOSetupSection-Me828i1a-N1PCk_UL.js","assets/CustomerOnboardingContainerPage-DGhE9fpo-BZZCLRzR.js","assets/CustomerOnboardingNoStepsPage-p062pNc5-C-l3wTbU.js","assets/CustomerOnboardingProductSuitePage-C9W7h_tT-Brpfoewd.js","assets/CustomerOnboardingActivationPage-OtCugBPI-qX05IlgL.js","assets/BillingSettingsPage-BadzsZdt-CdWNz3my.js","assets/UncategorizedAccountsMappingPage-CFir4dX5-DJbsYjHd.js","assets/VendorsAccountsSection-Bvhib6Hd-BRinGYjw.js","assets/IntegrationsSettingsPage-De8DEt0a-Cw9Ydly2.js","assets/UnitIntegrationPage-CHR1UsV3-CoAODj2A.js","assets/MagicLinkACHDetailsPage-CTqUXhIp-BPw-bzqm.js","assets/MagicLinkDomesticWireDetailsPage-Dn7zRSmC-Cp1zfiCQ.js","assets/MagicLinkInternationalWireDetailsPage-BP3vdY52-BzDP-7_t.js","assets/InternationalWireSwiftDetailsPage-Dri_Nj57-i38KBpxN.js","assets/MagicLinkSuccessPage-RsvHwQTQ-DKdw4jPk.js","assets/Vendor2FAPopup-BJI6SeE0-CTu9U0EV.js","assets/AgingReportsPage-BlPqvXdx-BhMR9uMZ.js","assets/mapSpacerToTreeNode-D950gQIm-BVvu7Mmj.js","assets/agingReportHelper-ovKP-qSS-Cx4Hdid-.js","assets/ApAgingDetailPage-CHVwRH_g-DOXwF09t.js","assets/EntitySummarySection-BI44dDjO-CYCNaLvg.js","assets/ArAgingDetailPage-KRWJzbCq-SXmC1xou.js","assets/OpExByVendorPage-BlEqljuU-DVw46mxv.js","assets/mapTimeframeBalancesToTreeNode-CpO1mQ6n-CJZiBXdi.js","assets/VendorInternationalWireSwiftDetailsPage-XKp9TJ4g-m_5Ao1BR.js","assets/VendorFirstReviewPage-JhwEqiFF-kofbScrA.js","assets/NewGlobalMerchantPage-DV2k3q5N-BcTx-Ahj.js","assets/GlobalReviewListPage-BfVSGVJe-Bw9xs6tt.js","assets/ScheduleDetailsPage-BCw7YaHZ-CsQRejR9.js","assets/ScheduleSequenceTable-C31xhtxt-m1Npa7Ri.js","assets/ScheduleDetailsFixedAssetsPage-DuuvsMhX-gKNOvkFU.js","assets/LinkJETransactionPage-Cn7He0uo-CU1EJOb0.js","assets/ChargeCardPromoPage-CPURUrkI-ElY1-FvK.js","assets/ChargeCardSetupPage-Bumq17f6-CZtiCi9E.js","assets/ChargeCardListPage-CxplfJ1W-Cs-f2f69.js","assets/ChargeCardListTable-scY11ryy-Biigjr-j.js","assets/CardNumberSubText-DFO_EKrs-fq6YqMPG.js","assets/LockCardPage-CaIor45t-fxRy_eBL.js","assets/MyPendingActivationChargeCardListPage-B1A2Dxw3-KQAV9F2y.js","assets/ChargeCardDetailPage-D8dY9X8Q-CY9gkPfd.js","assets/add-to-wallet-DgdBD8_G-DHth-HM4.js","assets/CashbackDetailPage-Bp85-5Ie-BrWWJ_z3.js","assets/ChargeCardStatementsPage-DbU7LEIP-BvT1248-.js","assets/ChargeCardPaymentHistoryPage-Brh4ot5q-B0jRGM62.js","assets/IssueChargeCardPage-rinAPB-d-By9lpPwl.js","assets/AddToWalletPage-C2Z6f8Y6-DKRITatO.js","assets/AddAddressForCardDrawer-O987RTn2-BVD6IV9k.js","assets/TaskManagementPage-J0L5w2Wc-ChHzcbst.js","assets/NotificationsListConfig-Dn_RFaAK-YhpveZOf.js","assets/InvitePageListView-BQbRhQ6V-DRrSpNW9.js","assets/InviteFormPage-Ca_tdccZ-C7hXm59I.js","assets/DrawerPage-Bq1naYya-CQiLfSVq.js","assets/NotificationsPage-B8GufkTS-DUQT6vp2.js","assets/useLongPress-GCK2COYQ-Da6NOL1P.js","assets/FeaturePreviewPage-W5YS3_F--DlENOTKC.js","assets/BillsBulkReviewDrawerPage-CbA-LUIt-BCAx-hEw.js","assets/ReviewOverlay-tGj059Ib-BvRNdoTH.js","assets/ReimbursementsBulkReviewDrawerPage-BuBVWui--heWobZZd.js","assets/ExpenseAutomationOverviewPage-XA0L4mZw-dYnFXq-m.js","assets/AIPerformancePage-J3dtNEgn-DnDSfWCN.js","assets/ExpenseAutomationPage-CGkJWoKY-B55w2jvQ.js","assets/AccountReconDetailsDrawerPage-DFjW0u9--BQEqjGYe.js","assets/InternationalWireVerificationPage-CPIRgDy5-DxjBH4Le.js","assets/ExpressPayPage-BX3rmT8V-AcNsZZN-.js","assets/TreasuryPromoPage-8tXexPVv-CiI-0ZNb.js","assets/TreasuryOverviewPage-D5OetJEP-DU_svhq3.js","assets/TreasuryStatementsPage-DEOyNQFW-CWB-xLSh.js","assets/TreasuryTaxLetterPage-B2AurZ-A-Dvkl-xbT.js","assets/WarningsDrawerPage-Bikg48FF-BUXgPrL6.js","assets/ScreenRoutes-CcDq1jZA.js","assets/analyticsHelper-BbgU3YZ3.js","assets/SignInScreen-CMNwX-LP.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as b,S as C,R as Lye,b as Mc,p as l1,g as lw,e as Dye,s as Dz,d as Mz,r as Ts,w as Mye,f as Pye,i as Iye,j as jye,k as Rye,l as Oye,m as Fye}from"./sentry-Cue4MgLi.js";import{j as Wt,_ as ER,a as tl,u as hce,T as Nye,C as zye,b as Bye,c as q7,d as Z7,e as Hye,f as mce,g as Vye,h as Uye,L as Wye,i as Pz,k as Yye,l as Gye,P as qye,m as Zye,n as Kye,o as fce,p as Qye,q as Xye,I as Iz,r as Jye,s as eve,t as tve,v as rve,w as nve,x as ive,y as gce,z as ove,A as ave,B as sve}from"./liveblocks-DZksneMc.js";import{f as yce,Y as Ph,r as rl,b as lve,u as cw,g as C1,h as cve,i as _R,j as dve,R as uve,k as G$,N as pve,l as hve,m as mve,B as fve}from"./core-CYa2vsSD.js";import{B as rv,ba as bt,bb as gve,bc as jz,bd as z0,be as yve,bf as TR,bg as pg,bh as Rt,bi as vce,bj as bce,bk as AR,bl as ui,bm as Rz,bn as c1,bo as vve,bp as h7,bq as bve,br as wve,bs as xve,bt as Oz,bu as Cve,bv as $ve,bw as Sve,bx as kve,by as Eve,bz as _ve,bA as Tve,bB as Ave,bC as LR,bD as Lve,bE as wP,bF as Dve,bG as wce,bH as m0,bI as jl,bJ as xce,bK as nv,bL as pr,bM as Mve,bN as Ih,bO as xP,bP as Nl,bQ as Pve,bR as Ive,bS as jve,bT as Rve,bU as Ove,bV as Fve,bW as Nve,bX as zve,bY as Bve,bZ as Cce,b_ as dw,b$ as Hve,c0 as Vve,c1 as $ce,c2 as Uve,c3 as Wve,c4 as Sce,c5 as Yve,c6 as Fz,c7 as Gve,c8 as qve,c9 as kce,ca as Ece,cb as Zve,cc as _ce,cd as hg,ce as uw,cf as Tce,cg as CP,ch as Kve,ci as Qve,cj as Xve,ck as iv,cl as Jve,cm as Ace,cn as Lce,co as Dce,cp as Mce,cq as Pce,cr as ebe,cs as tbe,ct as rbe,cu as Ice,cv as $P,cw as nbe,cx as jce,cy as ibe,cz as obe,cA as abe,cB as sbe,cC as lbe,cD as cbe,cE as dbe,cF as ube,cG as pbe,cH as hbe,v as mbe,cI as pw,cJ as Rce,cK as Oce,cL as fbe,cM as gbe,cN as ybe,cO as vbe,cP as bbe,cQ as wbe,cR as xbe,cS as Cbe,cT as $be,cU as Nz,cV as Sbe,cW as kbe,cX as Ebe,cY as _be}from"./zeni-epic-state-DcWK4mxP.js";import{T as Fce,j as gr,n as m,c as at,k as tn,C as Nce,G as DR,u as Tbe}from"./mui-Co4rhSdf.js";import{L as zz}from"./lottie-EtzJiaFi.js";import{r as Abe,m as gh}from"./analytics-CxT-6Gc4.js";import{E as vn,c as mg,P as Lbe}from"./recharts-C4PW-81v.js";import{r as bo}from"./lexical-DzVC4tTe.js";import{r as Dbe}from"./utils-CxOjlxtI.js";(function(){try{var e=typeof window<"u"?window:typeof Mc<"u"?Mc:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2330d5fa-4a03-453f-9167-8f11b5d3af54",e._sentryDebugIdIdentifier="sentry-dbid-2330d5fa-4a03-453f-9167-8f11b5d3af54")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Z6={},Bz;function Mbe(){if(Bz)return Z6;Bz=1;var e=yce();return Z6.createRoot=e.createRoot,Z6.hydrateRoot=e.hydrateRoot,Z6}var Pbe=Mbe();function k0(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ir.apply(null,arguments)}function bs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ov(e,t){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ov(e,t)}function fg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ov(e,t)}var ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Mc<"u"?Mc:typeof self<"u"?self:{};function $r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hz={exports:{}},Hn={};/** @license React v16.13.1
|
|
3
3
|
* react-is.production.min.js
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -286,7 +286,7 @@ and limitations under the License.
|
|
|
286
286
|
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(_r(this,zs)[l])throw new Error(`You must specify a unique 'id' property in your Backend entry:
|
|
287
287
|
${JSON.stringify(o)} (conflicts with: ${JSON.stringify(_r(this,zs)[l])})`);return{id:l,instance:a,preview:o.preview??!1,transition:o.transition,skipDispatchOnTransition:o.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(Iy.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Iy.isSetUp=!0,_r(this,XI).call(this,window),_r(this,zs)[_r(this,Ns)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(Iy.isSetUp=!1,_r(this,JI).call(this,window),_r(this,zs)[_r(this,Ns)].instance.teardown())},this.connectDragSource=(n,i,o)=>_r(this,j5).call(this,"connectDragSource",n,i,o),this.connectDragPreview=(n,i,o)=>_r(this,j5).call(this,"connectDragPreview",n,i,o),this.connectDropTarget=(n,i,o)=>_r(this,j5).call(this,"connectDropTarget",n,i,o),this.profile=()=>_r(this,zs)[_r(this,Ns)].instance.profile(),this.previewEnabled=()=>_r(this,zs)[_r(this,Ns)].preview,this.previewsList=()=>_r(this,I5),this.backendsList=()=>_r(this,Eu),Cl(this,XI,n=>{_r(this,Eu).forEach(i=>{i.transition&&n.addEventListener(i.transition.event,_r(this,My))})}),Cl(this,JI,n=>{_r(this,Eu).forEach(i=>{i.transition&&n.removeEventListener(i.transition.event,_r(this,My))})}),Cl(this,My,n=>{let i=_r(this,Ns);if(_r(this,Eu).some(o=>o.id!==_r(this,Ns)&&o.transition&&o.transition.check(n)?(wh(this,Ns,o.id),!0):!1),_r(this,Ns)!==i){_r(this,zs)[i].instance.teardown(),Object.keys(_r(this,H2)).forEach(d=>{let u=_r(this,H2)[d];u.unsubscribe(),u.unsubscribe=_r(this,Py).call(this,u.func,...u.args)}),_r(this,I5).backendChanged(this);let o=_r(this,zs)[_r(this,Ns)];if(o.instance.setup(),o.skipDispatchOnTransition)return;let a=n.constructor,l=new a(n.type,n);n.target?.dispatchEvent(l)}}),Cl(this,Py,(n,i,o,a)=>_r(this,zs)[_r(this,Ns)].instance[n](i,o,a)),Cl(this,j5,(n,i,o,a)=>{let l=`${n}_${i}`,d=_r(this,Py).call(this,n,i,o,a);return _r(this,H2)[l]={func:n,args:[i,o,a],unsubscribe:d},()=>{_r(this,H2)[l].unsubscribe(),delete _r(this,H2)[l]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
|
|
288
288
|
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);wh(this,I5,new a1t),wh(this,zs,{}),wh(this,Eu,[]),r.backends.forEach(n=>{let i=_r(this,QI).call(this,e,t,n);_r(this,zs)[i.id]=i,_r(this,Eu).push(i)}),wh(this,Ns,_r(this,Eu)[0].id),wh(this,H2,{})}},Dge=Iy;Ns=new WeakMap,I5=new WeakMap,zs=new WeakMap,Eu=new WeakMap,H2=new WeakMap,QI=new WeakMap,XI=new WeakMap,JI=new WeakMap,My=new WeakMap,Py=new WeakMap,j5=new WeakMap,Dge.isSetUp=!1;var s1t=(e,t,r)=>new Dge(e,t,r),Mge=(e,t)=>({event:e,check:t}),l1t=Mge("touchstart",e=>{let t=e;return t.touches!==null&&t.touches!==void 0}),c1t=Mge("mousedown",e=>e.type.indexOf("touch")===-1&&e.type.indexOf("mouse")!==-1);const FF=b.createContext({dragDropManager:void 0});function zr(e,t,...r){if(d1t()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let n;if(t===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;n=new Error(t.replace(/%s/g,function(){return r[i++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function d1t(){return typeof l1<"u"&&!0}function u1t(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function p1t(e,t){return e.filter(r=>r!==t)}function Pge(e){return typeof e=="object"}function h1t(e,t){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function m1t(e,t){return e.filter(r=>t.indexOf(r)>-1)}const NF="dnd-core/INIT_COORDS",yx="dnd-core/BEGIN_DRAG",zF="dnd-core/PUBLISH_DRAG_SOURCE",vx="dnd-core/HOVER",bx="dnd-core/DROP",wx="dnd-core/END_DRAG";function RX(e,t){return{type:NF,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const f1t={type:NF,payload:{clientOffset:null,sourceClientOffset:null}};function g1t(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,l=e.getMonitor(),d=e.getRegistry();e.dispatch(RX(o)),y1t(r,l,d);const u=w1t(r,l);if(u==null){e.dispatch(f1t);return}let p=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");v1t(a),p=a(u)}e.dispatch(RX(o,p));const f=d.getSource(u).beginDrag(l,u);if(f==null)return;b1t(f),d.pinSource(u);const g=d.getSourceType(u);return{type:yx,payload:{itemType:g,item:f,sourceId:u,clientOffset:o||null,sourceClientOffset:p||null,isSourcePublic:!!i}}}}function y1t(e,t,r){zr(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){zr(r.getSource(n),"Expected sourceIds to be registered.")})}function v1t(e){zr(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function b1t(e){zr(Pge(e),"Item must be an object.")}function w1t(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function x1t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C1t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){x1t(e,i,r[i])})}return e}function $1t(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();S1t(n),_1t(n).forEach((a,l)=>{const d=k1t(a,l,i,n),u={type:bx,payload:{dropResult:C1t({},r,d)}};e.dispatch(u)})}}function S1t(e){zr(e.isDragging(),"Cannot call drop while not dragging."),zr(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function k1t(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return E1t(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function E1t(e){zr(typeof e>"u"||Pge(e),"Drop result must either be an object or undefined.")}function _1t(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function T1t(e){return function(){const r=e.getMonitor(),n=e.getRegistry();A1t(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:wx}}}function A1t(e){zr(e.isDragging(),"Cannot call endDrag while not dragging.")}function ej(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function L1t(e){return function(r,{clientOffset:n}={}){D1t(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),l=o.getItemType();return P1t(i,a,l),M1t(i,o,a),I1t(i,o,a),{type:vx,payload:{targetIds:i,clientOffset:n||null}}}}function D1t(e){zr(Array.isArray(e),"Expected targetIds to be an array.")}function M1t(e,t,r){zr(t.isDragging(),"Cannot call hover while not dragging."),zr(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const i=e[n];zr(e.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);zr(o,"Expected targetIds to be registered.")}}function P1t(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);ej(o,r)||e.splice(n,1)}}function I1t(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function j1t(e){return function(){if(e.getMonitor().isDragging())return{type:zF}}}function R1t(e){return{beginDrag:g1t(e),publishDragSource:j1t(e),hover:L1t(e),drop:$1t(e),endDrag:T1t(e)}}class O1t{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const l=o.apply(t,a);typeof l<"u"&&r(l)}}const i=R1t(this);return Object.keys(i).reduce((o,a)=>{const l=i[a];return o[a]=n(l),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function F1t(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Ige(e,t){return{x:e.x-t.x,y:e.y-t.y}}function N1t(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:Ige(F1t(t,n),r)}function z1t(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:Ige(t,r)}const e7=[],BF=[];e7.__IS_NONE__=!0;BF.__IS_ALL__=!0;function B1t(e,t){return e===e7?!1:e===BF||typeof t>"u"?!0:m1t(t,e).length>0}class H1t{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;zr(typeof t=="function","listener must be a function."),zr(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),l=a.stateId;try{l===i||l===i+1&&!B1t(a.dirtyHandlerIds,n)||t()}finally{i=l}};return this.store.subscribe(o)}subscribeToOffsetChange(t){zr(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,t())};return this.store.subscribe(n)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return zr(r,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(zr(r,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(t),i=this.getItemType();return ej(n,i)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(zr(r,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(t),i=this.getItemType();return n!==i?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!ej(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const l=a.indexOf(t);return n?l===a.length-1:l>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return N1t(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return z1t(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const OX=typeof Mc<"u"?Mc:self,jge=OX.MutationObserver||OX.WebKitMutationObserver;function Rge(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function V1t(e){let t=1;const r=new jge(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const U1t=typeof jge=="function"?V1t:Rge;class W1t{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,i=t.length-this.index;n<i;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=U1t(this.flush),this.requestErrorThrow=Rge(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Y1t{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class G1t{create(t){const r=this.freeTasks,n=r.length?r.pop():new Y1t(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Oge=new W1t,q1t=new G1t(Oge.registerPendingError);function Z1t(e){Oge.enqueueTask(q1t.create(e))}const HF="dnd-core/ADD_SOURCE",VF="dnd-core/ADD_TARGET",UF="dnd-core/REMOVE_SOURCE",xx="dnd-core/REMOVE_TARGET";function K1t(e){return{type:HF,payload:{sourceId:e}}}function Q1t(e){return{type:VF,payload:{targetId:e}}}function X1t(e){return{type:UF,payload:{sourceId:e}}}function J1t(e){return{type:xx,payload:{targetId:e}}}function eut(e){zr(typeof e.canDrag=="function","Expected canDrag to be a function."),zr(typeof e.beginDrag=="function","Expected beginDrag to be a function."),zr(typeof e.endDrag=="function","Expected endDrag to be a function.")}function tut(e){zr(typeof e.canDrop=="function","Expected canDrop to be a function."),zr(typeof e.hover=="function","Expected hover to be a function."),zr(typeof e.drop=="function","Expected beginDrag to be a function.")}function tj(e,t){if(t&&Array.isArray(e)){e.forEach(r=>tj(r,!1));return}zr(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Ll;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Ll||(Ll={}));let rut=0;function nut(){return rut++}function iut(e){const t=nut().toString();switch(e){case Ll.SOURCE:return`S${t}`;case Ll.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function FX(e){switch(e[0]){case"S":return Ll.SOURCE;case"T":return Ll.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function NX(e,t){const r=e.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===t)return!0;n=!!i}while(!n);return!1}class out{addSource(t,r){tj(t),eut(r);const n=this.addHandler(Ll.SOURCE,t,r);return this.store.dispatch(K1t(n)),n}addTarget(t,r){tj(t,!0),tut(r);const n=this.addHandler(Ll.TARGET,t,r);return this.store.dispatch(Q1t(n)),n}containsHandler(t){return NX(this.dragSources,t)||NX(this.dropTargets,t)}getSource(t,r=!1){return zr(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return zr(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return zr(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return zr(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return FX(t)===Ll.SOURCE}isTargetId(t){return FX(t)===Ll.TARGET}removeSource(t){zr(this.getSource(t),"Expected an existing source."),this.store.dispatch(X1t(t)),Z1t(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){zr(this.getTarget(t),"Expected an existing target."),this.store.dispatch(J1t(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);zr(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){zr(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const i=iut(t);return this.types.set(i,r),t===Ll.SOURCE?this.dragSources.set(i,n):t===Ll.TARGET&&this.dropTargets.set(i,n),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const aut=(e,t)=>e===t;function sut(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function lut(e,t,r=aut){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function cut(e=e7,t){switch(t.type){case vx:break;case HF:case VF:case xx:case UF:return e7;case yx:case zF:case wx:case bx:default:return BF}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=h1t(r,n);if(!(i.length>0||!lut(r,n)))return e7;const a=n[n.length-1],l=r[r.length-1];return a!==l&&(a&&i.push(a),l&&i.push(l)),i}function dut(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){dut(e,i,r[i])})}return e}const zX={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function put(e=zX,t){const{payload:r}=t;switch(t.type){case NF:case yx:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case vx:return sut(e.clientOffset,r.clientOffset)?e:uut({},e,{clientOffset:r.clientOffset});case wx:case bx:return zX;default:return e}}function hut(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){hut(e,i,r[i])})}return e}const mut={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function fut(e=mut,t){const{payload:r}=t;switch(t.type){case yx:return D3({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case zF:return D3({},e,{isSourcePublic:!0});case vx:return D3({},e,{targetIds:r.targetIds});case xx:return e.targetIds.indexOf(r.targetId)===-1?e:D3({},e,{targetIds:p1t(e.targetIds,r.targetId)});case bx:return D3({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case wx:return D3({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function gut(e=0,t){switch(t.type){case HF:case VF:return e+1;case UF:case xx:return e-1;default:return e}}function yut(e=0){return e+1}function vut(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function but(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){vut(e,i,r[i])})}return e}function wut(e={},t){return{dirtyHandlerIds:cut(e.dirtyHandlerIds,{type:t.type,payload:but({},t.payload,{prevTargetIds:u1t(e,"dragOperation.targetIds",[])})}),dragOffset:put(e.dragOffset,t),refCount:gut(e.refCount,t),dragOperation:fut(e.dragOperation,t),stateId:yut(e.stateId)}}function xut(e,t=void 0,r={},n=!1){const i=Cut(n),o=new H1t(i,new out(i)),a=new O1t(i,o),l=e(a,t,r);return a.receiveBackend(l),a}function Cut(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return lve(wut,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function $ut(e,t){if(e==null)return{};var r=Sut(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Sut(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}let BX=0;const jy=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var kut=b.memo(function(t){var{children:r}=t,n=$ut(t,["children"]);const[i,o]=Eut(n);return b.useEffect(()=>{if(o){const a=Fge();return++BX,()=>{--BX===0&&(a[jy]=null)}}},[]),Wt.jsx(FF.Provider,{value:i,children:r})});function Eut(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=_ut(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function _ut(e,t=Fge(),r,n){const i=t;return i[jy]||(i[jy]={dragDropManager:xut(e,t,r,n)}),i[jy]}function Fge(){return typeof Mc<"u"?Mc:window}var tL,HX;function Tut(){return HX||(HX=1,tL=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}),tL}var Aut=Tut();const Lut=lw(Aut),sm=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Nge(e,t,r){const[n,i]=b.useState(()=>t(e)),o=b.useCallback(()=>{const a=t(e);Lut(n,a)||(i(a),r&&r())},[n,e,r]);return sm(o),[n,o]}function Dut(e,t,r){const[n,i]=Nge(e,t,r);return sm(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function zge(e,t,r){return Dut(t,e||(()=>({})),()=>r.reconnect())}function Bge(e,t){const r=[];return typeof e!="function"&&r.push(e),b.useMemo(()=>typeof e=="function"?e():e,r)}function Mut(e){return b.useMemo(()=>e.hooks.dragSource(),[e])}function Put(e){return b.useMemo(()=>e.hooks.dragPreview(),[e])}let rL=!1,nL=!1;class Iut{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){zr(!rL,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return rL=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{rL=!1}}isDragging(){if(!this.sourceId)return!1;zr(!nL,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return nL=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{nL=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let iL=!1;class jut{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;zr(!iL,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return iL=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{iL=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function Rut(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function Out(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function rj(e,t,r,n){let i;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let d=0;d<o.length;d++){const u=o[d];if(!l(u))return!1;const p=e[u],h=t[u];if(i=void 0,i===!1||i===void 0&&p!==h)return!1}return!0}function nj(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Fut(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function Nut(e){return(t=null,r=null)=>{if(!b.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return Fut(n),zut(n,r?o=>e(o,r):e)}}function Hge(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=Nut(n);t[r]=()=>i}}),t}function VX(e,t){typeof e=="function"?e(t):e.current=t}function zut(e,t){const r=e.ref;return zr(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?b.cloneElement(e,{ref:n=>{VX(r,n),VX(t,n)}}):b.cloneElement(e,{ref:t})}class But{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!rj(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!rj(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Hge({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,nj(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,nj(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class Hut{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!rj(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Hge({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,nj(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function _m(){const{dragDropManager:e}=b.useContext(FF);return zr(e!=null,"Expected drag drop context"),e}function Vut(e,t){const r=_m(),n=b.useMemo(()=>new But(r.getBackend()),[r]);return sm(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),sm(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function Uut(){const e=_m();return b.useMemo(()=>new Iut(e),[e])}class Wut{beginDrag(){const t=this.spec,r=this.monitor;let n=null;return typeof t.item=="object"?n=t.item:typeof t.item=="function"?n=t.item(r):n={},n??null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const n=this.spec,i=this.monitor,{isDragging:o}=n;return o?o(i):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,n=this.connector,{end:i}=t;i&&i(r.getItem(),r),n.reconnect()}constructor(t,r,n){this.spec=t,this.monitor=r,this.connector=n}}function Yut(e,t,r){const n=b.useMemo(()=>new Wut(e,t,r),[t,r]);return b.useEffect(()=>{n.spec=e},[e]),n}function Gut(e){return b.useMemo(()=>{const t=e.type;return zr(t!=null,"spec.type must be defined"),t},[e])}function qut(e,t,r){const n=_m(),i=Yut(e,t,r),o=Gut(e);sm(function(){if(o!=null){const[l,d]=Out(o,i,n);return t.receiveHandlerId(l),r.receiveHandlerId(l),d}},[n,t,r,i,o])}function Zut(e,t){const r=Bge(e);zr(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=Uut(),i=Vut(r.options,r.previewOptions);return qut(r,n,i),[zge(r.collect,n,i),Mut(i),Put(i)]}function Kut(e){const r=_m().getMonitor(),[n,i]=Nge(r,e);return b.useEffect(()=>r.subscribeToOffsetChange(i)),b.useEffect(()=>r.subscribeToStateChange(i)),n}function Qut(e){return b.useMemo(()=>e.hooks.dropTarget(),[e])}function Xut(e){const t=_m(),r=b.useMemo(()=>new Hut(t.getBackend()),[t]);return sm(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function Jut(){const e=_m();return b.useMemo(()=>new jut(e),[e])}function e2t(e){const{accept:t}=e;return b.useMemo(()=>(zr(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class t2t{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function r2t(e,t){const r=b.useMemo(()=>new t2t(e,t),[t]);return b.useEffect(()=>{r.spec=e},[e]),r}function n2t(e,t,r){const n=_m(),i=r2t(e,t),o=e2t(e);sm(function(){const[l,d]=Rut(o,i,n);return t.receiveHandlerId(l),r.receiveHandlerId(l),d},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function i2t(e,t){const r=Bge(e),n=Jut(),i=Xut(r.options);return n2t(r,n,i),[zge(r.collect,n,i),Qut(i)]}var ij=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),o2t=e=>{let t=e.getInitialClientOffset(),r=e.getInitialSourceClientOffset();return t===null||r===null?{x:0,y:0}:ij(t,r)},a2t=(e,t)=>{let r=e.getClientOffset();if(r===null)return null;if(!t.current||!t.current.getBoundingClientRect)return ij(r,o2t(e));let n=t.current.getBoundingClientRect(),i={x:n.width/2,y:n.height/2};return ij(r,i)},s2t=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},l2t=()=>{let e=b.useRef(null),t=Kut(r=>({currentOffset:a2t(r,e),isDragging:r.isDragging(),itemType:r.getItemType(),item:r.getItem(),monitor:r}));return!t.isDragging||t.currentOffset===null?{display:!1}:{display:!0,itemType:t.itemType,item:t.item,style:s2t(t.currentOffset),monitor:t.monitor,ref:e}};b.createContext(void 0);var c2t=b.createContext(null),d2t=({portal:e,...t})=>{let[r,n]=b.useState(null);return C.createElement(c2t.Provider,{value:e??r},C.createElement(kut,{backend:s1t,...t}),e?null:C.createElement("div",{ref:n}))},u2t=()=>{let[e,t]=b.useState(!1),r=b.useContext(FF);return b.useEffect(()=>{let n=r?.dragDropManager?.getBackend(),i={backendChanged:o=>{t(o.previewEnabled())}};return t(n.previewEnabled()),n.previewsList().register(i),()=>{n.previewsList().unregister(i)}},[r,r.dragDropManager]),e},p2t=()=>{let e=u2t(),t=l2t();return e?t:{display:!1}},b0;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(b0||(b0={}));class h2t{get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,r,n,i;return(i=(n=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&n!==void 0?n:(r=this.args)===null||r===void 0?void 0:r.delay)!==null&&i!==void 0?i:0}get delayMouseStart(){var t,r,n,i;return(i=(n=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&n!==void 0?n:(r=this.args)===null||r===void 0?void 0:r.delay)!==null&&i!==void 0?i:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,r){this.args=t,this.context=r}}function m2t(e,t,r,n){return Math.sqrt(Math.pow(Math.abs(r-e),2)+Math.pow(Math.abs(n-t),2))}function f2t(e,t,r,n,i){if(!i)return!1;const o=Math.atan2(n-t,r-e)*180/Math.PI+180;for(let a=0;a<i.length;++a){const l=i[a];if(l&&(l.start==null||o>=l.start)&&(l.end==null||o<=l.end))return!0}return!1}const g2t={Left:1},y2t={Left:0};function oL(e){return e.button===void 0||e.button===y2t.Left}function v2t(e){return e.buttons===void 0||(e.buttons&g2t.Left)===0}function Vge(e){return!!e.targetTouches}const b2t=1;function w2t(e){const t=e.nodeType===b2t?e:e.parentElement;if(!t)return;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function x2t(e,t){if(e.targetTouches.length===1)return ob(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return ob(e.touches[0])}function ob(e,t){return Vge(e)?x2t(e,t):{x:e.clientX,y:e.clientY}}const UX=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),V4={[b0.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[b0.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[b0.keyboard]:{keydown:"keydown"}};class t7{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(zr(!t7.isSetUp,"Cannot have two Touch backends at the same time."),t7.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(t7.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,r,n,i=!1){const o=UX?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const l=V4[a][r];l&&t.addEventListener(l,n,o)})}removeEventListener(t,r,n,i=!1){const o=UX?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const l=V4[a][r];l&&t.removeEventListener(l,n,o)})}connectDragSource(t,r){const n=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,r),this.addEventListener(r,"start",n),()=>{this.sourceNodes.delete(t),this.removeEventListener(r,"start",n)}}connectDragPreview(t,r,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,r),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,r){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const i=o=>{if(!this.document||!n||!this.monitor.isDragging())return;let a;switch(o.type){case V4.mouse.move:a={x:o.clientX,y:o.clientY};break;case V4.touch.move:var l,d;a={x:((l=o.touches[0])===null||l===void 0?void 0:l.clientX)||0,y:((d=o.touches[0])===null||d===void 0?void 0:d.clientY)||0};break}const u=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,p=u&&r.contains(u);if(u===r||p)return this.handleMove(o,t)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(t,r),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,r,n){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&w2t(o)},this.handleTopMoveStartCapture=i=>{oL(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!oL(i))return;const o=ob(i);o&&(Vge(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!oL(i))return;const o=i.type===V4.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,i),o),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(i,o)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(o)},this.handleTopMove=i=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:o,dragOverTargetIds:a}=this,l=this.options.enableHoverOutsideTarget,d=ob(i,this.lastTargetTouchFallback);if(!d)return;if(this._isScrolling||!this.monitor.isDragging()&&f2t(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&m2t(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(o,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const p=(a||[]).map(y=>this.targetNodes.get(y)).filter(y=>!!y),h=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(d.x,d.y,p):this.document.elementsFromPoint(d.x,d.y),f=[];for(const y in h){if(!h.hasOwnProperty(y))continue;let v=h[y];for(v!=null&&f.push(v);v;)v=v.parentElement,v&&f.indexOf(v)===-1&&f.push(v)}const g=f.filter(y=>p.indexOf(y)>-1).map(y=>this._getDropTargetId(y)).filter(y=>!!y).filter((y,v,w)=>w.indexOf(y)===v);if(l)for(const y in this.targetNodes){const v=this.targetNodes.get(y);if(u&&v&&v.contains(u)&&g.indexOf(y)===-1){g.unshift(y);break}}g.reverse(),this.actions.hover(g,{clientOffset:d})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let a=o.next();for(;a.done===!1;){const l=a.value;if(i===this.targetNodes.get(l))return l;a=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!v2t(i)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}i.cancelable&&i.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=i=>{i.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new h2t(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(b0.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(b0.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(b0.keyboard)}}const C2t=function(t,r={},n={}){return new t7(t,r,n)};var Sn=Abe(),r7={};r7.d=(e,t)=>{for(var r in t)r7.o(t,r)&&!r7.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})};r7.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var kr=globalThis.pdfjsLib={};r7.d(kr,{AbortException:()=>Am,AnnotationEditorLayer:()=>Lu,AnnotationEditorParamsType:()=>Pr,AnnotationEditorType:()=>fn,AnnotationEditorUIManager:()=>P0,AnnotationLayer:()=>wpt,AnnotationMode:()=>K2,CMapCompressionType:()=>aj,ColorPicker:()=>a1,DOMSVGFactory:()=>GF,DrawLayer:()=>ba,FeatureTest:()=>xs,GlobalWorkerOptions:()=>A7,ImageKind:()=>Ry,InvalidPDFException:()=>Wge,MissingPDFException:()=>Tm,OPS:()=>kc,Outliner:()=>mj,PDFDataRangeTransport:()=>l4e,PDFDateString:()=>Qge,PDFWorker:()=>El,PasswordResponses:()=>E2t,PermissionFlag:()=>k2t,PixelsPerInch:()=>Jf,RenderingCancelledException:()=>qF,TextLayer:()=>lb,UnexpectedResponseException:()=>kx,Util:()=>ar,VerbosityLevel:()=>Cx,XfaLayer:()=>d4e,build:()=>ept,createValidAbsoluteUrl:()=>L2t,fetchData:()=>Dx,getDocument:()=>W0t,getFilenameFromUrl:()=>z2t,getPdfFilenameFromUrl:()=>B2t,getXfaPageViewport:()=>H2t,isDataScheme:()=>ZF,isPdfFile:()=>KF,noContextMenu:()=>ks,normalizeUnicode:()=>R2t,renderTextLayer:()=>R0t,setLayerDimensions:()=>lm,shadow:()=>bn,updateTextLayer:()=>O0t,version:()=>J0t});const ka=typeof l1=="object"&&l1+""=="[object process]"&&!l1.versions.nw&&!(l1.versions.electron&&l1.type&&l1.type!=="browser"),Uge=[1,0,0,1,0,0],oj=[.001,0,0,.001,0,0],$2t=1e7,aL=1.35,Sl={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},K2={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},S2t="pdfjs_internal_editor_",fn={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},Pr={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},k2t={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},va={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},Ry={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},ko={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,WIDGET:20},U4={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},Cx={ERRORS:0,WARNINGS:1,INFOS:5},aj={NONE:0,BINARY:1},kc={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},E2t={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let $x=Cx.WARNINGS;function _2t(e){Number.isInteger(e)&&($x=e)}function T2t(){return $x}function Sx(e){$x>=Cx.INFOS&&console.log(`Info: ${e}`)}function Xr(e){$x>=Cx.WARNINGS&&console.log(`Warning: ${e}`)}function ti(e){throw new Error(e)}function Lo(e,t){e||ti(t)}function A2t(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function L2t(e,t=null,r=null){if(!e)return null;try{if(r&&typeof e=="string"&&(r.addDefaultProtocol&&e.startsWith("www.")&&e.match(/\./g)?.length>=2&&(e=`http://${e}`),r.tryConvertEncoding))try{e=j2t(e)}catch{}const n=t?new URL(e,t):new URL(e);if(A2t(n))return n}catch{}return null}function bn(e,t,r,n=!1){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!0,writable:!1}),r}const G0=function(){function t(r,n){this.constructor===t&&ti("Cannot initialize BaseException."),this.message=r,this.name=n}return t.prototype=new Error,t.constructor=t,t}();class sj extends G0{constructor(t,r){super(t,"PasswordException"),this.code=r}}class lj extends G0{constructor(t,r){super(t,"UnknownErrorException"),this.details=r}}class Wge extends G0{constructor(t){super(t,"InvalidPDFException")}}class Tm extends G0{constructor(t){super(t,"MissingPDFException")}}class kx extends G0{constructor(t,r){super(t,"UnexpectedResponseException"),this.status=r}}class D2t extends G0{constructor(t){super(t,"FormatError")}}class Am extends G0{constructor(t){super(t,"AbortException")}}function Yge(e){(typeof e!="object"||e?.length===void 0)&&ti("Invalid argument for bytesToString");const t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);const n=[];for(let i=0;i<t;i+=r){const o=Math.min(i+r,t),a=e.subarray(i,o);n.push(String.fromCharCode.apply(null,a))}return n.join("")}function Ex(e){typeof e!="string"&&ti("Invalid argument for stringToBytes");const t=e.length,r=new Uint8Array(t);for(let n=0;n<t;++n)r[n]=e.charCodeAt(n)&255;return r}function M2t(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,e&255)}function WF(e){const t=Object.create(null);for(const[r,n]of e)t[r]=n;return t}function P2t(){const e=new Uint8Array(4);return e[0]=1,new Uint32Array(e.buffer,0,1)[0]===1}function I2t(){try{return new Function(""),!0}catch{return!1}}class xs{static get isLittleEndian(){return bn(this,"isLittleEndian",P2t())}static get isEvalSupported(){return bn(this,"isEvalSupported",I2t())}static get isOffscreenCanvasSupported(){return bn(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator<"u"&&typeof navigator?.platform=="string"?bn(this,"platform",{isMac:navigator.platform.includes("Mac")}):bn(this,"platform",{isMac:!1})}static get isCSSRoundSupported(){return bn(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}const sL=Array.from(Array(256).keys(),e=>e.toString(16).padStart(2,"0"));class ar{static makeHexColor(t,r,n){return`#${sL[t]}${sL[r]}${sL[n]}`}static scaleMinMax(t,r){let n;t[0]?(t[0]<0&&(n=r[0],r[0]=r[2],r[2]=n),r[0]*=t[0],r[2]*=t[0],t[3]<0&&(n=r[1],r[1]=r[3],r[3]=n),r[1]*=t[3],r[3]*=t[3]):(n=r[0],r[0]=r[1],r[1]=n,n=r[2],r[2]=r[3],r[3]=n,t[1]<0&&(n=r[1],r[1]=r[3],r[3]=n),r[1]*=t[1],r[3]*=t[1],t[2]<0&&(n=r[0],r[0]=r[2],r[2]=n),r[0]*=t[2],r[2]*=t[2]),r[0]+=t[4],r[1]+=t[5],r[2]+=t[4],r[3]+=t[5]}static transform(t,r){return[t[0]*r[0]+t[2]*r[1],t[1]*r[0]+t[3]*r[1],t[0]*r[2]+t[2]*r[3],t[1]*r[2]+t[3]*r[3],t[0]*r[4]+t[2]*r[5]+t[4],t[1]*r[4]+t[3]*r[5]+t[5]]}static applyTransform(t,r){const n=t[0]*r[0]+t[1]*r[2]+r[4],i=t[0]*r[1]+t[1]*r[3]+r[5];return[n,i]}static applyInverseTransform(t,r){const n=r[0]*r[3]-r[1]*r[2],i=(t[0]*r[3]-t[1]*r[2]+r[2]*r[5]-r[4]*r[3])/n,o=(-t[0]*r[1]+t[1]*r[0]+r[4]*r[1]-r[5]*r[0])/n;return[i,o]}static getAxialAlignedBoundingBox(t,r){const n=this.applyTransform(t,r),i=this.applyTransform(t.slice(2,4),r),o=this.applyTransform([t[0],t[3]],r),a=this.applyTransform([t[2],t[1]],r);return[Math.min(n[0],i[0],o[0],a[0]),Math.min(n[1],i[1],o[1],a[1]),Math.max(n[0],i[0],o[0],a[0]),Math.max(n[1],i[1],o[1],a[1])]}static inverseTransform(t){const r=t[0]*t[3]-t[1]*t[2];return[t[3]/r,-t[1]/r,-t[2]/r,t[0]/r,(t[2]*t[5]-t[4]*t[3])/r,(t[4]*t[1]-t[5]*t[0])/r]}static singularValueDecompose2dScale(t){const r=[t[0],t[2],t[1],t[3]],n=t[0]*r[0]+t[1]*r[2],i=t[0]*r[1]+t[1]*r[3],o=t[2]*r[0]+t[3]*r[2],a=t[2]*r[1]+t[3]*r[3],l=(n+a)/2,d=Math.sqrt((n+a)**2-4*(n*a-o*i))/2,u=l+d||1,p=l-d||1;return[Math.sqrt(u),Math.sqrt(p)]}static normalizeRect(t){const r=t.slice(0);return t[0]>t[2]&&(r[0]=t[2],r[2]=t[0]),t[1]>t[3]&&(r[1]=t[3],r[3]=t[1]),r}static intersect(t,r){const n=Math.max(Math.min(t[0],t[2]),Math.min(r[0],r[2])),i=Math.min(Math.max(t[0],t[2]),Math.max(r[0],r[2]));if(n>i)return null;const o=Math.max(Math.min(t[1],t[3]),Math.min(r[1],r[3])),a=Math.min(Math.max(t[1],t[3]),Math.max(r[1],r[3]));return o>a?null:[n,o,i,a]}static#e(t,r,n,i,o,a,l,d,u,p){if(u<=0||u>=1)return;const h=1-u,f=u*u,g=f*u,y=h*(h*(h*t+3*u*r)+3*f*n)+g*i,v=h*(h*(h*o+3*u*a)+3*f*l)+g*d;p[0]=Math.min(p[0],y),p[1]=Math.min(p[1],v),p[2]=Math.max(p[2],y),p[3]=Math.max(p[3],v)}static#t(t,r,n,i,o,a,l,d,u,p,h,f){if(Math.abs(u)<1e-12){Math.abs(p)>=1e-12&&this.#e(t,r,n,i,o,a,l,d,-h/p,f);return}const g=p**2-4*h*u;if(g<0)return;const y=Math.sqrt(g),v=2*u;this.#e(t,r,n,i,o,a,l,d,(-p+y)/v,f),this.#e(t,r,n,i,o,a,l,d,(-p-y)/v,f)}static bezierBoundingBox(t,r,n,i,o,a,l,d,u){return u?(u[0]=Math.min(u[0],t,l),u[1]=Math.min(u[1],r,d),u[2]=Math.max(u[2],t,l),u[3]=Math.max(u[3],r,d)):u=[Math.min(t,l),Math.min(r,d),Math.max(t,l),Math.max(r,d)],this.#t(t,n,o,l,r,i,a,d,3*(-t+3*(n-o)+l),6*(t-2*n+o),3*(n-t),u),this.#t(t,n,o,l,r,i,a,d,3*(-r+3*(i-a)+d),6*(r-2*i+a),3*(i-r),u),u}}function j2t(e){return decodeURIComponent(escape(e))}let lL=null,WX=null;function R2t(e){return lL||(lL=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,WX=new Map([["ſt","ſt"]])),e.replaceAll(lL,(t,r,n)=>r?r.normalize("NFKC"):WX.get(n))}function O2t(){if(typeof crypto<"u"&&typeof crypto?.randomUUID=="function")return crypto.randomUUID();const e=new Uint8Array(32);if(typeof crypto<"u"&&typeof crypto?.getRandomValues=="function")crypto.getRandomValues(e);else for(let t=0;t<32;t++)e[t]=Math.floor(Math.random()*255);return Yge(e)}const Gge="pdfjs_internal_id_",fu={BEZIER_CURVE_TO:0,MOVE_TO:1,LINE_TO:2,QUADRATIC_CURVE_TO:3,RESTORE:4,SAVE:5,SCALE:6,TRANSFORM:7,TRANSLATE:8};class _x{constructor(){this.constructor===_x&&ti("Cannot initialize BaseFilterFactory.")}addFilter(t){return"none"}addHCMFilter(t,r){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addHighlightHCMFilter(t,r,n,i,o){return"none"}destroy(t=!1){}}class Tx{#e=!1;constructor({enableHWA:t=!1}={}){this.constructor===Tx&&ti("Cannot initialize BaseCanvasFactory."),this.#e=t}create(t,r){if(t<=0||r<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(t,r);return{canvas:n,context:n.getContext("2d",{willReadFrequently:!this.#e})}}reset(t,r,n){if(!t.canvas)throw new Error("Canvas is not specified");if(r<=0||n<=0)throw new Error("Invalid canvas size");t.canvas.width=r,t.canvas.height=n}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}_createCanvas(t,r){ti("Abstract method `_createCanvas` called.")}}class Ax{constructor({baseUrl:t=null,isCompressed:r=!0}){this.constructor===Ax&&ti("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=r}async fetch({name:t}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const r=this.baseUrl+t+(this.isCompressed?".bcmap":""),n=this.isCompressed?aj.BINARY:aj.NONE;return this._fetchData(r,n).catch(i=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${r}`)})}_fetchData(t,r){ti("Abstract method `_fetchData` called.")}}class Lx{constructor({baseUrl:t=null}){this.constructor===Lx&&ti("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}async fetch({filename:t}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const r=`${this.baseUrl}${t}`;return this._fetchData(r).catch(n=>{throw new Error(`Unable to load font data at: ${r}`)})}_fetchData(t){ti("Abstract method `_fetchData` called.")}}class YF{constructor(){this.constructor===YF&&ti("Cannot initialize BaseSVGFactory.")}create(t,r,n=!1){if(t<=0||r<=0)throw new Error("Invalid SVG dimensions");const i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),n||(i.setAttribute("width",`${t}px`),i.setAttribute("height",`${r}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${t} ${r}`),i}createElement(t){if(typeof t!="string")throw new Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){ti("Abstract method `_createSVG` called.")}}const _u="http://www.w3.org/2000/svg";class Jf{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}class F2t extends _x{#e;#t;#r;#i;#s;#n=0;constructor({docId:t,ownerDocument:r=globalThis.document}={}){super(),this.#r=t,this.#i=r}get#o(){return this.#e||=new Map}get#l(){return this.#s||=new Map}get#d(){if(!this.#t){const t=this.#i.createElement("div"),{style:r}=t;r.visibility="hidden",r.contain="strict",r.width=r.height=0,r.position="absolute",r.top=r.left=0,r.zIndex=-1;const n=this.#i.createElementNS(_u,"svg");n.setAttribute("width",0),n.setAttribute("height",0),this.#t=this.#i.createElementNS(_u,"defs"),t.append(n),n.append(this.#t),this.#i.body.append(t)}return this.#t}#u(t){if(t.length===1){const d=t[0],u=new Array(256);for(let h=0;h<256;h++)u[h]=d[h]/255;const p=u.join(",");return[p,p,p]}const[r,n,i]=t,o=new Array(256),a=new Array(256),l=new Array(256);for(let d=0;d<256;d++)o[d]=r[d]/255,a[d]=n[d]/255,l[d]=i[d]/255;return[o.join(","),a.join(","),l.join(",")]}addFilter(t){if(!t)return"none";let r=this.#o.get(t);if(r)return r;const[n,i,o]=this.#u(t),a=t.length===1?n:`${n}${i}${o}`;if(r=this.#o.get(a),r)return this.#o.set(t,r),r;const l=`g_${this.#r}_transfer_map_${this.#n++}`,d=`url(#${l})`;this.#o.set(t,d),this.#o.set(a,d);const u=this.#a(l);return this.#g(n,i,o,u),d}addHCMFilter(t,r){const n=`${t}-${r}`,i="base";let o=this.#l.get(i);if(o?.key===n||(o?(o.filter?.remove(),o.key=n,o.url="none",o.filter=null):(o={key:n,url:"none",filter:null},this.#l.set(i,o)),!t||!r))return o.url;const a=this.#v(t);t=ar.makeHexColor(...a);const l=this.#v(r);if(r=ar.makeHexColor(...l),this.#d.style.color="",t==="#000000"&&r==="#ffffff"||t===r)return o.url;const d=new Array(256);for(let g=0;g<=255;g++){const y=g/255;d[g]=y<=.03928?y/12.92:((y+.055)/1.055)**2.4}const u=d.join(","),p=`g_${this.#r}_hcm_filter`,h=o.filter=this.#a(p);this.#g(u,u,u,h),this.#c(h);const f=(g,y)=>{const v=a[g]/255,w=l[g]/255,x=new Array(y+1);for(let $=0;$<=y;$++)x[$]=v+$/y*(w-v);return x.join(",")};return this.#g(f(0,5),f(1,5),f(2,5),h),o.url=`url(#${p})`,o.url}addAlphaFilter(t){let r=this.#o.get(t);if(r)return r;const[n]=this.#u([t]),i=`alpha_${n}`;if(r=this.#o.get(i),r)return this.#o.set(t,r),r;const o=`g_${this.#r}_alpha_map_${this.#n++}`,a=`url(#${o})`;this.#o.set(t,a),this.#o.set(i,a);const l=this.#a(o);return this.#p(n,l),a}addLuminosityFilter(t){let r=this.#o.get(t||"luminosity");if(r)return r;let n,i;if(t?([n]=this.#u([t]),i=`luminosity_${n}`):i="luminosity",r=this.#o.get(i),r)return this.#o.set(t,r),r;const o=`g_${this.#r}_luminosity_map_${this.#n++}`,a=`url(#${o})`;this.#o.set(t,a),this.#o.set(i,a);const l=this.#a(o);return this.#h(l),t&&this.#p(n,l),a}addHighlightHCMFilter(t,r,n,i,o){const a=`${r}-${n}-${i}-${o}`;let l=this.#l.get(t);if(l?.key===a||(l?(l.filter?.remove(),l.key=a,l.url="none",l.filter=null):(l={key:a,url:"none",filter:null},this.#l.set(t,l)),!r||!n))return l.url;const[d,u]=[r,n].map(this.#v.bind(this));let p=Math.round(.2126*d[0]+.7152*d[1]+.0722*d[2]),h=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[f,g]=[i,o].map(this.#v.bind(this));h<p&&([p,h,f,g]=[h,p,g,f]),this.#d.style.color="";const y=(x,$,S)=>{const k=new Array(256),T=(h-p)/S,E=x/255,A=($-x)/(255*S);let P=0;for(let D=0;D<=S;D++){const O=Math.round(p+D*T),V=E+D*A;for(let j=P;j<=O;j++)k[j]=V;P=O+1}for(let D=P;D<256;D++)k[D]=k[P-1];return k.join(",")},v=`g_${this.#r}_hcm_${t}_filter`,w=l.filter=this.#a(v);return this.#c(w),this.#g(y(f[0],g[0],5),y(f[1],g[1],5),y(f[2],g[2],5),w),l.url=`url(#${v})`,l.url}destroy(t=!1){t&&this.#l.size!==0||(this.#t&&(this.#t.parentNode.parentNode.remove(),this.#t=null),this.#e&&(this.#e.clear(),this.#e=null),this.#n=0)}#h(t){const r=this.#i.createElementNS(_u,"feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),t.append(r)}#c(t){const r=this.#i.createElementNS(_u,"feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),t.append(r)}#a(t){const r=this.#i.createElementNS(_u,"filter");return r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("id",t),this.#d.append(r),r}#m(t,r,n){const i=this.#i.createElementNS(_u,r);i.setAttribute("type","discrete"),i.setAttribute("tableValues",n),t.append(i)}#g(t,r,n,i){const o=this.#i.createElementNS(_u,"feComponentTransfer");i.append(o),this.#m(o,"feFuncR",t),this.#m(o,"feFuncG",r),this.#m(o,"feFuncB",n)}#p(t,r){const n=this.#i.createElementNS(_u,"feComponentTransfer");r.append(n),this.#m(n,"feFuncA",t)}#v(t){return this.#d.style.color=t,QF(getComputedStyle(this.#d).getPropertyValue("color"))}}class N2t extends Tx{constructor({ownerDocument:t=globalThis.document,enableHWA:r=!1}={}){super({enableHWA:r}),this._document=t}_createCanvas(t,r){const n=this._document.createElement("canvas");return n.width=t,n.height=r,n}}async function Dx(e,t="text"){if(R5(e,document.baseURI)){const r=await fetch(e);if(!r.ok)throw new Error(r.statusText);switch(t){case"arraybuffer":return r.arrayBuffer();case"blob":return r.blob();case"json":return r.json()}return r.text()}return new Promise((r,n)=>{const i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType=t,i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(i.status===200||i.status===0){switch(t){case"arraybuffer":case"blob":case"json":r(i.response);return}r(i.responseText);return}n(new Error(i.statusText))}},i.send(null)})}class qge extends Ax{_fetchData(t,r){return Dx(t,this.isCompressed?"arraybuffer":"text").then(n=>({cMapData:n instanceof ArrayBuffer?new Uint8Array(n):Ex(n),compressionType:r}))}}class Zge extends Lx{_fetchData(t){return Dx(t,"arraybuffer").then(r=>new Uint8Array(r))}}class GF extends YF{_createSVG(t){return document.createElementNS(_u,t)}}class m6{constructor({viewBox:t,scale:r,rotation:n,offsetX:i=0,offsetY:o=0,dontFlip:a=!1}){this.viewBox=t,this.scale=r,this.rotation=n,this.offsetX=i,this.offsetY=o;const l=(t[2]+t[0])/2,d=(t[3]+t[1])/2;let u,p,h,f;switch(n%=360,n<0&&(n+=360),n){case 180:u=-1,p=0,h=0,f=1;break;case 90:u=0,p=1,h=1,f=0;break;case 270:u=0,p=-1,h=-1,f=0;break;case 0:u=1,p=0,h=0,f=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(h=-h,f=-f);let g,y,v,w;u===0?(g=Math.abs(d-t[1])*r+i,y=Math.abs(l-t[0])*r+o,v=(t[3]-t[1])*r,w=(t[2]-t[0])*r):(g=Math.abs(l-t[0])*r+i,y=Math.abs(d-t[1])*r+o,v=(t[2]-t[0])*r,w=(t[3]-t[1])*r),this.transform=[u*r,p*r,h*r,f*r,g-u*r*l-h*r*d,y-p*r*l-f*r*d],this.width=v,this.height=w}get rawDims(){const{viewBox:t}=this;return bn(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}clone({scale:t=this.scale,rotation:r=this.rotation,offsetX:n=this.offsetX,offsetY:i=this.offsetY,dontFlip:o=!1}={}){return new m6({viewBox:this.viewBox.slice(),scale:t,rotation:r,offsetX:n,offsetY:i,dontFlip:o})}convertToViewportPoint(t,r){return ar.applyTransform([t,r],this.transform)}convertToViewportRectangle(t){const r=ar.applyTransform([t[0],t[1]],this.transform),n=ar.applyTransform([t[2],t[3]],this.transform);return[r[0],r[1],n[0],n[1]]}convertToPdfPoint(t,r){return ar.applyInverseTransform([t,r],this.transform)}}class qF extends G0{constructor(t,r=0){super(t,"RenderingCancelledException"),this.extraDelay=r}}function ZF(e){const t=e.length;let r=0;for(;r<t&&e[r].trim()==="";)r++;return e.substring(r,r+5).toLowerCase()==="data:"}function KF(e){return typeof e=="string"&&/\.pdf$/i.test(e)}function z2t(e){return[e]=e.split(/[#?]/,1),e.substring(e.lastIndexOf("/")+1)}function B2t(e,t="document.pdf"){if(typeof e!="string")return t;if(ZF(e))return Xr('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=r.exec(e);let o=n.exec(i[1])||n.exec(i[2])||n.exec(i[3]);if(o&&(o=o[0],o.includes("%")))try{o=n.exec(decodeURIComponent(o))[0]}catch{}return o||t}class YX{started=Object.create(null);times=[];time(t){t in this.started&&Xr(`Timer is already running for ${t}`),this.started[t]=Date.now()}timeEnd(t){t in this.started||Xr(`Timer has not been started for ${t}`),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}toString(){const t=[];let r=0;for(const{name:n}of this.times)r=Math.max(n.length,r);for(const{name:n,start:i,end:o}of this.times)t.push(`${n.padEnd(r)} ${o-i}ms
|
|
289
|
-
`);return t.join("")}}function R5(e,t){try{const{protocol:r}=t?new URL(e,t):new URL(e);return r==="http:"||r==="https:"}catch{return!1}}function ks(e){e.preventDefault()}function Kge(e){console.log("Deprecated API usage: "+e)}let GX;class Qge{static toDateObject(t){if(!t||typeof t!="string")return null;GX||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const r=GX.exec(t);if(!r)return null;const n=parseInt(r[1],10);let i=parseInt(r[2],10);i=i>=1&&i<=12?i-1:0;let o=parseInt(r[3],10);o=o>=1&&o<=31?o:1;let a=parseInt(r[4],10);a=a>=0&&a<=23?a:0;let l=parseInt(r[5],10);l=l>=0&&l<=59?l:0;let d=parseInt(r[6],10);d=d>=0&&d<=59?d:0;const u=r[7]||"Z";let p=parseInt(r[8],10);p=p>=0&&p<=23?p:0;let h=parseInt(r[9],10)||0;return h=h>=0&&h<=59?h:0,u==="-"?(a+=p,l+=h):u==="+"&&(a-=p,l-=h),new Date(Date.UTC(n,i,o,a,l,d))}}function H2t(e,{scale:t=1,rotation:r=0}){const{width:n,height:i}=e.attributes.style,o=[0,0,parseInt(n),parseInt(i)];return new m6({viewBox:o,scale:t,rotation:r})}function QF(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(t&16711680)>>16,(t&65280)>>8,t&255]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map(t=>parseInt(t)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(Xr(`Not a valid color format: "${e}"`),[0,0,0])}function V2t(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const r of e.keys()){t.style.color=r;const n=window.getComputedStyle(t).color;e.set(r,QF(n))}t.remove()}function Mi(e){const{a:t,b:r,c:n,d:i,e:o,f:a}=e.getTransform();return[t,r,n,i,o,a]}function gu(e){const{a:t,b:r,c:n,d:i,e:o,f:a}=e.getTransform().invertSelf();return[t,r,n,i,o,a]}function lm(e,t,r=!1,n=!0){if(t instanceof m6){const{pageWidth:i,pageHeight:o}=t.rawDims,{style:a}=e,l=xs.isCSSRoundSupported,d=`var(--scale-factor) * ${i}px`,u=`var(--scale-factor) * ${o}px`,p=l?`round(${d}, 1px)`:`calc(${d})`,h=l?`round(${u}, 1px)`:`calc(${u})`;!r||t.rotation%180===0?(a.width=p,a.height=h):(a.width=h,a.height=p)}n&&e.setAttribute("data-main-rotation",t.rotation)}class XF{#e=null;#t=null;#r;#i=null;constructor(t){this.#r=t}render(){const t=this.#e=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar");const r=this.#r._uiManager._signal;t.addEventListener("contextmenu",ks,{signal:r}),t.addEventListener("pointerdown",XF.#s,{signal:r});const n=this.#i=document.createElement("div");n.className="buttons",t.append(n);const i=this.#r.toolbarPosition;if(i){const{style:o}=t,a=this.#r._uiManager.direction==="ltr"?1-i[0]:i[0];o.insetInlineEnd=`${100*a}%`,o.top=`calc(${100*i[1]}% + var(--editor-toolbar-vert-offset))`}return this.#d(),t}static#s(t){t.stopPropagation()}#n(t){this.#r._focusEventsAllowed=!1,t.preventDefault(),t.stopPropagation()}#o(t){this.#r._focusEventsAllowed=!0,t.preventDefault(),t.stopPropagation()}#l(t){const r=this.#r._uiManager._signal;t.addEventListener("focusin",this.#n.bind(this),{capture:!0,signal:r}),t.addEventListener("focusout",this.#o.bind(this),{capture:!0,signal:r}),t.addEventListener("contextmenu",ks,{signal:r})}hide(){this.#e.classList.add("hidden"),this.#t?.hideDropdown()}show(){this.#e.classList.remove("hidden")}#d(){const t=document.createElement("button");t.className="delete",t.tabIndex=0,t.setAttribute("data-l10n-id",`pdfjs-editor-remove-${this.#r.editorType}-button`),this.#l(t),t.addEventListener("click",r=>{this.#r._uiManager.delete()},{signal:this.#r._uiManager._signal}),this.#i.append(t)}get#u(){const t=document.createElement("div");return t.className="divider",t}addAltTextButton(t){this.#l(t),this.#i.prepend(t,this.#u)}addColorPicker(t){this.#t=t;const r=t.renderButton();this.#l(r),this.#i.prepend(r,this.#u)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}}class U2t{#e=null;#t=null;#r;constructor(t){this.#r=t}#i(){const t=this.#t=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",ks,{signal:this.#r._signal});const r=this.#e=document.createElement("div");return r.className="buttons",t.append(r),this.#n(),t}#s(t,r){let n=0,i=0;for(const o of t){const a=o.y+o.height;if(a<n)continue;const l=o.x+(r?o.width:0);if(a>n){i=l,n=a;continue}r?l>i&&(i=l):l<i&&(i=l)}return[r?1-i:i,n]}show(t,r,n){const[i,o]=this.#s(r,n),{style:a}=this.#t||=this.#i();t.append(this.#t),a.insetInlineEnd=`${100*i}%`,a.top=`calc(${100*o}% + var(--editor-toolbar-vert-offset))`}hide(){this.#t.remove()}#n(){const t=document.createElement("button");t.className="highlightButton",t.tabIndex=0,t.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const r=document.createElement("span");t.append(r),r.className="visuallyHidden",r.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const n=this.#r._signal;t.addEventListener("contextmenu",ks,{signal:n}),t.addEventListener("click",()=>{this.#r.highlightSelection("floating_button")},{signal:n}),this.#e.append(t)}}function ab(e,t,r){for(const n of r)t.addEventListener(n,e[n].bind(e))}function W2t(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")}class Y2t{#e=0;get id(){return`${S2t}${this.#e++}`}}class JF{#e=O2t();#t=0;#r=null;static get _isSVGFittingCanvas(){const t='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',n=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),i=new Image;i.src=t;const o=i.decode().then(()=>(n.drawImage(i,0,0,1,1,0,0,1,3),new Uint32Array(n.getImageData(0,0,1,1).data.buffer)[0]===0));return bn(this,"_isSVGFittingCanvas",o)}async#i(t,r){this.#r||=new Map;let n=this.#r.get(t);if(n===null)return null;if(n?.bitmap)return n.refCounter+=1,n;try{n||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let i;if(typeof r=="string"?(n.url=r,i=await Dx(r,"blob")):i=n.file=r,i.type==="image/svg+xml"){const o=JF._isSVGFittingCanvas,a=new FileReader,l=new Image,d=new Promise((u,p)=>{l.onload=()=>{n.bitmap=l,n.isSvg=!0,u()},a.onload=async()=>{const h=n.svgUrl=a.result;l.src=await o?`${h}#svgView(preserveAspectRatio(none))`:h},l.onerror=a.onerror=p});a.readAsDataURL(i),await d}else n.bitmap=await createImageBitmap(i);n.refCounter=1}catch(i){console.error(i),n=null}return this.#r.set(t,n),n&&this.#r.set(n.id,n),n}async getFromFile(t){const{lastModified:r,name:n,size:i,type:o}=t;return this.#i(`${r}_${n}_${i}_${o}`,t)}async getFromUrl(t){return this.#i(t,t)}async getFromId(t){this.#r||=new Map;const r=this.#r.get(t);return r?r.bitmap?(r.refCounter+=1,r):r.file?this.getFromFile(r.file):this.getFromUrl(r.url):null}getSvgUrl(t){const r=this.#r.get(t);return r?.isSvg?r.svgUrl:null}deleteId(t){this.#r||=new Map;const r=this.#r.get(t);r&&(r.refCounter-=1,r.refCounter===0&&(r.bitmap=null))}isValidId(t){return t.startsWith(`image_${this.#e}_`)}}class G2t{#e=[];#t=!1;#r;#i=-1;constructor(t=128){this.#r=t}add({cmd:t,undo:r,post:n,mustExec:i,type:o=NaN,overwriteIfSameType:a=!1,keepUndo:l=!1}){if(i&&t(),this.#t)return;const d={cmd:t,undo:r,post:n,type:o};if(this.#i===-1){this.#e.length>0&&(this.#e.length=0),this.#i=0,this.#e.push(d);return}if(a&&this.#e[this.#i].type===o){l&&(d.undo=this.#e[this.#i].undo),this.#e[this.#i]=d;return}const u=this.#i+1;u===this.#r?this.#e.splice(0,1):(this.#i=u,u<this.#e.length&&this.#e.splice(u)),this.#e.push(d)}undo(){if(this.#i===-1)return;this.#t=!0;const{undo:t,post:r}=this.#e[this.#i];t(),r?.(),this.#t=!1,this.#i-=1}redo(){if(this.#i<this.#e.length-1){this.#i+=1,this.#t=!0;const{cmd:t,post:r}=this.#e[this.#i];t(),r?.(),this.#t=!1}}hasSomethingToUndo(){return this.#i!==-1}hasSomethingToRedo(){return this.#i<this.#e.length-1}destroy(){this.#e=null}}class f6{constructor(t){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:r}=xs.platform;for(const[n,i,o={}]of t)for(const a of n){const l=a.startsWith("mac+");r&&l?(this.callbacks.set(a.slice(4),{callback:i,options:o}),this.allKeys.add(a.split("+").at(-1))):!r&&!l&&(this.callbacks.set(a,{callback:i,options:o}),this.allKeys.add(a.split("+").at(-1)))}}#e(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);const r=this.buffer.join("+");return this.buffer.length=0,r}exec(t,r){if(!this.allKeys.has(r.key))return;const n=this.callbacks.get(this.#e(r));if(!n)return;const{callback:i,options:{bubbles:o=!1,args:a=[],checker:l=null}}=n;l&&!l(t,r)||(i.bind(t,...a,r)(),o||(r.stopPropagation(),r.preventDefault()))}}class eN{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const t=new Map([["CanvasText",null],["Canvas",null]]);return V2t(t),bn(this,"_colors",t)}convert(t){const r=QF(t);if(!window.matchMedia("(forced-colors: active)").matches)return r;for(const[n,i]of this._colors)if(i.every((o,a)=>o===r[a]))return eN._colorsMapping.get(n);return r}getHexCode(t){const r=this._colors.get(t);return r?ar.makeHexColor(...r):t}}class P0{#e=new AbortController;#t=null;#r=new Map;#i=new Map;#s=null;#n=null;#o=null;#l=new G2t;#d=0;#u=new Set;#h=null;#c=null;#a=new Set;#m=!1;#g=null;#p=null;#v=null;#f=!1;#b=null;#x=new Y2t;#$=!1;#k=!1;#E=null;#L=null;#S=null;#w=fn.NONE;#y=new Set;#C=null;#_=null;#T=null;#M=this.blur.bind(this);#D=this.focus.bind(this);#j=this.copy.bind(this);#P=this.cut.bind(this);#R=this.paste.bind(this);#I=this.keydown.bind(this);#U=this.keyup.bind(this);#W=this.onEditingAction.bind(this);#H=this.onPageChanging.bind(this);#z=this.onScaleChanging.bind(this);#O=this.onRotationChanging.bind(this);#Z={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#V=[0,0];#F=null;#B=null;#K=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const t=P0.prototype,r=a=>a.#B.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&a.hasSomethingToControl(),n=(a,{target:l})=>{if(l instanceof HTMLInputElement){const{type:d}=l;return d!=="text"&&d!=="number"}return!0},i=this.TRANSLATE_SMALL,o=this.TRANSLATE_BIG;return bn(this,"_keyboardManager",new f6([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],t.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:n}],[["Enter","mac+Enter"],t.addNewEditorFromKeyboard,{checker:(a,{target:l})=>!(l instanceof HTMLButtonElement)&&a.#B.contains(l)&&!a.isEnterHandled}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(a,{target:l})=>!(l instanceof HTMLButtonElement)&&a.#B.contains(document.activeElement)}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-i,0],checker:r}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-o,0],checker:r}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[i,0],checker:r}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[o,0],checker:r}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-i],checker:r}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-o],checker:r}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,i],checker:r}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,o],checker:r}]]))}constructor(t,r,n,i,o,a,l,d,u){this._signal=this.#e.signal,this.#B=t,this.#K=r,this.#s=n,this._eventBus=i,this._eventBus._on("editingaction",this.#W),this._eventBus._on("pagechanging",this.#H),this._eventBus._on("scalechanging",this.#z),this._eventBus._on("rotationchanging",this.#O),this.#ie(),this.#le(),this.#Q(),this.#n=o.annotationStorage,this.#g=o.filterFactory,this.#_=a,this.#v=l||null,this.#m=d,this.#S=u||null,this.viewParameters={realScale:Jf.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}destroy(){this.#e?.abort(),this.#e=null,this._signal=null,this._eventBus._off("editingaction",this.#W),this._eventBus._off("pagechanging",this.#H),this._eventBus._off("scalechanging",this.#z),this._eventBus._off("rotationchanging",this.#O);for(const t of this.#i.values())t.destroy();this.#i.clear(),this.#r.clear(),this.#a.clear(),this.#t=null,this.#y.clear(),this.#l.destroy(),this.#s?.destroy(),this.#b?.hide(),this.#b=null,this.#p&&(clearTimeout(this.#p),this.#p=null),this.#F&&(clearTimeout(this.#F),this.#F=null)}async mlGuess(t){return this.#S?.guess(t)||null}get hasMLManager(){return!!this.#S}get hcmFilter(){return bn(this,"hcmFilter",this.#_?this.#g.addHCMFilter(this.#_.foreground,this.#_.background):"none")}get direction(){return bn(this,"direction",getComputedStyle(this.#B).direction)}get highlightColors(){return bn(this,"highlightColors",this.#v?new Map(this.#v.split(",").map(t=>t.split("=").map(r=>r.trim()))):null)}get highlightColorNames(){return bn(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}setMainHighlightColorPicker(t){this.#L=t}editAltText(t){this.#s?.editAltText(this,t)}onPageChanging({pageNumber:t}){this.#d=t-1}focusMainContainer(){this.#B.focus()}findParent(t,r){for(const n of this.#i.values()){const{x:i,y:o,width:a,height:l}=n.div.getBoundingClientRect();if(t>=i&&t<=i+a&&r>=o&&r<=o+l)return n}return null}disableUserSelect(t=!1){this.#K.classList.toggle("noUserSelect",t)}addShouldRescale(t){this.#a.add(t)}removeShouldRescale(t){this.#a.delete(t)}onScaleChanging({scale:t}){this.commitOrRemove(),this.viewParameters.realScale=t*Jf.PDF_TO_CSS_UNITS;for(const r of this.#a)r.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}#G({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t}highlightSelection(t=""){const r=document.getSelection();if(!r||r.isCollapsed)return;const{anchorNode:n,anchorOffset:i,focusNode:o,focusOffset:a}=r,l=r.toString(),u=this.#G(r).closest(".textLayer"),p=this.getSelectionBoxes(u);if(p){r.empty(),this.#w===fn.NONE&&(this._eventBus.dispatch("showannotationeditorui",{source:this,mode:fn.HIGHLIGHT}),this.showAllEditors("highlight",!0,!0));for(const h of this.#i.values())if(h.hasTextLayer(u)){h.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:p,anchorNode:n,anchorOffset:i,focusNode:o,focusOffset:a,text:l});break}}}#re(){const t=document.getSelection();if(!t||t.isCollapsed)return;const n=this.#G(t).closest(".textLayer"),i=this.getSelectionBoxes(n);i&&(this.#b||=new U2t(this),this.#b.show(n,i,this.direction==="ltr"))}addToAnnotationStorage(t){!t.isEmpty()&&this.#n&&!this.#n.has(t.id)&&this.#n.setValue(t.id,t)}#ne(){const t=document.getSelection();if(!t||t.isCollapsed){this.#C&&(this.#b?.hide(),this.#C=null,this.#A({hasSelectedText:!1}));return}const{anchorNode:r}=t;if(r===this.#C)return;if(!this.#G(t).closest(".textLayer")){this.#C&&(this.#b?.hide(),this.#C=null,this.#A({hasSelectedText:!1}));return}if(this.#b?.hide(),this.#C=r,this.#A({hasSelectedText:!0}),!(this.#w!==fn.HIGHLIGHT&&this.#w!==fn.NONE)&&(this.#w===fn.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#f=this.isShiftKeyDown,!this.isShiftKeyDown)){const o=this._signal,a=l=>{l.type==="pointerup"&&l.button!==0||(window.removeEventListener("pointerup",a),window.removeEventListener("blur",a),l.type==="pointerup"&&this.#q("main_toolbar"))};window.addEventListener("pointerup",a,{signal:o}),window.addEventListener("blur",a,{signal:o})}}#q(t=""){this.#w===fn.HIGHLIGHT?this.highlightSelection(t):this.#m&&this.#re()}#ie(){document.addEventListener("selectionchange",this.#ne.bind(this),{signal:this._signal})}#oe(){const t=this._signal;window.addEventListener("focus",this.#D,{signal:t}),window.addEventListener("blur",this.#M,{signal:t})}#ae(){window.removeEventListener("focus",this.#D),window.removeEventListener("blur",this.#M)}blur(){if(this.isShiftKeyDown=!1,this.#f&&(this.#f=!1,this.#q("main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const r of this.#y)if(r.div.contains(t)){this.#E=[r,t],r._focusEventsAllowed=!1;break}}focus(){if(!this.#E)return;const[t,r]=this.#E;this.#E=null,r.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),r.focus()}#Q(){const t=this._signal;window.addEventListener("keydown",this.#I,{signal:t}),window.addEventListener("keyup",this.#U,{signal:t})}#se(){window.removeEventListener("keydown",this.#I),window.removeEventListener("keyup",this.#U)}#X(){const t=this._signal;document.addEventListener("copy",this.#j,{signal:t}),document.addEventListener("cut",this.#P,{signal:t}),document.addEventListener("paste",this.#R,{signal:t})}#J(){document.removeEventListener("copy",this.#j),document.removeEventListener("cut",this.#P),document.removeEventListener("paste",this.#R)}#le(){const t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})}addEditListeners(){this.#Q(),this.#X()}removeEditListeners(){this.#se(),this.#J()}dragOver(t){for(const{type:r}of t.dataTransfer.items)for(const n of this.#c)if(n.isHandlingMimeForPasting(r)){t.dataTransfer.dropEffect="copy",t.preventDefault();return}}drop(t){for(const r of t.dataTransfer.items)for(const n of this.#c)if(n.isHandlingMimeForPasting(r.type)){n.paste(r,this.currentLayer),t.preventDefault();return}}copy(t){if(t.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;const r=[];for(const n of this.#y){const i=n.serialize(!0);i&&r.push(i)}r.length!==0&&t.clipboardData.setData("application/pdfjs",JSON.stringify(r))}cut(t){this.copy(t),this.delete()}paste(t){t.preventDefault();const{clipboardData:r}=t;for(const o of r.items)for(const a of this.#c)if(a.isHandlingMimeForPasting(o.type)){a.paste(o,this.currentLayer);return}let n=r.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(o){Xr(`paste: "${o.message}".`);return}if(!Array.isArray(n))return;this.unselectAll();const i=this.currentLayer;try{const o=[];for(const d of n){const u=i.deserialize(d);if(!u)return;o.push(u)}const a=()=>{for(const d of o)this.#ee(d);this.#te(o)},l=()=>{for(const d of o)d.remove()};this.addCommands({cmd:a,undo:l,mustExec:!0})}catch(o){Xr(`paste: "${o.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),this.#w!==fn.NONE&&!this.isEditorHandlingKeyboard&&P0._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,this.#f&&(this.#f=!1,this.#q("main_toolbar")))}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}#A(t){Object.entries(t).some(([n,i])=>this.#Z[n]!==i)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#Z,t)}),this.#w===fn.HIGHLIGHT&&t.hasSelectedEditor===!1&&this.#N([[Pr.HIGHLIGHT_FREE,!0]]))}#N(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})}setEditingState(t){t?(this.#oe(),this.#X(),this.#A({isEditing:this.#w!==fn.NONE,isEmpty:this.#Y(),hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:this.#l.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ae(),this.#J(),this.#A({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!this.#c){this.#c=t;for(const r of this.#c)this.#N(r.defaultPropertiesToUpdate)}}getId(){return this.#x.id}get currentLayer(){return this.#i.get(this.#d)}getLayer(t){return this.#i.get(t)}get currentPageIndex(){return this.#d}addLayer(t){this.#i.set(t.pageIndex,t),this.#$?t.enable():t.disable()}removeLayer(t){this.#i.delete(t.pageIndex)}updateMode(t,r=null,n=!1){if(this.#w!==t){if(this.#w=t,t===fn.NONE){this.setEditingState(!1),this.#de();return}this.setEditingState(!0),this.#ce(),this.unselectAll();for(const i of this.#i.values())i.updateMode(t);if(!r&&n){this.addNewEditorFromKeyboard();return}if(r){for(const i of this.#r.values())if(i.annotationElementId===r){this.setSelected(i),i.enterInEditMode();break}}}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==this.#w&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,r){if(this.#c){switch(t){case Pr.CREATE:this.currentLayer.addNewEditor();return;case Pr.HIGHLIGHT_DEFAULT_COLOR:this.#L?.updateColor(r);break;case Pr.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#T||=new Map).set(t,r),this.showAllEditors("highlight",r);break}for(const n of this.#y)n.updateParams(t,r);for(const n of this.#c)n.updateDefaultParams(t,r)}}showAllEditors(t,r,n=!1){for(const o of this.#r.values())o.editorType===t&&o.show(r);(this.#T?.get(Pr.HIGHLIGHT_SHOW_ALL)??!0)!==r&&this.#N([[Pr.HIGHLIGHT_SHOW_ALL,r]])}enableWaiting(t=!1){if(this.#k!==t){this.#k=t;for(const r of this.#i.values())t?r.disableClick():r.enableClick(),r.div.classList.toggle("waiting",t)}}#ce(){if(!this.#$){this.#$=!0;for(const t of this.#i.values())t.enable();for(const t of this.#r.values())t.enable()}}#de(){if(this.unselectAll(),this.#$){this.#$=!1;for(const t of this.#i.values())t.disable();for(const t of this.#r.values())t.disable()}}getEditors(t){const r=[];for(const n of this.#r.values())n.pageIndex===t&&r.push(n);return r}getEditor(t){return this.#r.get(t)}addEditor(t){this.#r.set(t.id,t)}removeEditor(t){t.div.contains(document.activeElement)&&(this.#p&&clearTimeout(this.#p),this.#p=setTimeout(()=>{this.focusMainContainer(),this.#p=null},0)),this.#r.delete(t.id),this.unselect(t),(!t.annotationElementId||!this.#u.has(t.annotationElementId))&&this.#n?.remove(t.id)}addDeletedAnnotationElement(t){this.#u.add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return this.#u.has(t)}removeDeletedAnnotationElement(t){this.#u.delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}#ee(t){const r=this.#i.get(t.pageIndex);r?r.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))}setActiveEditor(t){this.#t!==t&&(this.#t=t,t&&this.#N(t.propertiesToUpdate))}get#ue(){let t=null;for(t of this.#y);return t}updateUI(t){this.#ue===t&&this.#N(t.propertiesToUpdate)}toggleSelected(t){if(this.#y.has(t)){this.#y.delete(t),t.unselect(),this.#A({hasSelectedEditor:this.hasSelection});return}this.#y.add(t),t.select(),this.#N(t.propertiesToUpdate),this.#A({hasSelectedEditor:!0})}setSelected(t){for(const r of this.#y)r!==t&&r.unselect();this.#y.clear(),this.#y.add(t),t.select(),this.#N(t.propertiesToUpdate),this.#A({hasSelectedEditor:!0})}isSelected(t){return this.#y.has(t)}get firstSelectedEditor(){return this.#y.values().next().value}unselect(t){t.unselect(),this.#y.delete(t),this.#A({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#y.size!==0}get isEnterHandled(){return this.#y.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#l.undo(),this.#A({hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#Y()})}redo(){this.#l.redo(),this.#A({hasSomethingToUndo:!0,hasSomethingToRedo:this.#l.hasSomethingToRedo(),isEmpty:this.#Y()})}addCommands(t){this.#l.add(t),this.#A({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#Y()})}#Y(){if(this.#r.size===0)return!0;if(this.#r.size===1)for(const t of this.#r.values())return t.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const t=[...this.#y],r=()=>{for(const i of t)i.remove()},n=()=>{for(const i of t)this.#ee(i)};this.addCommands({cmd:r,undo:n,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#te(t){for(const r of this.#y)r.unselect();this.#y.clear();for(const r of t)r.isEmpty()||(this.#y.add(r),r.select());this.#A({hasSelectedEditor:this.hasSelection})}selectAll(){for(const t of this.#y)t.commit();this.#te(this.#r.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#w!==fn.NONE))&&this.hasSelection){for(const t of this.#y)t.unselect();this.#y.clear(),this.#A({hasSelectedEditor:!1})}}translateSelectedEditors(t,r,n=!1){if(n||this.commitOrRemove(),!this.hasSelection)return;this.#V[0]+=t,this.#V[1]+=r;const[i,o]=this.#V,a=[...this.#y],l=1e3;this.#F&&clearTimeout(this.#F),this.#F=setTimeout(()=>{this.#F=null,this.#V[0]=this.#V[1]=0,this.addCommands({cmd:()=>{for(const d of a)this.#r.has(d.id)&&d.translateInPage(i,o)},undo:()=>{for(const d of a)this.#r.has(d.id)&&d.translateInPage(-i,-o)},mustExec:!1})},l);for(const d of a)d.translateInPage(t,r)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#h=new Map;for(const t of this.#y)this.#h.set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#h)return!1;this.disableUserSelect(!1);const t=this.#h;this.#h=null;let r=!1;for(const[{x:i,y:o,pageIndex:a},l]of t)l.newX=i,l.newY=o,l.newPageIndex=a,r||=i!==l.savedX||o!==l.savedY||a!==l.savedPageIndex;if(!r)return!1;const n=(i,o,a,l)=>{if(this.#r.has(i.id)){const d=this.#i.get(l);d?i._setParentAndPosition(d,o,a):(i.pageIndex=l,i.x=o,i.y=a)}};return this.addCommands({cmd:()=>{for(const[i,{newX:o,newY:a,newPageIndex:l}]of t)n(i,o,a,l)},undo:()=>{for(const[i,{savedX:o,savedY:a,savedPageIndex:l}]of t)n(i,o,a,l)},mustExec:!0}),!0}dragSelectedEditors(t,r){if(this.#h)for(const n of this.#h.keys())n.drag(t,r)}rebuild(t){if(t.parent===null){const r=this.getLayer(t.pageIndex);r?(r.changeParent(t),r.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#y.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return this.#t===t}getActive(){return this.#t}getMode(){return this.#w}get imageManager(){return bn(this,"imageManager",new JF)}getSelectionBoxes(t){if(!t)return null;const r=document.getSelection();for(let u=0,p=r.rangeCount;u<p;u++)if(!t.contains(r.getRangeAt(u).commonAncestorContainer))return null;const{x:n,y:i,width:o,height:a}=t.getBoundingClientRect();let l;switch(t.getAttribute("data-main-rotation")){case"90":l=(u,p,h,f)=>({x:(p-i)/a,y:1-(u+h-n)/o,width:f/a,height:h/o});break;case"180":l=(u,p,h,f)=>({x:1-(u+h-n)/o,y:1-(p+f-i)/a,width:h/o,height:f/a});break;case"270":l=(u,p,h,f)=>({x:1-(p+f-i)/a,y:(u-n)/o,width:f/a,height:h/o});break;default:l=(u,p,h,f)=>({x:(u-n)/o,y:(p-i)/a,width:h/o,height:f/a});break}const d=[];for(let u=0,p=r.rangeCount;u<p;u++){const h=r.getRangeAt(u);if(!h.collapsed)for(const{x:f,y:g,width:y,height:v}of h.getClientRects())y===0||v===0||d.push(l(f,g,y,v))}return d.length===0?null:d}addChangedExistingAnnotation({annotationElementId:t,id:r}){(this.#o||=new Map).set(t,r)}removeChangedExistingAnnotation({annotationElementId:t}){this.#o?.delete(t)}renderAnnotationElement(t){const r=this.#o?.get(t.data.id);if(!r)return;const n=this.#n.getRawValue(r);n&&(this.#w===fn.NONE&&!n.hasBeenModified||n.renderAnnotationElement(t))}}class Bh{#e="";#t=!1;#r=null;#i=null;#s=null;#n=!1;#o=null;static _l10nPromise=null;constructor(t){this.#o=t}static initialize(t){Bh._l10nPromise||=t}async render(){const t=this.#r=document.createElement("button");t.className="altText";const r=await Bh._l10nPromise.get("pdfjs-editor-alt-text-button-label");t.textContent=r,t.setAttribute("aria-label",r),t.tabIndex="0";const n=this.#o._uiManager._signal;t.addEventListener("contextmenu",ks,{signal:n}),t.addEventListener("pointerdown",o=>o.stopPropagation(),{signal:n});const i=o=>{o.preventDefault(),this.#o._uiManager.editAltText(this.#o)};return t.addEventListener("click",i,{capture:!0,signal:n}),t.addEventListener("keydown",o=>{o.target===t&&o.key==="Enter"&&(this.#n=!0,i(o))},{signal:n}),await this.#l(),t}finish(){this.#r&&(this.#r.focus({focusVisible:this.#n}),this.#n=!1)}isEmpty(){return!this.#e&&!this.#t}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:t,decorative:r}){this.#e===t&&this.#t===r||(this.#e=t,this.#t=r,this.#l())}toggle(t=!1){this.#r&&(!t&&this.#s&&(clearTimeout(this.#s),this.#s=null),this.#r.disabled=!t)}destroy(){this.#r?.remove(),this.#r=null,this.#i=null}async#l(){const t=this.#r;if(!t)return;if(!this.#e&&!this.#t){t.classList.remove("done"),this.#i?.remove();return}t.classList.add("done"),Bh._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then(i=>{t.setAttribute("aria-label",i)});let r=this.#i;if(!r){this.#i=r=document.createElement("span"),r.className="tooltip",r.setAttribute("role","tooltip");const i=r.id=`alt-text-tooltip-${this.#o.id}`;t.setAttribute("aria-describedby",i);const o=100,a=this.#o._uiManager._signal;a.addEventListener("abort",()=>{clearTimeout(this.#s),this.#s=null},{once:!0}),t.addEventListener("mouseenter",()=>{this.#s=setTimeout(()=>{this.#s=null,this.#i.classList.add("show"),this.#o._reportTelemetry({action:"alt_text_tooltip"})},o)},{signal:a}),t.addEventListener("mouseleave",()=>{this.#s&&(clearTimeout(this.#s),this.#s=null),this.#i?.classList.remove("show")},{signal:a})}r.innerText=this.#t?await Bh._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip"):this.#e,r.parentNode||t.append(r),this.#o.getImageForAltText()?.setAttribute("aria-describedby",r.id)}}class Tr{#e=null;#t=null;#r=null;#i=!1;#s=!1;#n=null;#o=null;#l=this.focusin.bind(this);#d=this.focusout.bind(this);#u=null;#h="";#c=!1;#a=null;#m=!1;#g=!1;#p=!1;#v=null;#f=0;#b=0;#x=null;_initialOptions=Object.create(null);_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;_l10nPromise=null;#$=!1;#k=Tr._zIndex++;static _borderLineWidth=-1;static _colorManager=new eN;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){const t=Tr.prototype._resizeWithKeyboard,r=P0.TRANSLATE_SMALL,n=P0.TRANSLATE_BIG;return bn(this,"_resizerKeyboardManager",new f6([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-r,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[r,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-r]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,r]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,n]}],[["Escape","mac+Escape"],Tr.prototype._stopResizingWithKeyboard]]))}constructor(t){this.constructor===Tr&&ti("Cannot initialize AnnotationEditor."),this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;const{rotation:r,rawDims:{pageWidth:n,pageHeight:i,pageX:o,pageY:a}}=this.parent.viewport;this.rotation=r,this.pageRotation=(360+r-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,i],this.pageTranslation=[o,a];const[l,d]=this.parentDimensions;this.x=t.x/l,this.y=t.y/d,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return bn(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const r=new q2t({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});r.annotationElementId=t.annotationElementId,r.deleted=!0,r._uiManager.addToAnnotationStorage(r)}static initialize(t,r,n){if(Tr._l10nPromise||=new Map(["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-resizer-label-topLeft","pdfjs-editor-resizer-label-topMiddle","pdfjs-editor-resizer-label-topRight","pdfjs-editor-resizer-label-middleRight","pdfjs-editor-resizer-label-bottomRight","pdfjs-editor-resizer-label-bottomMiddle","pdfjs-editor-resizer-label-bottomLeft","pdfjs-editor-resizer-label-middleLeft"].map(o=>[o,t.get(o.replaceAll(/([A-Z])/g,a=>`-${a.toLowerCase()}`))])),n?.strings)for(const o of n.strings)Tr._l10nPromise.set(o,t.get(o));if(Tr._borderLineWidth!==-1)return;const i=getComputedStyle(document.documentElement);Tr._borderLineWidth=parseFloat(i.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,r){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,r){ti("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#$}set _isDraggable(t){this.#$=t,this.div?.classList.toggle("draggable",t)}get isEnterHandled(){return!0}center(){const[t,r]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*r/(t*2),this.y+=this.width*t/(r*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*r/(t*2),this.y-=this.width*t/(r*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#k}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):this.#I(),this.parent=t}focusin(t){this._focusEventsAllowed&&(this.#c?this.#c=!1:this.parent.setSelected(this))}focusout(t){!this._focusEventsAllowed||!this.isAttachedToDOM||t.relatedTarget?.closest(`#${this.id}`)||(t.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,r,n,i){const[o,a]=this.parentDimensions;[n,i]=this.screenToPageTranslation(n,i),this.x=(t+n)/o,this.y=(r+i)/a,this.fixAndSetPosition()}#E([t,r],n,i){[n,i]=this.screenToPageTranslation(n,i),this.x+=n/t,this.y+=i/r,this.fixAndSetPosition()}translate(t,r){this.#E(this.parentDimensions,t,r)}translateInPage(t,r){this.#a||=[this.x,this.y],this.#E(this.pageDimensions,t,r),this.div.scrollIntoView({block:"nearest"})}drag(t,r){this.#a||=[this.x,this.y];const[n,i]=this.parentDimensions;if(this.x+=t/n,this.y+=r/i,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:u,y:p}=this.div.getBoundingClientRect();this.parent.findNewParent(this,u,p)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:o,y:a}=this;const[l,d]=this.getBaseTranslation();o+=l,a+=d,this.div.style.left=`${(100*o).toFixed(2)}%`,this.div.style.top=`${(100*a).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!this.#a&&(this.#a[0]!==this.x||this.#a[1]!==this.y)}getBaseTranslation(){const[t,r]=this.parentDimensions,{_borderLineWidth:n}=Tr,i=n/t,o=n/r;switch(this.rotation){case 90:return[-i,o];case 180:return[i,o];case 270:return[i,-o];default:return[-i,-o]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){const[r,n]=this.pageDimensions;let{x:i,y:o,width:a,height:l}=this;if(a*=r,l*=n,i*=r,o*=n,this._mustFixPosition)switch(t){case 0:i=Math.max(0,Math.min(r-a,i)),o=Math.max(0,Math.min(n-l,o));break;case 90:i=Math.max(0,Math.min(r-l,i)),o=Math.min(n,Math.max(a,o));break;case 180:i=Math.min(r,Math.max(a,i)),o=Math.min(n,Math.max(l,o));break;case 270:i=Math.min(r,Math.max(l,i)),o=Math.max(0,Math.min(n-a,o));break}this.x=i/=r,this.y=o/=n;const[d,u]=this.getBaseTranslation();i+=d,o+=u;const{style:p}=this.div;p.left=`${(100*i).toFixed(2)}%`,p.top=`${(100*o).toFixed(2)}%`,this.moveInDOM()}static#L(t,r,n){switch(n){case 90:return[r,-t];case 180:return[-t,-r];case 270:return[-r,t];default:return[t,r]}}screenToPageTranslation(t,r){return Tr.#L(t,r,this.parentRotation)}pageTranslationToScreen(t,r){return Tr.#L(t,r,360-this.parentRotation)}#S(t){switch(t){case 90:{const[r,n]=this.pageDimensions;return[0,-r/n,n/r,0]}case 180:return[-1,0,0,-1];case 270:{const[r,n]=this.pageDimensions;return[0,r/n,-n/r,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:t,pageDimensions:[r,n]}=this,i=r*t,o=n*t;return xs.isCSSRoundSupported?[Math.round(i),Math.round(o)]:[i,o]}setDims(t,r){const[n,i]=this.parentDimensions;this.div.style.width=`${(100*t/n).toFixed(2)}%`,this.#s||(this.div.style.height=`${(100*r/i).toFixed(2)}%`)}fixDims(){const{style:t}=this.div,{height:r,width:n}=t,i=n.endsWith("%"),o=!this.#s&&r.endsWith("%");if(i&&o)return;const[a,l]=this.parentDimensions;i||(t.width=`${(100*parseFloat(n)/a).toFixed(2)}%`),!this.#s&&!o&&(t.height=`${(100*parseFloat(r)/l).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#w(){if(this.#n)return;this.#n=document.createElement("div"),this.#n.classList.add("resizers");const t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],r=this._uiManager._signal;for(const n of t){const i=document.createElement("div");this.#n.append(i),i.classList.add("resizer",n),i.setAttribute("data-resizer-name",n),i.addEventListener("pointerdown",this.#y.bind(this,n),{signal:r}),i.addEventListener("contextmenu",ks,{signal:r}),i.tabIndex=-1}this.div.prepend(this.#n)}#y(t,r){r.preventDefault();const{isMac:n}=xs.platform;if(r.button!==0||r.ctrlKey&&n)return;this.#r?.toggle(!1);const i=this.#_.bind(this,t),o=this._isDraggable;this._isDraggable=!1;const a=this._uiManager._signal,l={passive:!0,capture:!0,signal:a};this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",i,l),window.addEventListener("contextmenu",ks,{signal:a});const d=this.x,u=this.y,p=this.width,h=this.height,f=this.parent.div.style.cursor,g=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(r.target).cursor;const y=()=>{this.parent.togglePointerEvents(!0),this.#r?.toggle(!0),this._isDraggable=o,window.removeEventListener("pointerup",y),window.removeEventListener("blur",y),window.removeEventListener("pointermove",i,l),window.removeEventListener("contextmenu",ks),this.parent.div.style.cursor=f,this.div.style.cursor=g,this.#C(d,u,p,h)};window.addEventListener("pointerup",y,{signal:a}),window.addEventListener("blur",y,{signal:a})}#C(t,r,n,i){const o=this.x,a=this.y,l=this.width,d=this.height;o===t&&a===r&&l===n&&d===i||this.addCommands({cmd:()=>{this.width=l,this.height=d,this.x=o,this.y=a;const[u,p]=this.parentDimensions;this.setDims(u*l,p*d),this.fixAndSetPosition()},undo:()=>{this.width=n,this.height=i,this.x=t,this.y=r;const[u,p]=this.parentDimensions;this.setDims(u*n,p*i),this.fixAndSetPosition()},mustExec:!0})}#_(t,r){const[n,i]=this.parentDimensions,o=this.x,a=this.y,l=this.width,d=this.height,u=Tr.MIN_SIZE/n,p=Tr.MIN_SIZE/i,h=I=>Math.round(I*1e4)/1e4,f=this.#S(this.rotation),g=(I,L)=>[f[0]*I+f[2]*L,f[1]*I+f[3]*L],y=this.#S(360-this.rotation),v=(I,L)=>[y[0]*I+y[2]*L,y[1]*I+y[3]*L];let w,x,$=!1,S=!1;switch(t){case"topLeft":$=!0,w=(I,L)=>[0,0],x=(I,L)=>[I,L];break;case"topMiddle":w=(I,L)=>[I/2,0],x=(I,L)=>[I/2,L];break;case"topRight":$=!0,w=(I,L)=>[I,0],x=(I,L)=>[0,L];break;case"middleRight":S=!0,w=(I,L)=>[I,L/2],x=(I,L)=>[0,L/2];break;case"bottomRight":$=!0,w=(I,L)=>[I,L],x=(I,L)=>[0,0];break;case"bottomMiddle":w=(I,L)=>[I/2,L],x=(I,L)=>[I/2,0];break;case"bottomLeft":$=!0,w=(I,L)=>[0,L],x=(I,L)=>[I,0];break;case"middleLeft":S=!0,w=(I,L)=>[0,L/2],x=(I,L)=>[I,L/2];break}const k=w(l,d),T=x(l,d);let E=g(...T);const A=h(o+E[0]),P=h(a+E[1]);let D=1,O=1,[V,j]=this.screenToPageTranslation(r.movementX,r.movementY);if([V,j]=v(V/n,j/i),$){const I=Math.hypot(l,d);D=O=Math.max(Math.min(Math.hypot(T[0]-k[0]-V,T[1]-k[1]-j)/I,1/l,1/d),u/l,p/d)}else S?D=Math.max(u,Math.min(1,Math.abs(T[0]-k[0]-V)))/l:O=Math.max(p,Math.min(1,Math.abs(T[1]-k[1]-j)))/d;const q=h(l*D),W=h(d*O);E=g(...x(q,W));const F=A-E[0],H=P-E[1];this.width=q,this.height=W,this.x=F,this.y=H,this.setDims(n*q,i*W),this.fixAndSetPosition()}altTextFinish(){this.#r?.finish()}async addEditToolbar(){return this.#u||this.#g?this.#u:(this.#u=new XF(this),this.div.append(this.#u.render()),this.#r&&this.#u.addAltTextButton(await this.#r.render()),this.#u)}removeEditToolbar(){this.#u&&(this.#u.remove(),this.#u=null,this.#r?.destroy())}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){this.#r||(Bh.initialize(Tr._l10nPromise),this.#r=new Bh(this),this.#e&&(this.#r.data=this.#e,this.#e=null),await this.addEditToolbar())}get altTextData(){return this.#r?.data}set altTextData(t){this.#r&&(this.#r.data=t)}hasAltText(){return!this.#r?.isEmpty()}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=this.#i?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground();const t=this._uiManager._signal;this.div.addEventListener("focusin",this.#l,{signal:t}),this.div.addEventListener("focusout",this.#d,{signal:t});const[r,n]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*n/r).toFixed(2)}%`,this.div.style.maxHeight=`${(100*r/n).toFixed(2)}%`);const[i,o]=this.getInitialTranslation();return this.translate(i,o),ab(this,this.div,["pointerdown"]),this.div}pointerdown(t){const{isMac:r}=xs.platform;if(t.button!==0||t.ctrlKey&&r){t.preventDefault();return}if(this.#c=!0,this._isDraggable){this.#M(t);return}this.#T(t)}#T(t){const{isMac:r}=xs.platform;t.ctrlKey&&!r||t.shiftKey||t.metaKey&&r?this.parent.toggleSelected(this):this.parent.setSelected(this)}#M(t){const r=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let n,i;const o=this._uiManager._signal;r&&(this.div.classList.add("moving"),n={passive:!0,capture:!0,signal:o},this.#f=t.clientX,this.#b=t.clientY,i=l=>{const{clientX:d,clientY:u}=l,[p,h]=this.screenToPageTranslation(d-this.#f,u-this.#b);this.#f=d,this.#b=u,this._uiManager.dragSelectedEditors(p,h)},window.addEventListener("pointermove",i,n));const a=()=>{window.removeEventListener("pointerup",a),window.removeEventListener("blur",a),r&&(this.div.classList.remove("moving"),window.removeEventListener("pointermove",i,n)),this.#c=!1,this._uiManager.endDragSession()||this.#T(t)};window.addEventListener("pointerup",a,{signal:o}),window.addEventListener("blur",a,{signal:o})}moveInDOM(){this.#v&&clearTimeout(this.#v),this.#v=setTimeout(()=>{this.#v=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(t,r,n){t.changeParent(this),this.x=r,this.y=n,this.fixAndSetPosition()}getRect(t,r,n=this.rotation){const i=this.parentScale,[o,a]=this.pageDimensions,[l,d]=this.pageTranslation,u=t/i,p=r/i,h=this.x*o,f=this.y*a,g=this.width*o,y=this.height*a;switch(n){case 0:return[h+u+l,a-f-p-y+d,h+u+g+l,a-f-p+d];case 90:return[h+p+l,a-f+u+d,h+p+y+l,a-f+u+g+d];case 180:return[h-u-g+l,a-f+p+d,h-u+l,a-f+p+y+d];case 270:return[h-p-y+l,a-f-u-g+d,h-p+l,a-f-u+d];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,r){const[n,i,o,a]=t,l=o-n,d=a-i;switch(this.rotation){case 0:return[n,r-a,l,d];case 90:return[n,r-i,d,l];case 180:return[o,r-i,l,d];case 270:return[o,r-a,d,l];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#g=!0}disableEditMode(){this.#g=!1}isInEditMode(){return this.#g}shouldGetKeyboardEvents(){return this.#p}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){const t=this._uiManager._signal;this.div?.addEventListener("focusin",this.#l,{signal:t}),this.div?.addEventListener("focusout",this.#d,{signal:t})}rotate(t){}serialize(t=!1,r=null){ti("An editor must be serializable")}static deserialize(t,r,n){const i=new this.prototype.constructor({parent:r,id:r.getNextId(),uiManager:n});i.rotation=t.rotation,i.#e=t.accessibilityData;const[o,a]=i.pageDimensions,[l,d,u,p]=i.getRectInCurrentCoords(t.rect,a);return i.x=l/o,i.y=d/a,i.width=u/o,i.height=p/a,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.div.removeEventListener("focusin",this.#l),this.div.removeEventListener("focusout",this.#d),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#v&&(clearTimeout(this.#v),this.#v=null),this.#I(),this.removeEditToolbar(),this.#x){for(const t of this.#x.values())clearTimeout(t);this.#x=null}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#w(),this.#n.classList.remove("hidden"),ab(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),this.#o={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const r=this.#n.children;if(!this.#t){this.#t=Array.from(r);const a=this.#D.bind(this),l=this.#j.bind(this),d=this._uiManager._signal;for(const u of this.#t){const p=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",a,{signal:d}),u.addEventListener("blur",l,{signal:d}),u.addEventListener("focus",this.#P.bind(this,p),{signal:d}),Tr._l10nPromise.get(`pdfjs-editor-resizer-label-${p}`).then(h=>u.setAttribute("aria-label",h))}}const n=this.#t[0];let i=0;for(const a of r){if(a===n)break;i++}const o=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(o!==i){if(o<i)for(let l=0;l<i-o;l++)this.#n.append(this.#n.firstChild);else if(o>i)for(let l=0;l<o-i;l++)this.#n.firstChild.before(this.#n.lastChild);let a=0;for(const l of r){const u=this.#t[a++].getAttribute("data-resizer-name");Tr._l10nPromise.get(`pdfjs-editor-resizer-label-${u}`).then(p=>l.setAttribute("aria-label",p))}}this.#R(0),this.#p=!0,this.#n.firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}#D(t){Tr._resizerKeyboardManager.exec(this,t)}#j(t){this.#p&&t.relatedTarget?.parentNode!==this.#n&&this.#I()}#P(t){this.#h=this.#p?t:""}#R(t){if(this.#t)for(const r of this.#t)r.tabIndex=t}_resizeWithKeyboard(t,r){this.#p&&this.#_(this.#h,{movementX:t,movementY:r})}#I(){if(this.#p=!1,this.#R(-1),this.#o){const{savedX:t,savedY:r,savedWidth:n,savedHeight:i}=this.#o;this.#C(t,r,n,i),this.#o=null}}_stopResizingWithKeyboard(){this.#I(),this.div.focus()}select(){if(this.makeResizable(),this.div?.classList.add("selectedEditor"),!this.#u){this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this.#u?.show()});return}this.#u?.show()}unselect(){this.#n?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this.#u?.hide()}updateParams(t,r){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return this.#m}set isEditing(t){this.#m=t,this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,r){this.#s=!0;const n=t/r,{style:i}=this.div;i.aspectRatio=n,i.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t,r=!1){if(r){this.#x||=new Map;const{action:n}=t;let i=this.#x.get(n);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(t),this.#x.delete(n),this.#x.size===0&&(this.#x=null)},Tr._telemetryTimeout),this.#x.set(n,i);return}t.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),this.#i=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#i=!0}renderAnnotationElement(t){let r=t.container.querySelector(".annotationContent");if(!r)r=document.createElement("div"),r.classList.add("annotationContent",this.editorType),t.container.prepend(r);else if(r.nodeName==="CANVAS"){const n=r;r=document.createElement("div"),r.classList.add("annotationContent",this.editorType),n.before(r)}return r}resetAnnotationElement(t){const{firstChild:r}=t.container;r.nodeName==="DIV"&&r.classList.contains("annotationContent")&&r.remove()}}class q2t extends Tr{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}const qX=3285377520,yl=4294901760,Qd=65535;class Xge{constructor(t){this.h1=t?t&4294967295:qX,this.h2=t?t&4294967295:qX}update(t){let r,n;if(typeof t=="string"){r=new Uint8Array(t.length*2),n=0;for(let v=0,w=t.length;v<w;v++){const x=t.charCodeAt(v);x<=255?r[n++]=x:(r[n++]=x>>>8,r[n++]=x&255)}}else if(ArrayBuffer.isView(t))r=t.slice(),n=r.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const i=n>>2,o=n-i*4,a=new Uint32Array(r.buffer,0,i);let l=0,d=0,u=this.h1,p=this.h2;const h=3432918353,f=461845907,g=h&Qd,y=f&Qd;for(let v=0;v<i;v++)v&1?(l=a[v],l=l*h&yl|l*g&Qd,l=l<<15|l>>>17,l=l*f&yl|l*y&Qd,u^=l,u=u<<13|u>>>19,u=u*5+3864292196):(d=a[v],d=d*h&yl|d*g&Qd,d=d<<15|d>>>17,d=d*f&yl|d*y&Qd,p^=d,p=p<<13|p>>>19,p=p*5+3864292196);switch(l=0,o){case 3:l^=r[i*4+2]<<16;case 2:l^=r[i*4+1]<<8;case 1:l^=r[i*4],l=l*h&yl|l*g&Qd,l=l<<15|l>>>17,l=l*f&yl|l*y&Qd,i&1?u^=l:p^=l}this.h1=u,this.h2=p}hexdigest(){let t=this.h1,r=this.h2;return t^=r>>>1,t=t*3981806797&yl|t*36045&Qd,r=r*4283543511&yl|((r<<16|t>>>16)*2950163797&yl)>>>16,t^=r>>>1,t=t*444984403&yl|t*60499&Qd,r=r*3301882366&yl|((r<<16|t>>>16)*3120437893&yl)>>>16,t^=r>>>1,(t>>>0).toString(16).padStart(8,"0")+(r>>>0).toString(16).padStart(8,"0")}}const cj=Object.freeze({map:null,hash:"",transfer:void 0});class tN{#e=!1;#t=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,r){const n=this.#t.get(t);return n===void 0?r:Object.assign(r,n)}getRawValue(t){return this.#t.get(t)}remove(t){if(this.#t.delete(t),this.#t.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const r of this.#t.values())if(r instanceof Tr)return;this.onAnnotationEditor(null)}}setValue(t,r){const n=this.#t.get(t);let i=!1;if(n!==void 0)for(const[o,a]of Object.entries(r))n[o]!==a&&(i=!0,n[o]=a);else i=!0,this.#t.set(t,r);i&&this.#r(),r instanceof Tr&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(r.constructor._type)}has(t){return this.#t.has(t)}getAll(){return this.#t.size>0?WF(this.#t):null}setAll(t){for(const[r,n]of Object.entries(t))this.setValue(r,n)}get size(){return this.#t.size}#r(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Jge(this)}get serializable(){if(this.#t.size===0)return cj;const t=new Map,r=new Xge,n=[],i=Object.create(null);let o=!1;for(const[a,l]of this.#t){const d=l instanceof Tr?l.serialize(!1,i):l;d&&(t.set(a,d),r.update(`${a}:${JSON.stringify(d)}`),o||=!!d.bitmap)}if(o)for(const a of t.values())a.bitmap&&n.push(a.bitmap);return t.size>0?{map:t,hash:r.hexdigest(),transfer:n}:cj}get editorStats(){let t=null;const r=new Map;for(const n of this.#t.values()){if(!(n instanceof Tr))continue;const i=n.telemetryFinalData;if(!i)continue;const{type:o}=i;r.has(o)||r.set(o,Object.getPrototypeOf(n).constructor),t||=Object.create(null);const a=t[o]||=new Map;for(const[l,d]of Object.entries(i)){if(l==="type")continue;let u=a.get(l);u||(u=new Map,a.set(l,u));const p=u.get(d)??0;u.set(d,p+1)}}for(const[n,i]of r)t[n]=i.computeTelemetryFinalData(t[n]);return t}}class Jge extends tN{#e;constructor(t){super();const{map:r,hash:n,transfer:i}=t.serializable,o=structuredClone(r,i?{transfer:i}:null);this.#e={map:o,hash:n,transfer:i}}get print(){ti("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}}class Z2t{#e=new Set;constructor({ownerDocument:t=globalThis.document,styleElement:r=null}){this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const r=this.styleElement.sheet;r.insertRule(t,r.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,_inspectFont:r}){if(!(!t||this.#e.has(t.loadedName))){if(Lo(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:n,src:i,style:o}=t,a=new FontFace(n,i,o);this.addNativeFontFace(a);try{await a.load(),this.#e.add(n),r?.(t)}catch{Xr(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(a)}return}ti("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){const n=t.createNativeFontFace();if(n){this.addNativeFontFace(n);try{await n.loaded}catch(i){throw Xr(`Failed to load font '${n.family}': '${i}'.`),t.disableFontFace=!0,i}}return}const r=t.createFontFaceRule();if(r){if(this.insertRule(r),this.isSyncFontLoadingSupported)return;await new Promise(n=>{const i=this._queueLoadingCallback(n);this._prepareFontLoadEvent(t,i)})}}get isFontLoadingAPISupported(){const t=!!this._document?.fonts;return bn(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;return(ka||typeof navigator<"u"&&typeof navigator?.userAgent=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),bn(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){function r(){for(Lo(!i.done,"completeRequest() cannot be called twice."),i.done=!0;n.length>0&&n[0].done;){const o=n.shift();setTimeout(o.callback,0)}}const{loadingRequests:n}=this,i={done:!1,complete:r,callback:t};return n.push(i),i}get _loadTestFont(){const t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return bn(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,r){function n(k,T){return k.charCodeAt(T)<<24|k.charCodeAt(T+1)<<16|k.charCodeAt(T+2)<<8|k.charCodeAt(T+3)&255}function i(k,T,E,A){const P=k.substring(0,T),D=k.substring(T+E);return P+A+D}let o,a;const l=this._document.createElement("canvas");l.width=1,l.height=1;const d=l.getContext("2d");let u=0;function p(k,T){if(++u>30){Xr("Load test font never loaded."),T();return}if(d.font="30px "+k,d.fillText(".",0,20),d.getImageData(0,0,1,1).data[3]>0){T();return}setTimeout(p.bind(null,k,T))}const h=`lt${Date.now()}${this.loadTestFontId++}`;let f=this._loadTestFont;f=i(f,976,h.length,h);const y=16,v=1482184792;let w=n(f,y);for(o=0,a=h.length-3;o<a;o+=4)w=w-v+n(h,o)|0;o<h.length&&(w=w-v+n(h+"XXX",o)|0),f=i(f,y,4,M2t(w));const x=`url(data:font/opentype;base64,${btoa(f)});`,$=`@font-face {font-family:"${h}";src:${x}}`;this.insertRule($);const S=this._document.createElement("div");S.style.visibility="hidden",S.style.width=S.style.height="10px",S.style.position="absolute",S.style.top=S.style.left="0px";for(const k of[t.loadedName,h]){const T=this._document.createElement("span");T.textContent="Hi",T.style.fontFamily=k,S.append(T)}this._document.body.append(S),p(h,()=>{S.remove(),r.complete()})}}class K2t{constructor(t,{disableFontFace:r=!1,inspectFont:n=null}){this.compiledGlyphs=Object.create(null);for(const i in t)this[i]=t[i];this.disableFontFace=r===!0,this._inspectFont=n}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let t;if(!this.cssFontInfo)t=new FontFace(this.loadedName,this.data,{});else{const r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}return this._inspectFont?.(this),t}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const t=Yge(this.data),r=`url(data:${this.mimetype};base64,${btoa(t)});`;let n;if(!this.cssFontInfo)n=`@font-face {font-family:"${this.loadedName}";src:${r}}`;else{let i=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(i+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${i}src:${r}}`}return this._inspectFont?.(this,r),n}getPathGenerator(t,r){if(this.compiledGlyphs[r]!==void 0)return this.compiledGlyphs[r];let n;try{n=t.get(this.loadedName+"_path_"+r)}catch(o){Xr(`getPathGenerator - ignoring character: "${o}".`)}if(!Array.isArray(n)||n.length===0)return this.compiledGlyphs[r]=function(o,a){};const i=[];for(let o=0,a=n.length;o<a;)switch(n[o++]){case fu.BEZIER_CURVE_TO:{const[l,d,u,p,h,f]=n.slice(o,o+6);i.push(g=>g.bezierCurveTo(l,d,u,p,h,f)),o+=6}break;case fu.MOVE_TO:{const[l,d]=n.slice(o,o+2);i.push(u=>u.moveTo(l,d)),o+=2}break;case fu.LINE_TO:{const[l,d]=n.slice(o,o+2);i.push(u=>u.lineTo(l,d)),o+=2}break;case fu.QUADRATIC_CURVE_TO:{const[l,d,u,p]=n.slice(o,o+4);i.push(h=>h.quadraticCurveTo(l,d,u,p)),o+=4}break;case fu.RESTORE:i.push(l=>l.restore());break;case fu.SAVE:i.push(l=>l.save());break;case fu.SCALE:Lo(i.length===2,"Scale command is only valid at the third position.");break;case fu.TRANSFORM:{const[l,d,u,p,h,f]=n.slice(o,o+6);i.push(g=>g.transform(l,d,u,p,h,f)),o+=6}break;case fu.TRANSLATE:{const[l,d]=n.slice(o,o+2);i.push(u=>u.translate(l,d)),o+=2}break}return this.compiledGlyphs[r]=function(a,l){i[0](a),i[1](a),a.scale(l,-l);for(let d=2,u=i.length;d<u;d++)i[d](a)}}}if(ka){var dj=Promise.withResolvers(),uj=null;(async()=>{const t=await bt(()=>import("./empty-CKmL-VR3.js").then(l=>l.e),__vite__mapDeps([0,1,2])),r=await bt(()=>import("./index-DAQTbb-z.js").then(l=>l.i),__vite__mapDeps([3,1,4,5,6,7,8,9])),n=await bt(()=>import("./index-ypb5f_6G.js").then(l=>l.i),__vite__mapDeps([10,1,11,4,5,6,7,8,9])),i=await bt(()=>import("./url-Q92EHF6-.js").then(l=>l.u),__vite__mapDeps([12,1,9,7,5,6,8]));let o,a;return new Map(Object.entries({fs:t,http:r,https:n,url:i,canvas:o,path2d:a}))})().then(t=>{uj=t,dj.resolve()},t=>{Xr(`loadPackages: ${t}`),uj=new Map,dj.resolve()})}class z1{static get promise(){return dj.promise}static get(t){return uj?.get(t)}}const e4e=function(e){return z1.get("fs").promises.readFile(e).then(r=>new Uint8Array(r))};class Q2t extends _x{}class X2t extends Tx{_createCanvas(t,r){return z1.get("canvas").createCanvas(t,r)}}class J2t extends Ax{_fetchData(t,r){return e4e(t).then(n=>({cMapData:n,compressionType:r}))}}class e0t extends Lx{_fetchData(t){return e4e(t)}}const Wa={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function pj(e,t){if(!t)return;const r=t[2]-t[0],n=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],r,n),e.clip(i)}class g6{constructor(){this.constructor===g6&&ti("Cannot initialize BaseShadingPattern.")}getPattern(){ti("Abstract method `getPattern` called.")}}class t0t extends g6{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let r;this._type==="axial"?r=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(r=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)r.addColorStop(n[0],n[1]);return r}getPattern(t,r,n,i){let o;if(i===Wa.STROKE||i===Wa.FILL){const a=r.current.getClippedPathBoundingBox(i,Mi(t))||[0,0,0,0],l=Math.ceil(a[2]-a[0])||1,d=Math.ceil(a[3]-a[1])||1,u=r.cachedCanvases.getCanvas("pattern",l,d,!0),p=u.context;p.clearRect(0,0,p.canvas.width,p.canvas.height),p.beginPath(),p.rect(0,0,p.canvas.width,p.canvas.height),p.translate(-a[0],-a[1]),n=ar.transform(n,[1,0,0,1,a[0],a[1]]),p.transform(...r.baseTransform),this.matrix&&p.transform(...this.matrix),pj(p,this._bbox),p.fillStyle=this._createGradient(p),p.fill(),o=t.createPattern(u.canvas,"no-repeat");const h=new DOMMatrix(n);o.setTransform(h)}else pj(t,this._bbox),o=this._createGradient(t);return o}}function cL(e,t,r,n,i,o,a,l){const d=t.coords,u=t.colors,p=e.data,h=e.width*4;let f;d[r+1]>d[n+1]&&(f=r,r=n,n=f,f=o,o=a,a=f),d[n+1]>d[i+1]&&(f=n,n=i,i=f,f=a,a=l,l=f),d[r+1]>d[n+1]&&(f=r,r=n,n=f,f=o,o=a,a=f);const g=(d[r]+t.offsetX)*t.scaleX,y=(d[r+1]+t.offsetY)*t.scaleY,v=(d[n]+t.offsetX)*t.scaleX,w=(d[n+1]+t.offsetY)*t.scaleY,x=(d[i]+t.offsetX)*t.scaleX,$=(d[i+1]+t.offsetY)*t.scaleY;if(y>=$)return;const S=u[o],k=u[o+1],T=u[o+2],E=u[a],A=u[a+1],P=u[a+2],D=u[l],O=u[l+1],V=u[l+2],j=Math.round(y),q=Math.round($);let W,F,H,I,L,z,B,ee;for(let Z=j;Z<=q;Z++){if(Z<w){const fe=Z<y?0:(y-Z)/(y-w);W=g-(g-v)*fe,F=S-(S-E)*fe,H=k-(k-A)*fe,I=T-(T-P)*fe}else{let fe;Z>$?fe=1:w===$?fe=0:fe=(w-Z)/(w-$),W=v-(v-x)*fe,F=E-(E-D)*fe,H=A-(A-O)*fe,I=P-(P-V)*fe}let U;Z<y?U=0:Z>$?U=1:U=(y-Z)/(y-$),L=g-(g-x)*U,z=S-(S-D)*U,B=k-(k-O)*U,ee=T-(T-V)*U;const Q=Math.round(Math.min(W,L)),X=Math.round(Math.max(W,L));let ae=h*Z+Q*4;for(let fe=Q;fe<=X;fe++)U=(W-fe)/(W-L),U<0?U=0:U>1&&(U=1),p[ae++]=F-(F-z)*U|0,p[ae++]=H-(H-B)*U|0,p[ae++]=I-(I-ee)*U|0,p[ae++]=255}}function r0t(e,t,r){const n=t.coords,i=t.colors;let o,a;switch(t.type){case"lattice":const l=t.verticesPerRow,d=Math.floor(n.length/l)-1,u=l-1;for(o=0;o<d;o++){let p=o*l;for(let h=0;h<u;h++,p++)cL(e,r,n[p],n[p+1],n[p+l],i[p],i[p+1],i[p+l]),cL(e,r,n[p+l+1],n[p+1],n[p+l],i[p+l+1],i[p+1],i[p+l])}break;case"triangles":for(o=0,a=n.length;o<a;o+=3)cL(e,r,n[o],n[o+1],n[o+2],i[o],i[o+1],i[o+2]);break;default:throw new Error("illegal figure")}}class n0t extends g6{constructor(t){super(),this._coords=t[2],this._colors=t[3],this._figures=t[4],this._bounds=t[5],this._bbox=t[7],this._background=t[8],this.matrix=null}_createMeshCanvas(t,r,n){const l=Math.floor(this._bounds[0]),d=Math.floor(this._bounds[1]),u=Math.ceil(this._bounds[2])-l,p=Math.ceil(this._bounds[3])-d,h=Math.min(Math.ceil(Math.abs(u*t[0]*1.1)),3e3),f=Math.min(Math.ceil(Math.abs(p*t[1]*1.1)),3e3),g=u/h,y=p/f,v={coords:this._coords,colors:this._colors,offsetX:-l,offsetY:-d,scaleX:1/g,scaleY:1/y},w=h+2*2,x=f+2*2,$=n.getCanvas("mesh",w,x,!1),S=$.context,k=S.createImageData(h,f);if(r){const E=k.data;for(let A=0,P=E.length;A<P;A+=4)E[A]=r[0],E[A+1]=r[1],E[A+2]=r[2],E[A+3]=255}for(const E of this._figures)r0t(k,E,v);return S.putImageData(k,2,2),{canvas:$.canvas,offsetX:l-2*g,offsetY:d-2*y,scaleX:g,scaleY:y}}getPattern(t,r,n,i){pj(t,this._bbox);let o;if(i===Wa.SHADING)o=ar.singularValueDecompose2dScale(Mi(t));else if(o=ar.singularValueDecompose2dScale(r.baseTransform),this.matrix){const l=ar.singularValueDecompose2dScale(this.matrix);o=[o[0]*l[0],o[1]*l[1]]}const a=this._createMeshCanvas(o,i===Wa.SHADING?null:this._background,r.cachedCanvases);return i!==Wa.SHADING&&(t.setTransform(...r.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(a.offsetX,a.offsetY),t.scale(a.scaleX,a.scaleY),t.createPattern(a.canvas,"no-repeat")}}class i0t extends g6{getPattern(){return"hotpink"}}function o0t(e){switch(e[0]){case"RadialAxial":return new t0t(e);case"Mesh":return new n0t(e);case"Dummy":return new i0t}throw new Error(`Unknown IR type: ${e[0]}`)}const ZX={COLORED:1,UNCOLORED:2};class rN{static MAX_PATTERN_SIZE=3e3;constructor(t,r,n,i,o){this.operatorList=t[2],this.matrix=t[3],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=r,this.ctx=n,this.canvasGraphicsFactory=i,this.baseTransform=o}createPatternCanvas(t){const r=this.operatorList,n=this.bbox,i=this.xstep,o=this.ystep,a=this.paintType,l=this.tilingType,d=this.color,u=this.canvasGraphicsFactory;Sx("TilingType: "+l);const p=n[0],h=n[1],f=n[2],g=n[3],y=ar.singularValueDecompose2dScale(this.matrix),v=ar.singularValueDecompose2dScale(this.baseTransform),w=[y[0]*v[0],y[1]*v[1]],x=this.getSizeAndScale(i,this.ctx.canvas.width,w[0]),$=this.getSizeAndScale(o,this.ctx.canvas.height,w[1]),S=t.cachedCanvases.getCanvas("pattern",x.size,$.size,!0),k=S.context,T=u.createCanvasGraphics(k);T.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(T,a,d);let E=p,A=h,P=f,D=g;return p<0&&(E=0,P+=Math.abs(p)),h<0&&(A=0,D+=Math.abs(h)),k.translate(-(x.scale*E),-($.scale*A)),T.transform(x.scale,0,0,$.scale,0,0),k.save(),this.clipBbox(T,E,A,P,D),T.baseTransform=Mi(T.ctx),T.executeOperatorList(r),T.endDrawing(),{canvas:S.canvas,scaleX:x.scale,scaleY:$.scale,offsetX:E,offsetY:A}}getSizeAndScale(t,r,n){t=Math.abs(t);const i=Math.max(rN.MAX_PATTERN_SIZE,r);let o=Math.ceil(t*n);return o>=i?o=i:n=o/t,{scale:n,size:o}}clipBbox(t,r,n,i,o){const a=i-r,l=o-n;t.ctx.rect(r,n,a,l),t.current.updateRectMinMax(Mi(t.ctx),[r,n,i,o]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,r,n){const i=t.ctx,o=t.current;switch(r){case ZX.COLORED:const a=this.ctx;i.fillStyle=a.fillStyle,i.strokeStyle=a.strokeStyle,o.fillColor=a.fillStyle,o.strokeColor=a.strokeStyle;break;case ZX.UNCOLORED:const l=ar.makeHexColor(n[0],n[1],n[2]);i.fillStyle=l,i.strokeStyle=l,o.fillColor=l,o.strokeColor=l;break;default:throw new D2t(`Unsupported paint type: ${r}`)}}getPattern(t,r,n,i){let o=n;i!==Wa.SHADING&&(o=ar.transform(o,r.baseTransform),this.matrix&&(o=ar.transform(o,this.matrix)));const a=this.createPatternCanvas(r);let l=new DOMMatrix(o);l=l.translate(a.offsetX,a.offsetY),l=l.scale(1/a.scaleX,1/a.scaleY);const d=t.createPattern(a.canvas,"repeat");return d.setTransform(l),d}}function a0t({src:e,srcPos:t=0,dest:r,width:n,height:i,nonBlackColor:o=4294967295,inverseDecode:a=!1}){const l=xs.isLittleEndian?4278190080:255,[d,u]=a?[o,l]:[l,o],p=n>>3,h=n&7,f=e.length;r=new Uint32Array(r.buffer);let g=0;for(let y=0;y<i;y++){for(const w=t+p;t<w;t++){const x=t<f?e[t]:255;r[g++]=x&128?u:d,r[g++]=x&64?u:d,r[g++]=x&32?u:d,r[g++]=x&16?u:d,r[g++]=x&8?u:d,r[g++]=x&4?u:d,r[g++]=x&2?u:d,r[g++]=x&1?u:d}if(h===0)continue;const v=t<f?e[t++]:255;for(let w=0;w<h;w++)r[g++]=v&1<<7-w?u:d}return{srcPos:t,destPos:g}}const KX=16,QX=100,s0t=15,XX=10,JX=1e3,hs=16;function l0t(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(n,i){t.translate(n,i),this.__originalTranslate(n,i)},e.scale=function(n,i){t.scale(n,i),this.__originalScale(n,i)},e.transform=function(n,i,o,a,l,d){t.transform(n,i,o,a,l,d),this.__originalTransform(n,i,o,a,l,d)},e.setTransform=function(n,i,o,a,l,d){t.setTransform(n,i,o,a,l,d),this.__originalSetTransform(n,i,o,a,l,d)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(n){t.rotate(n),this.__originalRotate(n)},e.clip=function(n){t.clip(n),this.__originalClip(n)},e.moveTo=function(r,n){t.moveTo(r,n),this.__originalMoveTo(r,n)},e.lineTo=function(r,n){t.lineTo(r,n),this.__originalLineTo(r,n)},e.bezierCurveTo=function(r,n,i,o,a,l){t.bezierCurveTo(r,n,i,o,a,l),this.__originalBezierCurveTo(r,n,i,o,a,l)},e.rect=function(r,n,i,o){t.rect(r,n,i,o),this.__originalRect(r,n,i,o)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}class c0t{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,r,n){let i;return this.cache[t]!==void 0?(i=this.cache[t],this.canvasFactory.reset(i,r,n)):(i=this.canvasFactory.create(r,n),this.cache[t]=i),i}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const r=this.cache[t];this.canvasFactory.destroy(r),delete this.cache[t]}}}function I9(e,t,r,n,i,o,a,l,d,u){const[p,h,f,g,y,v]=Mi(e);if(h===0&&f===0){const $=a*p+y,S=Math.round($),k=l*g+v,T=Math.round(k),E=(a+d)*p+y,A=Math.abs(Math.round(E)-S)||1,P=(l+u)*g+v,D=Math.abs(Math.round(P)-T)||1;return e.setTransform(Math.sign(p),0,0,Math.sign(g),S,T),e.drawImage(t,r,n,i,o,0,0,A,D),e.setTransform(p,h,f,g,y,v),[A,D]}if(p===0&&g===0){const $=l*f+y,S=Math.round($),k=a*h+v,T=Math.round(k),E=(l+u)*f+y,A=Math.abs(Math.round(E)-S)||1,P=(a+d)*h+v,D=Math.abs(Math.round(P)-T)||1;return e.setTransform(0,Math.sign(h),Math.sign(f),0,S,T),e.drawImage(t,r,n,i,o,0,0,D,A),e.setTransform(p,h,f,g,y,v),[D,A]}e.drawImage(t,r,n,i,o,a,l,d,u);const w=Math.hypot(p,h),x=Math.hypot(f,g);return[w*d,x*u]}function d0t(e){const{width:t,height:r}=e;if(t>JX||r>JX)return null;const n=1e3,i=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),o=t+1;let a=new Uint8Array(o*(r+1)),l,d,u;const p=t+7&-8;let h=new Uint8Array(p*r),f=0;for(const x of e.data){let $=128;for(;$>0;)h[f++]=x&$?0:255,$>>=1}let g=0;for(f=0,h[f]!==0&&(a[0]=1,++g),d=1;d<t;d++)h[f]!==h[f+1]&&(a[d]=h[f]?2:1,++g),f++;for(h[f]!==0&&(a[d]=2,++g),l=1;l<r;l++){f=l*p,u=l*o,h[f-p]!==h[f]&&(a[u]=h[f]?1:8,++g);let x=(h[f]?4:0)+(h[f-p]?8:0);for(d=1;d<t;d++)x=(x>>2)+(h[f+1]?4:0)+(h[f-p+1]?8:0),i[x]&&(a[u+d]=i[x],++g),f++;if(h[f-p]!==h[f]&&(a[u+d]=h[f]?2:4,++g),g>n)return null}for(f=p*(r-1),u=l*o,h[f]!==0&&(a[u]=8,++g),d=1;d<t;d++)h[f]!==h[f+1]&&(a[u+d]=h[f]?4:8,++g),f++;if(h[f]!==0&&(a[u+d]=4,++g),g>n)return null;const y=new Int32Array([0,o,-1,0,-o,0,0,0,1]),v=new Path2D;for(l=0;g&&l<=r;l++){let x=l*o;const $=x+t;for(;x<$&&!a[x];)x++;if(x===$)continue;v.moveTo(x%o,l);const S=x;let k=a[x];do{const T=y[k];do x+=T;while(!a[x]);const E=a[x];E!==5&&E!==10?(k=E,a[x]=0):(k=E&51*k>>4,a[x]&=k>>2|k<<2),v.lineTo(x%o,x/o|0),a[x]||--g}while(S!==x);--l}return h=null,a=null,function(x){x.save(),x.scale(1/t,-1/r),x.translate(0,-r),x.fill(v),x.beginPath(),x.restore()}}class eJ{constructor(t,r){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=Uge,this.textMatrixScale=1,this.fontMatrix=oj,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=va.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,r])}clone(){const t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,r){this.x=t,this.y=r}updatePathMinMax(t,r,n){[r,n]=ar.applyTransform([r,n],t),this.minX=Math.min(this.minX,r),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,r),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(t,r){const n=ar.applyTransform(r,t),i=ar.applyTransform(r.slice(2),t),o=ar.applyTransform([r[0],r[3]],t),a=ar.applyTransform([r[2],r[1]],t);this.minX=Math.min(this.minX,n[0],i[0],o[0],a[0]),this.minY=Math.min(this.minY,n[1],i[1],o[1],a[1]),this.maxX=Math.max(this.maxX,n[0],i[0],o[0],a[0]),this.maxY=Math.max(this.maxY,n[1],i[1],o[1],a[1])}updateScalingPathMinMax(t,r){ar.scaleMinMax(t,r),this.minX=Math.min(this.minX,r[0]),this.minY=Math.min(this.minY,r[1]),this.maxX=Math.max(this.maxX,r[2]),this.maxY=Math.max(this.maxY,r[3])}updateCurvePathMinMax(t,r,n,i,o,a,l,d,u,p){const h=ar.bezierBoundingBox(r,n,i,o,a,l,d,u,p);p||this.updateRectMinMax(t,h)}getPathBoundingBox(t=Wa.FILL,r=null){const n=[this.minX,this.minY,this.maxX,this.maxY];if(t===Wa.STROKE){r||ti("Stroke bounding box must include transform.");const i=ar.singularValueDecompose2dScale(r),o=i[0]*this.lineWidth/2,a=i[1]*this.lineWidth/2;n[0]-=o,n[1]-=a,n[2]+=o,n[3]+=a}return n}updateClipFromPath(){const t=ar.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(t=Wa.FILL,r=null){return ar.intersect(this.clipBox,this.getPathBoundingBox(t,r))}}function tJ(e,t){if(typeof ImageData<"u"&&t instanceof ImageData){e.putImageData(t,0,0);return}const r=t.height,n=t.width,i=r%hs,o=(r-i)/hs,a=i===0?o:o+1,l=e.createImageData(n,hs);let d=0,u;const p=t.data,h=l.data;let f,g,y,v;if(t.kind===Ry.GRAYSCALE_1BPP){const w=p.byteLength,x=new Uint32Array(h.buffer,0,h.byteLength>>2),$=x.length,S=n+7>>3,k=4294967295,T=xs.isLittleEndian?4278190080:255;for(f=0;f<a;f++){for(y=f<o?hs:i,u=0,g=0;g<y;g++){const E=w-d;let A=0;const P=E>S?n:E*8-7,D=P&-8;let O=0,V=0;for(;A<D;A+=8)V=p[d++],x[u++]=V&128?k:T,x[u++]=V&64?k:T,x[u++]=V&32?k:T,x[u++]=V&16?k:T,x[u++]=V&8?k:T,x[u++]=V&4?k:T,x[u++]=V&2?k:T,x[u++]=V&1?k:T;for(;A<P;A++)O===0&&(V=p[d++],O=128),x[u++]=V&O?k:T,O>>=1}for(;u<$;)x[u++]=0;e.putImageData(l,0,f*hs)}}else if(t.kind===Ry.RGBA_32BPP){for(g=0,v=n*hs*4,f=0;f<o;f++)h.set(p.subarray(d,d+v)),d+=v,e.putImageData(l,0,g),g+=hs;f<a&&(v=n*i*4,h.set(p.subarray(d,d+v)),e.putImageData(l,0,g))}else if(t.kind===Ry.RGB_24BPP)for(y=hs,v=n*y,f=0;f<a;f++){for(f>=o&&(y=i,v=n*y),u=0,g=v;g--;)h[u++]=p[d++],h[u++]=p[d++],h[u++]=p[d++],h[u++]=255;e.putImageData(l,0,f*hs)}else throw new Error(`bad image kind: ${t.kind}`)}function rJ(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}const r=t.height,n=t.width,i=r%hs,o=(r-i)/hs,a=i===0?o:o+1,l=e.createImageData(n,hs);let d=0;const u=t.data,p=l.data;for(let h=0;h<a;h++){const f=h<o?hs:i;({srcPos:d}=a0t({src:u,srcPos:d,dest:p,width:n,height:f,nonBlackColor:0})),e.putImageData(l,0,h*hs)}}function W4(e,t){const r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const n of r)e[n]!==void 0&&(t[n]=e[n]);e.setLineDash!==void 0&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function j9(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",e.setLineDash!==void 0&&(e.setLineDash([]),e.lineDashOffset=0),!ka){const{filter:t}=e;t!=="none"&&t!==""&&(e.filter="none")}}function nJ(e,t){if(t)return!0;const r=ar.singularValueDecompose2dScale(e);r[0]=Math.fround(r[0]),r[1]=Math.fround(r[1]);const n=Math.fround((globalThis.devicePixelRatio||1)*Jf.PDF_TO_CSS_UNITS);return r[0]<=n&&r[1]<=n}const u0t=["butt","round","square"],p0t=["miter","round","bevel"],h0t={},iJ={};class _f{constructor(t,r,n,i,o,{optionalContentConfig:a,markedContentStack:l=null},d,u){this.ctx=t,this.current=new eJ(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=r,this.objs=n,this.canvasFactory=i,this.filterFactory=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=l||[],this.optionalContentConfig=a,this.cachedCanvases=new c0t(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=d,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(t,r=null){return typeof t=="string"?t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t):r}beginDrawing({transform:t,viewport:r,transparency:n=!1,background:i=null}){const o=this.ctx.canvas.width,a=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,o,a),this.ctx.fillStyle=l,n){const d=this.cachedCanvases.getCanvas("transparent",o,a);this.compositeCtx=this.ctx,this.transparentCanvas=d.canvas,this.ctx=d.context,this.ctx.save(),this.ctx.transform(...Mi(this.compositeCtx))}this.ctx.save(),j9(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...r.transform),this.viewportScale=r.scale,this.baseTransform=Mi(this.ctx)}executeOperatorList(t,r,n,i){const o=t.argsArray,a=t.fnArray;let l=r||0;const d=o.length;if(d===l)return l;const u=d-l>XX&&typeof n=="function",p=u?Date.now()+s0t:0;let h=0;const f=this.commonObjs,g=this.objs;let y;for(;;){if(i!==void 0&&l===i.nextBreakPoint)return i.breakIt(l,n),l;if(y=a[l],y!==kc.dependency)this[y].apply(this,o[l]);else for(const v of o[l]){const w=v.startsWith("g_")?f:g;if(!w.has(v))return w.get(v,n),l}if(l++,l===d)return l;if(u&&++h>XX){if(Date.now()>p)return n(),l;h=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const r of t.values())typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement&&(r.width=r.height=0);t.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){const t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(t!=="none"){const r=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=r}}}_scaleImage(t,r){const n=t.width,i=t.height;let o=Math.max(Math.hypot(r[0],r[1]),1),a=Math.max(Math.hypot(r[2],r[3]),1),l=n,d=i,u="prescale1",p,h;for(;o>2&&l>1||a>2&&d>1;){let f=l,g=d;o>2&&l>1&&(f=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),o/=l/f),a>2&&d>1&&(g=d>=16384?Math.floor(d/2)-1||1:Math.ceil(d)/2,a/=d/g),p=this.cachedCanvases.getCanvas(u,f,g),h=p.context,h.clearRect(0,0,f,g),h.drawImage(t,0,0,l,d,0,0,f,g),t=p.canvas,l=f,d=g,u=u==="prescale1"?"prescale2":"prescale1"}return{img:t,paintWidth:l,paintHeight:d}}_createMaskCanvas(t){const r=this.ctx,{width:n,height:i}=t,o=this.current.fillColor,a=this.current.patternFill,l=Mi(r);let d,u,p,h;if((t.bitmap||t.data)&&t.count>1){const P=t.bitmap||t.data.buffer;u=JSON.stringify(a?l:[l.slice(0,4),o]),d=this._cachedBitmapsMap.get(P),d||(d=new Map,this._cachedBitmapsMap.set(P,d));const D=d.get(u);if(D&&!a){const O=Math.round(Math.min(l[0],l[2])+l[4]),V=Math.round(Math.min(l[1],l[3])+l[5]);return{canvas:D,offsetX:O,offsetY:V}}p=D}p||(h=this.cachedCanvases.getCanvas("maskCanvas",n,i),rJ(h.context,t));let f=ar.transform(l,[1/n,0,0,-1/i,0,0]);f=ar.transform(f,[1,0,0,1,0,-i]);const[g,y,v,w]=ar.getAxialAlignedBoundingBox([0,0,n,i],f),x=Math.round(v-g)||1,$=Math.round(w-y)||1,S=this.cachedCanvases.getCanvas("fillCanvas",x,$),k=S.context,T=g,E=y;k.translate(-T,-E),k.transform(...f),p||(p=this._scaleImage(h.canvas,gu(k)),p=p.img,d&&a&&d.set(u,p)),k.imageSmoothingEnabled=nJ(Mi(k),t.interpolate),I9(k,p,0,0,p.width,p.height,0,0,n,i),k.globalCompositeOperation="source-in";const A=ar.transform(gu(k),[1,0,0,1,-T,-E]);return k.fillStyle=a?o.getPattern(r,this,A,Wa.FILL):o,k.fillRect(0,0,n,i),d&&!a&&(this.cachedCanvases.delete("fillCanvas"),d.set(u,S.canvas)),{canvas:S.canvas,offsetX:Math.round(T),offsetY:Math.round(E)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=u0t[t]}setLineJoin(t){this.ctx.lineJoin=p0t[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,r){const n=this.ctx;n.setLineDash!==void 0&&(n.setLineDash(t),n.lineDashOffset=r)}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[r,n]of t)switch(r){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.current.fillAlpha=n,this.ctx.globalAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,r=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(n,t,r);this.suspendedCtx=this.ctx,this.ctx=i.context;const o=this.ctx;o.setTransform(...Mi(this.suspendedCtx)),W4(this.suspendedCtx,o),l0t(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),W4(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const r=this.current.activeSMask,n=this.suspendedCtx;this.composeSMask(n,r,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(t,r,n,i){const o=i[0],a=i[1],l=i[2]-o,d=i[3]-a;l===0||d===0||(this.genericComposeSMask(r.context,n,l,d,r.subtype,r.backdrop,r.transferMap,o,a,r.offsetX,r.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(n.canvas,0,0),t.restore())}genericComposeSMask(t,r,n,i,o,a,l,d,u,p,h){let f=t.canvas,g=d-p,y=u-h;if(a){if(g<0||y<0||g+n>f.width||y+i>f.height){const w=this.cachedCanvases.getCanvas("maskExtension",n,i),x=w.context;x.drawImage(f,-g,-y),a.some($=>$!==0)&&(x.globalCompositeOperation="destination-atop",x.fillStyle=ar.makeHexColor(...a),x.fillRect(0,0,n,i),x.globalCompositeOperation="source-over"),f=w.canvas,g=y=0}else if(a.some(w=>w!==0)){t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);const w=new Path2D;w.rect(g,y,n,i),t.clip(w),t.globalCompositeOperation="destination-atop",t.fillStyle=ar.makeHexColor(...a),t.fillRect(g,y,n,i),t.restore()}}r.save(),r.globalAlpha=1,r.setTransform(1,0,0,1,0,0),o==="Alpha"&&l?r.filter=this.filterFactory.addAlphaFilter(l):o==="Luminosity"&&(r.filter=this.filterFactory.addLuminosityFilter(l));const v=new Path2D;v.rect(d,u,n,i),r.clip(v),r.globalCompositeOperation="destination-in",r.drawImage(f,g,y,n,i,d,u,n,i),r.restore()}save(){this.inSMaskMode?(W4(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),W4(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,r,n,i,o,a){this.ctx.transform(t,r,n,i,o,a),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,r,n){const i=this.ctx,o=this.current;let a=o.x,l=o.y,d,u;const p=Mi(i),h=p[0]===0&&p[3]===0||p[1]===0&&p[2]===0,f=h?n.slice(0):null;for(let g=0,y=0,v=t.length;g<v;g++)switch(t[g]|0){case kc.rectangle:a=r[y++],l=r[y++];const w=r[y++],x=r[y++],$=a+w,S=l+x;i.moveTo(a,l),w===0||x===0?i.lineTo($,S):(i.lineTo($,l),i.lineTo($,S),i.lineTo(a,S)),h||o.updateRectMinMax(p,[a,l,$,S]),i.closePath();break;case kc.moveTo:a=r[y++],l=r[y++],i.moveTo(a,l),h||o.updatePathMinMax(p,a,l);break;case kc.lineTo:a=r[y++],l=r[y++],i.lineTo(a,l),h||o.updatePathMinMax(p,a,l);break;case kc.curveTo:d=a,u=l,a=r[y+4],l=r[y+5],i.bezierCurveTo(r[y],r[y+1],r[y+2],r[y+3],a,l),o.updateCurvePathMinMax(p,d,u,r[y],r[y+1],r[y+2],r[y+3],a,l,f),y+=6;break;case kc.curveTo2:d=a,u=l,i.bezierCurveTo(a,l,r[y],r[y+1],r[y+2],r[y+3]),o.updateCurvePathMinMax(p,d,u,a,l,r[y],r[y+1],r[y+2],r[y+3],f),a=r[y+2],l=r[y+3],y+=4;break;case kc.curveTo3:d=a,u=l,a=r[y+2],l=r[y+3],i.bezierCurveTo(r[y],r[y+1],a,l,a,l),o.updateCurvePathMinMax(p,d,u,r[y],r[y+1],a,l,a,l,f),y+=4;break;case kc.closePath:i.closePath();break}h&&o.updateScalingPathMinMax(p,f),o.setCurrentPoint(a,l)}closePath(){this.ctx.closePath()}stroke(t=!0){const r=this.ctx,n=this.current.strokeColor;r.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof n=="object"&&n?.getPattern?(r.save(),r.strokeStyle=n.getPattern(r,this,gu(r),Wa.STROKE),this.rescaleAndStroke(!1),r.restore()):this.rescaleAndStroke(!0)),t&&this.consumePath(this.current.getClippedPathBoundingBox()),r.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(t=!0){const r=this.ctx,n=this.current.fillColor,i=this.current.patternFill;let o=!1;i&&(r.save(),r.fillStyle=n.getPattern(r,this,gu(r),Wa.FILL),o=!0);const a=this.current.getClippedPathBoundingBox();this.contentVisible&&a!==null&&(this.pendingEOFill?(r.fill("evenodd"),this.pendingEOFill=!1):r.fill()),o&&r.restore(),t&&this.consumePath(a)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=h0t}eoClip(){this.pendingClip=iJ}beginText(){this.current.textMatrix=Uge,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const t=this.pendingTextPaths,r=this.ctx;if(t===void 0){r.beginPath();return}r.save(),r.beginPath();for(const n of t)r.setTransform(...n.transform),r.translate(n.x,n.y),n.addToPath(r,n.fontSize);r.restore(),r.clip(),r.beginPath(),delete this.pendingTextPaths}setCharSpacing(t){this.current.charSpacing=t}setWordSpacing(t){this.current.wordSpacing=t}setHScale(t){this.current.textHScale=t/100}setLeading(t){this.current.leading=-t}setFont(t,r){const n=this.commonObjs.get(t),i=this.current;if(!n)throw new Error(`Can't find font for ${t}`);if(i.fontMatrix=n.fontMatrix||oj,(i.fontMatrix[0]===0||i.fontMatrix[3]===0)&&Xr("Invalid font matrix for font "+t),r<0?(r=-r,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=r,n.isType3Font)return;const o=n.loadedName||"sans-serif",a=n.systemFontInfo?.css||`"${o}", ${n.fallbackName}`;let l="normal";n.black?l="900":n.bold&&(l="bold");const d=n.italic?"italic":"normal";let u=r;r<KX?u=KX:r>QX&&(u=QX),this.current.fontSizeScale=r/u,this.ctx.font=`${d} ${l} ${u}px ${a}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,r){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=r}setLeadingMoveText(t,r){this.setLeading(-r),this.moveText(t,r)}setTextMatrix(t,r,n,i,o,a){this.current.textMatrix=[t,r,n,i,o,a],this.current.textMatrixScale=Math.hypot(t,r),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(t,r,n,i){const o=this.ctx,a=this.current,l=a.font,d=a.textRenderingMode,u=a.fontSize/a.fontSizeScale,p=d&va.FILL_STROKE_MASK,h=!!(d&va.ADD_TO_PATH_FLAG),f=a.patternFill&&!l.missingFile;let g;(l.disableFontFace||h||f)&&(g=l.getPathGenerator(this.commonObjs,t)),l.disableFontFace||f?(o.save(),o.translate(r,n),o.beginPath(),g(o,u),i&&o.setTransform(...i),(p===va.FILL||p===va.FILL_STROKE)&&o.fill(),(p===va.STROKE||p===va.FILL_STROKE)&&o.stroke(),o.restore()):((p===va.FILL||p===va.FILL_STROKE)&&o.fillText(t,r,n),(p===va.STROKE||p===va.FILL_STROKE)&&o.strokeText(t,r,n)),h&&(this.pendingTextPaths||=[]).push({transform:Mi(o),x:r,y:n,fontSize:u,addToPath:g})}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1),t.fillText("I",0,10);const r=t.getImageData(0,0,10,10).data;let n=!1;for(let i=3;i<r.length;i+=4)if(r[i]>0&&r[i]<255){n=!0;break}return bn(this,"isFontSubpixelAAEnabled",n)}showText(t){const r=this.current,n=r.font;if(n.isType3Font)return this.showType3Text(t);const i=r.fontSize;if(i===0)return;const o=this.ctx,a=r.fontSizeScale,l=r.charSpacing,d=r.wordSpacing,u=r.fontDirection,p=r.textHScale*u,h=t.length,f=n.vertical,g=f?1:-1,y=n.defaultVMetrics,v=i*r.fontMatrix[0],w=r.textRenderingMode===va.FILL&&!n.disableFontFace&&!r.patternFill;o.save(),o.transform(...r.textMatrix),o.translate(r.x,r.y+r.textRise),u>0?o.scale(p,-1):o.scale(p,1);let x;if(r.patternFill){o.save();const E=r.fillColor.getPattern(o,this,gu(o),Wa.FILL);x=Mi(o),o.restore(),o.fillStyle=E}let $=r.lineWidth;const S=r.textMatrixScale;if(S===0||$===0){const E=r.textRenderingMode&va.FILL_STROKE_MASK;(E===va.STROKE||E===va.FILL_STROKE)&&($=this.getSinglePixelWidth())}else $/=S;if(a!==1&&(o.scale(a,a),$/=a),o.lineWidth=$,n.isInvalidPDFjsFont){const E=[];let A=0;for(const P of t)E.push(P.unicode),A+=P.width;o.fillText(E.join(""),0,0),r.x+=A*v*p,o.restore(),this.compose();return}let k=0,T;for(T=0;T<h;++T){const E=t[T];if(typeof E=="number"){k+=g*E*i/1e3;continue}let A=!1;const P=(E.isSpace?d:0)+l,D=E.fontChar,O=E.accent;let V,j,q=E.width;if(f){const F=E.vmetric||y,H=-(E.vmetric?F[1]:q*.5)*v,I=F[2]*v;q=F?-F[0]:q,V=H/a,j=(k+I)/a}else V=k/a,j=0;if(n.remeasure&&q>0){const F=o.measureText(D).width*1e3/i*a;if(q<F&&this.isFontSubpixelAAEnabled){const H=q/F;A=!0,o.save(),o.scale(H,1),V/=H}else q!==F&&(V+=(q-F)/2e3*i/a)}if(this.contentVisible&&(E.isInFont||n.missingFile)){if(w&&!O)o.fillText(D,V,j);else if(this.paintChar(D,V,j,x),O){const F=V+i*O.offset.x/a,H=j-i*O.offset.y/a;this.paintChar(O.fontChar,F,H,x)}}const W=f?q*v-P*u:q*v+P*u;k+=W,A&&o.restore()}f?r.y-=k:r.x+=k*p,o.restore(),this.compose()}showType3Text(t){const r=this.ctx,n=this.current,i=n.font,o=n.fontSize,a=n.fontDirection,l=i.vertical?1:-1,d=n.charSpacing,u=n.wordSpacing,p=n.textHScale*a,h=n.fontMatrix||oj,f=t.length,g=n.textRenderingMode===va.INVISIBLE;let y,v,w,x;if(!(g||o===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,r.save(),r.transform(...n.textMatrix),r.translate(n.x,n.y),r.scale(p,a),y=0;y<f;++y){if(v=t[y],typeof v=="number"){x=l*v*o/1e3,this.ctx.translate(x,0),n.x+=x*p;continue}const $=(v.isSpace?u:0)+d,S=i.charProcOperatorList[v.operatorListId];if(!S){Xr(`Type3 character "${v.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=v,this.save(),r.scale(o,o),r.transform(...h),this.executeOperatorList(S),this.restore()),w=ar.applyTransform([v.width,0],h)[0]*o+$,r.translate(w,0),n.x+=w*p}r.restore(),this.processingType3=null}}setCharWidth(t,r){}setCharWidthAndBounds(t,r,n,i,o,a){this.ctx.rect(n,i,o-n,a-i),this.ctx.clip(),this.endPath()}getColorN_Pattern(t){let r;if(t[0]==="TilingPattern"){const n=t[1],i=this.baseTransform||Mi(this.ctx),o={createCanvasGraphics:a=>new _f(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};r=new rN(t,n,this.ctx,o,i)}else r=this._getPattern(t[1],t[2]);return r}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,r,n){const i=ar.makeHexColor(t,r,n);this.ctx.strokeStyle=i,this.current.strokeColor=i}setFillRGBColor(t,r,n){const i=ar.makeHexColor(t,r,n);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1}_getPattern(t,r=null){let n;return this.cachedPatterns.has(t)?n=this.cachedPatterns.get(t):(n=o0t(this.getObject(t)),this.cachedPatterns.set(t,n)),r&&(n.matrix=r),n}shadingFill(t){if(!this.contentVisible)return;const r=this.ctx;this.save();const n=this._getPattern(t);r.fillStyle=n.getPattern(r,this,gu(r),Wa.SHADING);const i=gu(r);if(i){const{width:o,height:a}=r.canvas,[l,d,u,p]=ar.getAxialAlignedBoundingBox([0,0,o,a],i);this.ctx.fillRect(l,d,u-l,p-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){ti("Should not call beginInlineImage")}beginImageData(){ti("Should not call beginImageData")}paintFormXObjectBegin(t,r){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=Mi(this.ctx),r)){const n=r[2]-r[0],i=r[3]-r[1];this.ctx.rect(r[0],r[1],n,i),this.current.updateRectMinMax(Mi(this.ctx),r),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const r=this.ctx;t.isolated||Sx("TODO: Support non-isolated groups."),t.knockout&&Xr("Knockout groups not supported.");const n=Mi(r);if(t.matrix&&r.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let i=ar.getAxialAlignedBoundingBox(t.bbox,Mi(r));const o=[0,0,r.canvas.width,r.canvas.height];i=ar.intersect(i,o)||[0,0,0,0];const a=Math.floor(i[0]),l=Math.floor(i[1]),d=Math.max(Math.ceil(i[2])-a,1),u=Math.max(Math.ceil(i[3])-l,1);this.current.startNewPathAndClipBox([0,0,d,u]);let p="groupAt"+this.groupLevel;t.smask&&(p+="_smask_"+this.smaskCounter++%2);const h=this.cachedCanvases.getCanvas(p,d,u),f=h.context;f.translate(-a,-l),f.transform(...n),t.smask?this.smaskStack.push({canvas:h.canvas,context:f,offsetX:a,offsetY:l,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(r.setTransform(1,0,0,1,0,0),r.translate(a,l),r.save()),W4(r,f),this.ctx=f,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(r),this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;const r=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const i=Mi(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...i);const o=ar.getAxialAlignedBoundingBox([0,0,r.canvas.width,r.canvas.height],i);this.ctx.drawImage(r.canvas,0,0),this.ctx.restore(),this.compose(o)}}beginAnnotation(t,r,n,i,o){if(this.#e(),j9(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),r){const a=r[2]-r[0],l=r[3]-r[1];if(o&&this.annotationCanvasMap){n=n.slice(),n[4]-=r[0],n[5]-=r[1],r=r.slice(),r[0]=r[1]=0,r[2]=a,r[3]=l;const[d,u]=ar.singularValueDecompose2dScale(Mi(this.ctx)),{viewportScale:p}=this,h=Math.ceil(a*this.outputScaleX*p),f=Math.ceil(l*this.outputScaleY*p);this.annotationCanvas=this.canvasFactory.create(h,f);const{canvas:g,context:y}=this.annotationCanvas;this.annotationCanvasMap.set(t,g),this.annotationCanvas.savedCtx=this.ctx,this.ctx=y,this.ctx.save(),this.ctx.setTransform(d,0,0,-u,0,l*u),j9(this.ctx)}else j9(this.ctx),this.ctx.rect(r[0],r[1],a,l),this.ctx.clip(),this.endPath()}this.current=new eJ(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...i)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){if(!this.contentVisible)return;const r=t.count;t=this.getObject(t.data,t),t.count=r;const n=this.ctx,i=this.processingType3;if(i&&(i.compiled===void 0&&(i.compiled=d0t(t)),i.compiled)){i.compiled(n);return}const o=this._createMaskCanvas(t),a=o.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(a,o.offsetX,o.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(t,r,n=0,i=0,o,a){if(!this.contentVisible)return;t=this.getObject(t.data,t);const l=this.ctx;l.save();const d=Mi(l);l.transform(r,n,i,o,0,0);const u=this._createMaskCanvas(t);l.setTransform(1,0,0,1,u.offsetX-d[4],u.offsetY-d[5]);for(let p=0,h=a.length;p<h;p+=2){const f=ar.transform(d,[r,n,i,o,a[p],a[p+1]]),[g,y]=ar.applyTransform([0,0],f);l.drawImage(u.canvas,g,y)}l.restore(),this.compose()}paintImageMaskXObjectGroup(t){if(!this.contentVisible)return;const r=this.ctx,n=this.current.fillColor,i=this.current.patternFill;for(const o of t){const{data:a,width:l,height:d,transform:u}=o,p=this.cachedCanvases.getCanvas("maskCanvas",l,d),h=p.context;h.save();const f=this.getObject(a,o);rJ(h,f),h.globalCompositeOperation="source-in",h.fillStyle=i?n.getPattern(h,this,gu(r),Wa.FILL):n,h.fillRect(0,0,l,d),h.restore(),r.save(),r.transform(...u),r.scale(1,-1),I9(r,p.canvas,0,0,l,d,0,-1,1,1),r.restore()}this.compose()}paintImageXObject(t){if(!this.contentVisible)return;const r=this.getObject(t);if(!r){Xr("Dependent image isn't ready yet");return}this.paintInlineImageXObject(r)}paintImageXObjectRepeat(t,r,n,i){if(!this.contentVisible)return;const o=this.getObject(t);if(!o){Xr("Dependent image isn't ready yet");return}const a=o.width,l=o.height,d=[];for(let u=0,p=i.length;u<p;u+=2)d.push({transform:[r,0,0,n,i[u],i[u+1]],x:0,y:0,w:a,h:l});this.paintInlineImageXObjectGroup(o,d)}applyTransferMapsToCanvas(t){return this.current.transferMaps!=="none"&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter="none"),t.canvas}applyTransferMapsToBitmap(t){if(this.current.transferMaps==="none")return t.bitmap;const{bitmap:r,width:n,height:i}=t,o=this.cachedCanvases.getCanvas("inlineImage",n,i),a=o.context;return a.filter=this.current.transferMaps,a.drawImage(r,0,0),a.filter="none",o.canvas}paintInlineImageXObject(t){if(!this.contentVisible)return;const r=t.width,n=t.height,i=this.ctx;if(this.save(),!ka){const{filter:l}=i;l!=="none"&&l!==""&&(i.filter="none")}i.scale(1/r,-1/n);let o;if(t.bitmap)o=this.applyTransferMapsToBitmap(t);else if(typeof HTMLElement=="function"&&t instanceof HTMLElement||!t.data)o=t;else{const d=this.cachedCanvases.getCanvas("inlineImage",r,n).context;tJ(d,t),o=this.applyTransferMapsToCanvas(d)}const a=this._scaleImage(o,gu(i));i.imageSmoothingEnabled=nJ(Mi(i),t.interpolate),I9(i,a.img,0,0,a.paintWidth,a.paintHeight,0,-n,r,n),this.compose(),this.restore()}paintInlineImageXObjectGroup(t,r){if(!this.contentVisible)return;const n=this.ctx;let i;if(t.bitmap)i=t.bitmap;else{const o=t.width,a=t.height,d=this.cachedCanvases.getCanvas("inlineImage",o,a).context;tJ(d,t),i=this.applyTransferMapsToCanvas(d)}for(const o of r)n.save(),n.transform(...o.transform),n.scale(1,-1),I9(n,i,o.x,o.y,o.w,o.h,0,-1,1,1),n.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(t){}markPointProps(t,r){}beginMarkedContent(t){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(t,r){t==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(r)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(t){const r=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(t);const n=this.ctx;this.pendingClip&&(r||(this.pendingClip===iJ?n.clip("evenodd"):n.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),n.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const t=Mi(this.ctx);if(t[1]===0&&t[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{const r=Math.abs(t[0]*t[3]-t[2]*t[1]),n=Math.hypot(t[0],t[2]),i=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(n,i)/r}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:t}=this.current,{a:r,b:n,c:i,d:o}=this.ctx.getTransform();let a,l;if(n===0&&i===0){const d=Math.abs(r),u=Math.abs(o);if(d===u)if(t===0)a=l=1/d;else{const p=d*t;a=l=p<1?1/p:1}else if(t===0)a=1/d,l=1/u;else{const p=d*t,h=u*t;a=p<1?1/p:1,l=h<1?1/h:1}}else{const d=Math.abs(r*o-n*i),u=Math.hypot(r,n),p=Math.hypot(i,o);if(t===0)a=p/d,l=u/d;else{const h=t*d;a=p>h?p/h:1,l=u>h?u/h:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=l}return this._cachedScaleForStroking}rescaleAndStroke(t){const{ctx:r}=this,{lineWidth:n}=this.current,[i,o]=this.getScaleForStroking();if(r.lineWidth=n||1,i===1&&o===1){r.stroke();return}const a=r.getLineDash();if(t&&r.save(),r.scale(i,o),a.length>0){const l=Math.max(i,o);r.setLineDash(a.map(d=>d/l)),r.lineDashOffset/=l}r.stroke(),t&&r.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}}for(const e in kc)_f.prototype[e]!==void 0&&(_f.prototype[kc[e]]=_f.prototype[e]);class A7{static#e=null;static#t="";static get workerPort(){return this.#e}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");this.#e=t}static get workerSrc(){return this.#t}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");this.#t=t}}const R9={DATA:1,ERROR:2},ao={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function Rs(e){switch(e instanceof Error||typeof e=="object"&&e!==null||ti('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new Am(e.message);case"MissingPDFException":return new Tm(e.message);case"PasswordException":return new sj(e.message,e.code);case"UnexpectedResponseException":return new kx(e.message,e.status);case"UnknownErrorException":return new lj(e.message,e.details);default:return new lj(e.message,e.toString())}}class O5{constructor(t,r,n){this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=i=>{const o=i.data;if(o.targetName!==this.sourceName)return;if(o.stream){this.#t(o);return}if(o.callback){const l=o.callbackId,d=this.callbackCapabilities[l];if(!d)throw new Error(`Cannot resolve callback ${l}`);if(delete this.callbackCapabilities[l],o.callback===R9.DATA)d.resolve(o.data);else if(o.callback===R9.ERROR)d.reject(Rs(o.reason));else throw new Error("Unexpected callback case");return}const a=this.actionHandler[o.action];if(!a)throw new Error(`Unknown action from worker: ${o.action}`);if(o.callbackId){const l=this.sourceName,d=o.sourceName;new Promise(function(u){u(a(o.data))}).then(function(u){n.postMessage({sourceName:l,targetName:d,callback:R9.DATA,callbackId:o.callbackId,data:u})},function(u){n.postMessage({sourceName:l,targetName:d,callback:R9.ERROR,callbackId:o.callbackId,reason:Rs(u)})});return}if(o.streamId){this.#e(o);return}a(o.data)},n.addEventListener("message",this._onComObjOnMessage)}on(t,r){const n=this.actionHandler;if(n[t])throw new Error(`There is already an actionName called "${t}"`);n[t]=r}send(t,r,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:r},n)}sendWithPromise(t,r,n){const i=this.callbackId++,o=Promise.withResolvers();this.callbackCapabilities[i]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:i,data:r},n)}catch(a){o.reject(a)}return o.promise}sendWithStream(t,r,n,i){const o=this.streamId++,a=this.sourceName,l=this.targetName,d=this.comObj;return new ReadableStream({start:u=>{const p=Promise.withResolvers();return this.streamControllers[o]={controller:u,startCall:p,pullCall:null,cancelCall:null,isClosed:!1},d.postMessage({sourceName:a,targetName:l,action:t,streamId:o,data:r,desiredSize:u.desiredSize},i),p.promise},pull:u=>{const p=Promise.withResolvers();return this.streamControllers[o].pullCall=p,d.postMessage({sourceName:a,targetName:l,stream:ao.PULL,streamId:o,desiredSize:u.desiredSize}),p.promise},cancel:u=>{Lo(u instanceof Error,"cancel must have a valid reason");const p=Promise.withResolvers();return this.streamControllers[o].cancelCall=p,this.streamControllers[o].isClosed=!0,d.postMessage({sourceName:a,targetName:l,stream:ao.CANCEL,streamId:o,reason:Rs(u)}),p.promise}},n)}#e(t){const r=t.streamId,n=this.sourceName,i=t.sourceName,o=this.comObj,a=this,l=this.actionHandler[t.action],d={enqueue(u,p=1,h){if(this.isCancelled)return;const f=this.desiredSize;this.desiredSize-=p,f>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:n,targetName:i,stream:ao.ENQUEUE,streamId:r,chunk:u},h)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:i,stream:ao.CLOSE,streamId:r}),delete a.streamSinks[r])},error(u){Lo(u instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:i,stream:ao.ERROR,streamId:r,reason:Rs(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[r]=d,new Promise(function(u){u(l(t.data,d))}).then(function(){o.postMessage({sourceName:n,targetName:i,stream:ao.START_COMPLETE,streamId:r,success:!0})},function(u){o.postMessage({sourceName:n,targetName:i,stream:ao.START_COMPLETE,streamId:r,reason:Rs(u)})})}#t(t){const r=t.streamId,n=this.sourceName,i=t.sourceName,o=this.comObj,a=this.streamControllers[r],l=this.streamSinks[r];switch(t.stream){case ao.START_COMPLETE:t.success?a.startCall.resolve():a.startCall.reject(Rs(t.reason));break;case ao.PULL_COMPLETE:t.success?a.pullCall.resolve():a.pullCall.reject(Rs(t.reason));break;case ao.PULL:if(!l){o.postMessage({sourceName:n,targetName:i,stream:ao.PULL_COMPLETE,streamId:r,success:!0});break}l.desiredSize<=0&&t.desiredSize>0&&l.sinkCapability.resolve(),l.desiredSize=t.desiredSize,new Promise(function(d){d(l.onPull?.())}).then(function(){o.postMessage({sourceName:n,targetName:i,stream:ao.PULL_COMPLETE,streamId:r,success:!0})},function(d){o.postMessage({sourceName:n,targetName:i,stream:ao.PULL_COMPLETE,streamId:r,reason:Rs(d)})});break;case ao.ENQUEUE:if(Lo(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(t.chunk);break;case ao.CLOSE:if(Lo(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),this.#r(a,r);break;case ao.ERROR:Lo(a,"error should have stream controller"),a.controller.error(Rs(t.reason)),this.#r(a,r);break;case ao.CANCEL_COMPLETE:t.success?a.cancelCall.resolve():a.cancelCall.reject(Rs(t.reason)),this.#r(a,r);break;case ao.CANCEL:if(!l)break;new Promise(function(d){d(l.onCancel?.(Rs(t.reason)))}).then(function(){o.postMessage({sourceName:n,targetName:i,stream:ao.CANCEL_COMPLETE,streamId:r,success:!0})},function(d){o.postMessage({sourceName:n,targetName:i,stream:ao.CANCEL_COMPLETE,streamId:r,reason:Rs(d)})}),l.sinkCapability.reject(Rs(t.reason)),l.isCancelled=!0,delete this.streamSinks[r];break;default:throw new Error("Unexpected stream case")}}async#r(t,r){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[r]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}class m0t{#e;#t;constructor({parsedData:t,rawData:r}){this.#e=t,this.#t=r}getRaw(){return this.#t}get(t){return this.#e.get(t)??null}getAll(){return WF(this.#e)}has(t){return this.#e.has(t)}}const V2=Symbol("INTERNAL");class f0t{#e=!1;#t=!1;#r=!1;#i=!0;constructor(t,{name:r,intent:n,usage:i}){this.#e=!!(t&Sl.DISPLAY),this.#t=!!(t&Sl.PRINT),this.name=r,this.intent=n,this.usage=i}get visible(){if(this.#r)return this.#i;if(!this.#i)return!1;const{print:t,view:r}=this.usage;return this.#e?r?.viewState!=="OFF":this.#t?t?.printState!=="OFF":!0}_setVisible(t,r,n=!1){t!==V2&&ti("Internal method `_setVisible` called."),this.#r=n,this.#i=r}}class g0t{#e=null;#t=new Map;#r=null;#i=null;constructor(t,r=Sl.DISPLAY){if(this.renderingIntent=r,this.name=null,this.creator=null,t!==null){this.name=t.name,this.creator=t.creator,this.#i=t.order;for(const n of t.groups)this.#t.set(n.id,new f0t(r,n));if(t.baseState==="OFF")for(const n of this.#t.values())n._setVisible(V2,!1);for(const n of t.on)this.#t.get(n)._setVisible(V2,!0);for(const n of t.off)this.#t.get(n)._setVisible(V2,!1);this.#r=this.getHash()}}#s(t){const r=t.length;if(r<2)return!0;const n=t[0];for(let i=1;i<r;i++){const o=t[i];let a;if(Array.isArray(o))a=this.#s(o);else if(this.#t.has(o))a=this.#t.get(o).visible;else return Xr(`Optional content group not found: ${o}`),!0;switch(n){case"And":if(!a)return!1;break;case"Or":if(a)return!0;break;case"Not":return!a;default:return!0}}return n==="And"}isVisible(t){if(this.#t.size===0)return!0;if(!t)return Sx("Optional content group not defined."),!0;if(t.type==="OCG")return this.#t.has(t.id)?this.#t.get(t.id).visible:(Xr(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return this.#s(t.expression);if(!t.policy||t.policy==="AnyOn"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(this.#t.get(r).visible)return!0}return!1}else if(t.policy==="AllOn"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(!this.#t.get(r).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(!this.#t.get(r).visible)return!0}return!1}else if(t.policy==="AllOff"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(this.#t.get(r).visible)return!1}return!0}return Xr(`Unknown optional content policy ${t.policy}.`),!0}return Xr(`Unknown group type ${t.type}.`),!0}setVisibility(t,r=!0){const n=this.#t.get(t);if(!n){Xr(`Optional content group not found: ${t}`);return}n._setVisible(V2,!!r,!0),this.#e=null}setOCGState({state:t,preserveRB:r}){let n;for(const i of t){switch(i){case"ON":case"OFF":case"Toggle":n=i;continue}const o=this.#t.get(i);if(o)switch(n){case"ON":o._setVisible(V2,!0);break;case"OFF":o._setVisible(V2,!1);break;case"Toggle":o._setVisible(V2,!o.visible);break}}this.#e=null}get hasInitialVisibility(){return this.#r===null||this.getHash()===this.#r}getOrder(){return this.#t.size?this.#i?this.#i.slice():[...this.#t.keys()]:null}getGroups(){return this.#t.size>0?WF(this.#t):null}getGroup(t){return this.#t.get(t)||null}getHash(){if(this.#e!==null)return this.#e;const t=new Xge;for(const[r,n]of this.#t)t.update(`${r}:${n.visible}`);return this.#e=t.hexdigest()}}class y0t{constructor(t,{disableRange:r=!1,disableStream:n=!1}){Lo(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:i,initialData:o,progressiveDone:a,contentDispositionFilename:l}=t;if(this._queuedChunks=[],this._progressiveDone=a,this._contentDispositionFilename=l,o?.length>0){const d=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(d)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!n,this._isRangeSupported=!r,this._contentLength=i,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((d,u)=>{this._onReceiveData({begin:d,chunk:u})}),t.addProgressListener((d,u)=>{this._onProgress({loaded:d,total:u})}),t.addProgressiveReadListener(d=>{this._onReceiveData({chunk:d})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData({begin:t,chunk:r}){const n=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;if(t===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n);else{const i=this._rangeReaders.some(function(o){return o._begin!==t?!1:(o._enqueue(n),!0)});Lo(i,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(t){t.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:t.loaded}):this._fullRequestReader?.onProgress?.({loaded:t.loaded,total:t.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const r=this._rangeReaders.indexOf(t);r>=0&&this._rangeReaders.splice(r,1)}getFullReader(){Lo(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new v0t(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,r){if(r<=this._progressiveDataLength)return null;const n=new b0t(this,t,r);return this._pdfDataRangeTransport.requestDataRange(t,r),this._rangeReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeReaders.slice(0))r.cancel(t);this._pdfDataRangeTransport.abort()}}class v0t{constructor(t,r,n=!1,i=null){this._stream=t,this._done=n||!1,this._filename=KF(i)?i:null,this._queuedChunks=r||[],this._loaded=0;for(const o of this._queuedChunks)this._loaded+=o.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class b0t{constructor(t,r,n){this._stream=t,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length===0)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const r=this._queuedChunk;return this._queuedChunk=null,{value:r,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function w0t(e){let t=!0,r=n("filename\\*","i").exec(e);if(r){r=r[1];let p=l(r);return p=unescape(p),p=d(p),p=u(p),o(p)}if(r=a(e),r){const p=u(r);return o(p)}if(r=n("filename","i").exec(e),r){r=r[1];let p=l(r);return p=u(p),o(p)}function n(p,h){return new RegExp("(?:^|;)\\s*"+p+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',h)}function i(p,h){if(p){if(!/^[\x00-\xFF]+$/.test(h))return h;try{const f=new TextDecoder(p,{fatal:!0}),g=Ex(h);h=f.decode(g),t=!1}catch{}}return h}function o(p){return t&&/[\x80-\xff]/.test(p)&&(p=i("utf-8",p),t&&(p=i("iso-8859-1",p))),p}function a(p){const h=[];let f;const g=n("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(f=g.exec(p))!==null;){let[,v,w,x]=f;if(v=parseInt(v,10),v in h){if(v===0)break;continue}h[v]=[w,x]}const y=[];for(let v=0;v<h.length&&v in h;++v){let[w,x]=h[v];x=l(x),w&&(x=unescape(x),v===0&&(x=d(x))),y.push(x)}return y.join("")}function l(p){if(p.startsWith('"')){const h=p.slice(1).split('\\"');for(let f=0;f<h.length;++f){const g=h[f].indexOf('"');g!==-1&&(h[f]=h[f].slice(0,g),h.length=f+1),h[f]=h[f].replaceAll(/\\(.)/g,"$1")}p=h.join('"')}return p}function d(p){const h=p.indexOf("'");if(h===-1)return p;const f=p.slice(0,h),y=p.slice(h+1).replace(/^[^']*'/,"");return i(f,y)}function u(p){return!p.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(p)?p:p.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(h,f,g,y){if(g==="q"||g==="Q")return y=y.replaceAll("_"," "),y=y.replaceAll(/=([0-9a-fA-F]{2})/g,function(v,w){return String.fromCharCode(parseInt(w,16))}),i(f,y);try{y=atob(y)}catch{}return i(f,y)})}return""}function nN({getResponseHeader:e,isHttp:t,rangeChunkSize:r,disableRange:n}){const i={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(e("Content-Length"),10);return!Number.isInteger(o)||(i.suggestedLength=o,o<=2*r)||n||!t||e("Accept-Ranges")!=="bytes"||(e("Content-Encoding")||"identity")!=="identity"||(i.allowRangeRequests=!0),i}function iN(e){const t=e("Content-Disposition");if(t){let r=w0t(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch{}if(KF(r))return r}return null}function Mx(e,t){return e===404||e===0&&t.startsWith("file:")?new Tm('Missing PDF "'+t+'".'):new kx(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)}function t4e(e){return e===200||e===206}function r4e(e,t,r){return{method:"GET",headers:e,signal:r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function n4e(e){const t=new Headers;for(const r in e){const n=e[r];n!==void 0&&t.append(r,n)}return t}function i4e(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:(Xr(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}class oJ{constructor(t){this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Lo(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new x0t(this),this._fullRequestReader}getRangeReader(t,r){if(r<=this._progressiveDataLength)return null;const n=new C0t(this,t,r);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeRequestReaders.slice(0))r.cancel(t)}}class x0t{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const r=t.source;this._withCredentials=r.withCredentials||!1,this._contentLength=r.length,this._headersCapability=Promise.withResolvers(),this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._headers=n4e(this._stream.httpHeaders);const n=r.url;fetch(n,r4e(this._headers,this._withCredentials,this._abortController)).then(i=>{if(!t4e(i.status))throw Mx(i.status,n);this._reader=i.body.getReader(),this._headersCapability.resolve();const o=d=>i.headers.get(d),{allowRangeRequests:a,suggestedLength:l}=nN({getResponseHeader:o,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=l||this._contentLength,this._filename=iN(o),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Am("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:t,done:r}=await this._reader.read();return r?{value:t,done:r}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:i4e(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}class C0t{constructor(t,r,n){this._stream=t,this._reader=null,this._loaded=0;const i=t.source;this._withCredentials=i.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!i.disableStream,this._abortController=new AbortController,this._headers=n4e(this._stream.httpHeaders),this._headers.append("Range",`bytes=${r}-${n-1}`);const o=i.url;fetch(o,r4e(this._headers,this._withCredentials,this._abortController)).then(a=>{if(!t4e(a.status))throw Mx(a.status,o);this._readCapability.resolve(),this._reader=a.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:t,done:r}=await this._reader.read();return r?{value:t,done:r}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded}),{value:i4e(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}const dL=200,uL=206;function $0t(e){const t=e.response;return typeof t!="string"?t:Ex(t).buffer}class S0t{constructor(t,r={}){this.url=t,this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&r.httpHeaders||Object.create(null),this.withCredentials=r.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(t,r,n){const i={begin:t,end:r};for(const o in n)i[o]=n[o];return this.request(i)}requestFull(t){return this.request(t)}request(t){const r=new XMLHttpRequest,n=this.currXhrId++,i=this.pendingRequests[n]={xhr:r};r.open("GET",this.url),r.withCredentials=this.withCredentials;for(const o in this.httpHeaders){const a=this.httpHeaders[o];a!==void 0&&r.setRequestHeader(o,a)}return this.isHttp&&"begin"in t&&"end"in t?(r.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),i.expectedStatus=uL):i.expectedStatus=dL,r.responseType="arraybuffer",t.onError&&(r.onerror=function(o){t.onError(r.status)}),r.onreadystatechange=this.onStateChange.bind(this,n),r.onprogress=this.onProgress.bind(this,n),i.onHeadersReceived=t.onHeadersReceived,i.onDone=t.onDone,i.onError=t.onError,i.onProgress=t.onProgress,r.send(null),n}onProgress(t,r){const n=this.pendingRequests[t];n&&n.onProgress?.(r)}onStateChange(t,r){const n=this.pendingRequests[t];if(!n)return;const i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),i.readyState!==4||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],i.status===0&&this.isHttp){n.onError?.(i.status);return}const o=i.status||dL;if(!(o===dL&&n.expectedStatus===uL)&&o!==n.expectedStatus){n.onError?.(i.status);return}const l=$0t(i);if(o===uL){const d=i.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(d);n.onDone({begin:parseInt(u[1],10),chunk:l})}else l?n.onDone({begin:0,chunk:l}):n.onError?.(i.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const r=this.pendingRequests[t].xhr;delete this.pendingRequests[t],r.abort()}}class k0t{constructor(t){this._source=t,this._manager=new S0t(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const r=this._rangeRequestReaders.indexOf(t);r>=0&&this._rangeRequestReaders.splice(r,1)}getFullReader(){return Lo(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new E0t(this._manager,this._source),this._fullRequestReader}getRangeReader(t,r){const n=new _0t(this._manager,t,r);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeRequestReaders.slice(0))r.cancel(t)}}class E0t{constructor(t,r){this._manager=t;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=Promise.withResolvers(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,r=this._manager.getRequestXhr(t),n=a=>r.getResponseHeader(a),{allowRangeRequests:i,suggestedLength:o}=nN({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=iN(n),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}_onDone(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=Mx(t,this._url),this._headersReceivedCapability.reject(this._storedError);for(const r of this._requests)r.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){this.onProgress?.({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersReceivedCapability.reject(t);for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class _0t{constructor(t,r,n){this._manager=t;const i={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._requestId=t.requestRange(r,n,i),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(t){const r=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:r,done:!1}):this._queuedChunk=r,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){this._storedError=Mx(t,this._url);for(const r of this._requests)r.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){this.isStreamingSupported||this.onProgress?.({loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const r=this._queuedChunk;return this._queuedChunk=null,{value:r,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const o4e=/^file:\/\/\/[a-zA-Z]:\//;function T0t(e){const t=z1.get("url"),r=t.parse(e);return r.protocol==="file:"||r.host?r:/^[a-z]:[/\\]/i.test(e)?t.parse(`file:///${e}`):(r.host||(r.protocol="file:"),r)}class A0t{constructor(t){this.source=t,this.url=T0t(t.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Lo(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new M0t(this):new L0t(this),this._fullRequestReader}getRangeReader(t,r){if(r<=this._progressiveDataLength)return null;const n=this.isFsUrl?new P0t(this,t,r):new D0t(this,t,r);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeRequestReaders.slice(0))r.cancel(t)}}class a4e{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const r=t.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",r=>{this._error(r)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Am("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class s4e{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const r=t.source;this._isStreamingSupported=!r.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",r=>{this._error(r)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function sb(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class L0t extends a4e{constructor(t){super(t);const r=n=>{if(n.statusCode===404){const l=new Tm(`Missing PDF "${this._url}".`);this._storedError=l,this._headersCapability.reject(l);return}this._headersCapability.resolve(),this._setReadableStream(n);const i=l=>this._readableStream.headers[l.toLowerCase()],{allowRangeRequests:o,suggestedLength:a}=nN({getResponseHeader:i,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=a||this._contentLength,this._filename=iN(i)};if(this._request=null,this._url.protocol==="http:"){const n=z1.get("http");this._request=n.request(sb(this._url,t.httpHeaders),r)}else{const n=z1.get("https");this._request=n.request(sb(this._url,t.httpHeaders),r)}this._request.on("error",n=>{this._storedError=n,this._headersCapability.reject(n)}),this._request.end()}}class D0t extends s4e{constructor(t,r,n){super(t),this._httpHeaders={};for(const o in t.httpHeaders){const a=t.httpHeaders[o];a!==void 0&&(this._httpHeaders[o]=a)}this._httpHeaders.Range=`bytes=${r}-${n-1}`;const i=o=>{if(o.statusCode===404){const a=new Tm(`Missing PDF "${this._url}".`);this._storedError=a;return}this._setReadableStream(o)};if(this._request=null,this._url.protocol==="http:"){const o=z1.get("http");this._request=o.request(sb(this._url,this._httpHeaders),i)}else{const o=z1.get("https");this._request=o.request(sb(this._url,this._httpHeaders),i)}this._request.on("error",o=>{this._storedError=o}),this._request.end()}}class M0t extends a4e{constructor(t){super(t);let r=decodeURIComponent(this._url.path);o4e.test(this._url.href)&&(r=r.replace(/^\//,""));const n=z1.get("fs");n.promises.lstat(r).then(i=>{this._contentLength=i.size,this._setReadableStream(n.createReadStream(r)),this._headersCapability.resolve()},i=>{i.code==="ENOENT"&&(i=new Tm(`Missing PDF "${r}".`)),this._storedError=i,this._headersCapability.reject(i)})}}class P0t extends s4e{constructor(t,r,n){super(t);let i=decodeURIComponent(this._url.path);o4e.test(this._url.href)&&(i=i.replace(/^\//,""));const o=z1.get("fs");this._setReadableStream(o.createReadStream(i,{start:r,end:n-1}))}}const I0t=1e5,ls=30,j0t=.8;let lb=class t1{#e=Promise.withResolvers();#t=null;#r=!1;#i=!!globalThis.FontInspector?.enabled;#s=null;#n=null;#o=0;#l=0;#d=null;#u=null;#h=0;#c=0;#a=Object.create(null);#m=[];#g=null;#p=[];#v=new WeakMap;#f=null;static#b=new Map;static#x=new Map;static#$=null;static#k=new Set;constructor({textContentSource:t,container:r,viewport:n}){if(t instanceof ReadableStream)this.#g=t;else if(typeof t=="object")this.#g=new ReadableStream({start(d){d.enqueue(t),d.close()}});else throw new Error('No "textContentSource" parameter specified.');this.#t=this.#u=r,this.#c=n.scale*(globalThis.devicePixelRatio||1),this.#h=n.rotation,this.#n={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:null};const{pageWidth:i,pageHeight:o,pageX:a,pageY:l}=n.rawDims;this.#f=[1,0,0,-1,-a,l+o],this.#l=i,this.#o=o,t1.#y(),lm(r,n),this.#e.promise.catch(()=>{}).then(()=>{t1.#k.delete(this),this.#n=null,this.#a=null})}render(){const t=()=>{this.#d.read().then(({value:r,done:n})=>{if(n){this.#e.resolve();return}this.#s??=r.lang,Object.assign(this.#a,r.styles),this.#E(r.items),t()},this.#e.reject)};return this.#d=this.#g.getReader(),t1.#k.add(this),t(),this.#e.promise}update({viewport:t,onBefore:r=null}){const n=t.scale*(globalThis.devicePixelRatio||1),i=t.rotation;if(i!==this.#h&&(r?.(),this.#h=i,lm(this.#u,{rotation:i})),n!==this.#c){r?.(),this.#c=n;const o={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:t1.#w(this.#s)};for(const a of this.#p)o.properties=this.#v.get(a),o.div=a,this.#S(o)}}cancel(){const t=new Am("TextLayer task cancelled.");this.#d?.cancel(t).catch(()=>{}),this.#d=null,this.#e.reject(t)}get textDivs(){return this.#p}get textContentItemsStr(){return this.#m}#E(t){if(this.#r)return;this.#n.ctx??=t1.#w(this.#s);const r=this.#p,n=this.#m;for(const i of t){if(r.length>I0t){Xr("Ignoring additional textDivs for performance reasons."),this.#r=!0;return}if(i.str===void 0){if(i.type==="beginMarkedContentProps"||i.type==="beginMarkedContent"){const o=this.#t;this.#t=document.createElement("span"),this.#t.classList.add("markedContent"),i.id!==null&&this.#t.setAttribute("id",`${i.id}`),o.append(this.#t)}else i.type==="endMarkedContent"&&(this.#t=this.#t.parentNode);continue}n.push(i.str),this.#L(i)}}#L(t){const r=document.createElement("span"),n={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};this.#p.push(r);const i=ar.transform(this.#f,t.transform);let o=Math.atan2(i[1],i[0]);const a=this.#a[t.fontName];a.vertical&&(o+=Math.PI/2);const l=this.#i&&a.fontSubstitution||a.fontFamily,d=Math.hypot(i[2],i[3]),u=d*t1.#C(l,this.#s);let p,h;o===0?(p=i[4],h=i[5]-u):(p=i[4]+u*Math.sin(o),h=i[5]-u*Math.cos(o));const f="calc(var(--scale-factor)*",g=r.style;this.#t===this.#u?(g.left=`${(100*p/this.#l).toFixed(2)}%`,g.top=`${(100*h/this.#o).toFixed(2)}%`):(g.left=`${f}${p.toFixed(2)}px)`,g.top=`${f}${h.toFixed(2)}px)`),g.fontSize=`${f}${(t1.#$*d).toFixed(2)}px)`,g.fontFamily=l,n.fontSize=d,r.setAttribute("role","presentation"),r.textContent=t.str,r.dir=t.dir,this.#i&&(r.dataset.fontName=a.fontSubstitutionLoadedName||t.fontName),o!==0&&(n.angle=o*(180/Math.PI));let y=!1;if(t.str.length>1)y=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){const v=Math.abs(t.transform[0]),w=Math.abs(t.transform[3]);v!==w&&Math.max(v,w)/Math.min(v,w)>1.5&&(y=!0)}if(y&&(n.canvasWidth=a.vertical?t.height:t.width),this.#v.set(r,n),this.#n.div=r,this.#n.properties=n,this.#S(this.#n),n.hasText&&this.#t.append(r),n.hasEOL){const v=document.createElement("br");v.setAttribute("role","presentation"),this.#t.append(v)}}#S(t){const{div:r,properties:n,ctx:i,prevFontSize:o,prevFontFamily:a}=t,{style:l}=r;let d="";if(t1.#$>1&&(d=`scale(${1/t1.#$})`),n.canvasWidth!==0&&n.hasText){const{fontFamily:u}=l,{canvasWidth:p,fontSize:h}=n;(o!==h||a!==u)&&(i.font=`${h*this.#c}px ${u}`,t.prevFontSize=h,t.prevFontFamily=u);const{width:f}=i.measureText(r.textContent);f>0&&(d=`scaleX(${p*this.#c/f}) ${d}`)}n.angle!==0&&(d=`rotate(${n.angle}deg) ${d}`),d.length>0&&(l.transform=d)}static cleanup(){if(!(this.#k.size>0)){this.#b.clear();for(const{canvas:t}of this.#x.values())t.remove();this.#x.clear()}}static#w(t=null){let r=this.#x.get(t||="");if(!r){const n=document.createElement("canvas");n.className="hiddenCanvasElement",n.lang=t,document.body.append(n),r=n.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#x.set(t,r)}return r}static#y(){if(this.#$!==null)return;const t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.textContent="X",document.body.append(t),this.#$=t.getBoundingClientRect().height,t.remove()}static#C(t,r){const n=this.#b.get(t);if(n)return n;const i=this.#w(r),o=i.font;i.canvas.width=i.canvas.height=ls,i.font=`${ls}px ${t}`;const a=i.measureText("");let l=a.fontBoundingBoxAscent,d=Math.abs(a.fontBoundingBoxDescent);if(l){const h=l/(l+d);return this.#b.set(t,h),i.canvas.width=i.canvas.height=0,i.font=o,h}i.strokeStyle="red",i.clearRect(0,0,ls,ls),i.strokeText("g",0,0);let u=i.getImageData(0,0,ls,ls).data;d=0;for(let h=u.length-1-3;h>=0;h-=4)if(u[h]>0){d=Math.ceil(h/4/ls);break}i.clearRect(0,0,ls,ls),i.strokeText("A",0,ls),u=i.getImageData(0,0,ls,ls).data,l=0;for(let h=0,f=u.length;h<f;h+=4)if(u[h]>0){l=ls-Math.floor(h/4/ls);break}i.canvas.width=i.canvas.height=0,i.font=o;const p=l?l/(l+d):j0t;return this.#b.set(t,p),p}};function R0t(){Kge("`renderTextLayer`, please use `TextLayer` instead.");const{textContentSource:e,container:t,viewport:r,...n}=arguments[0],i=Object.keys(n);i.length>0&&Xr("Ignoring `renderTextLayer` parameters: "+i.join(", "));const o=new lb({textContentSource:e,container:t,viewport:r}),{textDivs:a,textContentItemsStr:l}=o;return{promise:o.render(),textDivs:a,textContentItemsStr:l}}function O0t(){Kge("`updateTextLayer`, please use `TextLayer` instead.")}class L7{static textContent(t){const r=[],n={items:r,styles:Object.create(null)};function i(o){if(!o)return;let a=null;const l=o.name;if(l==="#text")a=o.value;else if(L7.shouldBuildText(l))o?.attributes?.textContent?a=o.attributes.textContent:o.value&&(a=o.value);else return;if(a!==null&&r.push({str:a}),!!o.children)for(const d of o.children)i(d)}return i(t),n}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}}const F0t=65536,N0t=100,z0t=5e3,B0t=ka?X2t:N2t,H0t=ka?J2t:qge,V0t=ka?Q2t:F2t,U0t=ka?e0t:Zge;function W0t(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new oN,{docId:r}=t,n=e.url?Y0t(e.url):null,i=e.data?G0t(e.data):null,o=e.httpHeaders||null,a=e.withCredentials===!0,l=e.password??null,d=e.range instanceof l4e?e.range:null,u=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:F0t;let p=e.worker instanceof El?e.worker:null;const h=e.verbosity,f=typeof e.docBaseUrl=="string"&&!ZF(e.docBaseUrl)?e.docBaseUrl:null,g=typeof e.cMapUrl=="string"?e.cMapUrl:null,y=e.cMapPacked!==!1,v=e.CMapReaderFactory||H0t,w=typeof e.standardFontDataUrl=="string"?e.standardFontDataUrl:null,x=e.StandardFontDataFactory||U0t,$=e.stopAtErrors!==!0,S=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,k=e.isEvalSupported!==!1,T=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!ka,E=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,A=typeof e.disableFontFace=="boolean"?e.disableFontFace:ka,P=e.fontExtraProperties===!0,D=e.enableXfa===!0,O=e.ownerDocument||globalThis.document,V=e.disableRange===!0,j=e.disableStream===!0,q=e.disableAutoFetch===!0,W=e.pdfBug===!0,F=e.enableHWA===!0,H=d?d.length:e.length??NaN,I=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!ka&&!A,L=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:v===qge&&x===Zge&&g&&w&&R5(g,document.baseURI)&&R5(w,document.baseURI),z=e.canvasFactory||new B0t({ownerDocument:O,enableHWA:F}),B=e.filterFactory||new V0t({docId:r,ownerDocument:O}),ee=null;_2t(h);const Z={canvasFactory:z,filterFactory:B};if(L||(Z.cMapReaderFactory=new v({baseUrl:g,isCompressed:y}),Z.standardFontDataFactory=new x({baseUrl:w})),!p){const X={verbosity:h,port:A7.workerPort};p=X.port?El.fromPort(X):new El(X),t._worker=p}const U={docId:r,apiVersion:"4.4.168",data:i,password:l,disableAutoFetch:q,rangeChunkSize:u,length:H,docBaseUrl:f,enableXfa:D,evaluatorOptions:{maxImageSize:S,disableFontFace:A,ignoreErrors:$,isEvalSupported:k,isOffscreenCanvasSupported:T,canvasMaxAreaInBytes:E,fontExtraProperties:P,useSystemFonts:I,cMapUrl:L?g:null,standardFontDataUrl:L?w:null}},Q={disableFontFace:A,fontExtraProperties:P,ownerDocument:O,pdfBug:W,styleElement:ee,loadingParams:{disableAutoFetch:q,enableXfa:D}};return p.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(p.destroyed)throw new Error("Worker was destroyed");const X=p.messageHandler.sendWithPromise("GetDocRequest",U,i?[i.buffer]:null);let ae;if(d)ae=new y0t(d,{disableRange:V,disableStream:j});else if(!i){if(!n)throw new Error("getDocument - no `url` parameter provided.");ae=(ce=>ka?function(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype}()&&R5(ce.url)?new oJ(ce):new A0t(ce):R5(ce.url)?new oJ(ce):new k0t(ce))({url:n,length:H,httpHeaders:o,withCredentials:a,rangeChunkSize:u,disableRange:V,disableStream:j})}return X.then(fe=>{if(t.destroyed)throw new Error("Loading aborted");if(p.destroyed)throw new Error("Worker was destroyed");const ce=new O5(r,fe,p.port),se=new Q0t(ce,t,ae,Q,Z);t._transport=se,ce.send("Ready",null)})}).catch(t._capability.reject),t}function Y0t(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(ka&&typeof e=="string")return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function G0t(e){if(ka&&typeof rv<"u"&&e instanceof rv)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e=="string")return Ex(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof e=="object"&&!isNaN(e?.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function aJ(e){return typeof e=="object"&&Number.isInteger(e?.num)&&e.num>=0&&Number.isInteger(e?.gen)&&e.gen>=0}class oN{static#e=0;constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${oN.#e++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(t){throw this._worker?.port&&delete this._worker._pendingDestroy,t}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}let l4e=class{constructor(t,r,n=!1,i=null){this.length=t,this.initialData=r,this.progressiveDone=n,this.contentDispositionFilename=i,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,r){for(const n of this._rangeListeners)n(t,r)}onDataProgress(t,r){this._readyCapability.promise.then(()=>{for(const n of this._progressListeners)n(t,r)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const r of this._progressiveReadListeners)r(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,r){ti("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};class q0t{constructor(t,r){this._pdfInfo=t,this._transport=r}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return bn(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){const{renderingIntent:r}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(r)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class Z0t{#e=null;#t=!1;constructor(t,r,n,i=!1){this._pageIndex=t,this._pageInfo=r,this._transport=n,this._stats=i?new YX:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new c4e,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:r=this.rotate,offsetX:n=0,offsetY:i=0,dontFlip:o=!1}={}){return new m6({viewBox:this.view,scale:t,rotation:r,offsetX:n,offsetY:i,dontFlip:o})}getAnnotations({intent:t="display"}={}){const{renderingIntent:r}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,r)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return bn(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:t,viewport:r,intent:n="display",annotationMode:i=K2.ENABLE,transform:o=null,background:a=null,optionalContentConfigPromise:l=null,annotationCanvasMap:d=null,pageColors:u=null,printAnnotationStorage:p=null}){this._stats?.time("Overall");const h=this._transport.getRenderingIntent(n,i,p),{renderingIntent:f,cacheKey:g}=h;this.#t=!1,this.#i(),l||=this._transport.getOptionalContentConfig(f);let y=this._intentStates.get(g);y||(y=Object.create(null),this._intentStates.set(g,y)),y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);const v=!!(f&Sl.PRINT);y.displayReadyCapability||(y.displayReadyCapability=Promise.withResolvers(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(h));const w=S=>{y.renderTasks.delete(x),(this._maybeCleanupAfterRender||v)&&(this.#t=!0),this.#r(!v),S?(x.capability.reject(S),this._abortOperatorList({intentState:y,reason:S instanceof Error?S:new Error(S)})):x.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},x=new mf({callback:w,params:{canvasContext:t,viewport:r,transform:o,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:d,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!v,pdfBug:this._pdfBug,pageColors:u});(y.renderTasks||=new Set).add(x);const $=x.task;return Promise.all([y.displayReadyCapability.promise,l]).then(([S,k])=>{if(this.destroyed){w();return}if(this._stats?.time("Rendering"),!(k.renderingIntent&f))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");x.initializeGraphics({transparency:S,optionalContentConfig:k}),x.operatorListChanged()}).catch(w),$}getOperatorList({intent:t="display",annotationMode:r=K2.ENABLE,printAnnotationStorage:n=null}={}){function i(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(l))}const o=this._transport.getRenderingIntent(t,r,n,!0);let a=this._intentStates.get(o.cacheKey);a||(a=Object.create(null),this._intentStates.set(o.cacheKey,a));let l;return a.opListReadCapability||(l=Object.create(null),l.operatorListChanged=i,a.opListReadCapability=Promise.withResolvers(),(a.renderTasks||=new Set).add(l),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(o)),a.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:r=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:r===!0},{highWaterMark:100,size(i){return i.items.length}})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(n=>L7.textContent(n));const r=this.streamTextContent(t);return new Promise(function(n,i){function o(){a.read().then(function({value:d,done:u}){if(u){n(l);return}l.lang??=d.lang,Object.assign(l.styles,d.styles),l.items.push(...d.items),o()},i)}const a=r.getReader(),l={items:[],styles:Object.create(null),lang:null};o()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const r of this._intentStates.values())if(this._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),!r.opListReadCapability)for(const n of r.renderTasks)t.push(n.completed),n.cancel();return this.objs.clear(),this.#t=!1,this.#i(),Promise.all(t)}cleanup(t=!1){this.#t=!0;const r=this.#r(!1);return t&&r&&(this._stats&&=new YX),r}#r(t=!1){if(this.#i(),!this.#t||this.destroyed)return!1;if(t)return this.#e=setTimeout(()=>{this.#e=null,this.#r(!1)},z0t),!1;for(const{renderTasks:r,operatorList:n}of this._intentStates.values())if(r.size>0||!n.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#t=!1,!0}#i(){this.#e&&(clearTimeout(this.#e),this.#e=null)}_startRenderPage(t,r){const n=this._intentStates.get(r);n&&(this._stats?.timeEnd("Page Request"),n.displayReadyCapability?.resolve(t))}_renderPageChunk(t,r){for(let n=0,i=t.length;n<i;n++)r.operatorList.fnArray.push(t.fnArray[n]),r.operatorList.argsArray.push(t.argsArray[n]);r.operatorList.lastChunk=t.lastChunk,r.operatorList.separateAnnots=t.separateAnnots;for(const n of r.renderTasks)n.operatorListChanged();t.lastChunk&&this.#r(!0)}_pumpOperatorList({renderingIntent:t,cacheKey:r,annotationStorageSerializable:n}){const{map:i,transfer:o}=n,l=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:r,annotationStorage:i},o).getReader(),d=this._intentStates.get(r);d.streamReader=l;const u=()=>{l.read().then(({value:p,done:h})=>{if(h){d.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(p,d),u())},p=>{if(d.streamReader=null,!this._transport.destroyed){if(d.operatorList){d.operatorList.lastChunk=!0;for(const h of d.renderTasks)h.operatorListChanged();this.#r(!0)}if(d.displayReadyCapability)d.displayReadyCapability.reject(p);else if(d.opListReadCapability)d.opListReadCapability.reject(p);else throw p}})};u()}_abortOperatorList({intentState:t,reason:r,force:n=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!n){if(t.renderTasks.size>0)return;if(r instanceof qF){let i=N0t;r.extraDelay>0&&r.extraDelay<1e3&&(i+=r.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:r,force:!0})},i);return}}if(t.streamReader.cancel(new Am(r.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[i,o]of this._intentStates)if(o===t){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}}class K0t{#e=new Set;#t=Promise.resolve();postMessage(t,r){const n={data:structuredClone(t,r?{transfer:r}:null)};this.#t.then(()=>{for(const i of this.#e)i.call(this,n)})}addEventListener(t,r){this.#e.add(r)}removeEventListener(t,r){this.#e.delete(r)}terminate(){this.#e.clear()}}const Iu={isWorkerDisabled:!1,fakeWorkerId:0};ka&&(Iu.isWorkerDisabled=!0,A7.workerSrc||="./pdf.worker.mjs"),Iu.isSameOrigin=function(e,t){let r;try{if(r=new URL(e),!r.origin||r.origin==="null")return!1}catch{return!1}const n=new URL(t,r);return r.origin===n.origin},Iu.createCDNWrapper=function(e){const t=`await import("${e}");`;return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))};class El{static#e;constructor({name:t=null,port:r=null,verbosity:n=T2t()}={}){if(this.name=t,this.destroyed=!1,this.verbosity=n,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,r){if(El.#e?.has(r))throw new Error("Cannot use more than one PDFWorker per port.");(El.#e||=new WeakMap).set(r,this),this._initializeFromPort(r);return}this._initialize()}get promise(){return ka?Promise.all([z1.promise,this._readyCapability.promise]):this._readyCapability.promise}#t(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new O5("main","worker",t),this._messageHandler.on("ready",function(){}),this.#t()}_initialize(){if(Iu.isWorkerDisabled||El.#r){this._setupFakeWorker();return}let{workerSrc:t}=El;try{Iu.isSameOrigin(window.location.href,t)||(t=Iu.createCDNWrapper(new URL(t,window.location).href));const r=new Worker(t,{type:"module"}),n=new O5("main","worker",r),i=()=>{o.abort(),n.destroy(),r.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=new AbortController;r.addEventListener("error",()=>{this._webWorker||i()},{signal:o.signal}),n.on("test",l=>{if(o.abort(),this.destroyed||!l){i();return}this._messageHandler=n,this._port=r,this._webWorker=r,this.#t()}),n.on("ready",l=>{if(o.abort(),this.destroyed){i();return}try{a()}catch{this._setupFakeWorker()}});const a=()=>{const l=new Uint8Array;n.send("test",l,[l.buffer])};a();return}catch{Sx("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){Iu.isWorkerDisabled||(Xr("Setting up fake worker."),Iu.isWorkerDisabled=!0),El._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const r=new K0t;this._port=r;const n=`fake${Iu.fakeWorkerId++}`,i=new O5(n+"_worker",n,r);t.setup(i,r),this._messageHandler=new O5(n,n+"_worker",r),this.#t()}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),El.#e?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(t){if(!t?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const r=this.#e?.get(t.port);if(r){if(r._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return r}return new El(t)}static get workerSrc(){if(A7.workerSrc)return A7.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#r(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return bn(this,"_setupFakeWorkerGlobal",(async()=>this.#r?this.#r:(await import(this.workerSrc)).WorkerMessageHandler)())}}class Q0t{#e=new Map;#t=new Map;#r=new Map;#i=new Map;#s=null;constructor(t,r,n,i,o){this.messageHandler=t,this.loadingTask=r,this.commonObjs=new c4e,this.fontLoader=new Z2t({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=o.canvasFactory,this.filterFactory=o.filterFactory,this.cMapReaderFactory=o.cMapReaderFactory,this.standardFontDataFactory=o.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}#n(t,r=null){const n=this.#e.get(t);if(n)return n;const i=this.messageHandler.sendWithPromise(t,r);return this.#e.set(t,i),i}get annotationStorage(){return bn(this,"annotationStorage",new tN)}getRenderingIntent(t,r=K2.ENABLE,n=null,i=!1){let o=Sl.DISPLAY,a=cj;switch(t){case"any":o=Sl.ANY;break;case"display":break;case"print":o=Sl.PRINT;break;default:Xr(`getRenderingIntent - invalid intent: ${t}`)}switch(r){case K2.DISABLE:o+=Sl.ANNOTATIONS_DISABLE;break;case K2.ENABLE:break;case K2.ENABLE_FORMS:o+=Sl.ANNOTATIONS_FORMS;break;case K2.ENABLE_STORAGE:o+=Sl.ANNOTATIONS_STORAGE,a=(o&Sl.PRINT&&n instanceof Jge?n:this.annotationStorage).serializable;break;default:Xr(`getRenderingIntent - invalid annotationMode: ${r}`)}return i&&(o+=Sl.OPLIST),{renderingIntent:o,cacheKey:`${o}_${a.hash}`,annotationStorageSerializable:a}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#s?.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const n of this.#t.values())t.push(n._destroy());this.#t.clear(),this.#r.clear(),this.#i.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const r=this.messageHandler.sendWithPromise("Terminate",null);return t.push(r),Promise.all(t).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),lb.cleanup(),this._networkStream?.cancelAllRequests(new Am("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:r}=this;t.on("GetReader",(n,i)=>{Lo(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=o=>{this._lastProgress={loaded:o.loaded,total:o.total}},i.onPull=()=>{this._fullReader.read().then(function({value:o,done:a}){if(a){i.close();return}Lo(o instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(o),1,[o])}).catch(o=>{i.error(o)})},i.onCancel=o=>{this._fullReader.cancel(o),i.ready.catch(a=>{if(!this.destroyed)throw a})}}),t.on("ReaderHeadersReady",n=>{const i=Promise.withResolvers(),o=this._fullReader;return o.headersReady.then(()=>{(!o.isStreamingSupported||!o.isRangeSupported)&&(this._lastProgress&&r.onProgress?.(this._lastProgress),o.onProgress=a=>{r.onProgress?.({loaded:a.loaded,total:a.total})}),i.resolve({isStreamingSupported:o.isStreamingSupported,isRangeSupported:o.isRangeSupported,contentLength:o.contentLength})},i.reject),i.promise}),t.on("GetRangeReader",(n,i)=>{Lo(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const o=this._networkStream.getRangeReader(n.begin,n.end);if(!o){i.close();return}i.onPull=()=>{o.read().then(function({value:a,done:l}){if(l){i.close();return}Lo(a instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{i.error(a)})},i.onCancel=a=>{o.cancel(a),i.ready.catch(l=>{if(!this.destroyed)throw l})}}),t.on("GetDoc",({pdfInfo:n})=>{this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,r._capability.resolve(new q0t(n,this))}),t.on("DocException",function(n){let i;switch(n.name){case"PasswordException":i=new sj(n.message,n.code);break;case"InvalidPDFException":i=new Wge(n.message);break;case"MissingPDFException":i=new Tm(n.message);break;case"UnexpectedResponseException":i=new kx(n.message,n.status);break;case"UnknownErrorException":i=new lj(n.message,n.details);break;default:ti("DocException - expected a valid Error.")}r._capability.reject(i)}),t.on("PasswordRequest",n=>{if(this.#s=Promise.withResolvers(),r.onPassword){const i=o=>{o instanceof Error?this.#s.reject(o):this.#s.resolve({password:o})};try{r.onPassword(i,n.code)}catch(o){this.#s.reject(o)}}else this.#s.reject(new sj(n.message,n.code));return this.#s.promise}),t.on("DataLoaded",n=>{r.onProgress?.({loaded:n.length,total:n.length}),this.downloadInfoCapability.resolve(n)}),t.on("StartRenderPage",n=>{if(this.destroyed)return;this.#t.get(n.pageIndex)._startRenderPage(n.transparency,n.cacheKey)}),t.on("commonobj",([n,i,o])=>{if(this.destroyed||this.commonObjs.has(n))return null;switch(i){case"Font":const{disableFontFace:a,fontExtraProperties:l,pdfBug:d}=this._params;if("error"in o){const f=o.error;Xr(`Error during font loading: ${f}`),this.commonObjs.resolve(n,f);break}const u=d&&globalThis.FontInspector?.enabled?(f,g)=>globalThis.FontInspector.fontAdded(f,g):null,p=new K2t(o,{disableFontFace:a,inspectFont:u});this.fontLoader.bind(p).catch(()=>t.sendWithPromise("FontFallback",{id:n})).finally(()=>{!l&&p.data&&(p.data=null),this.commonObjs.resolve(n,p)});break;case"CopyLocalImage":const{imageRef:h}=o;Lo(h,"The imageRef must be defined.");for(const f of this.#t.values())for(const[,g]of f.objs)if(g?.ref===h)return g.dataLen?(this.commonObjs.resolve(n,structuredClone(g)),g.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,o);break;default:throw new Error(`Got unknown common object type ${i}`)}return null}),t.on("obj",([n,i,o,a])=>{if(this.destroyed)return;const l=this.#t.get(i);if(!l.objs.has(n)){if(l._intentStates.size===0){a?.bitmap?.close();return}switch(o){case"Image":l.objs.resolve(n,a),a?.dataLen>$2t&&(l._maybeCleanupAfterRender=!0);break;case"Pattern":l.objs.resolve(n,a);break;default:throw new Error(`Got unknown object type ${o}`)}}}),t.on("DocProgress",n=>{this.destroyed||r.onProgress?.({loaded:n.loaded,total:n.total})}),t.on("FetchBuiltInCMap",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(n):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),t.on("FetchStandardFontData",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(n):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&Xr("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:t,transfer:r}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:this._fullReader?.filename??null},r).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const r=t-1,n=this.#r.get(r);if(n)return n;const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then(o=>{if(this.destroyed)throw new Error("Transport destroyed");o.refStr&&this.#i.set(o.refStr,t);const a=new Z0t(r,o,this,this._params.pdfBug);return this.#t.set(r,a),a});return this.#r.set(r,i),i}getPageIndex(t){return aJ(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(t,r){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:r})}getFieldObjects(){return this.#n("GetFieldObjects")}hasJSActions(){return this.#n("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#n("GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return this.#n("GetOptionalContentConfig").then(r=>new g0t(r,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",r=this.#e.get(t);if(r)return r;const n=this.messageHandler.sendWithPromise(t,null).then(i=>({info:i[0],metadata:i[1]?new m0t(i[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(t,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const r of this.#t.values())if(!r.cleanup())throw new Error(`startCleanup: Page ${r.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),lb.cleanup()}}cachedPageNumber(t){if(!aJ(t))return null;const r=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return this.#i.get(r)??null}}const O9=Symbol("INITIAL_DATA");class c4e{#e=Object.create(null);#t(t){return this.#e[t]||={...Promise.withResolvers(),data:O9}}get(t,r=null){if(r){const i=this.#t(t);return i.promise.then(()=>r(i.data)),null}const n=this.#e[t];if(!n||n.data===O9)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return n.data}has(t){const r=this.#e[t];return!!r&&r.data!==O9}resolve(t,r=null){const n=this.#t(t);n.data=r,n.resolve()}clear(){for(const t in this.#e){const{data:r}=this.#e[t];r?.bitmap?.close()}this.#e=Object.create(null)}*[Symbol.iterator](){for(const t in this.#e){const{data:r}=this.#e[t];r!==O9&&(yield[t,r])}}}class X0t{#e=null;constructor(t){this.#e=t,this.onContinue=null}get promise(){return this.#e.capability.promise}cancel(t=0){this.#e.cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=this.#e.operatorList;if(!t)return!1;const{annotationCanvasMap:r}=this.#e;return t.form||t.canvas&&r?.size>0}}class mf{#e=null;static#t=new WeakSet;constructor({callback:t,params:r,objs:n,commonObjs:i,annotationCanvasMap:o,operatorList:a,pageIndex:l,canvasFactory:d,filterFactory:u,useRequestAnimationFrame:p=!1,pdfBug:h=!1,pageColors:f=null}){this.callback=t,this.params=r,this.objs=n,this.commonObjs=i,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=l,this.canvasFactory=d,this.filterFactory=u,this._pdfBug=h,this.pageColors=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=p===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new X0t(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:r}){if(this.cancelled)return;if(this._canvas){if(mf.#t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");mf.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:n,viewport:i,transform:o,background:a}=this.params;this.gfx=new _f(n,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:r},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:i,transparency:t,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(t=null,r=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null),mf.#t.delete(this._canvas),this.callback(t||new qF(`Rendering cancelled, page ${this._pageIndex+1}`,r))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),mf.#t.delete(this._canvas),this.callback())))}}const J0t="4.4.168",ept="19fbc8998";function sJ(e){return Math.floor(Math.max(0,Math.min(1,e))*255).toString(16).padStart(2,"0")}function Y4(e){return Math.max(0,Math.min(255,255*e))}class lJ{static CMYK_G([t,r,n,i]){return["G",1-Math.min(1,.3*t+.59*n+.11*r+i)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return t=Y4(t),[t,t,t]}static G_HTML([t]){const r=sJ(t);return`#${r}${r}${r}`}static RGB_G([t,r,n]){return["G",.3*t+.59*r+.11*n]}static RGB_rgb(t){return t.map(Y4)}static RGB_HTML(t){return`#${t.map(sJ).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,r,n,i]){return["RGB",1-Math.min(1,t+i),1-Math.min(1,n+i),1-Math.min(1,r+i)]}static CMYK_rgb([t,r,n,i]){return[Y4(1-Math.min(1,t+i)),Y4(1-Math.min(1,n+i)),Y4(1-Math.min(1,r+i))]}static CMYK_HTML(t){const r=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(r)}static RGB_CMYK([t,r,n]){const i=1-t,o=1-r,a=1-n,l=Math.min(i,o,a);return["CMYK",i,o,a,l]}}class d4e{static setupStorage(t,r,n,i,o){const a=i.getValue(r,{value:null});switch(n.name){case"textarea":if(a.value!==null&&(t.textContent=a.value),o==="print")break;t.addEventListener("input",l=>{i.setValue(r,{value:l.target.value})});break;case"input":if(n.attributes.type==="radio"||n.attributes.type==="checkbox"){if(a.value===n.attributes.xfaOn?t.setAttribute("checked",!0):a.value===n.attributes.xfaOff&&t.removeAttribute("checked"),o==="print")break;t.addEventListener("change",l=>{i.setValue(r,{value:l.target.checked?l.target.getAttribute("xfaOn"):l.target.getAttribute("xfaOff")})})}else{if(a.value!==null&&t.setAttribute("value",a.value),o==="print")break;t.addEventListener("input",l=>{i.setValue(r,{value:l.target.value})})}break;case"select":if(a.value!==null){t.setAttribute("value",a.value);for(const l of n.children)l.attributes.value===a.value?l.attributes.selected=!0:l.attributes.hasOwnProperty("selected")&&delete l.attributes.selected}t.addEventListener("input",l=>{const d=l.target.options,u=d.selectedIndex===-1?"":d[d.selectedIndex].value;i.setValue(r,{value:u})});break}}static setAttributes({html:t,element:r,storage:n=null,intent:i,linkService:o}){const{attributes:a}=r,l=t instanceof HTMLAnchorElement;a.type==="radio"&&(a.name=`${a.name}-${i}`);for(const[d,u]of Object.entries(a))if(u!=null)switch(d){case"class":u.length&&t.setAttribute(d,u.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",u);break;case"style":Object.assign(t.style,u);break;case"textContent":t.textContent=u;break;default:(!l||d!=="href"&&d!=="newWindow")&&t.setAttribute(d,u)}l&&o.addLinkAttributes(t,a.href,a.newWindow),n&&a.dataId&&this.setupStorage(t,a.dataId,r,n)}static render(t){const r=t.annotationStorage,n=t.linkService,i=t.xfaHtml,o=t.intent||"display",a=document.createElement(i.name);i.attributes&&this.setAttributes({html:a,element:i,intent:o,linkService:n});const l=o!=="richText",d=t.div;if(d.append(a),t.viewport){const h=`matrix(${t.viewport.transform.join(",")})`;d.style.transform=h}l&&d.setAttribute("class","xfaLayer xfaFont");const u=[];if(i.children.length===0){if(i.value){const h=document.createTextNode(i.value);a.append(h),l&&L7.shouldBuildText(i.name)&&u.push(h)}return{textDivs:u}}const p=[[i,-1,a]];for(;p.length>0;){const[h,f,g]=p.at(-1);if(f+1===h.children.length){p.pop();continue}const y=h.children[++p.at(-1)[1]];if(y===null)continue;const{name:v}=y;if(v==="#text"){const x=document.createTextNode(y.value);u.push(x),g.append(x);continue}const w=y?.attributes?.xmlns?document.createElementNS(y.attributes.xmlns,v):document.createElement(v);if(g.append(w),y.attributes&&this.setAttributes({html:w,element:y,storage:r,intent:o,linkService:n}),y.children?.length>0)p.push([y,-1,w]);else if(y.value){const x=document.createTextNode(y.value);l&&L7.shouldBuildText(v)&&u.push(x),w.append(x)}}for(const h of d.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))h.setAttribute("readOnly",!0);return{textDivs:u}}static update(t){const r=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=r,t.div.hidden=!1}}const y6=1e3,tpt=9,cm=new WeakSet;function t2(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class rpt{static create(t){switch(t.data.annotationType){case ko.LINK:return new u4e(t);case ko.TEXT:return new npt(t);case ko.WIDGET:switch(t.data.fieldType){case"Tx":return new ipt(t);case"Btn":return t.data.radioButton?new p4e(t):t.data.checkBox?new apt(t):new spt(t);case"Ch":return new lpt(t);case"Sig":return new opt(t)}return new Lm(t);case ko.POPUP:return new hj(t);case ko.FREETEXT:return new h4e(t);case ko.LINE:return new dpt(t);case ko.SQUARE:return new upt(t);case ko.CIRCLE:return new ppt(t);case ko.POLYLINE:return new m4e(t);case ko.CARET:return new mpt(t);case ko.INK:return new f4e(t);case ko.POLYGON:return new hpt(t);case ko.HIGHLIGHT:return new fpt(t);case ko.UNDERLINE:return new gpt(t);case ko.SQUIGGLY:return new ypt(t);case ko.STRIKEOUT:return new vpt(t);case ko.STAMP:return new g4e(t);case ko.FILEATTACHMENT:return new bpt(t);default:return new eo(t)}}}class eo{#e=null;#t=!1;#r=null;constructor(t,{isRenderable:r=!1,ignoreBorder:n=!1,createQuadrilaterals:i=!1}={}){this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,r&&(this.container=this._createContainer(n)),i&&this._createQuadrilaterals()}static _hasPopupData({titleObj:t,contentsObj:r,richText:n}){return!!(t?.str||r?.str||n?.str)}get hasPopupData(){return eo._hasPopupData(this.data)}updateEdited(t){if(!this.container)return;this.#e||={rect:this.data.rect.slice(0)};const{rect:r}=t;r&&this.#i(r),this.#r?.popup.updateEdited(t)}resetEdited(){this.#e&&(this.#i(this.#e.rect),this.#r?.popup.resetEdited(),this.#e=null)}#i(t){const{container:{style:r},data:{rect:n,rotation:i},parent:{viewport:{rawDims:{pageWidth:o,pageHeight:a,pageX:l,pageY:d}}}}=this;n?.splice(0,4,...t);const{width:u,height:p}=t2(t);r.left=`${100*(t[0]-l)/o}%`,r.top=`${100*(a-t[3]+d)/a}%`,i===0?(r.width=`${100*u/o}%`,r.height=`${100*p/a}%`):this.setRotation(i)}_createContainer(t){const{data:r,parent:{page:n,viewport:i}}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",r.id),this instanceof Lm||(o.tabIndex=y6);const{style:a}=o;if(a.zIndex=this.parent.zIndex++,r.popupRef&&o.setAttribute("aria-haspopup","dialog"),r.alternativeText&&(o.title=r.alternativeText),r.noRotate&&o.classList.add("norotate"),!r.rect||this instanceof hj){const{rotation:v}=r;return!r.hasOwnCanvas&&v!==0&&this.setRotation(v,o),o}const{width:l,height:d}=t2(r.rect);if(!t&&r.borderStyle.width>0){a.borderWidth=`${r.borderStyle.width}px`;const v=r.borderStyle.horizontalCornerRadius,w=r.borderStyle.verticalCornerRadius;if(v>0||w>0){const $=`calc(${v}px * var(--scale-factor)) / calc(${w}px * var(--scale-factor))`;a.borderRadius=$}else if(this instanceof p4e){const $=`calc(${l}px * var(--scale-factor)) / calc(${d}px * var(--scale-factor))`;a.borderRadius=$}switch(r.borderStyle.style){case U4.SOLID:a.borderStyle="solid";break;case U4.DASHED:a.borderStyle="dashed";break;case U4.BEVELED:Xr("Unimplemented border style: beveled");break;case U4.INSET:Xr("Unimplemented border style: inset");break;case U4.UNDERLINE:a.borderBottomStyle="solid";break}const x=r.borderColor||null;x?(this.#t=!0,a.borderColor=ar.makeHexColor(x[0]|0,x[1]|0,x[2]|0)):a.borderWidth=0}const u=ar.normalizeRect([r.rect[0],n.view[3]-r.rect[1]+n.view[1],r.rect[2],n.view[3]-r.rect[3]+n.view[1]]),{pageWidth:p,pageHeight:h,pageX:f,pageY:g}=i.rawDims;a.left=`${100*(u[0]-f)/p}%`,a.top=`${100*(u[1]-g)/h}%`;const{rotation:y}=r;return r.hasOwnCanvas||y===0?(a.width=`${100*l/p}%`,a.height=`${100*d/h}%`):this.setRotation(y,o),o}setRotation(t,r=this.container){if(!this.data.rect)return;const{pageWidth:n,pageHeight:i}=this.parent.viewport.rawDims,{width:o,height:a}=t2(this.data.rect);let l,d;t%180===0?(l=100*o/n,d=100*a/i):(l=100*a/n,d=100*o/i),r.style.width=`${l}%`,r.style.height=`${d}%`,r.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const t=(r,n,i)=>{const o=i.detail[r],a=o[0],l=o.slice(1);i.target.style[n]=lJ[`${a}_HTML`](l),this.annotationStorage.setValue(this.data.id,{[n]:lJ[`${a}_rgb`](l)})};return bn(this,"_commonActions",{display:r=>{const{display:n}=r.detail,i=n%2===1;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:i,noPrint:n===1||n===2})},print:r=>{this.annotationStorage.setValue(this.data.id,{noPrint:!r.detail.print})},hidden:r=>{const{hidden:n}=r.detail;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:n,noView:n})},focus:r=>{setTimeout(()=>r.target.focus({preventScroll:!1}),0)},userName:r=>{r.target.title=r.detail.userName},readonly:r=>{r.target.disabled=r.detail.readonly},required:r=>{this._setRequired(r.target,r.detail.required)},bgColor:r=>{t("bgColor","backgroundColor",r)},fillColor:r=>{t("fillColor","backgroundColor",r)},fgColor:r=>{t("fgColor","color",r)},textColor:r=>{t("textColor","color",r)},borderColor:r=>{t("borderColor","borderColor",r)},strokeColor:r=>{t("strokeColor","borderColor",r)},rotation:r=>{const n=r.detail.rotation;this.setRotation(n),this.annotationStorage.setValue(this.data.id,{rotation:n})}})}_dispatchEventFromSandbox(t,r){const n=this._commonActions;for(const i of Object.keys(r.detail))(t[i]||n[i])?.(r)}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const r=this.annotationStorage.getRawValue(this.data.id);if(!r)return;const n=this._commonActions;for(const[i,o]of Object.entries(r)){const a=n[i];if(a){const l={detail:{[i]:o},target:t};a(l),delete r[i]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:t}=this.data;if(!t)return;const[r,n,i,o]=this.data.rect.map(v=>Math.fround(v));if(t.length===8){const[v,w,x,$]=t.subarray(2,6);if(i===v&&o===w&&r===x&&n===$)return}const{style:a}=this.container;let l;if(this.#t){const{borderColor:v,borderWidth:w}=a;a.borderWidth=0,l=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${v}" stroke-width="${w}">`],this.container.classList.add("hasBorder")}const d=i-r,u=o-n,{svgFactory:p}=this,h=p.createElement("svg");h.classList.add("quadrilateralsContainer"),h.setAttribute("width",0),h.setAttribute("height",0);const f=p.createElement("defs");h.append(f);const g=p.createElement("clipPath"),y=`clippath_${this.data.id}`;g.setAttribute("id",y),g.setAttribute("clipPathUnits","objectBoundingBox"),f.append(g);for(let v=2,w=t.length;v<w;v+=8){const x=t[v],$=t[v+1],S=t[v+2],k=t[v+3],T=p.createElement("rect"),E=(S-r)/d,A=(o-$)/u,P=(x-S)/d,D=($-k)/u;T.setAttribute("x",E),T.setAttribute("y",A),T.setAttribute("width",P),T.setAttribute("height",D),g.append(T),l?.push(`<rect vector-effect="non-scaling-stroke" x="${E}" y="${A}" width="${P}" height="${D}"/>`)}this.#t&&(l.push("</g></svg>')"),a.backgroundImage=l.join("")),this.container.append(h),this.container.style.clipPath=`url(#${y})`}_createPopup(){const{container:t,data:r}=this;t.setAttribute("aria-haspopup","dialog");const n=this.#r=new hj({data:{color:r.color,titleObj:r.titleObj,modificationDate:r.modificationDate,contentsObj:r.contentsObj,richText:r.richText,parentRect:r.rect,borderStyle:0,id:`popup_${r.id}`,rotation:r.rotation},parent:this.parent,elements:[this]});this.parent.div.append(n.render())}render(){ti("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,r=null){const n=[];if(this._fieldObjects){const i=this._fieldObjects[t];if(i)for(const{page:o,id:a,exportValues:l}of i){if(o===-1||a===r)continue;const d=typeof l=="string"?l:null,u=document.querySelector(`[data-element-id="${a}"]`);if(u&&!cm.has(u)){Xr(`_getElementsByName - element not allowed: ${a}`);continue}n.push({id:a,exportValue:d,domElement:u})}return n}for(const i of document.getElementsByName(t)){const{exportValue:o}=i,a=i.getAttribute("data-element-id");a!==r&&cm.has(i)&&n.push({id:a,exportValue:o,domElement:i})}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(const r of t)r.classList.add("highlightArea");else t.classList.add("highlightArea")}get _isEditable(){return!1}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:t,data:{id:r}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:t,editId:r})})}}class u4e extends eo{constructor(t,r=null){super(t,{isRenderable:!0,ignoreBorder:!!r?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=t.data.isTooltipOnly}render(){const{data:t,linkService:r}=this,n=document.createElement("a");n.setAttribute("data-element-id",t.id);let i=!1;return t.url?(r.addLinkAttributes(n,t.url,t.newWindow),i=!0):t.action?(this._bindNamedAction(n,t.action),i=!0):t.attachment?(this.#t(n,t.attachment,t.attachmentDest),i=!0):t.setOCGState?(this.#r(n,t.setOCGState),i=!0):t.dest?(this._bindLink(n,t.dest),i=!0):(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,t),i=!0),t.resetForm?(this._bindResetFormAction(n,t.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(n,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&this.container.append(n),this.container}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(t,r){t.href=this.linkService.getDestinationHash(r),t.onclick=()=>(r&&this.linkService.goToDestination(r),!1),(r||r==="")&&this.#e()}_bindNamedAction(t,r){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(r),!1),this.#e()}#t(t,r,n=null){t.href=this.linkService.getAnchorUrl(""),r.description&&(t.title=r.description),t.onclick=()=>(this.downloadManager?.openOrDownloadData(r.content,r.filename,n),!1),this.#e()}#r(t,r){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeSetOCGState(r),!1),this.#e()}_bindJSAction(t,r){t.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const i of Object.keys(r.actions)){const o=n.get(i);o&&(t[o]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r.id,name:i}}),!1))}t.onclick||(t.onclick=()=>!1),this.#e()}_bindResetFormAction(t,r){const n=t.onclick;if(n||(t.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){Xr('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),n||(t.onclick=()=>!1);return}t.onclick=()=>{n?.();const{fields:i,refs:o,include:a}=r,l=[];if(i.length!==0||o.length!==0){const p=new Set(o);for(const h of i){const f=this._fieldObjects[h]||[];for(const{id:g}of f)p.add(g)}for(const h of Object.values(this._fieldObjects))for(const f of h)p.has(f.id)===a&&l.push(f)}else for(const p of Object.values(this._fieldObjects))l.push(...p);const d=this.annotationStorage,u=[];for(const p of l){const{id:h}=p;switch(u.push(h),p.type){case"text":{const g=p.defaultValue||"";d.setValue(h,{value:g});break}case"checkbox":case"radiobutton":{const g=p.defaultValue===p.exportValues;d.setValue(h,{value:g});break}case"combobox":case"listbox":{const g=p.defaultValue||"";d.setValue(h,{value:g});break}default:continue}const f=document.querySelector(`[data-element-id="${h}"]`);if(f){if(!cm.has(f)){Xr(`_bindResetFormAction - element not allowed: ${h}`);continue}}else continue;f.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}}),!1}}}class npt extends eo{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class Lm extends eo{render(){return this.container}showElementAndHideCanvas(t){this.data.hasOwnCanvas&&(t.previousSibling?.nodeName==="CANVAS"&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return xs.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,r,n,i,o){n.includes("mouse")?t.addEventListener(n,a=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:o(a),shift:a.shiftKey,modifier:this._getKeyModifier(a)}})}):t.addEventListener(n,a=>{if(n==="blur"){if(!r.focused||!a.relatedTarget)return;r.focused=!1}else if(n==="focus"){if(r.focused)return;r.focused=!0}o&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:o(a)}})})}_setEventListeners(t,r,n,i){for(const[o,a]of n)(a==="Action"||this.data.actions?.[a])&&((a==="Focus"||a==="Blur")&&(r||={focused:!1}),this._setEventListener(t,r,o,a,i),a==="Focus"&&!this.data.actions?.Blur?this._setEventListener(t,r,"blur","Blur",null):a==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(t,r,"focus","Focus",null))}_setBackgroundColor(t){const r=this.data.backgroundColor||null;t.style.backgroundColor=r===null?"transparent":ar.makeHexColor(r[0],r[1],r[2])}_setTextStyle(t){const r=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||tpt,o=t.style;let a;const l=2,d=u=>Math.round(10*u)/10;if(this.data.multiLine){const u=Math.abs(this.data.rect[3]-this.data.rect[1]-l),p=Math.round(u/(aL*i))||1,h=u/p;a=Math.min(i,d(h/aL))}else{const u=Math.abs(this.data.rect[3]-this.data.rect[1]-l);a=Math.min(i,d(u/aL))}o.fontSize=`calc(${a}px * var(--scale-factor))`,o.color=ar.makeHexColor(n[0],n[1],n[2]),this.data.textAlignment!==null&&(o.textAlign=r[this.data.textAlignment])}_setRequired(t,r){r?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",r)}}class ipt extends Lm{constructor(t){const r=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:r})}setPropertyOnSiblings(t,r,n,i){const o=this.annotationStorage;for(const a of this._getElementsByName(t.name,t.id))a.domElement&&(a.domElement[r]=n),o.setValue(a.id,{[i]:n})}render(){const t=this.annotationStorage,r=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){const i=t.getValue(r,{value:this.data.fieldValue});let o=i.value||"";const a=t.getValue(r,{charLimit:this.data.maxLen}).charLimit;a&&o.length>a&&(o=o.slice(0,a));let l=i.formattedValue||this.data.textContent?.join(`
|
|
289
|
+
`);return t.join("")}}function R5(e,t){try{const{protocol:r}=t?new URL(e,t):new URL(e);return r==="http:"||r==="https:"}catch{return!1}}function ks(e){e.preventDefault()}function Kge(e){console.log("Deprecated API usage: "+e)}let GX;class Qge{static toDateObject(t){if(!t||typeof t!="string")return null;GX||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const r=GX.exec(t);if(!r)return null;const n=parseInt(r[1],10);let i=parseInt(r[2],10);i=i>=1&&i<=12?i-1:0;let o=parseInt(r[3],10);o=o>=1&&o<=31?o:1;let a=parseInt(r[4],10);a=a>=0&&a<=23?a:0;let l=parseInt(r[5],10);l=l>=0&&l<=59?l:0;let d=parseInt(r[6],10);d=d>=0&&d<=59?d:0;const u=r[7]||"Z";let p=parseInt(r[8],10);p=p>=0&&p<=23?p:0;let h=parseInt(r[9],10)||0;return h=h>=0&&h<=59?h:0,u==="-"?(a+=p,l+=h):u==="+"&&(a-=p,l-=h),new Date(Date.UTC(n,i,o,a,l,d))}}function H2t(e,{scale:t=1,rotation:r=0}){const{width:n,height:i}=e.attributes.style,o=[0,0,parseInt(n),parseInt(i)];return new m6({viewBox:o,scale:t,rotation:r})}function QF(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(t&16711680)>>16,(t&65280)>>8,t&255]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map(t=>parseInt(t)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(Xr(`Not a valid color format: "${e}"`),[0,0,0])}function V2t(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const r of e.keys()){t.style.color=r;const n=window.getComputedStyle(t).color;e.set(r,QF(n))}t.remove()}function Mi(e){const{a:t,b:r,c:n,d:i,e:o,f:a}=e.getTransform();return[t,r,n,i,o,a]}function gu(e){const{a:t,b:r,c:n,d:i,e:o,f:a}=e.getTransform().invertSelf();return[t,r,n,i,o,a]}function lm(e,t,r=!1,n=!0){if(t instanceof m6){const{pageWidth:i,pageHeight:o}=t.rawDims,{style:a}=e,l=xs.isCSSRoundSupported,d=`var(--scale-factor) * ${i}px`,u=`var(--scale-factor) * ${o}px`,p=l?`round(${d}, 1px)`:`calc(${d})`,h=l?`round(${u}, 1px)`:`calc(${u})`;!r||t.rotation%180===0?(a.width=p,a.height=h):(a.width=h,a.height=p)}n&&e.setAttribute("data-main-rotation",t.rotation)}class XF{#e=null;#t=null;#r;#i=null;constructor(t){this.#r=t}render(){const t=this.#e=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar");const r=this.#r._uiManager._signal;t.addEventListener("contextmenu",ks,{signal:r}),t.addEventListener("pointerdown",XF.#s,{signal:r});const n=this.#i=document.createElement("div");n.className="buttons",t.append(n);const i=this.#r.toolbarPosition;if(i){const{style:o}=t,a=this.#r._uiManager.direction==="ltr"?1-i[0]:i[0];o.insetInlineEnd=`${100*a}%`,o.top=`calc(${100*i[1]}% + var(--editor-toolbar-vert-offset))`}return this.#d(),t}static#s(t){t.stopPropagation()}#n(t){this.#r._focusEventsAllowed=!1,t.preventDefault(),t.stopPropagation()}#o(t){this.#r._focusEventsAllowed=!0,t.preventDefault(),t.stopPropagation()}#l(t){const r=this.#r._uiManager._signal;t.addEventListener("focusin",this.#n.bind(this),{capture:!0,signal:r}),t.addEventListener("focusout",this.#o.bind(this),{capture:!0,signal:r}),t.addEventListener("contextmenu",ks,{signal:r})}hide(){this.#e.classList.add("hidden"),this.#t?.hideDropdown()}show(){this.#e.classList.remove("hidden")}#d(){const t=document.createElement("button");t.className="delete",t.tabIndex=0,t.setAttribute("data-l10n-id",`pdfjs-editor-remove-${this.#r.editorType}-button`),this.#l(t),t.addEventListener("click",r=>{this.#r._uiManager.delete()},{signal:this.#r._uiManager._signal}),this.#i.append(t)}get#u(){const t=document.createElement("div");return t.className="divider",t}addAltTextButton(t){this.#l(t),this.#i.prepend(t,this.#u)}addColorPicker(t){this.#t=t;const r=t.renderButton();this.#l(r),this.#i.prepend(r,this.#u)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}}class U2t{#e=null;#t=null;#r;constructor(t){this.#r=t}#i(){const t=this.#t=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",ks,{signal:this.#r._signal});const r=this.#e=document.createElement("div");return r.className="buttons",t.append(r),this.#n(),t}#s(t,r){let n=0,i=0;for(const o of t){const a=o.y+o.height;if(a<n)continue;const l=o.x+(r?o.width:0);if(a>n){i=l,n=a;continue}r?l>i&&(i=l):l<i&&(i=l)}return[r?1-i:i,n]}show(t,r,n){const[i,o]=this.#s(r,n),{style:a}=this.#t||=this.#i();t.append(this.#t),a.insetInlineEnd=`${100*i}%`,a.top=`calc(${100*o}% + var(--editor-toolbar-vert-offset))`}hide(){this.#t.remove()}#n(){const t=document.createElement("button");t.className="highlightButton",t.tabIndex=0,t.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const r=document.createElement("span");t.append(r),r.className="visuallyHidden",r.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const n=this.#r._signal;t.addEventListener("contextmenu",ks,{signal:n}),t.addEventListener("click",()=>{this.#r.highlightSelection("floating_button")},{signal:n}),this.#e.append(t)}}function ab(e,t,r){for(const n of r)t.addEventListener(n,e[n].bind(e))}function W2t(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")}class Y2t{#e=0;get id(){return`${S2t}${this.#e++}`}}class JF{#e=O2t();#t=0;#r=null;static get _isSVGFittingCanvas(){const t='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',n=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),i=new Image;i.src=t;const o=i.decode().then(()=>(n.drawImage(i,0,0,1,1,0,0,1,3),new Uint32Array(n.getImageData(0,0,1,1).data.buffer)[0]===0));return bn(this,"_isSVGFittingCanvas",o)}async#i(t,r){this.#r||=new Map;let n=this.#r.get(t);if(n===null)return null;if(n?.bitmap)return n.refCounter+=1,n;try{n||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let i;if(typeof r=="string"?(n.url=r,i=await Dx(r,"blob")):i=n.file=r,i.type==="image/svg+xml"){const o=JF._isSVGFittingCanvas,a=new FileReader,l=new Image,d=new Promise((u,p)=>{l.onload=()=>{n.bitmap=l,n.isSvg=!0,u()},a.onload=async()=>{const h=n.svgUrl=a.result;l.src=await o?`${h}#svgView(preserveAspectRatio(none))`:h},l.onerror=a.onerror=p});a.readAsDataURL(i),await d}else n.bitmap=await createImageBitmap(i);n.refCounter=1}catch(i){console.error(i),n=null}return this.#r.set(t,n),n&&this.#r.set(n.id,n),n}async getFromFile(t){const{lastModified:r,name:n,size:i,type:o}=t;return this.#i(`${r}_${n}_${i}_${o}`,t)}async getFromUrl(t){return this.#i(t,t)}async getFromId(t){this.#r||=new Map;const r=this.#r.get(t);return r?r.bitmap?(r.refCounter+=1,r):r.file?this.getFromFile(r.file):this.getFromUrl(r.url):null}getSvgUrl(t){const r=this.#r.get(t);return r?.isSvg?r.svgUrl:null}deleteId(t){this.#r||=new Map;const r=this.#r.get(t);r&&(r.refCounter-=1,r.refCounter===0&&(r.bitmap=null))}isValidId(t){return t.startsWith(`image_${this.#e}_`)}}class G2t{#e=[];#t=!1;#r;#i=-1;constructor(t=128){this.#r=t}add({cmd:t,undo:r,post:n,mustExec:i,type:o=NaN,overwriteIfSameType:a=!1,keepUndo:l=!1}){if(i&&t(),this.#t)return;const d={cmd:t,undo:r,post:n,type:o};if(this.#i===-1){this.#e.length>0&&(this.#e.length=0),this.#i=0,this.#e.push(d);return}if(a&&this.#e[this.#i].type===o){l&&(d.undo=this.#e[this.#i].undo),this.#e[this.#i]=d;return}const u=this.#i+1;u===this.#r?this.#e.splice(0,1):(this.#i=u,u<this.#e.length&&this.#e.splice(u)),this.#e.push(d)}undo(){if(this.#i===-1)return;this.#t=!0;const{undo:t,post:r}=this.#e[this.#i];t(),r?.(),this.#t=!1,this.#i-=1}redo(){if(this.#i<this.#e.length-1){this.#i+=1,this.#t=!0;const{cmd:t,post:r}=this.#e[this.#i];t(),r?.(),this.#t=!1}}hasSomethingToUndo(){return this.#i!==-1}hasSomethingToRedo(){return this.#i<this.#e.length-1}destroy(){this.#e=null}}class f6{constructor(t){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:r}=xs.platform;for(const[n,i,o={}]of t)for(const a of n){const l=a.startsWith("mac+");r&&l?(this.callbacks.set(a.slice(4),{callback:i,options:o}),this.allKeys.add(a.split("+").at(-1))):!r&&!l&&(this.callbacks.set(a,{callback:i,options:o}),this.allKeys.add(a.split("+").at(-1)))}}#e(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);const r=this.buffer.join("+");return this.buffer.length=0,r}exec(t,r){if(!this.allKeys.has(r.key))return;const n=this.callbacks.get(this.#e(r));if(!n)return;const{callback:i,options:{bubbles:o=!1,args:a=[],checker:l=null}}=n;l&&!l(t,r)||(i.bind(t,...a,r)(),o||(r.stopPropagation(),r.preventDefault()))}}class eN{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const t=new Map([["CanvasText",null],["Canvas",null]]);return V2t(t),bn(this,"_colors",t)}convert(t){const r=QF(t);if(!window.matchMedia("(forced-colors: active)").matches)return r;for(const[n,i]of this._colors)if(i.every((o,a)=>o===r[a]))return eN._colorsMapping.get(n);return r}getHexCode(t){const r=this._colors.get(t);return r?ar.makeHexColor(...r):t}}class P0{#e=new AbortController;#t=null;#r=new Map;#i=new Map;#s=null;#n=null;#o=null;#l=new G2t;#d=0;#u=new Set;#h=null;#c=null;#a=new Set;#m=!1;#g=null;#p=null;#v=null;#f=!1;#b=null;#x=new Y2t;#$=!1;#k=!1;#E=null;#L=null;#S=null;#w=fn.NONE;#y=new Set;#C=null;#_=null;#T=null;#M=this.blur.bind(this);#D=this.focus.bind(this);#j=this.copy.bind(this);#P=this.cut.bind(this);#R=this.paste.bind(this);#I=this.keydown.bind(this);#U=this.keyup.bind(this);#W=this.onEditingAction.bind(this);#H=this.onPageChanging.bind(this);#z=this.onScaleChanging.bind(this);#O=this.onRotationChanging.bind(this);#Z={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#V=[0,0];#F=null;#B=null;#K=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const t=P0.prototype,r=a=>a.#B.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&a.hasSomethingToControl(),n=(a,{target:l})=>{if(l instanceof HTMLInputElement){const{type:d}=l;return d!=="text"&&d!=="number"}return!0},i=this.TRANSLATE_SMALL,o=this.TRANSLATE_BIG;return bn(this,"_keyboardManager",new f6([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],t.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:n}],[["Enter","mac+Enter"],t.addNewEditorFromKeyboard,{checker:(a,{target:l})=>!(l instanceof HTMLButtonElement)&&a.#B.contains(l)&&!a.isEnterHandled}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(a,{target:l})=>!(l instanceof HTMLButtonElement)&&a.#B.contains(document.activeElement)}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-i,0],checker:r}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-o,0],checker:r}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[i,0],checker:r}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[o,0],checker:r}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-i],checker:r}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-o],checker:r}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,i],checker:r}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,o],checker:r}]]))}constructor(t,r,n,i,o,a,l,d,u){this._signal=this.#e.signal,this.#B=t,this.#K=r,this.#s=n,this._eventBus=i,this._eventBus._on("editingaction",this.#W),this._eventBus._on("pagechanging",this.#H),this._eventBus._on("scalechanging",this.#z),this._eventBus._on("rotationchanging",this.#O),this.#ie(),this.#le(),this.#Q(),this.#n=o.annotationStorage,this.#g=o.filterFactory,this.#_=a,this.#v=l||null,this.#m=d,this.#S=u||null,this.viewParameters={realScale:Jf.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}destroy(){this.#e?.abort(),this.#e=null,this._signal=null,this._eventBus._off("editingaction",this.#W),this._eventBus._off("pagechanging",this.#H),this._eventBus._off("scalechanging",this.#z),this._eventBus._off("rotationchanging",this.#O);for(const t of this.#i.values())t.destroy();this.#i.clear(),this.#r.clear(),this.#a.clear(),this.#t=null,this.#y.clear(),this.#l.destroy(),this.#s?.destroy(),this.#b?.hide(),this.#b=null,this.#p&&(clearTimeout(this.#p),this.#p=null),this.#F&&(clearTimeout(this.#F),this.#F=null)}async mlGuess(t){return this.#S?.guess(t)||null}get hasMLManager(){return!!this.#S}get hcmFilter(){return bn(this,"hcmFilter",this.#_?this.#g.addHCMFilter(this.#_.foreground,this.#_.background):"none")}get direction(){return bn(this,"direction",getComputedStyle(this.#B).direction)}get highlightColors(){return bn(this,"highlightColors",this.#v?new Map(this.#v.split(",").map(t=>t.split("=").map(r=>r.trim()))):null)}get highlightColorNames(){return bn(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}setMainHighlightColorPicker(t){this.#L=t}editAltText(t){this.#s?.editAltText(this,t)}onPageChanging({pageNumber:t}){this.#d=t-1}focusMainContainer(){this.#B.focus()}findParent(t,r){for(const n of this.#i.values()){const{x:i,y:o,width:a,height:l}=n.div.getBoundingClientRect();if(t>=i&&t<=i+a&&r>=o&&r<=o+l)return n}return null}disableUserSelect(t=!1){this.#K.classList.toggle("noUserSelect",t)}addShouldRescale(t){this.#a.add(t)}removeShouldRescale(t){this.#a.delete(t)}onScaleChanging({scale:t}){this.commitOrRemove(),this.viewParameters.realScale=t*Jf.PDF_TO_CSS_UNITS;for(const r of this.#a)r.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}#G({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t}highlightSelection(t=""){const r=document.getSelection();if(!r||r.isCollapsed)return;const{anchorNode:n,anchorOffset:i,focusNode:o,focusOffset:a}=r,l=r.toString(),u=this.#G(r).closest(".textLayer"),p=this.getSelectionBoxes(u);if(p){r.empty(),this.#w===fn.NONE&&(this._eventBus.dispatch("showannotationeditorui",{source:this,mode:fn.HIGHLIGHT}),this.showAllEditors("highlight",!0,!0));for(const h of this.#i.values())if(h.hasTextLayer(u)){h.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:p,anchorNode:n,anchorOffset:i,focusNode:o,focusOffset:a,text:l});break}}}#re(){const t=document.getSelection();if(!t||t.isCollapsed)return;const n=this.#G(t).closest(".textLayer"),i=this.getSelectionBoxes(n);i&&(this.#b||=new U2t(this),this.#b.show(n,i,this.direction==="ltr"))}addToAnnotationStorage(t){!t.isEmpty()&&this.#n&&!this.#n.has(t.id)&&this.#n.setValue(t.id,t)}#ne(){const t=document.getSelection();if(!t||t.isCollapsed){this.#C&&(this.#b?.hide(),this.#C=null,this.#A({hasSelectedText:!1}));return}const{anchorNode:r}=t;if(r===this.#C)return;if(!this.#G(t).closest(".textLayer")){this.#C&&(this.#b?.hide(),this.#C=null,this.#A({hasSelectedText:!1}));return}if(this.#b?.hide(),this.#C=r,this.#A({hasSelectedText:!0}),!(this.#w!==fn.HIGHLIGHT&&this.#w!==fn.NONE)&&(this.#w===fn.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#f=this.isShiftKeyDown,!this.isShiftKeyDown)){const o=this._signal,a=l=>{l.type==="pointerup"&&l.button!==0||(window.removeEventListener("pointerup",a),window.removeEventListener("blur",a),l.type==="pointerup"&&this.#q("main_toolbar"))};window.addEventListener("pointerup",a,{signal:o}),window.addEventListener("blur",a,{signal:o})}}#q(t=""){this.#w===fn.HIGHLIGHT?this.highlightSelection(t):this.#m&&this.#re()}#ie(){document.addEventListener("selectionchange",this.#ne.bind(this),{signal:this._signal})}#oe(){const t=this._signal;window.addEventListener("focus",this.#D,{signal:t}),window.addEventListener("blur",this.#M,{signal:t})}#ae(){window.removeEventListener("focus",this.#D),window.removeEventListener("blur",this.#M)}blur(){if(this.isShiftKeyDown=!1,this.#f&&(this.#f=!1,this.#q("main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const r of this.#y)if(r.div.contains(t)){this.#E=[r,t],r._focusEventsAllowed=!1;break}}focus(){if(!this.#E)return;const[t,r]=this.#E;this.#E=null,r.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),r.focus()}#Q(){const t=this._signal;window.addEventListener("keydown",this.#I,{signal:t}),window.addEventListener("keyup",this.#U,{signal:t})}#se(){window.removeEventListener("keydown",this.#I),window.removeEventListener("keyup",this.#U)}#X(){const t=this._signal;document.addEventListener("copy",this.#j,{signal:t}),document.addEventListener("cut",this.#P,{signal:t}),document.addEventListener("paste",this.#R,{signal:t})}#J(){document.removeEventListener("copy",this.#j),document.removeEventListener("cut",this.#P),document.removeEventListener("paste",this.#R)}#le(){const t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})}addEditListeners(){this.#Q(),this.#X()}removeEditListeners(){this.#se(),this.#J()}dragOver(t){for(const{type:r}of t.dataTransfer.items)for(const n of this.#c)if(n.isHandlingMimeForPasting(r)){t.dataTransfer.dropEffect="copy",t.preventDefault();return}}drop(t){for(const r of t.dataTransfer.items)for(const n of this.#c)if(n.isHandlingMimeForPasting(r.type)){n.paste(r,this.currentLayer),t.preventDefault();return}}copy(t){if(t.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;const r=[];for(const n of this.#y){const i=n.serialize(!0);i&&r.push(i)}r.length!==0&&t.clipboardData.setData("application/pdfjs",JSON.stringify(r))}cut(t){this.copy(t),this.delete()}paste(t){t.preventDefault();const{clipboardData:r}=t;for(const o of r.items)for(const a of this.#c)if(a.isHandlingMimeForPasting(o.type)){a.paste(o,this.currentLayer);return}let n=r.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(o){Xr(`paste: "${o.message}".`);return}if(!Array.isArray(n))return;this.unselectAll();const i=this.currentLayer;try{const o=[];for(const d of n){const u=i.deserialize(d);if(!u)return;o.push(u)}const a=()=>{for(const d of o)this.#ee(d);this.#te(o)},l=()=>{for(const d of o)d.remove()};this.addCommands({cmd:a,undo:l,mustExec:!0})}catch(o){Xr(`paste: "${o.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),this.#w!==fn.NONE&&!this.isEditorHandlingKeyboard&&P0._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,this.#f&&(this.#f=!1,this.#q("main_toolbar")))}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}#A(t){Object.entries(t).some(([n,i])=>this.#Z[n]!==i)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#Z,t)}),this.#w===fn.HIGHLIGHT&&t.hasSelectedEditor===!1&&this.#N([[Pr.HIGHLIGHT_FREE,!0]]))}#N(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})}setEditingState(t){t?(this.#oe(),this.#X(),this.#A({isEditing:this.#w!==fn.NONE,isEmpty:this.#Y(),hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:this.#l.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ae(),this.#J(),this.#A({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!this.#c){this.#c=t;for(const r of this.#c)this.#N(r.defaultPropertiesToUpdate)}}getId(){return this.#x.id}get currentLayer(){return this.#i.get(this.#d)}getLayer(t){return this.#i.get(t)}get currentPageIndex(){return this.#d}addLayer(t){this.#i.set(t.pageIndex,t),this.#$?t.enable():t.disable()}removeLayer(t){this.#i.delete(t.pageIndex)}updateMode(t,r=null,n=!1){if(this.#w!==t){if(this.#w=t,t===fn.NONE){this.setEditingState(!1),this.#de();return}this.setEditingState(!0),this.#ce(),this.unselectAll();for(const i of this.#i.values())i.updateMode(t);if(!r&&n){this.addNewEditorFromKeyboard();return}if(r){for(const i of this.#r.values())if(i.annotationElementId===r){this.setSelected(i),i.enterInEditMode();break}}}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==this.#w&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,r){if(this.#c){switch(t){case Pr.CREATE:this.currentLayer.addNewEditor();return;case Pr.HIGHLIGHT_DEFAULT_COLOR:this.#L?.updateColor(r);break;case Pr.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#T||=new Map).set(t,r),this.showAllEditors("highlight",r);break}for(const n of this.#y)n.updateParams(t,r);for(const n of this.#c)n.updateDefaultParams(t,r)}}showAllEditors(t,r,n=!1){for(const o of this.#r.values())o.editorType===t&&o.show(r);(this.#T?.get(Pr.HIGHLIGHT_SHOW_ALL)??!0)!==r&&this.#N([[Pr.HIGHLIGHT_SHOW_ALL,r]])}enableWaiting(t=!1){if(this.#k!==t){this.#k=t;for(const r of this.#i.values())t?r.disableClick():r.enableClick(),r.div.classList.toggle("waiting",t)}}#ce(){if(!this.#$){this.#$=!0;for(const t of this.#i.values())t.enable();for(const t of this.#r.values())t.enable()}}#de(){if(this.unselectAll(),this.#$){this.#$=!1;for(const t of this.#i.values())t.disable();for(const t of this.#r.values())t.disable()}}getEditors(t){const r=[];for(const n of this.#r.values())n.pageIndex===t&&r.push(n);return r}getEditor(t){return this.#r.get(t)}addEditor(t){this.#r.set(t.id,t)}removeEditor(t){t.div.contains(document.activeElement)&&(this.#p&&clearTimeout(this.#p),this.#p=setTimeout(()=>{this.focusMainContainer(),this.#p=null},0)),this.#r.delete(t.id),this.unselect(t),(!t.annotationElementId||!this.#u.has(t.annotationElementId))&&this.#n?.remove(t.id)}addDeletedAnnotationElement(t){this.#u.add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return this.#u.has(t)}removeDeletedAnnotationElement(t){this.#u.delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}#ee(t){const r=this.#i.get(t.pageIndex);r?r.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))}setActiveEditor(t){this.#t!==t&&(this.#t=t,t&&this.#N(t.propertiesToUpdate))}get#ue(){let t=null;for(t of this.#y);return t}updateUI(t){this.#ue===t&&this.#N(t.propertiesToUpdate)}toggleSelected(t){if(this.#y.has(t)){this.#y.delete(t),t.unselect(),this.#A({hasSelectedEditor:this.hasSelection});return}this.#y.add(t),t.select(),this.#N(t.propertiesToUpdate),this.#A({hasSelectedEditor:!0})}setSelected(t){for(const r of this.#y)r!==t&&r.unselect();this.#y.clear(),this.#y.add(t),t.select(),this.#N(t.propertiesToUpdate),this.#A({hasSelectedEditor:!0})}isSelected(t){return this.#y.has(t)}get firstSelectedEditor(){return this.#y.values().next().value}unselect(t){t.unselect(),this.#y.delete(t),this.#A({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#y.size!==0}get isEnterHandled(){return this.#y.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#l.undo(),this.#A({hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#Y()})}redo(){this.#l.redo(),this.#A({hasSomethingToUndo:!0,hasSomethingToRedo:this.#l.hasSomethingToRedo(),isEmpty:this.#Y()})}addCommands(t){this.#l.add(t),this.#A({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#Y()})}#Y(){if(this.#r.size===0)return!0;if(this.#r.size===1)for(const t of this.#r.values())return t.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const t=[...this.#y],r=()=>{for(const i of t)i.remove()},n=()=>{for(const i of t)this.#ee(i)};this.addCommands({cmd:r,undo:n,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#te(t){for(const r of this.#y)r.unselect();this.#y.clear();for(const r of t)r.isEmpty()||(this.#y.add(r),r.select());this.#A({hasSelectedEditor:this.hasSelection})}selectAll(){for(const t of this.#y)t.commit();this.#te(this.#r.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#w!==fn.NONE))&&this.hasSelection){for(const t of this.#y)t.unselect();this.#y.clear(),this.#A({hasSelectedEditor:!1})}}translateSelectedEditors(t,r,n=!1){if(n||this.commitOrRemove(),!this.hasSelection)return;this.#V[0]+=t,this.#V[1]+=r;const[i,o]=this.#V,a=[...this.#y],l=1e3;this.#F&&clearTimeout(this.#F),this.#F=setTimeout(()=>{this.#F=null,this.#V[0]=this.#V[1]=0,this.addCommands({cmd:()=>{for(const d of a)this.#r.has(d.id)&&d.translateInPage(i,o)},undo:()=>{for(const d of a)this.#r.has(d.id)&&d.translateInPage(-i,-o)},mustExec:!1})},l);for(const d of a)d.translateInPage(t,r)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#h=new Map;for(const t of this.#y)this.#h.set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#h)return!1;this.disableUserSelect(!1);const t=this.#h;this.#h=null;let r=!1;for(const[{x:i,y:o,pageIndex:a},l]of t)l.newX=i,l.newY=o,l.newPageIndex=a,r||=i!==l.savedX||o!==l.savedY||a!==l.savedPageIndex;if(!r)return!1;const n=(i,o,a,l)=>{if(this.#r.has(i.id)){const d=this.#i.get(l);d?i._setParentAndPosition(d,o,a):(i.pageIndex=l,i.x=o,i.y=a)}};return this.addCommands({cmd:()=>{for(const[i,{newX:o,newY:a,newPageIndex:l}]of t)n(i,o,a,l)},undo:()=>{for(const[i,{savedX:o,savedY:a,savedPageIndex:l}]of t)n(i,o,a,l)},mustExec:!0}),!0}dragSelectedEditors(t,r){if(this.#h)for(const n of this.#h.keys())n.drag(t,r)}rebuild(t){if(t.parent===null){const r=this.getLayer(t.pageIndex);r?(r.changeParent(t),r.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#y.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return this.#t===t}getActive(){return this.#t}getMode(){return this.#w}get imageManager(){return bn(this,"imageManager",new JF)}getSelectionBoxes(t){if(!t)return null;const r=document.getSelection();for(let u=0,p=r.rangeCount;u<p;u++)if(!t.contains(r.getRangeAt(u).commonAncestorContainer))return null;const{x:n,y:i,width:o,height:a}=t.getBoundingClientRect();let l;switch(t.getAttribute("data-main-rotation")){case"90":l=(u,p,h,f)=>({x:(p-i)/a,y:1-(u+h-n)/o,width:f/a,height:h/o});break;case"180":l=(u,p,h,f)=>({x:1-(u+h-n)/o,y:1-(p+f-i)/a,width:h/o,height:f/a});break;case"270":l=(u,p,h,f)=>({x:1-(p+f-i)/a,y:(u-n)/o,width:f/a,height:h/o});break;default:l=(u,p,h,f)=>({x:(u-n)/o,y:(p-i)/a,width:h/o,height:f/a});break}const d=[];for(let u=0,p=r.rangeCount;u<p;u++){const h=r.getRangeAt(u);if(!h.collapsed)for(const{x:f,y:g,width:y,height:v}of h.getClientRects())y===0||v===0||d.push(l(f,g,y,v))}return d.length===0?null:d}addChangedExistingAnnotation({annotationElementId:t,id:r}){(this.#o||=new Map).set(t,r)}removeChangedExistingAnnotation({annotationElementId:t}){this.#o?.delete(t)}renderAnnotationElement(t){const r=this.#o?.get(t.data.id);if(!r)return;const n=this.#n.getRawValue(r);n&&(this.#w===fn.NONE&&!n.hasBeenModified||n.renderAnnotationElement(t))}}class Bh{#e="";#t=!1;#r=null;#i=null;#s=null;#n=!1;#o=null;static _l10nPromise=null;constructor(t){this.#o=t}static initialize(t){Bh._l10nPromise||=t}async render(){const t=this.#r=document.createElement("button");t.className="altText";const r=await Bh._l10nPromise.get("pdfjs-editor-alt-text-button-label");t.textContent=r,t.setAttribute("aria-label",r),t.tabIndex="0";const n=this.#o._uiManager._signal;t.addEventListener("contextmenu",ks,{signal:n}),t.addEventListener("pointerdown",o=>o.stopPropagation(),{signal:n});const i=o=>{o.preventDefault(),this.#o._uiManager.editAltText(this.#o)};return t.addEventListener("click",i,{capture:!0,signal:n}),t.addEventListener("keydown",o=>{o.target===t&&o.key==="Enter"&&(this.#n=!0,i(o))},{signal:n}),await this.#l(),t}finish(){this.#r&&(this.#r.focus({focusVisible:this.#n}),this.#n=!1)}isEmpty(){return!this.#e&&!this.#t}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:t,decorative:r}){this.#e===t&&this.#t===r||(this.#e=t,this.#t=r,this.#l())}toggle(t=!1){this.#r&&(!t&&this.#s&&(clearTimeout(this.#s),this.#s=null),this.#r.disabled=!t)}destroy(){this.#r?.remove(),this.#r=null,this.#i=null}async#l(){const t=this.#r;if(!t)return;if(!this.#e&&!this.#t){t.classList.remove("done"),this.#i?.remove();return}t.classList.add("done"),Bh._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then(i=>{t.setAttribute("aria-label",i)});let r=this.#i;if(!r){this.#i=r=document.createElement("span"),r.className="tooltip",r.setAttribute("role","tooltip");const i=r.id=`alt-text-tooltip-${this.#o.id}`;t.setAttribute("aria-describedby",i);const o=100,a=this.#o._uiManager._signal;a.addEventListener("abort",()=>{clearTimeout(this.#s),this.#s=null},{once:!0}),t.addEventListener("mouseenter",()=>{this.#s=setTimeout(()=>{this.#s=null,this.#i.classList.add("show"),this.#o._reportTelemetry({action:"alt_text_tooltip"})},o)},{signal:a}),t.addEventListener("mouseleave",()=>{this.#s&&(clearTimeout(this.#s),this.#s=null),this.#i?.classList.remove("show")},{signal:a})}r.innerText=this.#t?await Bh._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip"):this.#e,r.parentNode||t.append(r),this.#o.getImageForAltText()?.setAttribute("aria-describedby",r.id)}}class Tr{#e=null;#t=null;#r=null;#i=!1;#s=!1;#n=null;#o=null;#l=this.focusin.bind(this);#d=this.focusout.bind(this);#u=null;#h="";#c=!1;#a=null;#m=!1;#g=!1;#p=!1;#v=null;#f=0;#b=0;#x=null;_initialOptions=Object.create(null);_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;_l10nPromise=null;#$=!1;#k=Tr._zIndex++;static _borderLineWidth=-1;static _colorManager=new eN;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){const t=Tr.prototype._resizeWithKeyboard,r=P0.TRANSLATE_SMALL,n=P0.TRANSLATE_BIG;return bn(this,"_resizerKeyboardManager",new f6([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-r,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[r,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-r]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,r]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,n]}],[["Escape","mac+Escape"],Tr.prototype._stopResizingWithKeyboard]]))}constructor(t){this.constructor===Tr&&ti("Cannot initialize AnnotationEditor."),this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;const{rotation:r,rawDims:{pageWidth:n,pageHeight:i,pageX:o,pageY:a}}=this.parent.viewport;this.rotation=r,this.pageRotation=(360+r-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,i],this.pageTranslation=[o,a];const[l,d]=this.parentDimensions;this.x=t.x/l,this.y=t.y/d,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return bn(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const r=new q2t({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});r.annotationElementId=t.annotationElementId,r.deleted=!0,r._uiManager.addToAnnotationStorage(r)}static initialize(t,r,n){if(Tr._l10nPromise||=new Map(["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-resizer-label-topLeft","pdfjs-editor-resizer-label-topMiddle","pdfjs-editor-resizer-label-topRight","pdfjs-editor-resizer-label-middleRight","pdfjs-editor-resizer-label-bottomRight","pdfjs-editor-resizer-label-bottomMiddle","pdfjs-editor-resizer-label-bottomLeft","pdfjs-editor-resizer-label-middleLeft"].map(o=>[o,t.get(o.replaceAll(/([A-Z])/g,a=>`-${a.toLowerCase()}`))])),n?.strings)for(const o of n.strings)Tr._l10nPromise.set(o,t.get(o));if(Tr._borderLineWidth!==-1)return;const i=getComputedStyle(document.documentElement);Tr._borderLineWidth=parseFloat(i.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,r){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,r){ti("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#$}set _isDraggable(t){this.#$=t,this.div?.classList.toggle("draggable",t)}get isEnterHandled(){return!0}center(){const[t,r]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*r/(t*2),this.y+=this.width*t/(r*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*r/(t*2),this.y-=this.width*t/(r*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#k}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):this.#I(),this.parent=t}focusin(t){this._focusEventsAllowed&&(this.#c?this.#c=!1:this.parent.setSelected(this))}focusout(t){!this._focusEventsAllowed||!this.isAttachedToDOM||t.relatedTarget?.closest(`#${this.id}`)||(t.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,r,n,i){const[o,a]=this.parentDimensions;[n,i]=this.screenToPageTranslation(n,i),this.x=(t+n)/o,this.y=(r+i)/a,this.fixAndSetPosition()}#E([t,r],n,i){[n,i]=this.screenToPageTranslation(n,i),this.x+=n/t,this.y+=i/r,this.fixAndSetPosition()}translate(t,r){this.#E(this.parentDimensions,t,r)}translateInPage(t,r){this.#a||=[this.x,this.y],this.#E(this.pageDimensions,t,r),this.div.scrollIntoView({block:"nearest"})}drag(t,r){this.#a||=[this.x,this.y];const[n,i]=this.parentDimensions;if(this.x+=t/n,this.y+=r/i,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:u,y:p}=this.div.getBoundingClientRect();this.parent.findNewParent(this,u,p)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:o,y:a}=this;const[l,d]=this.getBaseTranslation();o+=l,a+=d,this.div.style.left=`${(100*o).toFixed(2)}%`,this.div.style.top=`${(100*a).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!this.#a&&(this.#a[0]!==this.x||this.#a[1]!==this.y)}getBaseTranslation(){const[t,r]=this.parentDimensions,{_borderLineWidth:n}=Tr,i=n/t,o=n/r;switch(this.rotation){case 90:return[-i,o];case 180:return[i,o];case 270:return[i,-o];default:return[-i,-o]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){const[r,n]=this.pageDimensions;let{x:i,y:o,width:a,height:l}=this;if(a*=r,l*=n,i*=r,o*=n,this._mustFixPosition)switch(t){case 0:i=Math.max(0,Math.min(r-a,i)),o=Math.max(0,Math.min(n-l,o));break;case 90:i=Math.max(0,Math.min(r-l,i)),o=Math.min(n,Math.max(a,o));break;case 180:i=Math.min(r,Math.max(a,i)),o=Math.min(n,Math.max(l,o));break;case 270:i=Math.min(r,Math.max(l,i)),o=Math.max(0,Math.min(n-a,o));break}this.x=i/=r,this.y=o/=n;const[d,u]=this.getBaseTranslation();i+=d,o+=u;const{style:p}=this.div;p.left=`${(100*i).toFixed(2)}%`,p.top=`${(100*o).toFixed(2)}%`,this.moveInDOM()}static#L(t,r,n){switch(n){case 90:return[r,-t];case 180:return[-t,-r];case 270:return[-r,t];default:return[t,r]}}screenToPageTranslation(t,r){return Tr.#L(t,r,this.parentRotation)}pageTranslationToScreen(t,r){return Tr.#L(t,r,360-this.parentRotation)}#S(t){switch(t){case 90:{const[r,n]=this.pageDimensions;return[0,-r/n,n/r,0]}case 180:return[-1,0,0,-1];case 270:{const[r,n]=this.pageDimensions;return[0,r/n,-n/r,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:t,pageDimensions:[r,n]}=this,i=r*t,o=n*t;return xs.isCSSRoundSupported?[Math.round(i),Math.round(o)]:[i,o]}setDims(t,r){const[n,i]=this.parentDimensions;this.div.style.width=`${(100*t/n).toFixed(2)}%`,this.#s||(this.div.style.height=`${(100*r/i).toFixed(2)}%`)}fixDims(){const{style:t}=this.div,{height:r,width:n}=t,i=n.endsWith("%"),o=!this.#s&&r.endsWith("%");if(i&&o)return;const[a,l]=this.parentDimensions;i||(t.width=`${(100*parseFloat(n)/a).toFixed(2)}%`),!this.#s&&!o&&(t.height=`${(100*parseFloat(r)/l).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#w(){if(this.#n)return;this.#n=document.createElement("div"),this.#n.classList.add("resizers");const t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],r=this._uiManager._signal;for(const n of t){const i=document.createElement("div");this.#n.append(i),i.classList.add("resizer",n),i.setAttribute("data-resizer-name",n),i.addEventListener("pointerdown",this.#y.bind(this,n),{signal:r}),i.addEventListener("contextmenu",ks,{signal:r}),i.tabIndex=-1}this.div.prepend(this.#n)}#y(t,r){r.preventDefault();const{isMac:n}=xs.platform;if(r.button!==0||r.ctrlKey&&n)return;this.#r?.toggle(!1);const i=this.#_.bind(this,t),o=this._isDraggable;this._isDraggable=!1;const a=this._uiManager._signal,l={passive:!0,capture:!0,signal:a};this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",i,l),window.addEventListener("contextmenu",ks,{signal:a});const d=this.x,u=this.y,p=this.width,h=this.height,f=this.parent.div.style.cursor,g=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(r.target).cursor;const y=()=>{this.parent.togglePointerEvents(!0),this.#r?.toggle(!0),this._isDraggable=o,window.removeEventListener("pointerup",y),window.removeEventListener("blur",y),window.removeEventListener("pointermove",i,l),window.removeEventListener("contextmenu",ks),this.parent.div.style.cursor=f,this.div.style.cursor=g,this.#C(d,u,p,h)};window.addEventListener("pointerup",y,{signal:a}),window.addEventListener("blur",y,{signal:a})}#C(t,r,n,i){const o=this.x,a=this.y,l=this.width,d=this.height;o===t&&a===r&&l===n&&d===i||this.addCommands({cmd:()=>{this.width=l,this.height=d,this.x=o,this.y=a;const[u,p]=this.parentDimensions;this.setDims(u*l,p*d),this.fixAndSetPosition()},undo:()=>{this.width=n,this.height=i,this.x=t,this.y=r;const[u,p]=this.parentDimensions;this.setDims(u*n,p*i),this.fixAndSetPosition()},mustExec:!0})}#_(t,r){const[n,i]=this.parentDimensions,o=this.x,a=this.y,l=this.width,d=this.height,u=Tr.MIN_SIZE/n,p=Tr.MIN_SIZE/i,h=I=>Math.round(I*1e4)/1e4,f=this.#S(this.rotation),g=(I,L)=>[f[0]*I+f[2]*L,f[1]*I+f[3]*L],y=this.#S(360-this.rotation),v=(I,L)=>[y[0]*I+y[2]*L,y[1]*I+y[3]*L];let w,x,$=!1,S=!1;switch(t){case"topLeft":$=!0,w=(I,L)=>[0,0],x=(I,L)=>[I,L];break;case"topMiddle":w=(I,L)=>[I/2,0],x=(I,L)=>[I/2,L];break;case"topRight":$=!0,w=(I,L)=>[I,0],x=(I,L)=>[0,L];break;case"middleRight":S=!0,w=(I,L)=>[I,L/2],x=(I,L)=>[0,L/2];break;case"bottomRight":$=!0,w=(I,L)=>[I,L],x=(I,L)=>[0,0];break;case"bottomMiddle":w=(I,L)=>[I/2,L],x=(I,L)=>[I/2,0];break;case"bottomLeft":$=!0,w=(I,L)=>[0,L],x=(I,L)=>[I,0];break;case"middleLeft":S=!0,w=(I,L)=>[0,L/2],x=(I,L)=>[I,L/2];break}const k=w(l,d),T=x(l,d);let E=g(...T);const A=h(o+E[0]),P=h(a+E[1]);let D=1,O=1,[V,j]=this.screenToPageTranslation(r.movementX,r.movementY);if([V,j]=v(V/n,j/i),$){const I=Math.hypot(l,d);D=O=Math.max(Math.min(Math.hypot(T[0]-k[0]-V,T[1]-k[1]-j)/I,1/l,1/d),u/l,p/d)}else S?D=Math.max(u,Math.min(1,Math.abs(T[0]-k[0]-V)))/l:O=Math.max(p,Math.min(1,Math.abs(T[1]-k[1]-j)))/d;const q=h(l*D),W=h(d*O);E=g(...x(q,W));const F=A-E[0],H=P-E[1];this.width=q,this.height=W,this.x=F,this.y=H,this.setDims(n*q,i*W),this.fixAndSetPosition()}altTextFinish(){this.#r?.finish()}async addEditToolbar(){return this.#u||this.#g?this.#u:(this.#u=new XF(this),this.div.append(this.#u.render()),this.#r&&this.#u.addAltTextButton(await this.#r.render()),this.#u)}removeEditToolbar(){this.#u&&(this.#u.remove(),this.#u=null,this.#r?.destroy())}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){this.#r||(Bh.initialize(Tr._l10nPromise),this.#r=new Bh(this),this.#e&&(this.#r.data=this.#e,this.#e=null),await this.addEditToolbar())}get altTextData(){return this.#r?.data}set altTextData(t){this.#r&&(this.#r.data=t)}hasAltText(){return!this.#r?.isEmpty()}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=this.#i?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground();const t=this._uiManager._signal;this.div.addEventListener("focusin",this.#l,{signal:t}),this.div.addEventListener("focusout",this.#d,{signal:t});const[r,n]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*n/r).toFixed(2)}%`,this.div.style.maxHeight=`${(100*r/n).toFixed(2)}%`);const[i,o]=this.getInitialTranslation();return this.translate(i,o),ab(this,this.div,["pointerdown"]),this.div}pointerdown(t){const{isMac:r}=xs.platform;if(t.button!==0||t.ctrlKey&&r){t.preventDefault();return}if(this.#c=!0,this._isDraggable){this.#M(t);return}this.#T(t)}#T(t){const{isMac:r}=xs.platform;t.ctrlKey&&!r||t.shiftKey||t.metaKey&&r?this.parent.toggleSelected(this):this.parent.setSelected(this)}#M(t){const r=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let n,i;const o=this._uiManager._signal;r&&(this.div.classList.add("moving"),n={passive:!0,capture:!0,signal:o},this.#f=t.clientX,this.#b=t.clientY,i=l=>{const{clientX:d,clientY:u}=l,[p,h]=this.screenToPageTranslation(d-this.#f,u-this.#b);this.#f=d,this.#b=u,this._uiManager.dragSelectedEditors(p,h)},window.addEventListener("pointermove",i,n));const a=()=>{window.removeEventListener("pointerup",a),window.removeEventListener("blur",a),r&&(this.div.classList.remove("moving"),window.removeEventListener("pointermove",i,n)),this.#c=!1,this._uiManager.endDragSession()||this.#T(t)};window.addEventListener("pointerup",a,{signal:o}),window.addEventListener("blur",a,{signal:o})}moveInDOM(){this.#v&&clearTimeout(this.#v),this.#v=setTimeout(()=>{this.#v=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(t,r,n){t.changeParent(this),this.x=r,this.y=n,this.fixAndSetPosition()}getRect(t,r,n=this.rotation){const i=this.parentScale,[o,a]=this.pageDimensions,[l,d]=this.pageTranslation,u=t/i,p=r/i,h=this.x*o,f=this.y*a,g=this.width*o,y=this.height*a;switch(n){case 0:return[h+u+l,a-f-p-y+d,h+u+g+l,a-f-p+d];case 90:return[h+p+l,a-f+u+d,h+p+y+l,a-f+u+g+d];case 180:return[h-u-g+l,a-f+p+d,h-u+l,a-f+p+y+d];case 270:return[h-p-y+l,a-f-u-g+d,h-p+l,a-f-u+d];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,r){const[n,i,o,a]=t,l=o-n,d=a-i;switch(this.rotation){case 0:return[n,r-a,l,d];case 90:return[n,r-i,d,l];case 180:return[o,r-i,l,d];case 270:return[o,r-a,d,l];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#g=!0}disableEditMode(){this.#g=!1}isInEditMode(){return this.#g}shouldGetKeyboardEvents(){return this.#p}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){const t=this._uiManager._signal;this.div?.addEventListener("focusin",this.#l,{signal:t}),this.div?.addEventListener("focusout",this.#d,{signal:t})}rotate(t){}serialize(t=!1,r=null){ti("An editor must be serializable")}static deserialize(t,r,n){const i=new this.prototype.constructor({parent:r,id:r.getNextId(),uiManager:n});i.rotation=t.rotation,i.#e=t.accessibilityData;const[o,a]=i.pageDimensions,[l,d,u,p]=i.getRectInCurrentCoords(t.rect,a);return i.x=l/o,i.y=d/a,i.width=u/o,i.height=p/a,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.div.removeEventListener("focusin",this.#l),this.div.removeEventListener("focusout",this.#d),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#v&&(clearTimeout(this.#v),this.#v=null),this.#I(),this.removeEditToolbar(),this.#x){for(const t of this.#x.values())clearTimeout(t);this.#x=null}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#w(),this.#n.classList.remove("hidden"),ab(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),this.#o={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const r=this.#n.children;if(!this.#t){this.#t=Array.from(r);const a=this.#D.bind(this),l=this.#j.bind(this),d=this._uiManager._signal;for(const u of this.#t){const p=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",a,{signal:d}),u.addEventListener("blur",l,{signal:d}),u.addEventListener("focus",this.#P.bind(this,p),{signal:d}),Tr._l10nPromise.get(`pdfjs-editor-resizer-label-${p}`).then(h=>u.setAttribute("aria-label",h))}}const n=this.#t[0];let i=0;for(const a of r){if(a===n)break;i++}const o=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(o!==i){if(o<i)for(let l=0;l<i-o;l++)this.#n.append(this.#n.firstChild);else if(o>i)for(let l=0;l<o-i;l++)this.#n.firstChild.before(this.#n.lastChild);let a=0;for(const l of r){const u=this.#t[a++].getAttribute("data-resizer-name");Tr._l10nPromise.get(`pdfjs-editor-resizer-label-${u}`).then(p=>l.setAttribute("aria-label",p))}}this.#R(0),this.#p=!0,this.#n.firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}#D(t){Tr._resizerKeyboardManager.exec(this,t)}#j(t){this.#p&&t.relatedTarget?.parentNode!==this.#n&&this.#I()}#P(t){this.#h=this.#p?t:""}#R(t){if(this.#t)for(const r of this.#t)r.tabIndex=t}_resizeWithKeyboard(t,r){this.#p&&this.#_(this.#h,{movementX:t,movementY:r})}#I(){if(this.#p=!1,this.#R(-1),this.#o){const{savedX:t,savedY:r,savedWidth:n,savedHeight:i}=this.#o;this.#C(t,r,n,i),this.#o=null}}_stopResizingWithKeyboard(){this.#I(),this.div.focus()}select(){if(this.makeResizable(),this.div?.classList.add("selectedEditor"),!this.#u){this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this.#u?.show()});return}this.#u?.show()}unselect(){this.#n?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this.#u?.hide()}updateParams(t,r){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return this.#m}set isEditing(t){this.#m=t,this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,r){this.#s=!0;const n=t/r,{style:i}=this.div;i.aspectRatio=n,i.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t,r=!1){if(r){this.#x||=new Map;const{action:n}=t;let i=this.#x.get(n);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(t),this.#x.delete(n),this.#x.size===0&&(this.#x=null)},Tr._telemetryTimeout),this.#x.set(n,i);return}t.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),this.#i=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#i=!0}renderAnnotationElement(t){let r=t.container.querySelector(".annotationContent");if(!r)r=document.createElement("div"),r.classList.add("annotationContent",this.editorType),t.container.prepend(r);else if(r.nodeName==="CANVAS"){const n=r;r=document.createElement("div"),r.classList.add("annotationContent",this.editorType),n.before(r)}return r}resetAnnotationElement(t){const{firstChild:r}=t.container;r.nodeName==="DIV"&&r.classList.contains("annotationContent")&&r.remove()}}class q2t extends Tr{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}const qX=3285377520,yl=4294901760,Qd=65535;class Xge{constructor(t){this.h1=t?t&4294967295:qX,this.h2=t?t&4294967295:qX}update(t){let r,n;if(typeof t=="string"){r=new Uint8Array(t.length*2),n=0;for(let v=0,w=t.length;v<w;v++){const x=t.charCodeAt(v);x<=255?r[n++]=x:(r[n++]=x>>>8,r[n++]=x&255)}}else if(ArrayBuffer.isView(t))r=t.slice(),n=r.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const i=n>>2,o=n-i*4,a=new Uint32Array(r.buffer,0,i);let l=0,d=0,u=this.h1,p=this.h2;const h=3432918353,f=461845907,g=h&Qd,y=f&Qd;for(let v=0;v<i;v++)v&1?(l=a[v],l=l*h&yl|l*g&Qd,l=l<<15|l>>>17,l=l*f&yl|l*y&Qd,u^=l,u=u<<13|u>>>19,u=u*5+3864292196):(d=a[v],d=d*h&yl|d*g&Qd,d=d<<15|d>>>17,d=d*f&yl|d*y&Qd,p^=d,p=p<<13|p>>>19,p=p*5+3864292196);switch(l=0,o){case 3:l^=r[i*4+2]<<16;case 2:l^=r[i*4+1]<<8;case 1:l^=r[i*4],l=l*h&yl|l*g&Qd,l=l<<15|l>>>17,l=l*f&yl|l*y&Qd,i&1?u^=l:p^=l}this.h1=u,this.h2=p}hexdigest(){let t=this.h1,r=this.h2;return t^=r>>>1,t=t*3981806797&yl|t*36045&Qd,r=r*4283543511&yl|((r<<16|t>>>16)*2950163797&yl)>>>16,t^=r>>>1,t=t*444984403&yl|t*60499&Qd,r=r*3301882366&yl|((r<<16|t>>>16)*3120437893&yl)>>>16,t^=r>>>1,(t>>>0).toString(16).padStart(8,"0")+(r>>>0).toString(16).padStart(8,"0")}}const cj=Object.freeze({map:null,hash:"",transfer:void 0});class tN{#e=!1;#t=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,r){const n=this.#t.get(t);return n===void 0?r:Object.assign(r,n)}getRawValue(t){return this.#t.get(t)}remove(t){if(this.#t.delete(t),this.#t.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const r of this.#t.values())if(r instanceof Tr)return;this.onAnnotationEditor(null)}}setValue(t,r){const n=this.#t.get(t);let i=!1;if(n!==void 0)for(const[o,a]of Object.entries(r))n[o]!==a&&(i=!0,n[o]=a);else i=!0,this.#t.set(t,r);i&&this.#r(),r instanceof Tr&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(r.constructor._type)}has(t){return this.#t.has(t)}getAll(){return this.#t.size>0?WF(this.#t):null}setAll(t){for(const[r,n]of Object.entries(t))this.setValue(r,n)}get size(){return this.#t.size}#r(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Jge(this)}get serializable(){if(this.#t.size===0)return cj;const t=new Map,r=new Xge,n=[],i=Object.create(null);let o=!1;for(const[a,l]of this.#t){const d=l instanceof Tr?l.serialize(!1,i):l;d&&(t.set(a,d),r.update(`${a}:${JSON.stringify(d)}`),o||=!!d.bitmap)}if(o)for(const a of t.values())a.bitmap&&n.push(a.bitmap);return t.size>0?{map:t,hash:r.hexdigest(),transfer:n}:cj}get editorStats(){let t=null;const r=new Map;for(const n of this.#t.values()){if(!(n instanceof Tr))continue;const i=n.telemetryFinalData;if(!i)continue;const{type:o}=i;r.has(o)||r.set(o,Object.getPrototypeOf(n).constructor),t||=Object.create(null);const a=t[o]||=new Map;for(const[l,d]of Object.entries(i)){if(l==="type")continue;let u=a.get(l);u||(u=new Map,a.set(l,u));const p=u.get(d)??0;u.set(d,p+1)}}for(const[n,i]of r)t[n]=i.computeTelemetryFinalData(t[n]);return t}}class Jge extends tN{#e;constructor(t){super();const{map:r,hash:n,transfer:i}=t.serializable,o=structuredClone(r,i?{transfer:i}:null);this.#e={map:o,hash:n,transfer:i}}get print(){ti("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}}class Z2t{#e=new Set;constructor({ownerDocument:t=globalThis.document,styleElement:r=null}){this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const r=this.styleElement.sheet;r.insertRule(t,r.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,_inspectFont:r}){if(!(!t||this.#e.has(t.loadedName))){if(Lo(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:n,src:i,style:o}=t,a=new FontFace(n,i,o);this.addNativeFontFace(a);try{await a.load(),this.#e.add(n),r?.(t)}catch{Xr(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(a)}return}ti("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){const n=t.createNativeFontFace();if(n){this.addNativeFontFace(n);try{await n.loaded}catch(i){throw Xr(`Failed to load font '${n.family}': '${i}'.`),t.disableFontFace=!0,i}}return}const r=t.createFontFaceRule();if(r){if(this.insertRule(r),this.isSyncFontLoadingSupported)return;await new Promise(n=>{const i=this._queueLoadingCallback(n);this._prepareFontLoadEvent(t,i)})}}get isFontLoadingAPISupported(){const t=!!this._document?.fonts;return bn(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;return(ka||typeof navigator<"u"&&typeof navigator?.userAgent=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),bn(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){function r(){for(Lo(!i.done,"completeRequest() cannot be called twice."),i.done=!0;n.length>0&&n[0].done;){const o=n.shift();setTimeout(o.callback,0)}}const{loadingRequests:n}=this,i={done:!1,complete:r,callback:t};return n.push(i),i}get _loadTestFont(){const t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return bn(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,r){function n(k,T){return k.charCodeAt(T)<<24|k.charCodeAt(T+1)<<16|k.charCodeAt(T+2)<<8|k.charCodeAt(T+3)&255}function i(k,T,E,A){const P=k.substring(0,T),D=k.substring(T+E);return P+A+D}let o,a;const l=this._document.createElement("canvas");l.width=1,l.height=1;const d=l.getContext("2d");let u=0;function p(k,T){if(++u>30){Xr("Load test font never loaded."),T();return}if(d.font="30px "+k,d.fillText(".",0,20),d.getImageData(0,0,1,1).data[3]>0){T();return}setTimeout(p.bind(null,k,T))}const h=`lt${Date.now()}${this.loadTestFontId++}`;let f=this._loadTestFont;f=i(f,976,h.length,h);const y=16,v=1482184792;let w=n(f,y);for(o=0,a=h.length-3;o<a;o+=4)w=w-v+n(h,o)|0;o<h.length&&(w=w-v+n(h+"XXX",o)|0),f=i(f,y,4,M2t(w));const x=`url(data:font/opentype;base64,${btoa(f)});`,$=`@font-face {font-family:"${h}";src:${x}}`;this.insertRule($);const S=this._document.createElement("div");S.style.visibility="hidden",S.style.width=S.style.height="10px",S.style.position="absolute",S.style.top=S.style.left="0px";for(const k of[t.loadedName,h]){const T=this._document.createElement("span");T.textContent="Hi",T.style.fontFamily=k,S.append(T)}this._document.body.append(S),p(h,()=>{S.remove(),r.complete()})}}class K2t{constructor(t,{disableFontFace:r=!1,inspectFont:n=null}){this.compiledGlyphs=Object.create(null);for(const i in t)this[i]=t[i];this.disableFontFace=r===!0,this._inspectFont=n}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let t;if(!this.cssFontInfo)t=new FontFace(this.loadedName,this.data,{});else{const r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}return this._inspectFont?.(this),t}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const t=Yge(this.data),r=`url(data:${this.mimetype};base64,${btoa(t)});`;let n;if(!this.cssFontInfo)n=`@font-face {font-family:"${this.loadedName}";src:${r}}`;else{let i=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(i+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${i}src:${r}}`}return this._inspectFont?.(this,r),n}getPathGenerator(t,r){if(this.compiledGlyphs[r]!==void 0)return this.compiledGlyphs[r];let n;try{n=t.get(this.loadedName+"_path_"+r)}catch(o){Xr(`getPathGenerator - ignoring character: "${o}".`)}if(!Array.isArray(n)||n.length===0)return this.compiledGlyphs[r]=function(o,a){};const i=[];for(let o=0,a=n.length;o<a;)switch(n[o++]){case fu.BEZIER_CURVE_TO:{const[l,d,u,p,h,f]=n.slice(o,o+6);i.push(g=>g.bezierCurveTo(l,d,u,p,h,f)),o+=6}break;case fu.MOVE_TO:{const[l,d]=n.slice(o,o+2);i.push(u=>u.moveTo(l,d)),o+=2}break;case fu.LINE_TO:{const[l,d]=n.slice(o,o+2);i.push(u=>u.lineTo(l,d)),o+=2}break;case fu.QUADRATIC_CURVE_TO:{const[l,d,u,p]=n.slice(o,o+4);i.push(h=>h.quadraticCurveTo(l,d,u,p)),o+=4}break;case fu.RESTORE:i.push(l=>l.restore());break;case fu.SAVE:i.push(l=>l.save());break;case fu.SCALE:Lo(i.length===2,"Scale command is only valid at the third position.");break;case fu.TRANSFORM:{const[l,d,u,p,h,f]=n.slice(o,o+6);i.push(g=>g.transform(l,d,u,p,h,f)),o+=6}break;case fu.TRANSLATE:{const[l,d]=n.slice(o,o+2);i.push(u=>u.translate(l,d)),o+=2}break}return this.compiledGlyphs[r]=function(a,l){i[0](a),i[1](a),a.scale(l,-l);for(let d=2,u=i.length;d<u;d++)i[d](a)}}}if(ka){var dj=Promise.withResolvers(),uj=null;(async()=>{const t=await bt(()=>import("./empty-BSEyVh8N.js").then(l=>l.e),__vite__mapDeps([0,1,2])),r=await bt(()=>import("./index-DEJ7sanz.js").then(l=>l.i),__vite__mapDeps([3,1,4,5,6,7,8,9])),n=await bt(()=>import("./index-o7l6M0TC.js").then(l=>l.i),__vite__mapDeps([10,1,11,4,5,6,7,8,9])),i=await bt(()=>import("./url-CpxLPhmr.js").then(l=>l.u),__vite__mapDeps([12,1,9,7,5,6,8]));let o,a;return new Map(Object.entries({fs:t,http:r,https:n,url:i,canvas:o,path2d:a}))})().then(t=>{uj=t,dj.resolve()},t=>{Xr(`loadPackages: ${t}`),uj=new Map,dj.resolve()})}class z1{static get promise(){return dj.promise}static get(t){return uj?.get(t)}}const e4e=function(e){return z1.get("fs").promises.readFile(e).then(r=>new Uint8Array(r))};class Q2t extends _x{}class X2t extends Tx{_createCanvas(t,r){return z1.get("canvas").createCanvas(t,r)}}class J2t extends Ax{_fetchData(t,r){return e4e(t).then(n=>({cMapData:n,compressionType:r}))}}class e0t extends Lx{_fetchData(t){return e4e(t)}}const Wa={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function pj(e,t){if(!t)return;const r=t[2]-t[0],n=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],r,n),e.clip(i)}class g6{constructor(){this.constructor===g6&&ti("Cannot initialize BaseShadingPattern.")}getPattern(){ti("Abstract method `getPattern` called.")}}class t0t extends g6{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let r;this._type==="axial"?r=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(r=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)r.addColorStop(n[0],n[1]);return r}getPattern(t,r,n,i){let o;if(i===Wa.STROKE||i===Wa.FILL){const a=r.current.getClippedPathBoundingBox(i,Mi(t))||[0,0,0,0],l=Math.ceil(a[2]-a[0])||1,d=Math.ceil(a[3]-a[1])||1,u=r.cachedCanvases.getCanvas("pattern",l,d,!0),p=u.context;p.clearRect(0,0,p.canvas.width,p.canvas.height),p.beginPath(),p.rect(0,0,p.canvas.width,p.canvas.height),p.translate(-a[0],-a[1]),n=ar.transform(n,[1,0,0,1,a[0],a[1]]),p.transform(...r.baseTransform),this.matrix&&p.transform(...this.matrix),pj(p,this._bbox),p.fillStyle=this._createGradient(p),p.fill(),o=t.createPattern(u.canvas,"no-repeat");const h=new DOMMatrix(n);o.setTransform(h)}else pj(t,this._bbox),o=this._createGradient(t);return o}}function cL(e,t,r,n,i,o,a,l){const d=t.coords,u=t.colors,p=e.data,h=e.width*4;let f;d[r+1]>d[n+1]&&(f=r,r=n,n=f,f=o,o=a,a=f),d[n+1]>d[i+1]&&(f=n,n=i,i=f,f=a,a=l,l=f),d[r+1]>d[n+1]&&(f=r,r=n,n=f,f=o,o=a,a=f);const g=(d[r]+t.offsetX)*t.scaleX,y=(d[r+1]+t.offsetY)*t.scaleY,v=(d[n]+t.offsetX)*t.scaleX,w=(d[n+1]+t.offsetY)*t.scaleY,x=(d[i]+t.offsetX)*t.scaleX,$=(d[i+1]+t.offsetY)*t.scaleY;if(y>=$)return;const S=u[o],k=u[o+1],T=u[o+2],E=u[a],A=u[a+1],P=u[a+2],D=u[l],O=u[l+1],V=u[l+2],j=Math.round(y),q=Math.round($);let W,F,H,I,L,z,B,ee;for(let Z=j;Z<=q;Z++){if(Z<w){const fe=Z<y?0:(y-Z)/(y-w);W=g-(g-v)*fe,F=S-(S-E)*fe,H=k-(k-A)*fe,I=T-(T-P)*fe}else{let fe;Z>$?fe=1:w===$?fe=0:fe=(w-Z)/(w-$),W=v-(v-x)*fe,F=E-(E-D)*fe,H=A-(A-O)*fe,I=P-(P-V)*fe}let U;Z<y?U=0:Z>$?U=1:U=(y-Z)/(y-$),L=g-(g-x)*U,z=S-(S-D)*U,B=k-(k-O)*U,ee=T-(T-V)*U;const Q=Math.round(Math.min(W,L)),X=Math.round(Math.max(W,L));let ae=h*Z+Q*4;for(let fe=Q;fe<=X;fe++)U=(W-fe)/(W-L),U<0?U=0:U>1&&(U=1),p[ae++]=F-(F-z)*U|0,p[ae++]=H-(H-B)*U|0,p[ae++]=I-(I-ee)*U|0,p[ae++]=255}}function r0t(e,t,r){const n=t.coords,i=t.colors;let o,a;switch(t.type){case"lattice":const l=t.verticesPerRow,d=Math.floor(n.length/l)-1,u=l-1;for(o=0;o<d;o++){let p=o*l;for(let h=0;h<u;h++,p++)cL(e,r,n[p],n[p+1],n[p+l],i[p],i[p+1],i[p+l]),cL(e,r,n[p+l+1],n[p+1],n[p+l],i[p+l+1],i[p+1],i[p+l])}break;case"triangles":for(o=0,a=n.length;o<a;o+=3)cL(e,r,n[o],n[o+1],n[o+2],i[o],i[o+1],i[o+2]);break;default:throw new Error("illegal figure")}}class n0t extends g6{constructor(t){super(),this._coords=t[2],this._colors=t[3],this._figures=t[4],this._bounds=t[5],this._bbox=t[7],this._background=t[8],this.matrix=null}_createMeshCanvas(t,r,n){const l=Math.floor(this._bounds[0]),d=Math.floor(this._bounds[1]),u=Math.ceil(this._bounds[2])-l,p=Math.ceil(this._bounds[3])-d,h=Math.min(Math.ceil(Math.abs(u*t[0]*1.1)),3e3),f=Math.min(Math.ceil(Math.abs(p*t[1]*1.1)),3e3),g=u/h,y=p/f,v={coords:this._coords,colors:this._colors,offsetX:-l,offsetY:-d,scaleX:1/g,scaleY:1/y},w=h+2*2,x=f+2*2,$=n.getCanvas("mesh",w,x,!1),S=$.context,k=S.createImageData(h,f);if(r){const E=k.data;for(let A=0,P=E.length;A<P;A+=4)E[A]=r[0],E[A+1]=r[1],E[A+2]=r[2],E[A+3]=255}for(const E of this._figures)r0t(k,E,v);return S.putImageData(k,2,2),{canvas:$.canvas,offsetX:l-2*g,offsetY:d-2*y,scaleX:g,scaleY:y}}getPattern(t,r,n,i){pj(t,this._bbox);let o;if(i===Wa.SHADING)o=ar.singularValueDecompose2dScale(Mi(t));else if(o=ar.singularValueDecompose2dScale(r.baseTransform),this.matrix){const l=ar.singularValueDecompose2dScale(this.matrix);o=[o[0]*l[0],o[1]*l[1]]}const a=this._createMeshCanvas(o,i===Wa.SHADING?null:this._background,r.cachedCanvases);return i!==Wa.SHADING&&(t.setTransform(...r.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(a.offsetX,a.offsetY),t.scale(a.scaleX,a.scaleY),t.createPattern(a.canvas,"no-repeat")}}class i0t extends g6{getPattern(){return"hotpink"}}function o0t(e){switch(e[0]){case"RadialAxial":return new t0t(e);case"Mesh":return new n0t(e);case"Dummy":return new i0t}throw new Error(`Unknown IR type: ${e[0]}`)}const ZX={COLORED:1,UNCOLORED:2};class rN{static MAX_PATTERN_SIZE=3e3;constructor(t,r,n,i,o){this.operatorList=t[2],this.matrix=t[3],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=r,this.ctx=n,this.canvasGraphicsFactory=i,this.baseTransform=o}createPatternCanvas(t){const r=this.operatorList,n=this.bbox,i=this.xstep,o=this.ystep,a=this.paintType,l=this.tilingType,d=this.color,u=this.canvasGraphicsFactory;Sx("TilingType: "+l);const p=n[0],h=n[1],f=n[2],g=n[3],y=ar.singularValueDecompose2dScale(this.matrix),v=ar.singularValueDecompose2dScale(this.baseTransform),w=[y[0]*v[0],y[1]*v[1]],x=this.getSizeAndScale(i,this.ctx.canvas.width,w[0]),$=this.getSizeAndScale(o,this.ctx.canvas.height,w[1]),S=t.cachedCanvases.getCanvas("pattern",x.size,$.size,!0),k=S.context,T=u.createCanvasGraphics(k);T.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(T,a,d);let E=p,A=h,P=f,D=g;return p<0&&(E=0,P+=Math.abs(p)),h<0&&(A=0,D+=Math.abs(h)),k.translate(-(x.scale*E),-($.scale*A)),T.transform(x.scale,0,0,$.scale,0,0),k.save(),this.clipBbox(T,E,A,P,D),T.baseTransform=Mi(T.ctx),T.executeOperatorList(r),T.endDrawing(),{canvas:S.canvas,scaleX:x.scale,scaleY:$.scale,offsetX:E,offsetY:A}}getSizeAndScale(t,r,n){t=Math.abs(t);const i=Math.max(rN.MAX_PATTERN_SIZE,r);let o=Math.ceil(t*n);return o>=i?o=i:n=o/t,{scale:n,size:o}}clipBbox(t,r,n,i,o){const a=i-r,l=o-n;t.ctx.rect(r,n,a,l),t.current.updateRectMinMax(Mi(t.ctx),[r,n,i,o]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,r,n){const i=t.ctx,o=t.current;switch(r){case ZX.COLORED:const a=this.ctx;i.fillStyle=a.fillStyle,i.strokeStyle=a.strokeStyle,o.fillColor=a.fillStyle,o.strokeColor=a.strokeStyle;break;case ZX.UNCOLORED:const l=ar.makeHexColor(n[0],n[1],n[2]);i.fillStyle=l,i.strokeStyle=l,o.fillColor=l,o.strokeColor=l;break;default:throw new D2t(`Unsupported paint type: ${r}`)}}getPattern(t,r,n,i){let o=n;i!==Wa.SHADING&&(o=ar.transform(o,r.baseTransform),this.matrix&&(o=ar.transform(o,this.matrix)));const a=this.createPatternCanvas(r);let l=new DOMMatrix(o);l=l.translate(a.offsetX,a.offsetY),l=l.scale(1/a.scaleX,1/a.scaleY);const d=t.createPattern(a.canvas,"repeat");return d.setTransform(l),d}}function a0t({src:e,srcPos:t=0,dest:r,width:n,height:i,nonBlackColor:o=4294967295,inverseDecode:a=!1}){const l=xs.isLittleEndian?4278190080:255,[d,u]=a?[o,l]:[l,o],p=n>>3,h=n&7,f=e.length;r=new Uint32Array(r.buffer);let g=0;for(let y=0;y<i;y++){for(const w=t+p;t<w;t++){const x=t<f?e[t]:255;r[g++]=x&128?u:d,r[g++]=x&64?u:d,r[g++]=x&32?u:d,r[g++]=x&16?u:d,r[g++]=x&8?u:d,r[g++]=x&4?u:d,r[g++]=x&2?u:d,r[g++]=x&1?u:d}if(h===0)continue;const v=t<f?e[t++]:255;for(let w=0;w<h;w++)r[g++]=v&1<<7-w?u:d}return{srcPos:t,destPos:g}}const KX=16,QX=100,s0t=15,XX=10,JX=1e3,hs=16;function l0t(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(n,i){t.translate(n,i),this.__originalTranslate(n,i)},e.scale=function(n,i){t.scale(n,i),this.__originalScale(n,i)},e.transform=function(n,i,o,a,l,d){t.transform(n,i,o,a,l,d),this.__originalTransform(n,i,o,a,l,d)},e.setTransform=function(n,i,o,a,l,d){t.setTransform(n,i,o,a,l,d),this.__originalSetTransform(n,i,o,a,l,d)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(n){t.rotate(n),this.__originalRotate(n)},e.clip=function(n){t.clip(n),this.__originalClip(n)},e.moveTo=function(r,n){t.moveTo(r,n),this.__originalMoveTo(r,n)},e.lineTo=function(r,n){t.lineTo(r,n),this.__originalLineTo(r,n)},e.bezierCurveTo=function(r,n,i,o,a,l){t.bezierCurveTo(r,n,i,o,a,l),this.__originalBezierCurveTo(r,n,i,o,a,l)},e.rect=function(r,n,i,o){t.rect(r,n,i,o),this.__originalRect(r,n,i,o)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}class c0t{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,r,n){let i;return this.cache[t]!==void 0?(i=this.cache[t],this.canvasFactory.reset(i,r,n)):(i=this.canvasFactory.create(r,n),this.cache[t]=i),i}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const r=this.cache[t];this.canvasFactory.destroy(r),delete this.cache[t]}}}function I9(e,t,r,n,i,o,a,l,d,u){const[p,h,f,g,y,v]=Mi(e);if(h===0&&f===0){const $=a*p+y,S=Math.round($),k=l*g+v,T=Math.round(k),E=(a+d)*p+y,A=Math.abs(Math.round(E)-S)||1,P=(l+u)*g+v,D=Math.abs(Math.round(P)-T)||1;return e.setTransform(Math.sign(p),0,0,Math.sign(g),S,T),e.drawImage(t,r,n,i,o,0,0,A,D),e.setTransform(p,h,f,g,y,v),[A,D]}if(p===0&&g===0){const $=l*f+y,S=Math.round($),k=a*h+v,T=Math.round(k),E=(l+u)*f+y,A=Math.abs(Math.round(E)-S)||1,P=(a+d)*h+v,D=Math.abs(Math.round(P)-T)||1;return e.setTransform(0,Math.sign(h),Math.sign(f),0,S,T),e.drawImage(t,r,n,i,o,0,0,D,A),e.setTransform(p,h,f,g,y,v),[D,A]}e.drawImage(t,r,n,i,o,a,l,d,u);const w=Math.hypot(p,h),x=Math.hypot(f,g);return[w*d,x*u]}function d0t(e){const{width:t,height:r}=e;if(t>JX||r>JX)return null;const n=1e3,i=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),o=t+1;let a=new Uint8Array(o*(r+1)),l,d,u;const p=t+7&-8;let h=new Uint8Array(p*r),f=0;for(const x of e.data){let $=128;for(;$>0;)h[f++]=x&$?0:255,$>>=1}let g=0;for(f=0,h[f]!==0&&(a[0]=1,++g),d=1;d<t;d++)h[f]!==h[f+1]&&(a[d]=h[f]?2:1,++g),f++;for(h[f]!==0&&(a[d]=2,++g),l=1;l<r;l++){f=l*p,u=l*o,h[f-p]!==h[f]&&(a[u]=h[f]?1:8,++g);let x=(h[f]?4:0)+(h[f-p]?8:0);for(d=1;d<t;d++)x=(x>>2)+(h[f+1]?4:0)+(h[f-p+1]?8:0),i[x]&&(a[u+d]=i[x],++g),f++;if(h[f-p]!==h[f]&&(a[u+d]=h[f]?2:4,++g),g>n)return null}for(f=p*(r-1),u=l*o,h[f]!==0&&(a[u]=8,++g),d=1;d<t;d++)h[f]!==h[f+1]&&(a[u+d]=h[f]?4:8,++g),f++;if(h[f]!==0&&(a[u+d]=4,++g),g>n)return null;const y=new Int32Array([0,o,-1,0,-o,0,0,0,1]),v=new Path2D;for(l=0;g&&l<=r;l++){let x=l*o;const $=x+t;for(;x<$&&!a[x];)x++;if(x===$)continue;v.moveTo(x%o,l);const S=x;let k=a[x];do{const T=y[k];do x+=T;while(!a[x]);const E=a[x];E!==5&&E!==10?(k=E,a[x]=0):(k=E&51*k>>4,a[x]&=k>>2|k<<2),v.lineTo(x%o,x/o|0),a[x]||--g}while(S!==x);--l}return h=null,a=null,function(x){x.save(),x.scale(1/t,-1/r),x.translate(0,-r),x.fill(v),x.beginPath(),x.restore()}}class eJ{constructor(t,r){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=Uge,this.textMatrixScale=1,this.fontMatrix=oj,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=va.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,r])}clone(){const t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,r){this.x=t,this.y=r}updatePathMinMax(t,r,n){[r,n]=ar.applyTransform([r,n],t),this.minX=Math.min(this.minX,r),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,r),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(t,r){const n=ar.applyTransform(r,t),i=ar.applyTransform(r.slice(2),t),o=ar.applyTransform([r[0],r[3]],t),a=ar.applyTransform([r[2],r[1]],t);this.minX=Math.min(this.minX,n[0],i[0],o[0],a[0]),this.minY=Math.min(this.minY,n[1],i[1],o[1],a[1]),this.maxX=Math.max(this.maxX,n[0],i[0],o[0],a[0]),this.maxY=Math.max(this.maxY,n[1],i[1],o[1],a[1])}updateScalingPathMinMax(t,r){ar.scaleMinMax(t,r),this.minX=Math.min(this.minX,r[0]),this.minY=Math.min(this.minY,r[1]),this.maxX=Math.max(this.maxX,r[2]),this.maxY=Math.max(this.maxY,r[3])}updateCurvePathMinMax(t,r,n,i,o,a,l,d,u,p){const h=ar.bezierBoundingBox(r,n,i,o,a,l,d,u,p);p||this.updateRectMinMax(t,h)}getPathBoundingBox(t=Wa.FILL,r=null){const n=[this.minX,this.minY,this.maxX,this.maxY];if(t===Wa.STROKE){r||ti("Stroke bounding box must include transform.");const i=ar.singularValueDecompose2dScale(r),o=i[0]*this.lineWidth/2,a=i[1]*this.lineWidth/2;n[0]-=o,n[1]-=a,n[2]+=o,n[3]+=a}return n}updateClipFromPath(){const t=ar.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(t=Wa.FILL,r=null){return ar.intersect(this.clipBox,this.getPathBoundingBox(t,r))}}function tJ(e,t){if(typeof ImageData<"u"&&t instanceof ImageData){e.putImageData(t,0,0);return}const r=t.height,n=t.width,i=r%hs,o=(r-i)/hs,a=i===0?o:o+1,l=e.createImageData(n,hs);let d=0,u;const p=t.data,h=l.data;let f,g,y,v;if(t.kind===Ry.GRAYSCALE_1BPP){const w=p.byteLength,x=new Uint32Array(h.buffer,0,h.byteLength>>2),$=x.length,S=n+7>>3,k=4294967295,T=xs.isLittleEndian?4278190080:255;for(f=0;f<a;f++){for(y=f<o?hs:i,u=0,g=0;g<y;g++){const E=w-d;let A=0;const P=E>S?n:E*8-7,D=P&-8;let O=0,V=0;for(;A<D;A+=8)V=p[d++],x[u++]=V&128?k:T,x[u++]=V&64?k:T,x[u++]=V&32?k:T,x[u++]=V&16?k:T,x[u++]=V&8?k:T,x[u++]=V&4?k:T,x[u++]=V&2?k:T,x[u++]=V&1?k:T;for(;A<P;A++)O===0&&(V=p[d++],O=128),x[u++]=V&O?k:T,O>>=1}for(;u<$;)x[u++]=0;e.putImageData(l,0,f*hs)}}else if(t.kind===Ry.RGBA_32BPP){for(g=0,v=n*hs*4,f=0;f<o;f++)h.set(p.subarray(d,d+v)),d+=v,e.putImageData(l,0,g),g+=hs;f<a&&(v=n*i*4,h.set(p.subarray(d,d+v)),e.putImageData(l,0,g))}else if(t.kind===Ry.RGB_24BPP)for(y=hs,v=n*y,f=0;f<a;f++){for(f>=o&&(y=i,v=n*y),u=0,g=v;g--;)h[u++]=p[d++],h[u++]=p[d++],h[u++]=p[d++],h[u++]=255;e.putImageData(l,0,f*hs)}else throw new Error(`bad image kind: ${t.kind}`)}function rJ(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}const r=t.height,n=t.width,i=r%hs,o=(r-i)/hs,a=i===0?o:o+1,l=e.createImageData(n,hs);let d=0;const u=t.data,p=l.data;for(let h=0;h<a;h++){const f=h<o?hs:i;({srcPos:d}=a0t({src:u,srcPos:d,dest:p,width:n,height:f,nonBlackColor:0})),e.putImageData(l,0,h*hs)}}function W4(e,t){const r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const n of r)e[n]!==void 0&&(t[n]=e[n]);e.setLineDash!==void 0&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function j9(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",e.setLineDash!==void 0&&(e.setLineDash([]),e.lineDashOffset=0),!ka){const{filter:t}=e;t!=="none"&&t!==""&&(e.filter="none")}}function nJ(e,t){if(t)return!0;const r=ar.singularValueDecompose2dScale(e);r[0]=Math.fround(r[0]),r[1]=Math.fround(r[1]);const n=Math.fround((globalThis.devicePixelRatio||1)*Jf.PDF_TO_CSS_UNITS);return r[0]<=n&&r[1]<=n}const u0t=["butt","round","square"],p0t=["miter","round","bevel"],h0t={},iJ={};class _f{constructor(t,r,n,i,o,{optionalContentConfig:a,markedContentStack:l=null},d,u){this.ctx=t,this.current=new eJ(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=r,this.objs=n,this.canvasFactory=i,this.filterFactory=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=l||[],this.optionalContentConfig=a,this.cachedCanvases=new c0t(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=d,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(t,r=null){return typeof t=="string"?t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t):r}beginDrawing({transform:t,viewport:r,transparency:n=!1,background:i=null}){const o=this.ctx.canvas.width,a=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,o,a),this.ctx.fillStyle=l,n){const d=this.cachedCanvases.getCanvas("transparent",o,a);this.compositeCtx=this.ctx,this.transparentCanvas=d.canvas,this.ctx=d.context,this.ctx.save(),this.ctx.transform(...Mi(this.compositeCtx))}this.ctx.save(),j9(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...r.transform),this.viewportScale=r.scale,this.baseTransform=Mi(this.ctx)}executeOperatorList(t,r,n,i){const o=t.argsArray,a=t.fnArray;let l=r||0;const d=o.length;if(d===l)return l;const u=d-l>XX&&typeof n=="function",p=u?Date.now()+s0t:0;let h=0;const f=this.commonObjs,g=this.objs;let y;for(;;){if(i!==void 0&&l===i.nextBreakPoint)return i.breakIt(l,n),l;if(y=a[l],y!==kc.dependency)this[y].apply(this,o[l]);else for(const v of o[l]){const w=v.startsWith("g_")?f:g;if(!w.has(v))return w.get(v,n),l}if(l++,l===d)return l;if(u&&++h>XX){if(Date.now()>p)return n(),l;h=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const r of t.values())typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement&&(r.width=r.height=0);t.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){const t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(t!=="none"){const r=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=r}}}_scaleImage(t,r){const n=t.width,i=t.height;let o=Math.max(Math.hypot(r[0],r[1]),1),a=Math.max(Math.hypot(r[2],r[3]),1),l=n,d=i,u="prescale1",p,h;for(;o>2&&l>1||a>2&&d>1;){let f=l,g=d;o>2&&l>1&&(f=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),o/=l/f),a>2&&d>1&&(g=d>=16384?Math.floor(d/2)-1||1:Math.ceil(d)/2,a/=d/g),p=this.cachedCanvases.getCanvas(u,f,g),h=p.context,h.clearRect(0,0,f,g),h.drawImage(t,0,0,l,d,0,0,f,g),t=p.canvas,l=f,d=g,u=u==="prescale1"?"prescale2":"prescale1"}return{img:t,paintWidth:l,paintHeight:d}}_createMaskCanvas(t){const r=this.ctx,{width:n,height:i}=t,o=this.current.fillColor,a=this.current.patternFill,l=Mi(r);let d,u,p,h;if((t.bitmap||t.data)&&t.count>1){const P=t.bitmap||t.data.buffer;u=JSON.stringify(a?l:[l.slice(0,4),o]),d=this._cachedBitmapsMap.get(P),d||(d=new Map,this._cachedBitmapsMap.set(P,d));const D=d.get(u);if(D&&!a){const O=Math.round(Math.min(l[0],l[2])+l[4]),V=Math.round(Math.min(l[1],l[3])+l[5]);return{canvas:D,offsetX:O,offsetY:V}}p=D}p||(h=this.cachedCanvases.getCanvas("maskCanvas",n,i),rJ(h.context,t));let f=ar.transform(l,[1/n,0,0,-1/i,0,0]);f=ar.transform(f,[1,0,0,1,0,-i]);const[g,y,v,w]=ar.getAxialAlignedBoundingBox([0,0,n,i],f),x=Math.round(v-g)||1,$=Math.round(w-y)||1,S=this.cachedCanvases.getCanvas("fillCanvas",x,$),k=S.context,T=g,E=y;k.translate(-T,-E),k.transform(...f),p||(p=this._scaleImage(h.canvas,gu(k)),p=p.img,d&&a&&d.set(u,p)),k.imageSmoothingEnabled=nJ(Mi(k),t.interpolate),I9(k,p,0,0,p.width,p.height,0,0,n,i),k.globalCompositeOperation="source-in";const A=ar.transform(gu(k),[1,0,0,1,-T,-E]);return k.fillStyle=a?o.getPattern(r,this,A,Wa.FILL):o,k.fillRect(0,0,n,i),d&&!a&&(this.cachedCanvases.delete("fillCanvas"),d.set(u,S.canvas)),{canvas:S.canvas,offsetX:Math.round(T),offsetY:Math.round(E)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=u0t[t]}setLineJoin(t){this.ctx.lineJoin=p0t[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,r){const n=this.ctx;n.setLineDash!==void 0&&(n.setLineDash(t),n.lineDashOffset=r)}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[r,n]of t)switch(r){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.current.fillAlpha=n,this.ctx.globalAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,r=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(n,t,r);this.suspendedCtx=this.ctx,this.ctx=i.context;const o=this.ctx;o.setTransform(...Mi(this.suspendedCtx)),W4(this.suspendedCtx,o),l0t(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),W4(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const r=this.current.activeSMask,n=this.suspendedCtx;this.composeSMask(n,r,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(t,r,n,i){const o=i[0],a=i[1],l=i[2]-o,d=i[3]-a;l===0||d===0||(this.genericComposeSMask(r.context,n,l,d,r.subtype,r.backdrop,r.transferMap,o,a,r.offsetX,r.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(n.canvas,0,0),t.restore())}genericComposeSMask(t,r,n,i,o,a,l,d,u,p,h){let f=t.canvas,g=d-p,y=u-h;if(a){if(g<0||y<0||g+n>f.width||y+i>f.height){const w=this.cachedCanvases.getCanvas("maskExtension",n,i),x=w.context;x.drawImage(f,-g,-y),a.some($=>$!==0)&&(x.globalCompositeOperation="destination-atop",x.fillStyle=ar.makeHexColor(...a),x.fillRect(0,0,n,i),x.globalCompositeOperation="source-over"),f=w.canvas,g=y=0}else if(a.some(w=>w!==0)){t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);const w=new Path2D;w.rect(g,y,n,i),t.clip(w),t.globalCompositeOperation="destination-atop",t.fillStyle=ar.makeHexColor(...a),t.fillRect(g,y,n,i),t.restore()}}r.save(),r.globalAlpha=1,r.setTransform(1,0,0,1,0,0),o==="Alpha"&&l?r.filter=this.filterFactory.addAlphaFilter(l):o==="Luminosity"&&(r.filter=this.filterFactory.addLuminosityFilter(l));const v=new Path2D;v.rect(d,u,n,i),r.clip(v),r.globalCompositeOperation="destination-in",r.drawImage(f,g,y,n,i,d,u,n,i),r.restore()}save(){this.inSMaskMode?(W4(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),W4(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,r,n,i,o,a){this.ctx.transform(t,r,n,i,o,a),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,r,n){const i=this.ctx,o=this.current;let a=o.x,l=o.y,d,u;const p=Mi(i),h=p[0]===0&&p[3]===0||p[1]===0&&p[2]===0,f=h?n.slice(0):null;for(let g=0,y=0,v=t.length;g<v;g++)switch(t[g]|0){case kc.rectangle:a=r[y++],l=r[y++];const w=r[y++],x=r[y++],$=a+w,S=l+x;i.moveTo(a,l),w===0||x===0?i.lineTo($,S):(i.lineTo($,l),i.lineTo($,S),i.lineTo(a,S)),h||o.updateRectMinMax(p,[a,l,$,S]),i.closePath();break;case kc.moveTo:a=r[y++],l=r[y++],i.moveTo(a,l),h||o.updatePathMinMax(p,a,l);break;case kc.lineTo:a=r[y++],l=r[y++],i.lineTo(a,l),h||o.updatePathMinMax(p,a,l);break;case kc.curveTo:d=a,u=l,a=r[y+4],l=r[y+5],i.bezierCurveTo(r[y],r[y+1],r[y+2],r[y+3],a,l),o.updateCurvePathMinMax(p,d,u,r[y],r[y+1],r[y+2],r[y+3],a,l,f),y+=6;break;case kc.curveTo2:d=a,u=l,i.bezierCurveTo(a,l,r[y],r[y+1],r[y+2],r[y+3]),o.updateCurvePathMinMax(p,d,u,a,l,r[y],r[y+1],r[y+2],r[y+3],f),a=r[y+2],l=r[y+3],y+=4;break;case kc.curveTo3:d=a,u=l,a=r[y+2],l=r[y+3],i.bezierCurveTo(r[y],r[y+1],a,l,a,l),o.updateCurvePathMinMax(p,d,u,r[y],r[y+1],a,l,a,l,f),y+=4;break;case kc.closePath:i.closePath();break}h&&o.updateScalingPathMinMax(p,f),o.setCurrentPoint(a,l)}closePath(){this.ctx.closePath()}stroke(t=!0){const r=this.ctx,n=this.current.strokeColor;r.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof n=="object"&&n?.getPattern?(r.save(),r.strokeStyle=n.getPattern(r,this,gu(r),Wa.STROKE),this.rescaleAndStroke(!1),r.restore()):this.rescaleAndStroke(!0)),t&&this.consumePath(this.current.getClippedPathBoundingBox()),r.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(t=!0){const r=this.ctx,n=this.current.fillColor,i=this.current.patternFill;let o=!1;i&&(r.save(),r.fillStyle=n.getPattern(r,this,gu(r),Wa.FILL),o=!0);const a=this.current.getClippedPathBoundingBox();this.contentVisible&&a!==null&&(this.pendingEOFill?(r.fill("evenodd"),this.pendingEOFill=!1):r.fill()),o&&r.restore(),t&&this.consumePath(a)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=h0t}eoClip(){this.pendingClip=iJ}beginText(){this.current.textMatrix=Uge,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const t=this.pendingTextPaths,r=this.ctx;if(t===void 0){r.beginPath();return}r.save(),r.beginPath();for(const n of t)r.setTransform(...n.transform),r.translate(n.x,n.y),n.addToPath(r,n.fontSize);r.restore(),r.clip(),r.beginPath(),delete this.pendingTextPaths}setCharSpacing(t){this.current.charSpacing=t}setWordSpacing(t){this.current.wordSpacing=t}setHScale(t){this.current.textHScale=t/100}setLeading(t){this.current.leading=-t}setFont(t,r){const n=this.commonObjs.get(t),i=this.current;if(!n)throw new Error(`Can't find font for ${t}`);if(i.fontMatrix=n.fontMatrix||oj,(i.fontMatrix[0]===0||i.fontMatrix[3]===0)&&Xr("Invalid font matrix for font "+t),r<0?(r=-r,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=r,n.isType3Font)return;const o=n.loadedName||"sans-serif",a=n.systemFontInfo?.css||`"${o}", ${n.fallbackName}`;let l="normal";n.black?l="900":n.bold&&(l="bold");const d=n.italic?"italic":"normal";let u=r;r<KX?u=KX:r>QX&&(u=QX),this.current.fontSizeScale=r/u,this.ctx.font=`${d} ${l} ${u}px ${a}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,r){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=r}setLeadingMoveText(t,r){this.setLeading(-r),this.moveText(t,r)}setTextMatrix(t,r,n,i,o,a){this.current.textMatrix=[t,r,n,i,o,a],this.current.textMatrixScale=Math.hypot(t,r),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(t,r,n,i){const o=this.ctx,a=this.current,l=a.font,d=a.textRenderingMode,u=a.fontSize/a.fontSizeScale,p=d&va.FILL_STROKE_MASK,h=!!(d&va.ADD_TO_PATH_FLAG),f=a.patternFill&&!l.missingFile;let g;(l.disableFontFace||h||f)&&(g=l.getPathGenerator(this.commonObjs,t)),l.disableFontFace||f?(o.save(),o.translate(r,n),o.beginPath(),g(o,u),i&&o.setTransform(...i),(p===va.FILL||p===va.FILL_STROKE)&&o.fill(),(p===va.STROKE||p===va.FILL_STROKE)&&o.stroke(),o.restore()):((p===va.FILL||p===va.FILL_STROKE)&&o.fillText(t,r,n),(p===va.STROKE||p===va.FILL_STROKE)&&o.strokeText(t,r,n)),h&&(this.pendingTextPaths||=[]).push({transform:Mi(o),x:r,y:n,fontSize:u,addToPath:g})}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1),t.fillText("I",0,10);const r=t.getImageData(0,0,10,10).data;let n=!1;for(let i=3;i<r.length;i+=4)if(r[i]>0&&r[i]<255){n=!0;break}return bn(this,"isFontSubpixelAAEnabled",n)}showText(t){const r=this.current,n=r.font;if(n.isType3Font)return this.showType3Text(t);const i=r.fontSize;if(i===0)return;const o=this.ctx,a=r.fontSizeScale,l=r.charSpacing,d=r.wordSpacing,u=r.fontDirection,p=r.textHScale*u,h=t.length,f=n.vertical,g=f?1:-1,y=n.defaultVMetrics,v=i*r.fontMatrix[0],w=r.textRenderingMode===va.FILL&&!n.disableFontFace&&!r.patternFill;o.save(),o.transform(...r.textMatrix),o.translate(r.x,r.y+r.textRise),u>0?o.scale(p,-1):o.scale(p,1);let x;if(r.patternFill){o.save();const E=r.fillColor.getPattern(o,this,gu(o),Wa.FILL);x=Mi(o),o.restore(),o.fillStyle=E}let $=r.lineWidth;const S=r.textMatrixScale;if(S===0||$===0){const E=r.textRenderingMode&va.FILL_STROKE_MASK;(E===va.STROKE||E===va.FILL_STROKE)&&($=this.getSinglePixelWidth())}else $/=S;if(a!==1&&(o.scale(a,a),$/=a),o.lineWidth=$,n.isInvalidPDFjsFont){const E=[];let A=0;for(const P of t)E.push(P.unicode),A+=P.width;o.fillText(E.join(""),0,0),r.x+=A*v*p,o.restore(),this.compose();return}let k=0,T;for(T=0;T<h;++T){const E=t[T];if(typeof E=="number"){k+=g*E*i/1e3;continue}let A=!1;const P=(E.isSpace?d:0)+l,D=E.fontChar,O=E.accent;let V,j,q=E.width;if(f){const F=E.vmetric||y,H=-(E.vmetric?F[1]:q*.5)*v,I=F[2]*v;q=F?-F[0]:q,V=H/a,j=(k+I)/a}else V=k/a,j=0;if(n.remeasure&&q>0){const F=o.measureText(D).width*1e3/i*a;if(q<F&&this.isFontSubpixelAAEnabled){const H=q/F;A=!0,o.save(),o.scale(H,1),V/=H}else q!==F&&(V+=(q-F)/2e3*i/a)}if(this.contentVisible&&(E.isInFont||n.missingFile)){if(w&&!O)o.fillText(D,V,j);else if(this.paintChar(D,V,j,x),O){const F=V+i*O.offset.x/a,H=j-i*O.offset.y/a;this.paintChar(O.fontChar,F,H,x)}}const W=f?q*v-P*u:q*v+P*u;k+=W,A&&o.restore()}f?r.y-=k:r.x+=k*p,o.restore(),this.compose()}showType3Text(t){const r=this.ctx,n=this.current,i=n.font,o=n.fontSize,a=n.fontDirection,l=i.vertical?1:-1,d=n.charSpacing,u=n.wordSpacing,p=n.textHScale*a,h=n.fontMatrix||oj,f=t.length,g=n.textRenderingMode===va.INVISIBLE;let y,v,w,x;if(!(g||o===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,r.save(),r.transform(...n.textMatrix),r.translate(n.x,n.y),r.scale(p,a),y=0;y<f;++y){if(v=t[y],typeof v=="number"){x=l*v*o/1e3,this.ctx.translate(x,0),n.x+=x*p;continue}const $=(v.isSpace?u:0)+d,S=i.charProcOperatorList[v.operatorListId];if(!S){Xr(`Type3 character "${v.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=v,this.save(),r.scale(o,o),r.transform(...h),this.executeOperatorList(S),this.restore()),w=ar.applyTransform([v.width,0],h)[0]*o+$,r.translate(w,0),n.x+=w*p}r.restore(),this.processingType3=null}}setCharWidth(t,r){}setCharWidthAndBounds(t,r,n,i,o,a){this.ctx.rect(n,i,o-n,a-i),this.ctx.clip(),this.endPath()}getColorN_Pattern(t){let r;if(t[0]==="TilingPattern"){const n=t[1],i=this.baseTransform||Mi(this.ctx),o={createCanvasGraphics:a=>new _f(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};r=new rN(t,n,this.ctx,o,i)}else r=this._getPattern(t[1],t[2]);return r}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,r,n){const i=ar.makeHexColor(t,r,n);this.ctx.strokeStyle=i,this.current.strokeColor=i}setFillRGBColor(t,r,n){const i=ar.makeHexColor(t,r,n);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1}_getPattern(t,r=null){let n;return this.cachedPatterns.has(t)?n=this.cachedPatterns.get(t):(n=o0t(this.getObject(t)),this.cachedPatterns.set(t,n)),r&&(n.matrix=r),n}shadingFill(t){if(!this.contentVisible)return;const r=this.ctx;this.save();const n=this._getPattern(t);r.fillStyle=n.getPattern(r,this,gu(r),Wa.SHADING);const i=gu(r);if(i){const{width:o,height:a}=r.canvas,[l,d,u,p]=ar.getAxialAlignedBoundingBox([0,0,o,a],i);this.ctx.fillRect(l,d,u-l,p-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){ti("Should not call beginInlineImage")}beginImageData(){ti("Should not call beginImageData")}paintFormXObjectBegin(t,r){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=Mi(this.ctx),r)){const n=r[2]-r[0],i=r[3]-r[1];this.ctx.rect(r[0],r[1],n,i),this.current.updateRectMinMax(Mi(this.ctx),r),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const r=this.ctx;t.isolated||Sx("TODO: Support non-isolated groups."),t.knockout&&Xr("Knockout groups not supported.");const n=Mi(r);if(t.matrix&&r.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let i=ar.getAxialAlignedBoundingBox(t.bbox,Mi(r));const o=[0,0,r.canvas.width,r.canvas.height];i=ar.intersect(i,o)||[0,0,0,0];const a=Math.floor(i[0]),l=Math.floor(i[1]),d=Math.max(Math.ceil(i[2])-a,1),u=Math.max(Math.ceil(i[3])-l,1);this.current.startNewPathAndClipBox([0,0,d,u]);let p="groupAt"+this.groupLevel;t.smask&&(p+="_smask_"+this.smaskCounter++%2);const h=this.cachedCanvases.getCanvas(p,d,u),f=h.context;f.translate(-a,-l),f.transform(...n),t.smask?this.smaskStack.push({canvas:h.canvas,context:f,offsetX:a,offsetY:l,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(r.setTransform(1,0,0,1,0,0),r.translate(a,l),r.save()),W4(r,f),this.ctx=f,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(r),this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;const r=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const i=Mi(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...i);const o=ar.getAxialAlignedBoundingBox([0,0,r.canvas.width,r.canvas.height],i);this.ctx.drawImage(r.canvas,0,0),this.ctx.restore(),this.compose(o)}}beginAnnotation(t,r,n,i,o){if(this.#e(),j9(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),r){const a=r[2]-r[0],l=r[3]-r[1];if(o&&this.annotationCanvasMap){n=n.slice(),n[4]-=r[0],n[5]-=r[1],r=r.slice(),r[0]=r[1]=0,r[2]=a,r[3]=l;const[d,u]=ar.singularValueDecompose2dScale(Mi(this.ctx)),{viewportScale:p}=this,h=Math.ceil(a*this.outputScaleX*p),f=Math.ceil(l*this.outputScaleY*p);this.annotationCanvas=this.canvasFactory.create(h,f);const{canvas:g,context:y}=this.annotationCanvas;this.annotationCanvasMap.set(t,g),this.annotationCanvas.savedCtx=this.ctx,this.ctx=y,this.ctx.save(),this.ctx.setTransform(d,0,0,-u,0,l*u),j9(this.ctx)}else j9(this.ctx),this.ctx.rect(r[0],r[1],a,l),this.ctx.clip(),this.endPath()}this.current=new eJ(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...i)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){if(!this.contentVisible)return;const r=t.count;t=this.getObject(t.data,t),t.count=r;const n=this.ctx,i=this.processingType3;if(i&&(i.compiled===void 0&&(i.compiled=d0t(t)),i.compiled)){i.compiled(n);return}const o=this._createMaskCanvas(t),a=o.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(a,o.offsetX,o.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(t,r,n=0,i=0,o,a){if(!this.contentVisible)return;t=this.getObject(t.data,t);const l=this.ctx;l.save();const d=Mi(l);l.transform(r,n,i,o,0,0);const u=this._createMaskCanvas(t);l.setTransform(1,0,0,1,u.offsetX-d[4],u.offsetY-d[5]);for(let p=0,h=a.length;p<h;p+=2){const f=ar.transform(d,[r,n,i,o,a[p],a[p+1]]),[g,y]=ar.applyTransform([0,0],f);l.drawImage(u.canvas,g,y)}l.restore(),this.compose()}paintImageMaskXObjectGroup(t){if(!this.contentVisible)return;const r=this.ctx,n=this.current.fillColor,i=this.current.patternFill;for(const o of t){const{data:a,width:l,height:d,transform:u}=o,p=this.cachedCanvases.getCanvas("maskCanvas",l,d),h=p.context;h.save();const f=this.getObject(a,o);rJ(h,f),h.globalCompositeOperation="source-in",h.fillStyle=i?n.getPattern(h,this,gu(r),Wa.FILL):n,h.fillRect(0,0,l,d),h.restore(),r.save(),r.transform(...u),r.scale(1,-1),I9(r,p.canvas,0,0,l,d,0,-1,1,1),r.restore()}this.compose()}paintImageXObject(t){if(!this.contentVisible)return;const r=this.getObject(t);if(!r){Xr("Dependent image isn't ready yet");return}this.paintInlineImageXObject(r)}paintImageXObjectRepeat(t,r,n,i){if(!this.contentVisible)return;const o=this.getObject(t);if(!o){Xr("Dependent image isn't ready yet");return}const a=o.width,l=o.height,d=[];for(let u=0,p=i.length;u<p;u+=2)d.push({transform:[r,0,0,n,i[u],i[u+1]],x:0,y:0,w:a,h:l});this.paintInlineImageXObjectGroup(o,d)}applyTransferMapsToCanvas(t){return this.current.transferMaps!=="none"&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter="none"),t.canvas}applyTransferMapsToBitmap(t){if(this.current.transferMaps==="none")return t.bitmap;const{bitmap:r,width:n,height:i}=t,o=this.cachedCanvases.getCanvas("inlineImage",n,i),a=o.context;return a.filter=this.current.transferMaps,a.drawImage(r,0,0),a.filter="none",o.canvas}paintInlineImageXObject(t){if(!this.contentVisible)return;const r=t.width,n=t.height,i=this.ctx;if(this.save(),!ka){const{filter:l}=i;l!=="none"&&l!==""&&(i.filter="none")}i.scale(1/r,-1/n);let o;if(t.bitmap)o=this.applyTransferMapsToBitmap(t);else if(typeof HTMLElement=="function"&&t instanceof HTMLElement||!t.data)o=t;else{const d=this.cachedCanvases.getCanvas("inlineImage",r,n).context;tJ(d,t),o=this.applyTransferMapsToCanvas(d)}const a=this._scaleImage(o,gu(i));i.imageSmoothingEnabled=nJ(Mi(i),t.interpolate),I9(i,a.img,0,0,a.paintWidth,a.paintHeight,0,-n,r,n),this.compose(),this.restore()}paintInlineImageXObjectGroup(t,r){if(!this.contentVisible)return;const n=this.ctx;let i;if(t.bitmap)i=t.bitmap;else{const o=t.width,a=t.height,d=this.cachedCanvases.getCanvas("inlineImage",o,a).context;tJ(d,t),i=this.applyTransferMapsToCanvas(d)}for(const o of r)n.save(),n.transform(...o.transform),n.scale(1,-1),I9(n,i,o.x,o.y,o.w,o.h,0,-1,1,1),n.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(t){}markPointProps(t,r){}beginMarkedContent(t){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(t,r){t==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(r)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(t){const r=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(t);const n=this.ctx;this.pendingClip&&(r||(this.pendingClip===iJ?n.clip("evenodd"):n.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),n.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const t=Mi(this.ctx);if(t[1]===0&&t[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{const r=Math.abs(t[0]*t[3]-t[2]*t[1]),n=Math.hypot(t[0],t[2]),i=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(n,i)/r}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:t}=this.current,{a:r,b:n,c:i,d:o}=this.ctx.getTransform();let a,l;if(n===0&&i===0){const d=Math.abs(r),u=Math.abs(o);if(d===u)if(t===0)a=l=1/d;else{const p=d*t;a=l=p<1?1/p:1}else if(t===0)a=1/d,l=1/u;else{const p=d*t,h=u*t;a=p<1?1/p:1,l=h<1?1/h:1}}else{const d=Math.abs(r*o-n*i),u=Math.hypot(r,n),p=Math.hypot(i,o);if(t===0)a=p/d,l=u/d;else{const h=t*d;a=p>h?p/h:1,l=u>h?u/h:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=l}return this._cachedScaleForStroking}rescaleAndStroke(t){const{ctx:r}=this,{lineWidth:n}=this.current,[i,o]=this.getScaleForStroking();if(r.lineWidth=n||1,i===1&&o===1){r.stroke();return}const a=r.getLineDash();if(t&&r.save(),r.scale(i,o),a.length>0){const l=Math.max(i,o);r.setLineDash(a.map(d=>d/l)),r.lineDashOffset/=l}r.stroke(),t&&r.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}}for(const e in kc)_f.prototype[e]!==void 0&&(_f.prototype[kc[e]]=_f.prototype[e]);class A7{static#e=null;static#t="";static get workerPort(){return this.#e}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");this.#e=t}static get workerSrc(){return this.#t}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");this.#t=t}}const R9={DATA:1,ERROR:2},ao={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function Rs(e){switch(e instanceof Error||typeof e=="object"&&e!==null||ti('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new Am(e.message);case"MissingPDFException":return new Tm(e.message);case"PasswordException":return new sj(e.message,e.code);case"UnexpectedResponseException":return new kx(e.message,e.status);case"UnknownErrorException":return new lj(e.message,e.details);default:return new lj(e.message,e.toString())}}class O5{constructor(t,r,n){this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=i=>{const o=i.data;if(o.targetName!==this.sourceName)return;if(o.stream){this.#t(o);return}if(o.callback){const l=o.callbackId,d=this.callbackCapabilities[l];if(!d)throw new Error(`Cannot resolve callback ${l}`);if(delete this.callbackCapabilities[l],o.callback===R9.DATA)d.resolve(o.data);else if(o.callback===R9.ERROR)d.reject(Rs(o.reason));else throw new Error("Unexpected callback case");return}const a=this.actionHandler[o.action];if(!a)throw new Error(`Unknown action from worker: ${o.action}`);if(o.callbackId){const l=this.sourceName,d=o.sourceName;new Promise(function(u){u(a(o.data))}).then(function(u){n.postMessage({sourceName:l,targetName:d,callback:R9.DATA,callbackId:o.callbackId,data:u})},function(u){n.postMessage({sourceName:l,targetName:d,callback:R9.ERROR,callbackId:o.callbackId,reason:Rs(u)})});return}if(o.streamId){this.#e(o);return}a(o.data)},n.addEventListener("message",this._onComObjOnMessage)}on(t,r){const n=this.actionHandler;if(n[t])throw new Error(`There is already an actionName called "${t}"`);n[t]=r}send(t,r,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:r},n)}sendWithPromise(t,r,n){const i=this.callbackId++,o=Promise.withResolvers();this.callbackCapabilities[i]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:i,data:r},n)}catch(a){o.reject(a)}return o.promise}sendWithStream(t,r,n,i){const o=this.streamId++,a=this.sourceName,l=this.targetName,d=this.comObj;return new ReadableStream({start:u=>{const p=Promise.withResolvers();return this.streamControllers[o]={controller:u,startCall:p,pullCall:null,cancelCall:null,isClosed:!1},d.postMessage({sourceName:a,targetName:l,action:t,streamId:o,data:r,desiredSize:u.desiredSize},i),p.promise},pull:u=>{const p=Promise.withResolvers();return this.streamControllers[o].pullCall=p,d.postMessage({sourceName:a,targetName:l,stream:ao.PULL,streamId:o,desiredSize:u.desiredSize}),p.promise},cancel:u=>{Lo(u instanceof Error,"cancel must have a valid reason");const p=Promise.withResolvers();return this.streamControllers[o].cancelCall=p,this.streamControllers[o].isClosed=!0,d.postMessage({sourceName:a,targetName:l,stream:ao.CANCEL,streamId:o,reason:Rs(u)}),p.promise}},n)}#e(t){const r=t.streamId,n=this.sourceName,i=t.sourceName,o=this.comObj,a=this,l=this.actionHandler[t.action],d={enqueue(u,p=1,h){if(this.isCancelled)return;const f=this.desiredSize;this.desiredSize-=p,f>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:n,targetName:i,stream:ao.ENQUEUE,streamId:r,chunk:u},h)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:i,stream:ao.CLOSE,streamId:r}),delete a.streamSinks[r])},error(u){Lo(u instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:i,stream:ao.ERROR,streamId:r,reason:Rs(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[r]=d,new Promise(function(u){u(l(t.data,d))}).then(function(){o.postMessage({sourceName:n,targetName:i,stream:ao.START_COMPLETE,streamId:r,success:!0})},function(u){o.postMessage({sourceName:n,targetName:i,stream:ao.START_COMPLETE,streamId:r,reason:Rs(u)})})}#t(t){const r=t.streamId,n=this.sourceName,i=t.sourceName,o=this.comObj,a=this.streamControllers[r],l=this.streamSinks[r];switch(t.stream){case ao.START_COMPLETE:t.success?a.startCall.resolve():a.startCall.reject(Rs(t.reason));break;case ao.PULL_COMPLETE:t.success?a.pullCall.resolve():a.pullCall.reject(Rs(t.reason));break;case ao.PULL:if(!l){o.postMessage({sourceName:n,targetName:i,stream:ao.PULL_COMPLETE,streamId:r,success:!0});break}l.desiredSize<=0&&t.desiredSize>0&&l.sinkCapability.resolve(),l.desiredSize=t.desiredSize,new Promise(function(d){d(l.onPull?.())}).then(function(){o.postMessage({sourceName:n,targetName:i,stream:ao.PULL_COMPLETE,streamId:r,success:!0})},function(d){o.postMessage({sourceName:n,targetName:i,stream:ao.PULL_COMPLETE,streamId:r,reason:Rs(d)})});break;case ao.ENQUEUE:if(Lo(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(t.chunk);break;case ao.CLOSE:if(Lo(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),this.#r(a,r);break;case ao.ERROR:Lo(a,"error should have stream controller"),a.controller.error(Rs(t.reason)),this.#r(a,r);break;case ao.CANCEL_COMPLETE:t.success?a.cancelCall.resolve():a.cancelCall.reject(Rs(t.reason)),this.#r(a,r);break;case ao.CANCEL:if(!l)break;new Promise(function(d){d(l.onCancel?.(Rs(t.reason)))}).then(function(){o.postMessage({sourceName:n,targetName:i,stream:ao.CANCEL_COMPLETE,streamId:r,success:!0})},function(d){o.postMessage({sourceName:n,targetName:i,stream:ao.CANCEL_COMPLETE,streamId:r,reason:Rs(d)})}),l.sinkCapability.reject(Rs(t.reason)),l.isCancelled=!0,delete this.streamSinks[r];break;default:throw new Error("Unexpected stream case")}}async#r(t,r){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[r]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}class m0t{#e;#t;constructor({parsedData:t,rawData:r}){this.#e=t,this.#t=r}getRaw(){return this.#t}get(t){return this.#e.get(t)??null}getAll(){return WF(this.#e)}has(t){return this.#e.has(t)}}const V2=Symbol("INTERNAL");class f0t{#e=!1;#t=!1;#r=!1;#i=!0;constructor(t,{name:r,intent:n,usage:i}){this.#e=!!(t&Sl.DISPLAY),this.#t=!!(t&Sl.PRINT),this.name=r,this.intent=n,this.usage=i}get visible(){if(this.#r)return this.#i;if(!this.#i)return!1;const{print:t,view:r}=this.usage;return this.#e?r?.viewState!=="OFF":this.#t?t?.printState!=="OFF":!0}_setVisible(t,r,n=!1){t!==V2&&ti("Internal method `_setVisible` called."),this.#r=n,this.#i=r}}class g0t{#e=null;#t=new Map;#r=null;#i=null;constructor(t,r=Sl.DISPLAY){if(this.renderingIntent=r,this.name=null,this.creator=null,t!==null){this.name=t.name,this.creator=t.creator,this.#i=t.order;for(const n of t.groups)this.#t.set(n.id,new f0t(r,n));if(t.baseState==="OFF")for(const n of this.#t.values())n._setVisible(V2,!1);for(const n of t.on)this.#t.get(n)._setVisible(V2,!0);for(const n of t.off)this.#t.get(n)._setVisible(V2,!1);this.#r=this.getHash()}}#s(t){const r=t.length;if(r<2)return!0;const n=t[0];for(let i=1;i<r;i++){const o=t[i];let a;if(Array.isArray(o))a=this.#s(o);else if(this.#t.has(o))a=this.#t.get(o).visible;else return Xr(`Optional content group not found: ${o}`),!0;switch(n){case"And":if(!a)return!1;break;case"Or":if(a)return!0;break;case"Not":return!a;default:return!0}}return n==="And"}isVisible(t){if(this.#t.size===0)return!0;if(!t)return Sx("Optional content group not defined."),!0;if(t.type==="OCG")return this.#t.has(t.id)?this.#t.get(t.id).visible:(Xr(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return this.#s(t.expression);if(!t.policy||t.policy==="AnyOn"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(this.#t.get(r).visible)return!0}return!1}else if(t.policy==="AllOn"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(!this.#t.get(r).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(!this.#t.get(r).visible)return!0}return!1}else if(t.policy==="AllOff"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(this.#t.get(r).visible)return!1}return!0}return Xr(`Unknown optional content policy ${t.policy}.`),!0}return Xr(`Unknown group type ${t.type}.`),!0}setVisibility(t,r=!0){const n=this.#t.get(t);if(!n){Xr(`Optional content group not found: ${t}`);return}n._setVisible(V2,!!r,!0),this.#e=null}setOCGState({state:t,preserveRB:r}){let n;for(const i of t){switch(i){case"ON":case"OFF":case"Toggle":n=i;continue}const o=this.#t.get(i);if(o)switch(n){case"ON":o._setVisible(V2,!0);break;case"OFF":o._setVisible(V2,!1);break;case"Toggle":o._setVisible(V2,!o.visible);break}}this.#e=null}get hasInitialVisibility(){return this.#r===null||this.getHash()===this.#r}getOrder(){return this.#t.size?this.#i?this.#i.slice():[...this.#t.keys()]:null}getGroups(){return this.#t.size>0?WF(this.#t):null}getGroup(t){return this.#t.get(t)||null}getHash(){if(this.#e!==null)return this.#e;const t=new Xge;for(const[r,n]of this.#t)t.update(`${r}:${n.visible}`);return this.#e=t.hexdigest()}}class y0t{constructor(t,{disableRange:r=!1,disableStream:n=!1}){Lo(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:i,initialData:o,progressiveDone:a,contentDispositionFilename:l}=t;if(this._queuedChunks=[],this._progressiveDone=a,this._contentDispositionFilename=l,o?.length>0){const d=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(d)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!n,this._isRangeSupported=!r,this._contentLength=i,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((d,u)=>{this._onReceiveData({begin:d,chunk:u})}),t.addProgressListener((d,u)=>{this._onProgress({loaded:d,total:u})}),t.addProgressiveReadListener(d=>{this._onReceiveData({chunk:d})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData({begin:t,chunk:r}){const n=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;if(t===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n);else{const i=this._rangeReaders.some(function(o){return o._begin!==t?!1:(o._enqueue(n),!0)});Lo(i,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(t){t.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:t.loaded}):this._fullRequestReader?.onProgress?.({loaded:t.loaded,total:t.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const r=this._rangeReaders.indexOf(t);r>=0&&this._rangeReaders.splice(r,1)}getFullReader(){Lo(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new v0t(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,r){if(r<=this._progressiveDataLength)return null;const n=new b0t(this,t,r);return this._pdfDataRangeTransport.requestDataRange(t,r),this._rangeReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeReaders.slice(0))r.cancel(t);this._pdfDataRangeTransport.abort()}}class v0t{constructor(t,r,n=!1,i=null){this._stream=t,this._done=n||!1,this._filename=KF(i)?i:null,this._queuedChunks=r||[],this._loaded=0;for(const o of this._queuedChunks)this._loaded+=o.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class b0t{constructor(t,r,n){this._stream=t,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length===0)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const r=this._queuedChunk;return this._queuedChunk=null,{value:r,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function w0t(e){let t=!0,r=n("filename\\*","i").exec(e);if(r){r=r[1];let p=l(r);return p=unescape(p),p=d(p),p=u(p),o(p)}if(r=a(e),r){const p=u(r);return o(p)}if(r=n("filename","i").exec(e),r){r=r[1];let p=l(r);return p=u(p),o(p)}function n(p,h){return new RegExp("(?:^|;)\\s*"+p+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',h)}function i(p,h){if(p){if(!/^[\x00-\xFF]+$/.test(h))return h;try{const f=new TextDecoder(p,{fatal:!0}),g=Ex(h);h=f.decode(g),t=!1}catch{}}return h}function o(p){return t&&/[\x80-\xff]/.test(p)&&(p=i("utf-8",p),t&&(p=i("iso-8859-1",p))),p}function a(p){const h=[];let f;const g=n("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(f=g.exec(p))!==null;){let[,v,w,x]=f;if(v=parseInt(v,10),v in h){if(v===0)break;continue}h[v]=[w,x]}const y=[];for(let v=0;v<h.length&&v in h;++v){let[w,x]=h[v];x=l(x),w&&(x=unescape(x),v===0&&(x=d(x))),y.push(x)}return y.join("")}function l(p){if(p.startsWith('"')){const h=p.slice(1).split('\\"');for(let f=0;f<h.length;++f){const g=h[f].indexOf('"');g!==-1&&(h[f]=h[f].slice(0,g),h.length=f+1),h[f]=h[f].replaceAll(/\\(.)/g,"$1")}p=h.join('"')}return p}function d(p){const h=p.indexOf("'");if(h===-1)return p;const f=p.slice(0,h),y=p.slice(h+1).replace(/^[^']*'/,"");return i(f,y)}function u(p){return!p.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(p)?p:p.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(h,f,g,y){if(g==="q"||g==="Q")return y=y.replaceAll("_"," "),y=y.replaceAll(/=([0-9a-fA-F]{2})/g,function(v,w){return String.fromCharCode(parseInt(w,16))}),i(f,y);try{y=atob(y)}catch{}return i(f,y)})}return""}function nN({getResponseHeader:e,isHttp:t,rangeChunkSize:r,disableRange:n}){const i={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(e("Content-Length"),10);return!Number.isInteger(o)||(i.suggestedLength=o,o<=2*r)||n||!t||e("Accept-Ranges")!=="bytes"||(e("Content-Encoding")||"identity")!=="identity"||(i.allowRangeRequests=!0),i}function iN(e){const t=e("Content-Disposition");if(t){let r=w0t(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch{}if(KF(r))return r}return null}function Mx(e,t){return e===404||e===0&&t.startsWith("file:")?new Tm('Missing PDF "'+t+'".'):new kx(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)}function t4e(e){return e===200||e===206}function r4e(e,t,r){return{method:"GET",headers:e,signal:r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function n4e(e){const t=new Headers;for(const r in e){const n=e[r];n!==void 0&&t.append(r,n)}return t}function i4e(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:(Xr(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}class oJ{constructor(t){this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Lo(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new x0t(this),this._fullRequestReader}getRangeReader(t,r){if(r<=this._progressiveDataLength)return null;const n=new C0t(this,t,r);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeRequestReaders.slice(0))r.cancel(t)}}class x0t{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const r=t.source;this._withCredentials=r.withCredentials||!1,this._contentLength=r.length,this._headersCapability=Promise.withResolvers(),this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._headers=n4e(this._stream.httpHeaders);const n=r.url;fetch(n,r4e(this._headers,this._withCredentials,this._abortController)).then(i=>{if(!t4e(i.status))throw Mx(i.status,n);this._reader=i.body.getReader(),this._headersCapability.resolve();const o=d=>i.headers.get(d),{allowRangeRequests:a,suggestedLength:l}=nN({getResponseHeader:o,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=l||this._contentLength,this._filename=iN(o),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Am("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:t,done:r}=await this._reader.read();return r?{value:t,done:r}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:i4e(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}class C0t{constructor(t,r,n){this._stream=t,this._reader=null,this._loaded=0;const i=t.source;this._withCredentials=i.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!i.disableStream,this._abortController=new AbortController,this._headers=n4e(this._stream.httpHeaders),this._headers.append("Range",`bytes=${r}-${n-1}`);const o=i.url;fetch(o,r4e(this._headers,this._withCredentials,this._abortController)).then(a=>{if(!t4e(a.status))throw Mx(a.status,o);this._readCapability.resolve(),this._reader=a.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:t,done:r}=await this._reader.read();return r?{value:t,done:r}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded}),{value:i4e(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}const dL=200,uL=206;function $0t(e){const t=e.response;return typeof t!="string"?t:Ex(t).buffer}class S0t{constructor(t,r={}){this.url=t,this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&r.httpHeaders||Object.create(null),this.withCredentials=r.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(t,r,n){const i={begin:t,end:r};for(const o in n)i[o]=n[o];return this.request(i)}requestFull(t){return this.request(t)}request(t){const r=new XMLHttpRequest,n=this.currXhrId++,i=this.pendingRequests[n]={xhr:r};r.open("GET",this.url),r.withCredentials=this.withCredentials;for(const o in this.httpHeaders){const a=this.httpHeaders[o];a!==void 0&&r.setRequestHeader(o,a)}return this.isHttp&&"begin"in t&&"end"in t?(r.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),i.expectedStatus=uL):i.expectedStatus=dL,r.responseType="arraybuffer",t.onError&&(r.onerror=function(o){t.onError(r.status)}),r.onreadystatechange=this.onStateChange.bind(this,n),r.onprogress=this.onProgress.bind(this,n),i.onHeadersReceived=t.onHeadersReceived,i.onDone=t.onDone,i.onError=t.onError,i.onProgress=t.onProgress,r.send(null),n}onProgress(t,r){const n=this.pendingRequests[t];n&&n.onProgress?.(r)}onStateChange(t,r){const n=this.pendingRequests[t];if(!n)return;const i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),i.readyState!==4||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],i.status===0&&this.isHttp){n.onError?.(i.status);return}const o=i.status||dL;if(!(o===dL&&n.expectedStatus===uL)&&o!==n.expectedStatus){n.onError?.(i.status);return}const l=$0t(i);if(o===uL){const d=i.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(d);n.onDone({begin:parseInt(u[1],10),chunk:l})}else l?n.onDone({begin:0,chunk:l}):n.onError?.(i.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const r=this.pendingRequests[t].xhr;delete this.pendingRequests[t],r.abort()}}class k0t{constructor(t){this._source=t,this._manager=new S0t(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const r=this._rangeRequestReaders.indexOf(t);r>=0&&this._rangeRequestReaders.splice(r,1)}getFullReader(){return Lo(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new E0t(this._manager,this._source),this._fullRequestReader}getRangeReader(t,r){const n=new _0t(this._manager,t,r);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeRequestReaders.slice(0))r.cancel(t)}}class E0t{constructor(t,r){this._manager=t;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=Promise.withResolvers(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,r=this._manager.getRequestXhr(t),n=a=>r.getResponseHeader(a),{allowRangeRequests:i,suggestedLength:o}=nN({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=iN(n),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}_onDone(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=Mx(t,this._url),this._headersReceivedCapability.reject(this._storedError);for(const r of this._requests)r.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){this.onProgress?.({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersReceivedCapability.reject(t);for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class _0t{constructor(t,r,n){this._manager=t;const i={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._requestId=t.requestRange(r,n,i),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(t){const r=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:r,done:!1}):this._queuedChunk=r,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){this._storedError=Mx(t,this._url);for(const r of this._requests)r.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){this.isStreamingSupported||this.onProgress?.({loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const r=this._queuedChunk;return this._queuedChunk=null,{value:r,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const o4e=/^file:\/\/\/[a-zA-Z]:\//;function T0t(e){const t=z1.get("url"),r=t.parse(e);return r.protocol==="file:"||r.host?r:/^[a-z]:[/\\]/i.test(e)?t.parse(`file:///${e}`):(r.host||(r.protocol="file:"),r)}class A0t{constructor(t){this.source=t,this.url=T0t(t.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Lo(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new M0t(this):new L0t(this),this._fullRequestReader}getRangeReader(t,r){if(r<=this._progressiveDataLength)return null;const n=this.isFsUrl?new P0t(this,t,r):new D0t(this,t,r);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeRequestReaders.slice(0))r.cancel(t)}}class a4e{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const r=t.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",r=>{this._error(r)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Am("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class s4e{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const r=t.source;this._isStreamingSupported=!r.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",r=>{this._error(r)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function sb(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class L0t extends a4e{constructor(t){super(t);const r=n=>{if(n.statusCode===404){const l=new Tm(`Missing PDF "${this._url}".`);this._storedError=l,this._headersCapability.reject(l);return}this._headersCapability.resolve(),this._setReadableStream(n);const i=l=>this._readableStream.headers[l.toLowerCase()],{allowRangeRequests:o,suggestedLength:a}=nN({getResponseHeader:i,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=a||this._contentLength,this._filename=iN(i)};if(this._request=null,this._url.protocol==="http:"){const n=z1.get("http");this._request=n.request(sb(this._url,t.httpHeaders),r)}else{const n=z1.get("https");this._request=n.request(sb(this._url,t.httpHeaders),r)}this._request.on("error",n=>{this._storedError=n,this._headersCapability.reject(n)}),this._request.end()}}class D0t extends s4e{constructor(t,r,n){super(t),this._httpHeaders={};for(const o in t.httpHeaders){const a=t.httpHeaders[o];a!==void 0&&(this._httpHeaders[o]=a)}this._httpHeaders.Range=`bytes=${r}-${n-1}`;const i=o=>{if(o.statusCode===404){const a=new Tm(`Missing PDF "${this._url}".`);this._storedError=a;return}this._setReadableStream(o)};if(this._request=null,this._url.protocol==="http:"){const o=z1.get("http");this._request=o.request(sb(this._url,this._httpHeaders),i)}else{const o=z1.get("https");this._request=o.request(sb(this._url,this._httpHeaders),i)}this._request.on("error",o=>{this._storedError=o}),this._request.end()}}class M0t extends a4e{constructor(t){super(t);let r=decodeURIComponent(this._url.path);o4e.test(this._url.href)&&(r=r.replace(/^\//,""));const n=z1.get("fs");n.promises.lstat(r).then(i=>{this._contentLength=i.size,this._setReadableStream(n.createReadStream(r)),this._headersCapability.resolve()},i=>{i.code==="ENOENT"&&(i=new Tm(`Missing PDF "${r}".`)),this._storedError=i,this._headersCapability.reject(i)})}}class P0t extends s4e{constructor(t,r,n){super(t);let i=decodeURIComponent(this._url.path);o4e.test(this._url.href)&&(i=i.replace(/^\//,""));const o=z1.get("fs");this._setReadableStream(o.createReadStream(i,{start:r,end:n-1}))}}const I0t=1e5,ls=30,j0t=.8;let lb=class t1{#e=Promise.withResolvers();#t=null;#r=!1;#i=!!globalThis.FontInspector?.enabled;#s=null;#n=null;#o=0;#l=0;#d=null;#u=null;#h=0;#c=0;#a=Object.create(null);#m=[];#g=null;#p=[];#v=new WeakMap;#f=null;static#b=new Map;static#x=new Map;static#$=null;static#k=new Set;constructor({textContentSource:t,container:r,viewport:n}){if(t instanceof ReadableStream)this.#g=t;else if(typeof t=="object")this.#g=new ReadableStream({start(d){d.enqueue(t),d.close()}});else throw new Error('No "textContentSource" parameter specified.');this.#t=this.#u=r,this.#c=n.scale*(globalThis.devicePixelRatio||1),this.#h=n.rotation,this.#n={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:null};const{pageWidth:i,pageHeight:o,pageX:a,pageY:l}=n.rawDims;this.#f=[1,0,0,-1,-a,l+o],this.#l=i,this.#o=o,t1.#y(),lm(r,n),this.#e.promise.catch(()=>{}).then(()=>{t1.#k.delete(this),this.#n=null,this.#a=null})}render(){const t=()=>{this.#d.read().then(({value:r,done:n})=>{if(n){this.#e.resolve();return}this.#s??=r.lang,Object.assign(this.#a,r.styles),this.#E(r.items),t()},this.#e.reject)};return this.#d=this.#g.getReader(),t1.#k.add(this),t(),this.#e.promise}update({viewport:t,onBefore:r=null}){const n=t.scale*(globalThis.devicePixelRatio||1),i=t.rotation;if(i!==this.#h&&(r?.(),this.#h=i,lm(this.#u,{rotation:i})),n!==this.#c){r?.(),this.#c=n;const o={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:t1.#w(this.#s)};for(const a of this.#p)o.properties=this.#v.get(a),o.div=a,this.#S(o)}}cancel(){const t=new Am("TextLayer task cancelled.");this.#d?.cancel(t).catch(()=>{}),this.#d=null,this.#e.reject(t)}get textDivs(){return this.#p}get textContentItemsStr(){return this.#m}#E(t){if(this.#r)return;this.#n.ctx??=t1.#w(this.#s);const r=this.#p,n=this.#m;for(const i of t){if(r.length>I0t){Xr("Ignoring additional textDivs for performance reasons."),this.#r=!0;return}if(i.str===void 0){if(i.type==="beginMarkedContentProps"||i.type==="beginMarkedContent"){const o=this.#t;this.#t=document.createElement("span"),this.#t.classList.add("markedContent"),i.id!==null&&this.#t.setAttribute("id",`${i.id}`),o.append(this.#t)}else i.type==="endMarkedContent"&&(this.#t=this.#t.parentNode);continue}n.push(i.str),this.#L(i)}}#L(t){const r=document.createElement("span"),n={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};this.#p.push(r);const i=ar.transform(this.#f,t.transform);let o=Math.atan2(i[1],i[0]);const a=this.#a[t.fontName];a.vertical&&(o+=Math.PI/2);const l=this.#i&&a.fontSubstitution||a.fontFamily,d=Math.hypot(i[2],i[3]),u=d*t1.#C(l,this.#s);let p,h;o===0?(p=i[4],h=i[5]-u):(p=i[4]+u*Math.sin(o),h=i[5]-u*Math.cos(o));const f="calc(var(--scale-factor)*",g=r.style;this.#t===this.#u?(g.left=`${(100*p/this.#l).toFixed(2)}%`,g.top=`${(100*h/this.#o).toFixed(2)}%`):(g.left=`${f}${p.toFixed(2)}px)`,g.top=`${f}${h.toFixed(2)}px)`),g.fontSize=`${f}${(t1.#$*d).toFixed(2)}px)`,g.fontFamily=l,n.fontSize=d,r.setAttribute("role","presentation"),r.textContent=t.str,r.dir=t.dir,this.#i&&(r.dataset.fontName=a.fontSubstitutionLoadedName||t.fontName),o!==0&&(n.angle=o*(180/Math.PI));let y=!1;if(t.str.length>1)y=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){const v=Math.abs(t.transform[0]),w=Math.abs(t.transform[3]);v!==w&&Math.max(v,w)/Math.min(v,w)>1.5&&(y=!0)}if(y&&(n.canvasWidth=a.vertical?t.height:t.width),this.#v.set(r,n),this.#n.div=r,this.#n.properties=n,this.#S(this.#n),n.hasText&&this.#t.append(r),n.hasEOL){const v=document.createElement("br");v.setAttribute("role","presentation"),this.#t.append(v)}}#S(t){const{div:r,properties:n,ctx:i,prevFontSize:o,prevFontFamily:a}=t,{style:l}=r;let d="";if(t1.#$>1&&(d=`scale(${1/t1.#$})`),n.canvasWidth!==0&&n.hasText){const{fontFamily:u}=l,{canvasWidth:p,fontSize:h}=n;(o!==h||a!==u)&&(i.font=`${h*this.#c}px ${u}`,t.prevFontSize=h,t.prevFontFamily=u);const{width:f}=i.measureText(r.textContent);f>0&&(d=`scaleX(${p*this.#c/f}) ${d}`)}n.angle!==0&&(d=`rotate(${n.angle}deg) ${d}`),d.length>0&&(l.transform=d)}static cleanup(){if(!(this.#k.size>0)){this.#b.clear();for(const{canvas:t}of this.#x.values())t.remove();this.#x.clear()}}static#w(t=null){let r=this.#x.get(t||="");if(!r){const n=document.createElement("canvas");n.className="hiddenCanvasElement",n.lang=t,document.body.append(n),r=n.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#x.set(t,r)}return r}static#y(){if(this.#$!==null)return;const t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.textContent="X",document.body.append(t),this.#$=t.getBoundingClientRect().height,t.remove()}static#C(t,r){const n=this.#b.get(t);if(n)return n;const i=this.#w(r),o=i.font;i.canvas.width=i.canvas.height=ls,i.font=`${ls}px ${t}`;const a=i.measureText("");let l=a.fontBoundingBoxAscent,d=Math.abs(a.fontBoundingBoxDescent);if(l){const h=l/(l+d);return this.#b.set(t,h),i.canvas.width=i.canvas.height=0,i.font=o,h}i.strokeStyle="red",i.clearRect(0,0,ls,ls),i.strokeText("g",0,0);let u=i.getImageData(0,0,ls,ls).data;d=0;for(let h=u.length-1-3;h>=0;h-=4)if(u[h]>0){d=Math.ceil(h/4/ls);break}i.clearRect(0,0,ls,ls),i.strokeText("A",0,ls),u=i.getImageData(0,0,ls,ls).data,l=0;for(let h=0,f=u.length;h<f;h+=4)if(u[h]>0){l=ls-Math.floor(h/4/ls);break}i.canvas.width=i.canvas.height=0,i.font=o;const p=l?l/(l+d):j0t;return this.#b.set(t,p),p}};function R0t(){Kge("`renderTextLayer`, please use `TextLayer` instead.");const{textContentSource:e,container:t,viewport:r,...n}=arguments[0],i=Object.keys(n);i.length>0&&Xr("Ignoring `renderTextLayer` parameters: "+i.join(", "));const o=new lb({textContentSource:e,container:t,viewport:r}),{textDivs:a,textContentItemsStr:l}=o;return{promise:o.render(),textDivs:a,textContentItemsStr:l}}function O0t(){Kge("`updateTextLayer`, please use `TextLayer` instead.")}class L7{static textContent(t){const r=[],n={items:r,styles:Object.create(null)};function i(o){if(!o)return;let a=null;const l=o.name;if(l==="#text")a=o.value;else if(L7.shouldBuildText(l))o?.attributes?.textContent?a=o.attributes.textContent:o.value&&(a=o.value);else return;if(a!==null&&r.push({str:a}),!!o.children)for(const d of o.children)i(d)}return i(t),n}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}}const F0t=65536,N0t=100,z0t=5e3,B0t=ka?X2t:N2t,H0t=ka?J2t:qge,V0t=ka?Q2t:F2t,U0t=ka?e0t:Zge;function W0t(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new oN,{docId:r}=t,n=e.url?Y0t(e.url):null,i=e.data?G0t(e.data):null,o=e.httpHeaders||null,a=e.withCredentials===!0,l=e.password??null,d=e.range instanceof l4e?e.range:null,u=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:F0t;let p=e.worker instanceof El?e.worker:null;const h=e.verbosity,f=typeof e.docBaseUrl=="string"&&!ZF(e.docBaseUrl)?e.docBaseUrl:null,g=typeof e.cMapUrl=="string"?e.cMapUrl:null,y=e.cMapPacked!==!1,v=e.CMapReaderFactory||H0t,w=typeof e.standardFontDataUrl=="string"?e.standardFontDataUrl:null,x=e.StandardFontDataFactory||U0t,$=e.stopAtErrors!==!0,S=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,k=e.isEvalSupported!==!1,T=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!ka,E=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,A=typeof e.disableFontFace=="boolean"?e.disableFontFace:ka,P=e.fontExtraProperties===!0,D=e.enableXfa===!0,O=e.ownerDocument||globalThis.document,V=e.disableRange===!0,j=e.disableStream===!0,q=e.disableAutoFetch===!0,W=e.pdfBug===!0,F=e.enableHWA===!0,H=d?d.length:e.length??NaN,I=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!ka&&!A,L=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:v===qge&&x===Zge&&g&&w&&R5(g,document.baseURI)&&R5(w,document.baseURI),z=e.canvasFactory||new B0t({ownerDocument:O,enableHWA:F}),B=e.filterFactory||new V0t({docId:r,ownerDocument:O}),ee=null;_2t(h);const Z={canvasFactory:z,filterFactory:B};if(L||(Z.cMapReaderFactory=new v({baseUrl:g,isCompressed:y}),Z.standardFontDataFactory=new x({baseUrl:w})),!p){const X={verbosity:h,port:A7.workerPort};p=X.port?El.fromPort(X):new El(X),t._worker=p}const U={docId:r,apiVersion:"4.4.168",data:i,password:l,disableAutoFetch:q,rangeChunkSize:u,length:H,docBaseUrl:f,enableXfa:D,evaluatorOptions:{maxImageSize:S,disableFontFace:A,ignoreErrors:$,isEvalSupported:k,isOffscreenCanvasSupported:T,canvasMaxAreaInBytes:E,fontExtraProperties:P,useSystemFonts:I,cMapUrl:L?g:null,standardFontDataUrl:L?w:null}},Q={disableFontFace:A,fontExtraProperties:P,ownerDocument:O,pdfBug:W,styleElement:ee,loadingParams:{disableAutoFetch:q,enableXfa:D}};return p.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(p.destroyed)throw new Error("Worker was destroyed");const X=p.messageHandler.sendWithPromise("GetDocRequest",U,i?[i.buffer]:null);let ae;if(d)ae=new y0t(d,{disableRange:V,disableStream:j});else if(!i){if(!n)throw new Error("getDocument - no `url` parameter provided.");ae=(ce=>ka?function(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype}()&&R5(ce.url)?new oJ(ce):new A0t(ce):R5(ce.url)?new oJ(ce):new k0t(ce))({url:n,length:H,httpHeaders:o,withCredentials:a,rangeChunkSize:u,disableRange:V,disableStream:j})}return X.then(fe=>{if(t.destroyed)throw new Error("Loading aborted");if(p.destroyed)throw new Error("Worker was destroyed");const ce=new O5(r,fe,p.port),se=new Q0t(ce,t,ae,Q,Z);t._transport=se,ce.send("Ready",null)})}).catch(t._capability.reject),t}function Y0t(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(ka&&typeof e=="string")return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function G0t(e){if(ka&&typeof rv<"u"&&e instanceof rv)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e=="string")return Ex(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof e=="object"&&!isNaN(e?.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function aJ(e){return typeof e=="object"&&Number.isInteger(e?.num)&&e.num>=0&&Number.isInteger(e?.gen)&&e.gen>=0}class oN{static#e=0;constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${oN.#e++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(t){throw this._worker?.port&&delete this._worker._pendingDestroy,t}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}let l4e=class{constructor(t,r,n=!1,i=null){this.length=t,this.initialData=r,this.progressiveDone=n,this.contentDispositionFilename=i,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,r){for(const n of this._rangeListeners)n(t,r)}onDataProgress(t,r){this._readyCapability.promise.then(()=>{for(const n of this._progressListeners)n(t,r)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const r of this._progressiveReadListeners)r(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,r){ti("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};class q0t{constructor(t,r){this._pdfInfo=t,this._transport=r}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return bn(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){const{renderingIntent:r}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(r)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class Z0t{#e=null;#t=!1;constructor(t,r,n,i=!1){this._pageIndex=t,this._pageInfo=r,this._transport=n,this._stats=i?new YX:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new c4e,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:r=this.rotate,offsetX:n=0,offsetY:i=0,dontFlip:o=!1}={}){return new m6({viewBox:this.view,scale:t,rotation:r,offsetX:n,offsetY:i,dontFlip:o})}getAnnotations({intent:t="display"}={}){const{renderingIntent:r}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,r)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return bn(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:t,viewport:r,intent:n="display",annotationMode:i=K2.ENABLE,transform:o=null,background:a=null,optionalContentConfigPromise:l=null,annotationCanvasMap:d=null,pageColors:u=null,printAnnotationStorage:p=null}){this._stats?.time("Overall");const h=this._transport.getRenderingIntent(n,i,p),{renderingIntent:f,cacheKey:g}=h;this.#t=!1,this.#i(),l||=this._transport.getOptionalContentConfig(f);let y=this._intentStates.get(g);y||(y=Object.create(null),this._intentStates.set(g,y)),y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);const v=!!(f&Sl.PRINT);y.displayReadyCapability||(y.displayReadyCapability=Promise.withResolvers(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(h));const w=S=>{y.renderTasks.delete(x),(this._maybeCleanupAfterRender||v)&&(this.#t=!0),this.#r(!v),S?(x.capability.reject(S),this._abortOperatorList({intentState:y,reason:S instanceof Error?S:new Error(S)})):x.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},x=new mf({callback:w,params:{canvasContext:t,viewport:r,transform:o,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:d,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!v,pdfBug:this._pdfBug,pageColors:u});(y.renderTasks||=new Set).add(x);const $=x.task;return Promise.all([y.displayReadyCapability.promise,l]).then(([S,k])=>{if(this.destroyed){w();return}if(this._stats?.time("Rendering"),!(k.renderingIntent&f))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");x.initializeGraphics({transparency:S,optionalContentConfig:k}),x.operatorListChanged()}).catch(w),$}getOperatorList({intent:t="display",annotationMode:r=K2.ENABLE,printAnnotationStorage:n=null}={}){function i(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(l))}const o=this._transport.getRenderingIntent(t,r,n,!0);let a=this._intentStates.get(o.cacheKey);a||(a=Object.create(null),this._intentStates.set(o.cacheKey,a));let l;return a.opListReadCapability||(l=Object.create(null),l.operatorListChanged=i,a.opListReadCapability=Promise.withResolvers(),(a.renderTasks||=new Set).add(l),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(o)),a.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:r=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:r===!0},{highWaterMark:100,size(i){return i.items.length}})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(n=>L7.textContent(n));const r=this.streamTextContent(t);return new Promise(function(n,i){function o(){a.read().then(function({value:d,done:u}){if(u){n(l);return}l.lang??=d.lang,Object.assign(l.styles,d.styles),l.items.push(...d.items),o()},i)}const a=r.getReader(),l={items:[],styles:Object.create(null),lang:null};o()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const r of this._intentStates.values())if(this._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),!r.opListReadCapability)for(const n of r.renderTasks)t.push(n.completed),n.cancel();return this.objs.clear(),this.#t=!1,this.#i(),Promise.all(t)}cleanup(t=!1){this.#t=!0;const r=this.#r(!1);return t&&r&&(this._stats&&=new YX),r}#r(t=!1){if(this.#i(),!this.#t||this.destroyed)return!1;if(t)return this.#e=setTimeout(()=>{this.#e=null,this.#r(!1)},z0t),!1;for(const{renderTasks:r,operatorList:n}of this._intentStates.values())if(r.size>0||!n.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#t=!1,!0}#i(){this.#e&&(clearTimeout(this.#e),this.#e=null)}_startRenderPage(t,r){const n=this._intentStates.get(r);n&&(this._stats?.timeEnd("Page Request"),n.displayReadyCapability?.resolve(t))}_renderPageChunk(t,r){for(let n=0,i=t.length;n<i;n++)r.operatorList.fnArray.push(t.fnArray[n]),r.operatorList.argsArray.push(t.argsArray[n]);r.operatorList.lastChunk=t.lastChunk,r.operatorList.separateAnnots=t.separateAnnots;for(const n of r.renderTasks)n.operatorListChanged();t.lastChunk&&this.#r(!0)}_pumpOperatorList({renderingIntent:t,cacheKey:r,annotationStorageSerializable:n}){const{map:i,transfer:o}=n,l=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:r,annotationStorage:i},o).getReader(),d=this._intentStates.get(r);d.streamReader=l;const u=()=>{l.read().then(({value:p,done:h})=>{if(h){d.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(p,d),u())},p=>{if(d.streamReader=null,!this._transport.destroyed){if(d.operatorList){d.operatorList.lastChunk=!0;for(const h of d.renderTasks)h.operatorListChanged();this.#r(!0)}if(d.displayReadyCapability)d.displayReadyCapability.reject(p);else if(d.opListReadCapability)d.opListReadCapability.reject(p);else throw p}})};u()}_abortOperatorList({intentState:t,reason:r,force:n=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!n){if(t.renderTasks.size>0)return;if(r instanceof qF){let i=N0t;r.extraDelay>0&&r.extraDelay<1e3&&(i+=r.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:r,force:!0})},i);return}}if(t.streamReader.cancel(new Am(r.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[i,o]of this._intentStates)if(o===t){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}}class K0t{#e=new Set;#t=Promise.resolve();postMessage(t,r){const n={data:structuredClone(t,r?{transfer:r}:null)};this.#t.then(()=>{for(const i of this.#e)i.call(this,n)})}addEventListener(t,r){this.#e.add(r)}removeEventListener(t,r){this.#e.delete(r)}terminate(){this.#e.clear()}}const Iu={isWorkerDisabled:!1,fakeWorkerId:0};ka&&(Iu.isWorkerDisabled=!0,A7.workerSrc||="./pdf.worker.mjs"),Iu.isSameOrigin=function(e,t){let r;try{if(r=new URL(e),!r.origin||r.origin==="null")return!1}catch{return!1}const n=new URL(t,r);return r.origin===n.origin},Iu.createCDNWrapper=function(e){const t=`await import("${e}");`;return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))};class El{static#e;constructor({name:t=null,port:r=null,verbosity:n=T2t()}={}){if(this.name=t,this.destroyed=!1,this.verbosity=n,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,r){if(El.#e?.has(r))throw new Error("Cannot use more than one PDFWorker per port.");(El.#e||=new WeakMap).set(r,this),this._initializeFromPort(r);return}this._initialize()}get promise(){return ka?Promise.all([z1.promise,this._readyCapability.promise]):this._readyCapability.promise}#t(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new O5("main","worker",t),this._messageHandler.on("ready",function(){}),this.#t()}_initialize(){if(Iu.isWorkerDisabled||El.#r){this._setupFakeWorker();return}let{workerSrc:t}=El;try{Iu.isSameOrigin(window.location.href,t)||(t=Iu.createCDNWrapper(new URL(t,window.location).href));const r=new Worker(t,{type:"module"}),n=new O5("main","worker",r),i=()=>{o.abort(),n.destroy(),r.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=new AbortController;r.addEventListener("error",()=>{this._webWorker||i()},{signal:o.signal}),n.on("test",l=>{if(o.abort(),this.destroyed||!l){i();return}this._messageHandler=n,this._port=r,this._webWorker=r,this.#t()}),n.on("ready",l=>{if(o.abort(),this.destroyed){i();return}try{a()}catch{this._setupFakeWorker()}});const a=()=>{const l=new Uint8Array;n.send("test",l,[l.buffer])};a();return}catch{Sx("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){Iu.isWorkerDisabled||(Xr("Setting up fake worker."),Iu.isWorkerDisabled=!0),El._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const r=new K0t;this._port=r;const n=`fake${Iu.fakeWorkerId++}`,i=new O5(n+"_worker",n,r);t.setup(i,r),this._messageHandler=new O5(n,n+"_worker",r),this.#t()}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),El.#e?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(t){if(!t?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const r=this.#e?.get(t.port);if(r){if(r._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return r}return new El(t)}static get workerSrc(){if(A7.workerSrc)return A7.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#r(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return bn(this,"_setupFakeWorkerGlobal",(async()=>this.#r?this.#r:(await import(this.workerSrc)).WorkerMessageHandler)())}}class Q0t{#e=new Map;#t=new Map;#r=new Map;#i=new Map;#s=null;constructor(t,r,n,i,o){this.messageHandler=t,this.loadingTask=r,this.commonObjs=new c4e,this.fontLoader=new Z2t({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=o.canvasFactory,this.filterFactory=o.filterFactory,this.cMapReaderFactory=o.cMapReaderFactory,this.standardFontDataFactory=o.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}#n(t,r=null){const n=this.#e.get(t);if(n)return n;const i=this.messageHandler.sendWithPromise(t,r);return this.#e.set(t,i),i}get annotationStorage(){return bn(this,"annotationStorage",new tN)}getRenderingIntent(t,r=K2.ENABLE,n=null,i=!1){let o=Sl.DISPLAY,a=cj;switch(t){case"any":o=Sl.ANY;break;case"display":break;case"print":o=Sl.PRINT;break;default:Xr(`getRenderingIntent - invalid intent: ${t}`)}switch(r){case K2.DISABLE:o+=Sl.ANNOTATIONS_DISABLE;break;case K2.ENABLE:break;case K2.ENABLE_FORMS:o+=Sl.ANNOTATIONS_FORMS;break;case K2.ENABLE_STORAGE:o+=Sl.ANNOTATIONS_STORAGE,a=(o&Sl.PRINT&&n instanceof Jge?n:this.annotationStorage).serializable;break;default:Xr(`getRenderingIntent - invalid annotationMode: ${r}`)}return i&&(o+=Sl.OPLIST),{renderingIntent:o,cacheKey:`${o}_${a.hash}`,annotationStorageSerializable:a}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#s?.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const n of this.#t.values())t.push(n._destroy());this.#t.clear(),this.#r.clear(),this.#i.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const r=this.messageHandler.sendWithPromise("Terminate",null);return t.push(r),Promise.all(t).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),lb.cleanup(),this._networkStream?.cancelAllRequests(new Am("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:r}=this;t.on("GetReader",(n,i)=>{Lo(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=o=>{this._lastProgress={loaded:o.loaded,total:o.total}},i.onPull=()=>{this._fullReader.read().then(function({value:o,done:a}){if(a){i.close();return}Lo(o instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(o),1,[o])}).catch(o=>{i.error(o)})},i.onCancel=o=>{this._fullReader.cancel(o),i.ready.catch(a=>{if(!this.destroyed)throw a})}}),t.on("ReaderHeadersReady",n=>{const i=Promise.withResolvers(),o=this._fullReader;return o.headersReady.then(()=>{(!o.isStreamingSupported||!o.isRangeSupported)&&(this._lastProgress&&r.onProgress?.(this._lastProgress),o.onProgress=a=>{r.onProgress?.({loaded:a.loaded,total:a.total})}),i.resolve({isStreamingSupported:o.isStreamingSupported,isRangeSupported:o.isRangeSupported,contentLength:o.contentLength})},i.reject),i.promise}),t.on("GetRangeReader",(n,i)=>{Lo(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const o=this._networkStream.getRangeReader(n.begin,n.end);if(!o){i.close();return}i.onPull=()=>{o.read().then(function({value:a,done:l}){if(l){i.close();return}Lo(a instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{i.error(a)})},i.onCancel=a=>{o.cancel(a),i.ready.catch(l=>{if(!this.destroyed)throw l})}}),t.on("GetDoc",({pdfInfo:n})=>{this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,r._capability.resolve(new q0t(n,this))}),t.on("DocException",function(n){let i;switch(n.name){case"PasswordException":i=new sj(n.message,n.code);break;case"InvalidPDFException":i=new Wge(n.message);break;case"MissingPDFException":i=new Tm(n.message);break;case"UnexpectedResponseException":i=new kx(n.message,n.status);break;case"UnknownErrorException":i=new lj(n.message,n.details);break;default:ti("DocException - expected a valid Error.")}r._capability.reject(i)}),t.on("PasswordRequest",n=>{if(this.#s=Promise.withResolvers(),r.onPassword){const i=o=>{o instanceof Error?this.#s.reject(o):this.#s.resolve({password:o})};try{r.onPassword(i,n.code)}catch(o){this.#s.reject(o)}}else this.#s.reject(new sj(n.message,n.code));return this.#s.promise}),t.on("DataLoaded",n=>{r.onProgress?.({loaded:n.length,total:n.length}),this.downloadInfoCapability.resolve(n)}),t.on("StartRenderPage",n=>{if(this.destroyed)return;this.#t.get(n.pageIndex)._startRenderPage(n.transparency,n.cacheKey)}),t.on("commonobj",([n,i,o])=>{if(this.destroyed||this.commonObjs.has(n))return null;switch(i){case"Font":const{disableFontFace:a,fontExtraProperties:l,pdfBug:d}=this._params;if("error"in o){const f=o.error;Xr(`Error during font loading: ${f}`),this.commonObjs.resolve(n,f);break}const u=d&&globalThis.FontInspector?.enabled?(f,g)=>globalThis.FontInspector.fontAdded(f,g):null,p=new K2t(o,{disableFontFace:a,inspectFont:u});this.fontLoader.bind(p).catch(()=>t.sendWithPromise("FontFallback",{id:n})).finally(()=>{!l&&p.data&&(p.data=null),this.commonObjs.resolve(n,p)});break;case"CopyLocalImage":const{imageRef:h}=o;Lo(h,"The imageRef must be defined.");for(const f of this.#t.values())for(const[,g]of f.objs)if(g?.ref===h)return g.dataLen?(this.commonObjs.resolve(n,structuredClone(g)),g.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,o);break;default:throw new Error(`Got unknown common object type ${i}`)}return null}),t.on("obj",([n,i,o,a])=>{if(this.destroyed)return;const l=this.#t.get(i);if(!l.objs.has(n)){if(l._intentStates.size===0){a?.bitmap?.close();return}switch(o){case"Image":l.objs.resolve(n,a),a?.dataLen>$2t&&(l._maybeCleanupAfterRender=!0);break;case"Pattern":l.objs.resolve(n,a);break;default:throw new Error(`Got unknown object type ${o}`)}}}),t.on("DocProgress",n=>{this.destroyed||r.onProgress?.({loaded:n.loaded,total:n.total})}),t.on("FetchBuiltInCMap",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(n):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),t.on("FetchStandardFontData",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(n):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&Xr("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:t,transfer:r}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:this._fullReader?.filename??null},r).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const r=t-1,n=this.#r.get(r);if(n)return n;const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then(o=>{if(this.destroyed)throw new Error("Transport destroyed");o.refStr&&this.#i.set(o.refStr,t);const a=new Z0t(r,o,this,this._params.pdfBug);return this.#t.set(r,a),a});return this.#r.set(r,i),i}getPageIndex(t){return aJ(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(t,r){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:r})}getFieldObjects(){return this.#n("GetFieldObjects")}hasJSActions(){return this.#n("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#n("GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return this.#n("GetOptionalContentConfig").then(r=>new g0t(r,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",r=this.#e.get(t);if(r)return r;const n=this.messageHandler.sendWithPromise(t,null).then(i=>({info:i[0],metadata:i[1]?new m0t(i[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(t,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const r of this.#t.values())if(!r.cleanup())throw new Error(`startCleanup: Page ${r.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),lb.cleanup()}}cachedPageNumber(t){if(!aJ(t))return null;const r=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return this.#i.get(r)??null}}const O9=Symbol("INITIAL_DATA");class c4e{#e=Object.create(null);#t(t){return this.#e[t]||={...Promise.withResolvers(),data:O9}}get(t,r=null){if(r){const i=this.#t(t);return i.promise.then(()=>r(i.data)),null}const n=this.#e[t];if(!n||n.data===O9)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return n.data}has(t){const r=this.#e[t];return!!r&&r.data!==O9}resolve(t,r=null){const n=this.#t(t);n.data=r,n.resolve()}clear(){for(const t in this.#e){const{data:r}=this.#e[t];r?.bitmap?.close()}this.#e=Object.create(null)}*[Symbol.iterator](){for(const t in this.#e){const{data:r}=this.#e[t];r!==O9&&(yield[t,r])}}}class X0t{#e=null;constructor(t){this.#e=t,this.onContinue=null}get promise(){return this.#e.capability.promise}cancel(t=0){this.#e.cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=this.#e.operatorList;if(!t)return!1;const{annotationCanvasMap:r}=this.#e;return t.form||t.canvas&&r?.size>0}}class mf{#e=null;static#t=new WeakSet;constructor({callback:t,params:r,objs:n,commonObjs:i,annotationCanvasMap:o,operatorList:a,pageIndex:l,canvasFactory:d,filterFactory:u,useRequestAnimationFrame:p=!1,pdfBug:h=!1,pageColors:f=null}){this.callback=t,this.params=r,this.objs=n,this.commonObjs=i,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=l,this.canvasFactory=d,this.filterFactory=u,this._pdfBug=h,this.pageColors=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=p===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new X0t(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:r}){if(this.cancelled)return;if(this._canvas){if(mf.#t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");mf.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:n,viewport:i,transform:o,background:a}=this.params;this.gfx=new _f(n,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:r},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:i,transparency:t,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(t=null,r=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null),mf.#t.delete(this._canvas),this.callback(t||new qF(`Rendering cancelled, page ${this._pageIndex+1}`,r))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),mf.#t.delete(this._canvas),this.callback())))}}const J0t="4.4.168",ept="19fbc8998";function sJ(e){return Math.floor(Math.max(0,Math.min(1,e))*255).toString(16).padStart(2,"0")}function Y4(e){return Math.max(0,Math.min(255,255*e))}class lJ{static CMYK_G([t,r,n,i]){return["G",1-Math.min(1,.3*t+.59*n+.11*r+i)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return t=Y4(t),[t,t,t]}static G_HTML([t]){const r=sJ(t);return`#${r}${r}${r}`}static RGB_G([t,r,n]){return["G",.3*t+.59*r+.11*n]}static RGB_rgb(t){return t.map(Y4)}static RGB_HTML(t){return`#${t.map(sJ).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,r,n,i]){return["RGB",1-Math.min(1,t+i),1-Math.min(1,n+i),1-Math.min(1,r+i)]}static CMYK_rgb([t,r,n,i]){return[Y4(1-Math.min(1,t+i)),Y4(1-Math.min(1,n+i)),Y4(1-Math.min(1,r+i))]}static CMYK_HTML(t){const r=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(r)}static RGB_CMYK([t,r,n]){const i=1-t,o=1-r,a=1-n,l=Math.min(i,o,a);return["CMYK",i,o,a,l]}}class d4e{static setupStorage(t,r,n,i,o){const a=i.getValue(r,{value:null});switch(n.name){case"textarea":if(a.value!==null&&(t.textContent=a.value),o==="print")break;t.addEventListener("input",l=>{i.setValue(r,{value:l.target.value})});break;case"input":if(n.attributes.type==="radio"||n.attributes.type==="checkbox"){if(a.value===n.attributes.xfaOn?t.setAttribute("checked",!0):a.value===n.attributes.xfaOff&&t.removeAttribute("checked"),o==="print")break;t.addEventListener("change",l=>{i.setValue(r,{value:l.target.checked?l.target.getAttribute("xfaOn"):l.target.getAttribute("xfaOff")})})}else{if(a.value!==null&&t.setAttribute("value",a.value),o==="print")break;t.addEventListener("input",l=>{i.setValue(r,{value:l.target.value})})}break;case"select":if(a.value!==null){t.setAttribute("value",a.value);for(const l of n.children)l.attributes.value===a.value?l.attributes.selected=!0:l.attributes.hasOwnProperty("selected")&&delete l.attributes.selected}t.addEventListener("input",l=>{const d=l.target.options,u=d.selectedIndex===-1?"":d[d.selectedIndex].value;i.setValue(r,{value:u})});break}}static setAttributes({html:t,element:r,storage:n=null,intent:i,linkService:o}){const{attributes:a}=r,l=t instanceof HTMLAnchorElement;a.type==="radio"&&(a.name=`${a.name}-${i}`);for(const[d,u]of Object.entries(a))if(u!=null)switch(d){case"class":u.length&&t.setAttribute(d,u.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",u);break;case"style":Object.assign(t.style,u);break;case"textContent":t.textContent=u;break;default:(!l||d!=="href"&&d!=="newWindow")&&t.setAttribute(d,u)}l&&o.addLinkAttributes(t,a.href,a.newWindow),n&&a.dataId&&this.setupStorage(t,a.dataId,r,n)}static render(t){const r=t.annotationStorage,n=t.linkService,i=t.xfaHtml,o=t.intent||"display",a=document.createElement(i.name);i.attributes&&this.setAttributes({html:a,element:i,intent:o,linkService:n});const l=o!=="richText",d=t.div;if(d.append(a),t.viewport){const h=`matrix(${t.viewport.transform.join(",")})`;d.style.transform=h}l&&d.setAttribute("class","xfaLayer xfaFont");const u=[];if(i.children.length===0){if(i.value){const h=document.createTextNode(i.value);a.append(h),l&&L7.shouldBuildText(i.name)&&u.push(h)}return{textDivs:u}}const p=[[i,-1,a]];for(;p.length>0;){const[h,f,g]=p.at(-1);if(f+1===h.children.length){p.pop();continue}const y=h.children[++p.at(-1)[1]];if(y===null)continue;const{name:v}=y;if(v==="#text"){const x=document.createTextNode(y.value);u.push(x),g.append(x);continue}const w=y?.attributes?.xmlns?document.createElementNS(y.attributes.xmlns,v):document.createElement(v);if(g.append(w),y.attributes&&this.setAttributes({html:w,element:y,storage:r,intent:o,linkService:n}),y.children?.length>0)p.push([y,-1,w]);else if(y.value){const x=document.createTextNode(y.value);l&&L7.shouldBuildText(v)&&u.push(x),w.append(x)}}for(const h of d.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))h.setAttribute("readOnly",!0);return{textDivs:u}}static update(t){const r=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=r,t.div.hidden=!1}}const y6=1e3,tpt=9,cm=new WeakSet;function t2(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class rpt{static create(t){switch(t.data.annotationType){case ko.LINK:return new u4e(t);case ko.TEXT:return new npt(t);case ko.WIDGET:switch(t.data.fieldType){case"Tx":return new ipt(t);case"Btn":return t.data.radioButton?new p4e(t):t.data.checkBox?new apt(t):new spt(t);case"Ch":return new lpt(t);case"Sig":return new opt(t)}return new Lm(t);case ko.POPUP:return new hj(t);case ko.FREETEXT:return new h4e(t);case ko.LINE:return new dpt(t);case ko.SQUARE:return new upt(t);case ko.CIRCLE:return new ppt(t);case ko.POLYLINE:return new m4e(t);case ko.CARET:return new mpt(t);case ko.INK:return new f4e(t);case ko.POLYGON:return new hpt(t);case ko.HIGHLIGHT:return new fpt(t);case ko.UNDERLINE:return new gpt(t);case ko.SQUIGGLY:return new ypt(t);case ko.STRIKEOUT:return new vpt(t);case ko.STAMP:return new g4e(t);case ko.FILEATTACHMENT:return new bpt(t);default:return new eo(t)}}}class eo{#e=null;#t=!1;#r=null;constructor(t,{isRenderable:r=!1,ignoreBorder:n=!1,createQuadrilaterals:i=!1}={}){this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,r&&(this.container=this._createContainer(n)),i&&this._createQuadrilaterals()}static _hasPopupData({titleObj:t,contentsObj:r,richText:n}){return!!(t?.str||r?.str||n?.str)}get hasPopupData(){return eo._hasPopupData(this.data)}updateEdited(t){if(!this.container)return;this.#e||={rect:this.data.rect.slice(0)};const{rect:r}=t;r&&this.#i(r),this.#r?.popup.updateEdited(t)}resetEdited(){this.#e&&(this.#i(this.#e.rect),this.#r?.popup.resetEdited(),this.#e=null)}#i(t){const{container:{style:r},data:{rect:n,rotation:i},parent:{viewport:{rawDims:{pageWidth:o,pageHeight:a,pageX:l,pageY:d}}}}=this;n?.splice(0,4,...t);const{width:u,height:p}=t2(t);r.left=`${100*(t[0]-l)/o}%`,r.top=`${100*(a-t[3]+d)/a}%`,i===0?(r.width=`${100*u/o}%`,r.height=`${100*p/a}%`):this.setRotation(i)}_createContainer(t){const{data:r,parent:{page:n,viewport:i}}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",r.id),this instanceof Lm||(o.tabIndex=y6);const{style:a}=o;if(a.zIndex=this.parent.zIndex++,r.popupRef&&o.setAttribute("aria-haspopup","dialog"),r.alternativeText&&(o.title=r.alternativeText),r.noRotate&&o.classList.add("norotate"),!r.rect||this instanceof hj){const{rotation:v}=r;return!r.hasOwnCanvas&&v!==0&&this.setRotation(v,o),o}const{width:l,height:d}=t2(r.rect);if(!t&&r.borderStyle.width>0){a.borderWidth=`${r.borderStyle.width}px`;const v=r.borderStyle.horizontalCornerRadius,w=r.borderStyle.verticalCornerRadius;if(v>0||w>0){const $=`calc(${v}px * var(--scale-factor)) / calc(${w}px * var(--scale-factor))`;a.borderRadius=$}else if(this instanceof p4e){const $=`calc(${l}px * var(--scale-factor)) / calc(${d}px * var(--scale-factor))`;a.borderRadius=$}switch(r.borderStyle.style){case U4.SOLID:a.borderStyle="solid";break;case U4.DASHED:a.borderStyle="dashed";break;case U4.BEVELED:Xr("Unimplemented border style: beveled");break;case U4.INSET:Xr("Unimplemented border style: inset");break;case U4.UNDERLINE:a.borderBottomStyle="solid";break}const x=r.borderColor||null;x?(this.#t=!0,a.borderColor=ar.makeHexColor(x[0]|0,x[1]|0,x[2]|0)):a.borderWidth=0}const u=ar.normalizeRect([r.rect[0],n.view[3]-r.rect[1]+n.view[1],r.rect[2],n.view[3]-r.rect[3]+n.view[1]]),{pageWidth:p,pageHeight:h,pageX:f,pageY:g}=i.rawDims;a.left=`${100*(u[0]-f)/p}%`,a.top=`${100*(u[1]-g)/h}%`;const{rotation:y}=r;return r.hasOwnCanvas||y===0?(a.width=`${100*l/p}%`,a.height=`${100*d/h}%`):this.setRotation(y,o),o}setRotation(t,r=this.container){if(!this.data.rect)return;const{pageWidth:n,pageHeight:i}=this.parent.viewport.rawDims,{width:o,height:a}=t2(this.data.rect);let l,d;t%180===0?(l=100*o/n,d=100*a/i):(l=100*a/n,d=100*o/i),r.style.width=`${l}%`,r.style.height=`${d}%`,r.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const t=(r,n,i)=>{const o=i.detail[r],a=o[0],l=o.slice(1);i.target.style[n]=lJ[`${a}_HTML`](l),this.annotationStorage.setValue(this.data.id,{[n]:lJ[`${a}_rgb`](l)})};return bn(this,"_commonActions",{display:r=>{const{display:n}=r.detail,i=n%2===1;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:i,noPrint:n===1||n===2})},print:r=>{this.annotationStorage.setValue(this.data.id,{noPrint:!r.detail.print})},hidden:r=>{const{hidden:n}=r.detail;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:n,noView:n})},focus:r=>{setTimeout(()=>r.target.focus({preventScroll:!1}),0)},userName:r=>{r.target.title=r.detail.userName},readonly:r=>{r.target.disabled=r.detail.readonly},required:r=>{this._setRequired(r.target,r.detail.required)},bgColor:r=>{t("bgColor","backgroundColor",r)},fillColor:r=>{t("fillColor","backgroundColor",r)},fgColor:r=>{t("fgColor","color",r)},textColor:r=>{t("textColor","color",r)},borderColor:r=>{t("borderColor","borderColor",r)},strokeColor:r=>{t("strokeColor","borderColor",r)},rotation:r=>{const n=r.detail.rotation;this.setRotation(n),this.annotationStorage.setValue(this.data.id,{rotation:n})}})}_dispatchEventFromSandbox(t,r){const n=this._commonActions;for(const i of Object.keys(r.detail))(t[i]||n[i])?.(r)}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const r=this.annotationStorage.getRawValue(this.data.id);if(!r)return;const n=this._commonActions;for(const[i,o]of Object.entries(r)){const a=n[i];if(a){const l={detail:{[i]:o},target:t};a(l),delete r[i]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:t}=this.data;if(!t)return;const[r,n,i,o]=this.data.rect.map(v=>Math.fround(v));if(t.length===8){const[v,w,x,$]=t.subarray(2,6);if(i===v&&o===w&&r===x&&n===$)return}const{style:a}=this.container;let l;if(this.#t){const{borderColor:v,borderWidth:w}=a;a.borderWidth=0,l=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${v}" stroke-width="${w}">`],this.container.classList.add("hasBorder")}const d=i-r,u=o-n,{svgFactory:p}=this,h=p.createElement("svg");h.classList.add("quadrilateralsContainer"),h.setAttribute("width",0),h.setAttribute("height",0);const f=p.createElement("defs");h.append(f);const g=p.createElement("clipPath"),y=`clippath_${this.data.id}`;g.setAttribute("id",y),g.setAttribute("clipPathUnits","objectBoundingBox"),f.append(g);for(let v=2,w=t.length;v<w;v+=8){const x=t[v],$=t[v+1],S=t[v+2],k=t[v+3],T=p.createElement("rect"),E=(S-r)/d,A=(o-$)/u,P=(x-S)/d,D=($-k)/u;T.setAttribute("x",E),T.setAttribute("y",A),T.setAttribute("width",P),T.setAttribute("height",D),g.append(T),l?.push(`<rect vector-effect="non-scaling-stroke" x="${E}" y="${A}" width="${P}" height="${D}"/>`)}this.#t&&(l.push("</g></svg>')"),a.backgroundImage=l.join("")),this.container.append(h),this.container.style.clipPath=`url(#${y})`}_createPopup(){const{container:t,data:r}=this;t.setAttribute("aria-haspopup","dialog");const n=this.#r=new hj({data:{color:r.color,titleObj:r.titleObj,modificationDate:r.modificationDate,contentsObj:r.contentsObj,richText:r.richText,parentRect:r.rect,borderStyle:0,id:`popup_${r.id}`,rotation:r.rotation},parent:this.parent,elements:[this]});this.parent.div.append(n.render())}render(){ti("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,r=null){const n=[];if(this._fieldObjects){const i=this._fieldObjects[t];if(i)for(const{page:o,id:a,exportValues:l}of i){if(o===-1||a===r)continue;const d=typeof l=="string"?l:null,u=document.querySelector(`[data-element-id="${a}"]`);if(u&&!cm.has(u)){Xr(`_getElementsByName - element not allowed: ${a}`);continue}n.push({id:a,exportValue:d,domElement:u})}return n}for(const i of document.getElementsByName(t)){const{exportValue:o}=i,a=i.getAttribute("data-element-id");a!==r&&cm.has(i)&&n.push({id:a,exportValue:o,domElement:i})}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(const r of t)r.classList.add("highlightArea");else t.classList.add("highlightArea")}get _isEditable(){return!1}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:t,data:{id:r}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:t,editId:r})})}}class u4e extends eo{constructor(t,r=null){super(t,{isRenderable:!0,ignoreBorder:!!r?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=t.data.isTooltipOnly}render(){const{data:t,linkService:r}=this,n=document.createElement("a");n.setAttribute("data-element-id",t.id);let i=!1;return t.url?(r.addLinkAttributes(n,t.url,t.newWindow),i=!0):t.action?(this._bindNamedAction(n,t.action),i=!0):t.attachment?(this.#t(n,t.attachment,t.attachmentDest),i=!0):t.setOCGState?(this.#r(n,t.setOCGState),i=!0):t.dest?(this._bindLink(n,t.dest),i=!0):(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,t),i=!0),t.resetForm?(this._bindResetFormAction(n,t.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(n,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&this.container.append(n),this.container}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(t,r){t.href=this.linkService.getDestinationHash(r),t.onclick=()=>(r&&this.linkService.goToDestination(r),!1),(r||r==="")&&this.#e()}_bindNamedAction(t,r){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(r),!1),this.#e()}#t(t,r,n=null){t.href=this.linkService.getAnchorUrl(""),r.description&&(t.title=r.description),t.onclick=()=>(this.downloadManager?.openOrDownloadData(r.content,r.filename,n),!1),this.#e()}#r(t,r){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeSetOCGState(r),!1),this.#e()}_bindJSAction(t,r){t.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const i of Object.keys(r.actions)){const o=n.get(i);o&&(t[o]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r.id,name:i}}),!1))}t.onclick||(t.onclick=()=>!1),this.#e()}_bindResetFormAction(t,r){const n=t.onclick;if(n||(t.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){Xr('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),n||(t.onclick=()=>!1);return}t.onclick=()=>{n?.();const{fields:i,refs:o,include:a}=r,l=[];if(i.length!==0||o.length!==0){const p=new Set(o);for(const h of i){const f=this._fieldObjects[h]||[];for(const{id:g}of f)p.add(g)}for(const h of Object.values(this._fieldObjects))for(const f of h)p.has(f.id)===a&&l.push(f)}else for(const p of Object.values(this._fieldObjects))l.push(...p);const d=this.annotationStorage,u=[];for(const p of l){const{id:h}=p;switch(u.push(h),p.type){case"text":{const g=p.defaultValue||"";d.setValue(h,{value:g});break}case"checkbox":case"radiobutton":{const g=p.defaultValue===p.exportValues;d.setValue(h,{value:g});break}case"combobox":case"listbox":{const g=p.defaultValue||"";d.setValue(h,{value:g});break}default:continue}const f=document.querySelector(`[data-element-id="${h}"]`);if(f){if(!cm.has(f)){Xr(`_bindResetFormAction - element not allowed: ${h}`);continue}}else continue;f.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}}),!1}}}class npt extends eo{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class Lm extends eo{render(){return this.container}showElementAndHideCanvas(t){this.data.hasOwnCanvas&&(t.previousSibling?.nodeName==="CANVAS"&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return xs.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,r,n,i,o){n.includes("mouse")?t.addEventListener(n,a=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:o(a),shift:a.shiftKey,modifier:this._getKeyModifier(a)}})}):t.addEventListener(n,a=>{if(n==="blur"){if(!r.focused||!a.relatedTarget)return;r.focused=!1}else if(n==="focus"){if(r.focused)return;r.focused=!0}o&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:o(a)}})})}_setEventListeners(t,r,n,i){for(const[o,a]of n)(a==="Action"||this.data.actions?.[a])&&((a==="Focus"||a==="Blur")&&(r||={focused:!1}),this._setEventListener(t,r,o,a,i),a==="Focus"&&!this.data.actions?.Blur?this._setEventListener(t,r,"blur","Blur",null):a==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(t,r,"focus","Focus",null))}_setBackgroundColor(t){const r=this.data.backgroundColor||null;t.style.backgroundColor=r===null?"transparent":ar.makeHexColor(r[0],r[1],r[2])}_setTextStyle(t){const r=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||tpt,o=t.style;let a;const l=2,d=u=>Math.round(10*u)/10;if(this.data.multiLine){const u=Math.abs(this.data.rect[3]-this.data.rect[1]-l),p=Math.round(u/(aL*i))||1,h=u/p;a=Math.min(i,d(h/aL))}else{const u=Math.abs(this.data.rect[3]-this.data.rect[1]-l);a=Math.min(i,d(u/aL))}o.fontSize=`calc(${a}px * var(--scale-factor))`,o.color=ar.makeHexColor(n[0],n[1],n[2]),this.data.textAlignment!==null&&(o.textAlign=r[this.data.textAlignment])}_setRequired(t,r){r?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",r)}}class ipt extends Lm{constructor(t){const r=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:r})}setPropertyOnSiblings(t,r,n,i){const o=this.annotationStorage;for(const a of this._getElementsByName(t.name,t.id))a.domElement&&(a.domElement[r]=n),o.setValue(a.id,{[i]:n})}render(){const t=this.annotationStorage,r=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){const i=t.getValue(r,{value:this.data.fieldValue});let o=i.value||"";const a=t.getValue(r,{charLimit:this.data.maxLen}).charLimit;a&&o.length>a&&(o=o.slice(0,a));let l=i.formattedValue||this.data.textContent?.join(`
|
|
290
290
|
`)||null;l&&this.data.comb&&(l=l.replaceAll(/\s+/g,""));const d={userValue:o,formattedValue:l,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=l??o,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type="text",n.setAttribute("value",l??o),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),cm.add(n),n.setAttribute("data-element-id",r),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=y6,this._setRequired(n,this.data.required),a&&(n.maxLength=a),n.addEventListener("input",p=>{t.setValue(r,{value:p.target.value}),this.setPropertyOnSiblings(n,"value",p.target.value,"value"),d.formattedValue=null}),n.addEventListener("resetform",p=>{const h=this.data.defaultFieldValue??"";n.value=d.userValue=h,d.formattedValue=null});let u=p=>{const{formattedValue:h}=d;h!=null&&(p.target.value=h),p.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",h=>{if(d.focused)return;const{target:f}=h;d.userValue&&(f.value=d.userValue),d.lastCommittedValue=f.value,d.commitKey=1,this.data.actions?.Focus||(d.focused=!0)}),n.addEventListener("updatefromsandbox",h=>{this.showElementAndHideCanvas(h.target);const f={value(g){d.userValue=g.detail.value??"",t.setValue(r,{value:d.userValue.toString()}),g.target.value=d.userValue},formattedValue(g){const{formattedValue:y}=g.detail;d.formattedValue=y,y!=null&&g.target!==document.activeElement&&(g.target.value=y),t.setValue(r,{formattedValue:y})},selRange(g){g.target.setSelectionRange(...g.detail.selRange)},charLimit:g=>{const{charLimit:y}=g.detail,{target:v}=g;if(y===0){v.removeAttribute("maxLength");return}v.setAttribute("maxLength",y);let w=d.userValue;!w||w.length<=y||(w=w.slice(0,y),v.value=d.userValue=w,t.setValue(r,{value:w}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:w,willCommit:!0,commitKey:1,selStart:v.selectionStart,selEnd:v.selectionEnd}}))}};this._dispatchEventFromSandbox(f,h)}),n.addEventListener("keydown",h=>{d.commitKey=1;let f=-1;if(h.key==="Escape"?f=0:h.key==="Enter"&&!this.data.multiLine?f=2:h.key==="Tab"&&(d.commitKey=3),f===-1)return;const{value:g}=h.target;d.lastCommittedValue!==g&&(d.lastCommittedValue=g,d.userValue=g,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:g,willCommit:!0,commitKey:f,selStart:h.target.selectionStart,selEnd:h.target.selectionEnd}}))});const p=u;u=null,n.addEventListener("blur",h=>{if(!d.focused||!h.relatedTarget)return;this.data.actions?.Blur||(d.focused=!1);const{value:f}=h.target;d.userValue=f,d.lastCommittedValue!==f&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:f,willCommit:!0,commitKey:d.commitKey,selStart:h.target.selectionStart,selEnd:h.target.selectionEnd}}),p(h)}),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",h=>{d.lastCommittedValue=null;const{data:f,target:g}=h,{value:y,selectionStart:v,selectionEnd:w}=g;let x=v,$=w;switch(h.inputType){case"deleteWordBackward":{const S=y.substring(0,v).match(/\w*[^\w]*$/);S&&(x-=S[0].length);break}case"deleteWordForward":{const S=y.substring(v).match(/^[^\w]*\w*/);S&&($+=S[0].length);break}case"deleteContentBackward":v===w&&(x-=1);break;case"deleteContentForward":v===w&&($+=1);break}h.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:y,change:f||"",willCommit:!1,selStart:x,selEnd:$}})}),this._setEventListeners(n,d,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],h=>h.target.value)}if(u&&n.addEventListener("blur",u),this.data.comb){const h=(this.data.rect[2]-this.data.rect[0])/a;n.classList.add("comb"),n.style.letterSpacing=`calc(${h}px * var(--scale-factor) - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell",this.data.hasOwnCanvas&&(n.hidden=!0);return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class opt extends Lm{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}}class apt extends Lm{constructor(t){super(t,{isRenderable:t.renderForms})}render(){const t=this.annotationStorage,r=this.data,n=r.id;let i=t.getValue(n,{value:r.exportValue===r.fieldValue}).value;typeof i=="string"&&(i=i!=="Off",t.setValue(n,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const o=document.createElement("input");return cm.add(o),o.setAttribute("data-element-id",n),o.disabled=r.readOnly,this._setRequired(o,this.data.required),o.type="checkbox",o.name=r.fieldName,i&&o.setAttribute("checked",!0),o.setAttribute("exportValue",r.exportValue),o.tabIndex=y6,o.addEventListener("change",a=>{const{name:l,checked:d}=a.target;for(const u of this._getElementsByName(l,n)){const p=d&&u.exportValue===r.exportValue;u.domElement&&(u.domElement.checked=p),t.setValue(u.id,{value:p})}t.setValue(n,{value:d})}),o.addEventListener("resetform",a=>{const l=r.defaultFieldValue||"Off";a.target.checked=l===r.exportValue}),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",a=>{const l={value(d){d.target.checked=d.detail.value!=="Off",t.setValue(n,{value:d.target.checked})}};this._dispatchEventFromSandbox(l,a)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],a=>a.target.checked)),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class p4e extends Lm{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const t=this.annotationStorage,r=this.data,n=r.id;let i=t.getValue(n,{value:r.fieldValue===r.buttonValue}).value;if(typeof i=="string"&&(i=i!==r.buttonValue,t.setValue(n,{value:i})),i)for(const a of this._getElementsByName(r.fieldName,n))t.setValue(a.id,{value:!1});const o=document.createElement("input");if(cm.add(o),o.setAttribute("data-element-id",n),o.disabled=r.readOnly,this._setRequired(o,this.data.required),o.type="radio",o.name=r.fieldName,i&&o.setAttribute("checked",!0),o.tabIndex=y6,o.addEventListener("change",a=>{const{name:l,checked:d}=a.target;for(const u of this._getElementsByName(l,n))t.setValue(u.id,{value:!1});t.setValue(n,{value:d})}),o.addEventListener("resetform",a=>{const l=r.defaultFieldValue;a.target.checked=l!=null&&l===r.buttonValue}),this.enableScripting&&this.hasJSActions){const a=r.buttonValue;o.addEventListener("updatefromsandbox",l=>{const d={value:u=>{const p=a===u.detail.value;for(const h of this._getElementsByName(u.target.name)){const f=p&&h.id===n;h.domElement&&(h.domElement.checked=f),t.setValue(h.id,{value:f})}}};this._dispatchEventFromSandbox(d,l)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],l=>l.target.checked)}return this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class spt extends u4e{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){const t=super.render();t.classList.add("buttonWidgetAnnotation","pushButton");const r=t.lastChild;return this.enableScripting&&this.hasJSActions&&r&&(this._setDefaultPropertiesFromJS(r),r.addEventListener("updatefromsandbox",n=>{this._dispatchEventFromSandbox({},n)})),t}}class lpt extends Lm{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const t=this.annotationStorage,r=this.data.id,n=t.getValue(r,{value:this.data.fieldValue}),i=document.createElement("select");cm.add(i),i.setAttribute("data-element-id",r),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=y6;let o=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",p=>{const h=this.data.defaultFieldValue;for(const f of i.options)f.selected=f.value===h});for(const p of this.data.options){const h=document.createElement("option");h.textContent=p.displayValue,h.value=p.exportValue,n.value.includes(p.exportValue)&&(h.setAttribute("selected",!0),o=!1),i.append(h)}let a=null;if(o){const p=document.createElement("option");p.value=" ",p.setAttribute("hidden",!0),p.setAttribute("selected",!0),i.prepend(p),a=()=>{p.remove(),i.removeEventListener("input",a),a=null},i.addEventListener("input",a)}const l=p=>{const h=p?"value":"textContent",{options:f,multiple:g}=i;return g?Array.prototype.filter.call(f,y=>y.selected).map(y=>y[h]):f.selectedIndex===-1?null:f[f.selectedIndex][h]};let d=l(!1);const u=p=>{const h=p.target.options;return Array.prototype.map.call(h,f=>({displayValue:f.textContent,exportValue:f.value}))};return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",p=>{const h={value(f){a?.();const g=f.detail.value,y=new Set(Array.isArray(g)?g:[g]);for(const v of i.options)v.selected=y.has(v.value);t.setValue(r,{value:l(!0)}),d=l(!1)},multipleSelection(f){i.multiple=!0},remove(f){const g=i.options,y=f.detail.remove;g[y].selected=!1,i.remove(y),g.length>0&&Array.prototype.findIndex.call(g,w=>w.selected)===-1&&(g[0].selected=!0),t.setValue(r,{value:l(!0),items:u(f)}),d=l(!1)},clear(f){for(;i.length!==0;)i.remove(0);t.setValue(r,{value:null,items:[]}),d=l(!1)},insert(f){const{index:g,displayValue:y,exportValue:v}=f.detail.insert,w=i.children[g],x=document.createElement("option");x.textContent=y,x.value=v,w?w.before(x):i.append(x),t.setValue(r,{value:l(!0),items:u(f)}),d=l(!1)},items(f){const{items:g}=f.detail;for(;i.length!==0;)i.remove(0);for(const y of g){const{displayValue:v,exportValue:w}=y,x=document.createElement("option");x.textContent=v,x.value=w,i.append(x)}i.options.length>0&&(i.options[0].selected=!0),t.setValue(r,{value:l(!0),items:u(f)}),d=l(!1)},indices(f){const g=new Set(f.detail.indices);for(const y of f.target.options)y.selected=g.has(y.index);t.setValue(r,{value:l(!0)}),d=l(!1)},editable(f){f.target.disabled=!f.detail.editable}};this._dispatchEventFromSandbox(h,p)}),i.addEventListener("input",p=>{const h=l(!0),f=l(!1);t.setValue(r,{value:h}),p.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:d,change:f,changeEx:h,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],p=>p.target.value)):i.addEventListener("input",function(p){t.setValue(r,{value:l(!0)})}),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class hj extends eo{constructor(t){const{data:r,elements:n}=t;super(t,{isRenderable:eo._hasPopupData(r)}),this.elements=n,this.popup=null}render(){this.container.classList.add("popupAnnotation");const t=this.popup=new cpt({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),r=[];for(const n of this.elements)n.popup=t,r.push(n.data.id),n.addHighlightArea();return this.container.setAttribute("aria-controls",r.map(n=>`${Gge}${n}`).join(",")),this.container}}class cpt{#e=this.#L.bind(this);#t=this.#C.bind(this);#r=this.#y.bind(this);#i=this.#w.bind(this);#s=null;#n=null;#o=null;#l=null;#d=null;#u=null;#h=null;#c=!1;#a=null;#m=null;#g=null;#p=null;#v=null;#f=null;#b=!1;constructor({container:t,color:r,elements:n,titleObj:i,modificationDate:o,contentsObj:a,richText:l,parent:d,rect:u,parentRect:p,open:h}){this.#n=t,this.#v=i,this.#o=a,this.#p=l,this.#u=d,this.#s=r,this.#g=u,this.#h=p,this.#d=n,this.#l=Qge.toDateObject(o),this.trigger=n.flatMap(f=>f.getElementsToTriggerPopup());for(const f of this.trigger)f.addEventListener("click",this.#i),f.addEventListener("mouseenter",this.#r),f.addEventListener("mouseleave",this.#t),f.classList.add("popupTriggerArea");for(const f of n)f.container?.addEventListener("keydown",this.#e);this.#n.hidden=!0,h&&this.#w()}render(){if(this.#a)return;const t=this.#a=document.createElement("div");if(t.className="popup",this.#s){const o=t.style.outlineColor=ar.makeHexColor(...this.#s);CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?t.style.backgroundColor=`color-mix(in srgb, ${o} 30%, white)`:t.style.backgroundColor=ar.makeHexColor(...this.#s.map(l=>Math.floor(.7*(255-l)+l)))}const r=document.createElement("span");r.className="header";const n=document.createElement("h1");if(r.append(n),{dir:n.dir,str:n.textContent}=this.#v,t.append(r),this.#l){const o=document.createElement("span");o.classList.add("popupDate"),o.setAttribute("data-l10n-id","pdfjs-annotation-date-string"),o.setAttribute("data-l10n-args",JSON.stringify({date:this.#l.toLocaleDateString(),time:this.#l.toLocaleTimeString()})),r.append(o)}const i=this.#x;if(i)d4e.render({xfaHtml:i,intent:"richText",div:t}),t.lastChild.classList.add("richText","popupContent");else{const o=this._formatContents(this.#o);t.append(o)}this.#n.append(t)}get#x(){const t=this.#p,r=this.#o;return t?.str&&(!r?.str||r.str===t.str)&&this.#p.html||null}get#$(){return this.#x?.attributes?.style?.fontSize||0}get#k(){return this.#x?.attributes?.style?.color||null}#E(t){const r=[],n={str:t,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:r}]}},i={style:{color:this.#k,fontSize:this.#$?`calc(${this.#$}px * var(--scale-factor))`:""}};for(const o of t.split(`
|
|
291
291
|
`))r.push({name:"span",value:o,attributes:i});return n}_formatContents({str:t,dir:r}){const n=document.createElement("p");n.classList.add("popupContent"),n.dir=r;const i=t.split(/(?:\r\n?|\n)/);for(let o=0,a=i.length;o<a;++o){const l=i[o];n.append(document.createTextNode(l)),o<a-1&&n.append(document.createElement("br"))}return n}#L(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(t.key==="Enter"||t.key==="Escape"&&this.#c)&&this.#w()}updateEdited({rect:t,popupContent:r}){this.#f||={contentsObj:this.#o,richText:this.#p},t&&(this.#m=null),r&&(this.#p=this.#E(r),this.#o=null),this.#a?.remove(),this.#a=null}resetEdited(){this.#f&&({contentsObj:this.#o,richText:this.#p}=this.#f,this.#f=null,this.#a?.remove(),this.#a=null,this.#m=null)}#S(){if(this.#m!==null)return;const{page:{view:t},viewport:{rawDims:{pageWidth:r,pageHeight:n,pageX:i,pageY:o}}}=this.#u;let a=!!this.#h,l=a?this.#h:this.#g;for(const y of this.#d)if(!l||ar.intersect(y.data.rect,l)!==null){l=y.data.rect,a=!0;break}const d=ar.normalizeRect([l[0],t[3]-l[1]+t[1],l[2],t[3]-l[3]+t[1]]),p=a?l[2]-l[0]+5:0,h=d[0]+p,f=d[1];this.#m=[100*(h-i)/r,100*(f-o)/n];const{style:g}=this.#n;g.left=`${this.#m[0]}%`,g.top=`${this.#m[1]}%`}#w(){this.#c=!this.#c,this.#c?(this.#y(),this.#n.addEventListener("click",this.#i),this.#n.addEventListener("keydown",this.#e)):(this.#C(),this.#n.removeEventListener("click",this.#i),this.#n.removeEventListener("keydown",this.#e))}#y(){this.#a||this.render(),this.isVisible?this.#c&&this.#n.classList.add("focused"):(this.#S(),this.#n.hidden=!1,this.#n.style.zIndex=parseInt(this.#n.style.zIndex)+1e3)}#C(){this.#n.classList.remove("focused"),!(this.#c||!this.isVisible)&&(this.#n.hidden=!0,this.#n.style.zIndex=parseInt(this.#n.style.zIndex)-1e3)}forceHide(){this.#b=this.isVisible,this.#b&&(this.#n.hidden=!0)}maybeShow(){this.#b&&(this.#a||this.#y(),this.#b=!1,this.#n.hidden=!1)}get isVisible(){return this.#n.hidden===!1}}class h4e extends eo{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=fn.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const t=document.createElement("div");t.classList.add("annotationTextContent"),t.setAttribute("role","comment");for(const r of this.textContent){const n=document.createElement("span");n.textContent=r,t.append(n)}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}get _isEditable(){return this.data.hasOwnCanvas}}class dpt extends eo{#e=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");const t=this.data,{width:r,height:n}=t2(t.rect),i=this.svgFactory.create(r,n,!0),o=this.#e=this.svgFactory.createElement("svg:line");return o.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),o.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),o.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),o.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),o.setAttribute("stroke-width",t.borderStyle.width||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),i.append(o),this.container.append(i),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class upt extends eo{#e=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");const t=this.data,{width:r,height:n}=t2(t.rect),i=this.svgFactory.create(r,n,!0),o=t.borderStyle.width,a=this.#e=this.svgFactory.createElement("svg:rect");return a.setAttribute("x",o/2),a.setAttribute("y",o/2),a.setAttribute("width",r-o),a.setAttribute("height",n-o),a.setAttribute("stroke-width",o||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class ppt extends eo{#e=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");const t=this.data,{width:r,height:n}=t2(t.rect),i=this.svgFactory.create(r,n,!0),o=t.borderStyle.width,a=this.#e=this.svgFactory.createElement("svg:ellipse");return a.setAttribute("cx",r/2),a.setAttribute("cy",n/2),a.setAttribute("rx",r/2-o/2),a.setAttribute("ry",n/2-o/2),a.setAttribute("stroke-width",o||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class m4e extends eo{#e=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:t,vertices:r,borderStyle:n,popupRef:i}}=this;if(!r)return this.container;const{width:o,height:a}=t2(t),l=this.svgFactory.create(o,a,!0);let d=[];for(let p=0,h=r.length;p<h;p+=2){const f=r[p]-t[0],g=t[3]-r[p+1];d.push(`${f},${g}`)}d=d.join(" ");const u=this.#e=this.svgFactory.createElement(this.svgElementName);return u.setAttribute("points",d),u.setAttribute("stroke-width",n.width||1),u.setAttribute("stroke","transparent"),u.setAttribute("fill","transparent"),l.append(u),this.container.append(l),!i&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class hpt extends m4e{constructor(t){super(t),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class mpt extends eo{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class f4e extends eo{#e=[];constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=fn.INK}render(){this.container.classList.add(this.containerClassName);const{data:{rect:t,inkLists:r,borderStyle:n,popupRef:i}}=this,{width:o,height:a}=t2(t),l=this.svgFactory.create(o,a,!0);for(const d of r){let u=[];for(let h=0,f=d.length;h<f;h+=2){const g=d[h]-t[0],y=t[3]-d[h+1];u.push(`${g},${y}`)}u=u.join(" ");const p=this.svgFactory.createElement(this.svgElementName);this.#e.push(p),p.setAttribute("points",u),p.setAttribute("stroke-width",n.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","transparent"),!i&&this.hasPopupData&&this._createPopup(),l.append(p)}return this.container.append(l),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class fpt extends eo{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this.container}}class gpt extends eo{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class ypt extends eo{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class vpt extends eo{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class g4e extends eo{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("stampAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class bpt extends eo{#e=null;constructor(t){super(t,{isRenderable:!0});const{file:r}=this.data;this.filename=r.filename,this.content=r.content,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,...r})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:t,data:r}=this;let n;r.hasAppearance||r.fillAlpha===0?n=document.createElement("div"):(n=document.createElement("img"),n.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(r.name)?"paperclip":"pushpin"}.svg`,r.fillAlpha&&r.fillAlpha<1&&(n.style=`filter: opacity(${Math.round(r.fillAlpha*100)}%);`)),n.addEventListener("dblclick",this.#t.bind(this)),this.#e=n;const{isMac:i}=xs.platform;return t.addEventListener("keydown",o=>{o.key==="Enter"&&(i?o.metaKey:o.ctrlKey)&&this.#t()}),!r.popupRef&&this.hasPopupData?this._createPopup():n.classList.add("popupTriggerArea"),t.append(n),t}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}#t(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}}let wpt=class{#e=null;#t=null;#r=new Map;constructor({div:t,accessibilityManager:r,annotationCanvasMap:n,annotationEditorUIManager:i,page:o,viewport:a}){this.div=t,this.#e=r,this.#t=n,this.page=o,this.viewport=a,this.zIndex=0,this._annotationEditorUIManager=i}#i(t,r){const n=t.firstChild||t;n.id=`${Gge}${r}`,this.div.append(t),this.#e?.moveElementInDOM(this.div,t,n,!1)}async render(t){const{annotations:r}=t,n=this.div;lm(n,this.viewport);const i=new Map,o={data:null,layer:n,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:t.renderForms!==!1,svgFactory:new GF,annotationStorage:t.annotationStorage||new tN,enableScripting:t.enableScripting===!0,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(const a of r){if(a.noHTML)continue;const l=a.annotationType===ko.POPUP;if(l){const p=i.get(a.id);if(!p)continue;o.elements=p}else{const{width:p,height:h}=t2(a.rect);if(p<=0||h<=0)continue}o.data=a;const d=rpt.create(o);if(!d.isRenderable)continue;if(!l&&a.popupRef){const p=i.get(a.popupRef);p?p.push(d):i.set(a.popupRef,[d])}const u=d.render();a.hidden&&(u.style.visibility="hidden"),this.#i(u,a.id),d.annotationEditorType>0&&(this.#r.set(d.data.id,d),this._annotationEditorUIManager?.renderAnnotationElement(d))}this.#s()}update({viewport:t}){const r=this.div;this.viewport=t,lm(r,{rotation:t.rotation}),this.#s(),r.hidden=!1}#s(){if(!this.#t)return;const t=this.div;for(const[r,n]of this.#t){const i=t.querySelector(`[data-annotation-id="${r}"]`);if(!i)continue;n.className="annotationContent";const{firstChild:o}=i;o?o.nodeName==="CANVAS"?o.replaceWith(n):o.classList.contains("annotationContent")?o.after(n):o.before(n):i.append(n)}this.#t.clear()}getEditableAnnotations(){return Array.from(this.#r.values())}getEditableAnnotation(t){return this.#r.get(t)}};const F9=/\r\n?|\n/g;class _o extends Tr{#e=this.editorDivBlur.bind(this);#t=this.editorDivFocus.bind(this);#r=this.editorDivInput.bind(this);#i=this.editorDivKeydown.bind(this);#s=this.editorDivPaste.bind(this);#n;#o="";#l=`${this.id}-editor`;#d;#u=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){const t=_o.prototype,r=o=>o.isEmpty(),n=P0.TRANSLATE_SMALL,i=P0.TRANSLATE_BIG;return bn(this,"_keyboardManager",new f6([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],t.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],t.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],t._translateEmpty,{args:[-n,0],checker:r}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t._translateEmpty,{args:[-i,0],checker:r}],[["ArrowRight","mac+ArrowRight"],t._translateEmpty,{args:[n,0],checker:r}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t._translateEmpty,{args:[i,0],checker:r}],[["ArrowUp","mac+ArrowUp"],t._translateEmpty,{args:[0,-n],checker:r}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t._translateEmpty,{args:[0,-i],checker:r}],[["ArrowDown","mac+ArrowDown"],t._translateEmpty,{args:[0,n],checker:r}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t._translateEmpty,{args:[0,i],checker:r}]]))}static _type="freetext";static _editorType=fn.FREETEXT;constructor(t){super({...t,name:"freeTextEditor"}),this.#n=t.color||_o._defaultColor||Tr._defaultLineColor,this.#d=t.fontSize||_o._defaultFontSize}static initialize(t,r){Tr.initialize(t,r,{strings:["pdfjs-free-text-default-content"]});const n=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(n.getPropertyValue("--freetext-padding"))}static updateDefaultParams(t,r){switch(t){case Pr.FREETEXT_SIZE:_o._defaultFontSize=r;break;case Pr.FREETEXT_COLOR:_o._defaultColor=r;break}}updateParams(t,r){switch(t){case Pr.FREETEXT_SIZE:this.#h(r);break;case Pr.FREETEXT_COLOR:this.#c(r);break}}static get defaultPropertiesToUpdate(){return[[Pr.FREETEXT_SIZE,_o._defaultFontSize],[Pr.FREETEXT_COLOR,_o._defaultColor||Tr._defaultLineColor]]}get propertiesToUpdate(){return[[Pr.FREETEXT_SIZE,this.#d],[Pr.FREETEXT_COLOR,this.#n]]}#h(t){const r=i=>{this.editorDiv.style.fontSize=`calc(${i}px * var(--scale-factor))`,this.translate(0,-(i-this.#d)*this.parentScale),this.#d=i,this.#m()},n=this.#d;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Pr.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#c(t){const r=i=>{this.#n=this.editorDiv.style.color=i},n=this.#n;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Pr.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(t,r){this._uiManager.translateSelectedEditors(t,r,!0)}getInitialTranslation(){const t=this.parentScale;return[-_o._internalPadding*t,-(_o._internalPadding+this.#d)*t]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(this.isInEditMode())return;this.parent.setEditingState(!1),this.parent.updateToolbar(fn.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant");const t=this._uiManager._signal;this.editorDiv.addEventListener("keydown",this.#i,{signal:t}),this.editorDiv.addEventListener("focus",this.#t,{signal:t}),this.editorDiv.addEventListener("blur",this.#e,{signal:t}),this.editorDiv.addEventListener("input",this.#r,{signal:t}),this.editorDiv.addEventListener("paste",this.#s,{signal:t})}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#l),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",this.#i),this.editorDiv.removeEventListener("focus",this.#t),this.editorDiv.removeEventListener("blur",this.#e),this.editorDiv.removeEventListener("input",this.#r),this.editorDiv.removeEventListener("paste",this.#s),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}focusin(t){this._focusEventsAllowed&&(super.focusin(t),t.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}#a(){const t=[];this.editorDiv.normalize();for(const r of this.editorDiv.childNodes)t.push(_o.#g(r));return t.join(`
|
|
292
292
|
`)}#m(){const[t,r]=this.parentDimensions;let n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{const{currentLayer:i,div:o}=this,a=o.style.display,l=o.classList.contains("hidden");o.classList.remove("hidden"),o.style.display="hidden",i.div.append(this.div),n=o.getBoundingClientRect(),o.remove(),o.style.display=a,o.classList.toggle("hidden",l)}this.rotation%180===this.parentRotation%180?(this.width=n.width/t,this.height=n.height/r):(this.width=n.height/t,this.height=n.width/r),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const t=this.#o,r=this.#o=this.#a().trimEnd();if(t===r)return;const n=i=>{if(this.#o=i,!i){this.remove();return}this.#p(),this._uiManager.rebuild(this),this.#m()};this.addCommands({cmd:()=>{n(r)},undo:()=>{n(t)},mustExec:!1}),this.#m()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(t){this.enterInEditMode()}keydown(t){t.target===this.div&&t.key==="Enter"&&(this.enterInEditMode(),t.preventDefault())}editorDivKeydown(t){_o._keyboardManager.exec(this,t)}editorDivFocus(t){this.isEditing=!0}editorDivBlur(t){this.isEditing=!1}editorDivInput(t){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let t,r;this.width&&(t=this.x,r=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#l),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text"),this.enableEditing(),Tr._l10nPromise.get("pdfjs-free-text-default-content").then(i=>this.editorDiv?.setAttribute("default-content",i)),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize=`calc(${this.#d}px * var(--scale-factor))`,n.color=this.#n,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),ab(this,this.div,["dblclick","keydown"]),this.width){const[i,o]=this.parentDimensions;if(this.annotationElementId){const{position:a}=this.#u;let[l,d]=this.getInitialTranslation();[l,d]=this.pageTranslationToScreen(l,d);const[u,p]=this.pageDimensions,[h,f]=this.pageTranslation;let g,y;switch(this.rotation){case 0:g=t+(a[0]-h)/u,y=r+this.height-(a[1]-f)/p;break;case 90:g=t+(a[0]-h)/u,y=r-(a[1]-f)/p,[l,d]=[d,-l];break;case 180:g=t-this.width+(a[0]-h)/u,y=r-(a[1]-f)/p,[l,d]=[-l,-d];break;case 270:g=t+(a[0]-h-this.height*p)/u,y=r+(a[1]-f-this.width*u)/p,[l,d]=[-d,l];break}this.setAt(g*i,y*o,l,d)}else this.setAt(t*i,r*o,this.width*i,this.height*o);this.#p(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#g(t){return(t.nodeType===Node.TEXT_NODE?t.nodeValue:t.innerText).replaceAll(F9,"")}editorDivPaste(t){const r=t.clipboardData||window.clipboardData,{types:n}=r;if(n.length===1&&n[0]==="text/plain")return;t.preventDefault();const i=_o.#f(r.getData("text")||"").replaceAll(F9,`
|
|
@@ -326,7 +326,7 @@ _failed_count_ Transaction failed.`},transactionsUpdated_transactionsFailed:{suc
|
|
|
326
326
|
_updated_count_ Transaction updated.
|
|
327
327
|
_failed_count_ Transactions failed.`},transactionCategorized_transactionUpdated_transactionFailed:{success:"",failed:"",notification:`_categorized_count_ Transaction categorized.
|
|
328
328
|
_updated_count_ Transaction updated.
|
|
329
|
-
_failed_count_ Transaction failed.`},people_invite_people:{success:"Invitation sent",failed:"",notification:""},people_invite_multiple_people:{success:"Users invited",failed:"",notification:""},people_update_person:{success:"User info changed",failed:"",notification:""},people_delete_person:{success:"User deleted",failed:"",notification:""},reimbursement_updated:{success:"Reimbursement saved",failed:"_api-error_.",notification:""},reimbursement_approved:{success:"Reimbursement approved",failed:"_api-error_.",notification:""},reimbursement_rejected:{success:"Reimbursement rejected",failed:"_api-error_.",notification:""},reimbursement_sent_for_approval:{success:"Reimbursement sent for approval",failed:"_api-error_.",notification:""},reimbursement_deleted:{success:"Reimbursement deleted",failed:"_api-error_.",notification:""},reimbursement_cancelled:{success:"Reimbursement canceled",failed:"_api-error_.",notification:""},reimbursement_cancelled_deleted:{success:"Reimbursement canceled and deleted",failed:"_api-error_.",notification:""},reimbursement_bulk_submit:{success:"_count_ _report_ will be _action_. You'll be notified once it's done.",failed:"_api-error_.",notification:""},reimbursement_bulk_processed:{success:"_report_ _has_ been _action_. The page will refresh now to reflect updates.",failed:"_api-error_.",notification:""},save_reconcile_for_later:{success:"Reconciliation saved",failed:"Reconciliation not saved. Please try again!",notification:""},reconcile:{success:"_reconcile_account_ reconciliation in progress.",failed:"Reconciliation failed for _reconcile_account_",notification:""},exclude_transaction:{success:"Transaction excluded",failed:"Transaction exclusion failed",notification:""},account_added:{success:"Account added successfully",failed:"",notification:""},issue_charge_card:{success:"New _card_ issued for _user-name_",failed:"",notification:""},issue_charge_cards:{success:"New cards issued",failed:"",notification:""},charge_card_auto_pay_enable:{success:"Early payment enabled",failed:"",notification:""},charge_card_auto_pay_disable:{success:"Early payment disabled",failed:"",notification:""},business_verification_save:{success:"Business Verification Details saved successfully.",failed:"Couldn't save Business Verification Details. Please try again.",notification:""},business_verification_submit:{success:"Business Verification Details submitted successfully.",failed:"Couldn't submit Business Verification Details. Please try again.",notification:""},business_verification_from_bills_submit:{success:"Verified successfully.",failed:"Couldn't submit Business Verification Details. Please try again.",notification:""},plaid_connection:{success:"",failed:"Something went wrong! Please try again.",notification:""},bill_pay_setup:{success:"",failed:"Failed to load Bill Pay Setup Details! Please try again.",notification:""},zeni_accounts_setup:{success:"",failed:"Failed to load Zeni Accounts Setup Details! Please try again.",notification:""},bill_pay_approval_create:{success:"Approval Rule created successfully.",failed:"Couldn't create Approval Rule! Please try again.",notification:""},bill_pay_duplicate_approval_create:{success:"Approval Rule created successfully.",failed:"_api-error_",notification:""},bill_pay_approval_update:{success:"Approval Rule updated successfully.",failed:"Couldn't update Approval Rule! Please try again.",notification:""},update_zeni_account_nickname:{success:"Zeni Account nickname updated successfully",failed:"_api-error_.",notification:""},create_checking_account:{success:"New Business Account Added",failed:"_api-error_.",notification:""},deposit_check:{success:"Check Deposit Successful",failed:"_api-error_.",notification:""},bill_pay_duplicate_approval_update:{success:"Approval Rule updated successfully.",failed:"_api-error_",notification:""},bill_pay_approval_delete:{success:"Approval Rule deleted successfully.",failed:"Couldn't delete Approval Rule! Please try again.",notification:""},reimbursement_setup:{success:"",failed:"Failed to load Reimbursements Setup Details! Please try again.",notification:""},reimbursement_approval_create:{success:"Approval Rule created successfully.",failed:"Couldn't create Approval Rule! Please try again.",notification:""},reimbursement_duplicate_approval_create:{success:"Approval Rule created successfully.",failed:"_api-error_",notification:""},reimbursement_approval_update:{success:"Approval Rule updated successfully.",failed:"Couldn't update Approval Rule! Please try again.",notification:""},reimbursement_duplicate_approval_update:{success:"Approval Rule updated successfully.",failed:"_api-error_",notification:""},reimbursement_approval_delete:{success:"Approval Rule deleted successfully.",failed:"Couldn't delete Approval Rule! Please try again.",notification:""},reimbursement_create_mileage:{success:"Mileage rate added successfully.",failed:"_api-error_.",notification:""},reimbursement_update_mileage:{success:"Mileage rate updated successfully.",failed:"_api-error_.",notification:""},reimbursement_accept_term:{success:"",failed:"_api-error_.",notification:""},reimbursement_accept_employee_term:{success:"",failed:"_api-error_.",notification:""},cockpit_month_end_email_sent:{success:"Zeni Insights sent successfully for _company-name_.",failed:"",notification:""},cockpit_month_end_email_save:{success:"Zeni Insights saved successfully for _company-name_.",failed:"",notification:""},cockpit_month_end_email_attachment_upload:{success:"",failed:"Sorry, the file you uploaded is too large. Maximum file size allowed is 700KB",notification:""},audit_score_updated:{success:"Audit Score updated",failed:"",notification:""},create_bank_account_ach:{success:"ACH account added successfully.",failed:"",notification:""},unlink_deposit_account:{success:"",failed:"_api-error_.",notification:""},create_bank_account_wire:{success:"_wire-type_ wire account added successfully.",failed:"",notification:""},create_bank_account_international:{success:"_wire-type_ wire account added successfully.",failed:"",notification:""},bill_pay_updated:{success:"Bill saved",failed:"_api-error_.",notification:""},bill_pay_deleted:{success:"Bill deleted",failed:"_api-error_.",notification:""},bill_pay_bulk_submit:{success:"_count_ _bill_ will be _action_. You'll be notified once it's done.",failed:"_api-error_.",notification:""},bill_pay_bulk_processed:{success:"_bill_ _has_ been _action_. The page will refresh now to reflect updates.",failed:"_api-error_.",notification:""},bill_pay_cancelled_deleted:{success:"Bill canceled and deleted",failed:"_api-error_.",notification:""},bill_pay_cancelled:{success:"Bill canceled",failed:"_api-error_.",notification:""},bill_pay_approved:{success:"Bill approved",failed:"_api-error_.",notification:""},bill_pay_rejected:{success:"Bill rejected",failed:"_api-error_.",notification:""},bill_pay_sent_for_approval:{success:"Bill sent for approval",failed:"_api-error_.",notification:""},bill_pay_accept_term:{success:"",failed:"_api-error_.",notification:""},bill_pay_refund:{success:"Refund process initiated",failed:"_api-error_.",notification:""},bill_pay_retry:{success:"Payment retried",failed:"_api-error_.",notification:""},bill_pay_marked_as_paid:{success:"Bill marked as paid",failed:"_api-error_.",notification:""},update_vendor:{success:"Vendor updated successfully.",failed:"_api-error_.",notification:""},data_refresh_update:{success:"Data refreshed",failed:"_api-error_.",notification:""},delete_bank_account:{success:"Bank account deleted successfully.",failed:"_api-error_.",notification:""},update_debit_card_pin_attempt:{success:"PIN changed successfully",failed:"_api-error_.",notification:""},set_debit_card_pin:{success:"PIN set successfully",failed:"_api-error_.",notification:""},create_bank_account:{success:"",failed:"_api-error_.",notification:""},send_email_magic_link_to_user:{success:"",failed:"_api-error_.",notification:""},complete_profile_done:{success:"Profile details saved.",failed:"_api-error_.",notification:""},zeni_account_accept_term:{success:"",failed:"_api-error_.",notification:""},transfer_money:{success:"",failed:"_api-error_.",notification:""},create_vendor:{success:"Vendor created successfully.",failed:"_api-error_.",notification:""},onboarding_customer_view:{success:"Onboarding Business Details fetched successfully.",failed:"Couldn't fetch Onboarding Business Details. Please try again.",notification:""},onboarding_customer_view_complete:{success:"Onboarding status updated successfully.",failed:"Couldn't update Onboarding status. Please try again.",notification:""},onboarding_customer_identity_verification_save:{success:"Onboarding Identity Details saved successfully.",failed:"Couldn't save Onboarding Identity Details. Please try again.",notification:""},onboarding_customer_identity_verification_submit:{success:"Onboarding Identity Details submitted successfully.",failed:"Couldn't submit Onboarding Identity Details. Please try again.",notification:""},onboarding_customer_business_verification_save:{success:"Onboarding Business Details saved successfully.",failed:"Couldn't save Onboarding Business Details. Please try again.",notification:""},onboarding_customer_business_verification_submit:{success:"Onboarding Business Details submitted successfully.",failed:"Couldn't submit Onboarding Business Details. Please try again.",notification:""},retry_bank_account_connection:{success:"Bank account connection completed successfully.",failed:"Bank account connection failed.",notification:""},dashboard_invite_sent:{success:"Dashboard invite sent to _user-name_ for _company-name_ successfully.",failed:"Dashboard invite failed",notification:""},onboarding_info_saved:{success:"Saved successfully",failed:"Save failed",notification:""},approve_original_merchant:{success:'Review request for "_merchant_name_" is approved successfully.',failed:"_api-error_.",notification:""},approve_global_merchant:{success:'Review request for "_original_merchant_name_" to "_approved_merchant_name_" is approved successfully.',failed:"_api-error_.",notification:""},reject_global_merchant:{success:'Vendor "_merchant_name_" review rejected',failed:"_api-error_.",notification:""},create_global_merchant:{success:'Vendor "_global_merchant_name_" successfully added to global list.',failed:"_api-error_.",notification:""},fetch_global_merchant_no_recommendation:{success:'There are no recommendations for the name "_global_merchant_name_".',failed:"_api-error_.",notification:""},save_vendor_sent_for_review:{success:'Vendor "_vendor_name_" sent for the review.',failed:"_api-error_.",notification:""},save_vendor_renamed:{success:'Vendor "_old_vendor_name_" renamed to "_updated_vendor_name_."',failed:"_api-error_.",notification:""},save_vendor_marked_as_employee:{success:"Marked as employee",failed:"_api-error_.",notification:""},save_vendor_marked_as_local_contractor:{success:"Marked as local contractor",failed:"_api-error_.",notification:""},charge_card_setup:{success:"",failed:"Failed to load Cards Setup Details! Please try again.",notification:""},charge_card_receipt_upload:{success:"Card receipt uploaded",failed:"_api-error_.",notification:""},charge_card_resend_invite:{success:"Card invite resent",failed:"_api-error_.",notification:""},charge_card_revoke_invite:{success:"Card invite revoked",failed:"_api-error_.",notification:""},charge_card_update_limit:{success:"Card limit updated to _amount_",failed:"Limit updation failed with _api-error_.",notification:""},charge_cards_update_limit:{success:"Limit updated for _number_of_cards_",failed:"Limit updation failed with _api-error_.",notification:""},update_charge_card_name:{success:'Card _masked_card_number_ renamed to "_new_card_name_"',failed:"Card name updation failed with _api-error_.",notification:""},update_charge_card_name_card_user:{success:'Card renamed to "_new_card_name_"',failed:"Card name updation failed with _api-error_.",notification:""},lock_charge_card:{success:"Card _masked_card_number_ locked",failed:"Card lock failed with _api-error_.",notification:""},lock_charge_card_card_user:{success:"Card locked",failed:"Card lock failed with _api-error_.",notification:""},unlock_charge_card:{success:"Card _masked_card_number_ unlocked",failed:"Card unlock failed with _api-error_.",notification:""},unlock_charge_card_card_user:{success:"Card unlocked",failed:"Card unlock failed with _api-error_.",notification:""},close_charge_card:{success:"Card _masked_card_number_ closed",failed:"Card close failed with _api-error_.",notification:""},unlock_charge_cards:{success:"_number_of_cards_ unlocked",failed:"Cards unlock failed with _api-error_.",notification:""},lock_charge_cards:{success:"_number_of_cards_ locked",failed:"Cards lock failed with _api-error_.",notification:""},close_charge_cards:{success:"_number_of_cards_ closed",failed:"Cards close failed with _api-error_.",notification:""},revoke_invite_charge_cards:{success:"Invite revoked for _number_of_cards_",failed:"Invite revoke failed with _api-error_.",notification:""},create_schedule:{success:'Schedule created for "_vendor_name_"',failed:"Schedule creation failed with _api-error_.",notification:""},save_schedule:{success:'Schedule saved for "_vendor_name_"',failed:"Save schedule failed with _api-error_.",notification:""},je_posted:{success:"JE Posted",failed:"JE Posting failed with _api-error_.",notification:""},ignore_schedule:{success:"Schedule Ignored",failed:"Schedule Ignore failed with _api-error_.",notification:""},delete_schedule:{success:'Schedule deleted for "_vendor_name_"',failed:"Delete schedule failed with _api-error_.",notification:""},mark_as_complete_schedule:{success:'Schedule marked as completed for "_vendor_name_"',failed:"Mark as complete schedule failed with _api-error_.",notification:""},cancel_journal_entry:{success:"Accrual Canceled",failed:"Accrual Cancel failed with _api-error_.",notification:""},charge_card_accept_term:{success:"",failed:"_api-error_.",notification:""},charge_card_express_interest:{success:"Interest expressed successfully",failed:"_api-error_.",notification:""},save_task_detail:{success:"",failed:"_api-error_.",notification:""},fetch_task_detail:{success:"Task details fetched successfully.",failed:"_api-error_.",notification:""},delete_task:{success:"",failed:"_api-error_.",notification:""},archive_task:{success:"",failed:"_api-error_.",notification:""},update_charge_card:{success:"",failed:"_api-error_.",notification:""},notification_settings_saved:{success:"Notification Settings Saved",failed:"_api-error_.",notification:""},referral_invite_sent:{success:"Referral Invite Sent",failed:"_api-error_.",notification:""},notification_mark_as_read:{success:"Notifications marked as read successfully.",failed:"Something went wrong! Please try again.",notification:""},settings_accounting_accounts_updated:{success:"Accounts saved",failed:"",notification:""},task_group_creation_success:{success:"Task group created successfully",failed:"Task group creation failed",notification:""},task_group_deletion_success:{success:"Task group deleted successfully",failed:"Task group deletion failed",notification:""},task_group_update_success:{success:"Task group updated successfully",failed:"Task group update failed",notification:""},primary_funding_account_updated:{success:"Bank account updated for _productType_.",failed:"",notification:""},task_time_spent_validation:{success:"",failed:"Time can't exceed 99h 59m",notification:""},missing_receipts_attachment:{success:"",failed:"Failed to upload attachment__message__ please try again!",notification:""},flux_analysis_reviewed:{success:"_vendors_count_ _vendor_ reviewed",failed:"_api-error_.",notification:""},flux_analysis_unreviewed:{success:"_vendors_count_ _vendor_ unreviewed",failed:"_api-error_.",notification:""},express_pay_submit:{success:"Payment scheduled",failed:"_api-error_.",notification:""},recon_transaction_categorize:{success:"Transaction reviewed",failed:"_api-error_.",notification:""},recon_transaction_match:{success:"Transaction matched",failed:"_api-error_.",notification:""},ai_cfo_create_session_and_submit:{success:"",failed:"Something went wrong, please try again!",notification:""},treasury_setup:{success:"",failed:"Failed to load Treasury Setup Details! Please try again.",notification:""},treasury_accept_term:{success:"Treasury Terms accepted successfully.",failed:"Failed to accept terms. Please try again.",notification:""},treasury_transfer_money:{success:"Transfer initiated.",failed:"Transfer failed. Please try again.",notification:""},treasury_transfer_money_failed:{success:"",failed:"Transfer failed. Please try again.",notification:""},treasury_update_portfolio_allocation:{success:"Portfolio allocation updated.",failed:"Portfolio allocation update failed. Please try again!",notification:""},reports_resync:{success:"",failed:"Something went wrong. Please try again.",notification:"No new data available."},invalid_phone_number:{success:"",failed:"Invalid phone number",notification:""}},currency:{currencyCode:"USD",currencySymbol:"$",currency:"United States Dollar",countryCode:"US"},format:{ssnFormat:"###-##-####",tinFormat:"##-#######"},status:{pending:"Pending"},cancel:"Cancel",confirm:"Confirm",continue:"Continue",proceed:"Proceed",next:"Next",noText:"--",privacy:"Zeni Privacy Policy",terms:"Terms and Conditions",privacyPolicyUrl:"https://www.zeni.ai/legal/privacy-policy",termsUrl:"https://www.zeni.ai/legal/terms-of-service",footer:{save:"Save",submit:"Submit",cancel:"Cancel",approve:"Approve",reject:"Reject",send:"Send",resubmit:"Resubmit",add:"Add",continueAnyway:"Continue Anyway",resolve:"Resolve",inReview:"In Review",sentForReview:"Sent for Review",linkCard:"Link Card",next:"Next",back:"Back",markAsUnReviewed:"Mark as Unreviewed",markAsReviewed:"Mark as Reviewed",saveForLater:"Save for Later",reconcile:"Reconcile",edit:"Edit",noThanks:"No, Thanks",letsGetStarted:"Let's Get Started"},completeText:"Complete",incompleteText:"Incomplete",notInitiatedText:"Not Initiated",pendingReviewText:"Pending Review",pendingVerificationText:"Pending Verification",retry:"Retry",verified:"Verified",validation:{emailAddressRequired:"Email address required",invalidEmailAddress:"Invalid email address",invalidUrlAddress:"Invalid URL"},needHelp:{text:"Need Help",hoverPrefix:"Experiencing issues?",hoverSuffix:" Schedule a call"},confirmationPopup:{discardTitle:"Discard unsaved changes?",discardDescription:"Changes are not automatically saved. Your changes will be lost if you continue.",discard:"Discard",cancel:"Cancel"},via:"via",cockpit:"cockpit",analytics:"Analytics",filters:{noOptions:"No Options",noMatchesFound:"No Matches Found",userProfileAltText:"Failed to load",startDate:"Start Date",endDate:"End Date"},updated:"Updated",hoursAgo:"hours ago",minutesAgo:"a few minutes ago",noMatches:"Nothing matched your search. Please try again!",noReport:"No _item-name_ to display yet!",reloadPage:{label:"Something went wrong, please try again!"},settings:{title:{accounting:"Accounting Setup",approvalRules:"Approval Rules",bankConnections:"Bank Connections",integrations:"Integrations",myProfile:"My Profile",myBankConnections:"My Bank Connections",notifications:"Notifications"},common:{update:"Update",cancel:"Cancel",productTypeString:"My Profile"},subtitle:{myProfile:"Profile Details",myBankConnections:"Reimbursements"},label:{primary:"Primary",billPay:"Bill Pay",reimbursements:"Reimbursements",bankAccount:"Bank Account",noManager:"No Manager",myProfile:"My Profile"},infoText:{accounting:"Quick access to manage the company's accounting-related settings",approvalRules:"Quick access to manage the multi-level approval rules for bills & reimbursements to make Zeni work better for you",bankConnections:"Manage primary bank account connections for Zeni Bill Payments, Reimbursements, Business Checking, and Business Cards.",businessVerification:"Financial regulations require Zeni to collect both identity & company details to verify your business",companyDetails:"Quick access to manage the company's detailed information",integrations:"Quick access to manage the company's third-party connected services",myProfile:"Quick access to manage your personal details",myBankConnections:"Manage your linked personal bank details used to receive reimbursements"},bankConnectionHeader:{productType:"Products",primaryAccount:"Primary Account",linkAccount:"QBO Linked Account",status:"Status",balance:"Balance"},bankConnectionListHeader:{primary:"Primary",other:"Other Connections",otherToolTip:"These bank connections aren't linked to any product. Select from the dropdown above to connect."},productNameByType:{bill_pay:"Bill Pay",reimbursement:"Reimbursements",zeni_accounts:"Checking",zeni_treasury:"Treasury",charge_cards:"Cards"},otherAccount:{title:"Product",subTitle:"Not assigned",subTitleSmall:"not assigned",remove:"Remove Connection"},notifications:{sectionTitle:{reminders:"Reminders",monthEndInsights:"Month-end Insights"},frequency:{biWeekly:"Bi-Weekly"},mode:{email:"Email",dashboard:"Dashboard"},reminders:{missingReceiptNotification:"Missing Receipts:",uncategorizedTransactionNotification:"Uncategorized Transactions:",pendingBillApprovalNotification:"Bill Approvals:",pendingReimbursementApprovalNotification:"Reimbursement Approvals:"},monthEndInsights:{labels:{notifyMe:"Notify Me:",notifyOthers:"Notify Others:"},userFieldPlaceholder:"Who should receive this email?",stopReceivingEmailsText:"To stop receiving this email, reach out to",stopReceivingMonthEndInsightsSubject:"Stop Month End Insights"},reminderFrequencyOptions:[{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Bi-weekly",value:"bi-weekly"},{label:"Monthly",value:"monthly"}]}},copyToClipBoard:{copy:"Copy",copied:"Copied"},monthsByIndex:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},download:{errorMessages:{unsupportedFileType:"Unsupported Filetype",fileDownloadError:"Download __feature__ Failed with"},defaultFileName:"Report.xlsx"},balanceCard:{cashBalanceSectionTitle:"Total Cash Balance",cardBalanceSectionTitle:"Total Card Balance",comparedTo:"compared to",noBalanceText:"No balance data to display yet!"},insightsCard:{vs:"vs",title:"Insights",no_data:{label:"Cash, Opex, Revenue, COS, and Cash In Cash Out Insights, will appear once you have sufficient financial activity. Stay tuned! 💸"}},timeframe:{day:"Days",month:"Months",quarter:"Quarters",year:"Years",week:"Weeks",free_range:"Time period",this_week_to_date:"This Week",last_week:"Last Week",this_month_to_date:"This Month",last_month:"Last Month",last_3_months:"Last 3 Months",last_6_months:"Last 6 Months",last_12_months:"Last 12 Months",this_year_to_date:"This Year",last_year:"Last Year"},quarterPrefix:"Q",compareSwitchLabel:"Compare",compareMode:{off:"Off",compare_mode_percent:"Percentage",compare_mode_amount:"Amount",changePercent:"Change %",changePrefix:"Change"},chartCard:{total:"Total",activity:"Activity",no_data_available:"No data available!",no_data_available_for:"No data available for",tooltip:{actual:"Actual",forecast:"Forecast",change:"Change",change_percent:"Change %"},forecast_dropdown:{forecast_source:"Via Quickbooks",forecast_invalid_issue:"This period is not in the time frame of the actuals. Please view it via the Forecast tab."},netBurnOrIncome:{grossBurn:"Gross Burn",netBurnOrIncome:"Net Income / Burn",gross_burn:"Gross Burn",cogs:"COS",net_burn_or_income:"Net Income / Burn",income:"Revenue",expenses:"OPEX",net_burn:"Net Burn",net_income:"Net Income",no_data_available:"A minimum of one-month data is required!",cogs_forecast:"Forecast",net_burn_or_income_forecast:"Forecast",income_forecast:"Forecast",expenses_forecast:"Forecast"},netBurnOrIncomeCalculator:{title:"Burn Rate Calculator",accounting_method:{label:"Configure Burn Rate, Runway, and Cash Zero date based on below options:",cash:"Cash Flow from Operating Activities",ebitda:"EBITDA",net_income:"Net Income"},time_span_id_for_average:{label:"Further configure Burn Rate, Runway, and Cash Zero date based on below options:",last_month:"Last month",last_completed_month:"Last completed month",average_of_last_2_months:"Average of last 2 completed months",average_of_last_3_months:"Average of last 3 completed months",under_review_last_month_label:"(Including Under Review)"}},revenue:{income:"Revenue",cogs:"COS",gross_margin:"Gross Margin",grossMargin:"Gross Margin",income_forecast:"Forecast",cogs_forecast:"Forecast",gross_margin_forecast:"Forecast",grossMargin_forecast:"Forecast"},cashInCashOut:{cash_in:"Cash In",cash_out:"Cash Out",net_cash_flow:"Net Cash Flow"},no_data:{revenue:"No revenues to display yet, but thrift is a great revenue. Fight On!🤘",cash_in_cash_out:"No cash in cash out to display yet!",cash_position:"No cash position to display yet!",net_burn_or_income:"No net burn to display yet!",operating_expenses:"No operating expenses to display yet!",top_expenses:{this_week_to_date:"No expenses this week 🤷",last_week:"No expenses last week 🤷",this_month_to_date:"No expenses this month 🤷",last_month:"No expenses last month 🤷",last_3_months:"No expenses last 3 months 🤷",last_6_months:"No expenses last 6 months 🤷",last_12_months:"No expenses last 12 months 🤷",this_year_to_date:"No expenses this year 🤷",last_year:"No expenses last year 🤷"},aging_report:"No data to display yet!"}},drawerMenus:{dashboard:"Dashboard",cockpit:"Cockpit",reports:"Reports",people:"People",forecast:"Forecast",cards:"Cards",bills:"Bills",ai_automation:"AI Bookkeeping",storybooks:"Storybooks",settings:"Settings",logout:"Logout",reimbursements:"Reimbursements",checking:"Checking",vendors:"Vendors",rewards:"Rewards",accounting:"Accounting",approval_rules:"Approval Rules",billing:"Billing",bank_connections:"Bank Connections",business_verification:"Business Verification",company_details:"Company Details",integrations:"Integrations",my_profile:"My Profile",my_bank_connections:"My Bank Connections",notifications:"Notifications",performance:"Performance",ai_accountant:"AI Accountant",ai_cfo:"AI CFO",new_chat:"New Chat",explore:"Explore",treasury:"Treasury"},drawerMenuSubtitles:{rewards:"Earn __reward-amount__ per referral"},drawerGroups:{finance:"Finance",cash:"Cash",spend_management:"Spend Management",banking:"Banking",company:"Company",company_settings:"Company Settings",personal_settings:"Personal Settings",ai_bookkeeping:"AI Bookkeeping",ai_cfo:"",ai_agents:"AI Agents",ai_accountant:"AI Accountant"},drawerTags:{new:"NEW"},dashboardDropDownList:{menuOption:{logout:{label:"Logout",value:"logout"},settings:{label:"Settings",value:"settings"},cockpit:{label:"Cockpit",value:"cockpit"}}},transactionItem:{date:"Date",account:"Account"},transactionType:{invoice:"Invoice",creditMemo:"Credit Memo",salesReceipt:"Sales Receipt",refund:"Refund",expense:"Expense",check:"Check",bill:"Bill",billPayment:"Bill Payment",transfer:"Transfer",vendorCredit:"Vendor Credit",creditCardCredit:"Credit Card Credit",deposit:"Deposit",creditCardPayment:"Credit Card Payment",journalEntry:"Journal Entry",payment:"Payment"},signIn:{heading:"Welcome to Zeni",confirmationLinkSent:"Confirmation link sent",message:"Your financial dashboard is just one step away. Get started.",signInSecurelyMessage:"Choose an account to sign in securely",signInGoogleButton:"Sign In With Google",signInMicrosoftButton:"Sign In With Microsoft",termsPrivacyFinePrintPart:"By creating an account on Zeni, you confirm that you ",agreeWith:"agree with our ",termsOfService:"terms of service",and:"and",privacyPolicy:"privacy policy",termsUrl:"https://www.zeni.ai/terms",privacyPolicyUrl:"https://www.zeni.ai/privacy-policy",signInError:`Couldn’t sign-in to your account.
|
|
329
|
+
_failed_count_ Transaction failed.`},people_invite_people:{success:"Invitation sent",failed:"",notification:""},people_invite_multiple_people:{success:"Users invited",failed:"",notification:""},people_update_person:{success:"User info changed",failed:"",notification:""},people_delete_person:{success:"User deleted",failed:"",notification:""},reimbursement_updated:{success:"Reimbursement saved",failed:"_api-error_.",notification:""},reimbursement_approved:{success:"Reimbursement approved",failed:"_api-error_.",notification:""},reimbursement_rejected:{success:"Reimbursement rejected",failed:"_api-error_.",notification:""},reimbursement_sent_for_approval:{success:"Reimbursement sent for approval",failed:"_api-error_.",notification:""},reimbursement_deleted:{success:"Reimbursement deleted",failed:"_api-error_.",notification:""},reimbursement_cancelled:{success:"Reimbursement canceled",failed:"_api-error_.",notification:""},reimbursement_cancelled_deleted:{success:"Reimbursement canceled and deleted",failed:"_api-error_.",notification:""},reimbursement_bulk_submit:{success:"_count_ _report_ will be _action_. You'll be notified once it's done.",failed:"_api-error_.",notification:""},reimbursement_bulk_processed:{success:"_report_ _has_ been _action_. The page will refresh now to reflect updates.",failed:"_api-error_.",notification:""},save_reconcile_for_later:{success:"Reconciliation saved",failed:"Reconciliation not saved. Please try again!",notification:""},reconcile:{success:"_reconcile_account_ reconciliation in progress.",failed:"Reconciliation failed for _reconcile_account_",notification:""},exclude_transaction:{success:"Transaction excluded",failed:"Transaction exclusion failed",notification:""},account_added:{success:"Account added successfully",failed:"",notification:""},issue_charge_card:{success:"New _card_ issued for _user-name_",failed:"",notification:""},issue_charge_cards:{success:"New cards issued",failed:"",notification:""},charge_card_auto_pay_enable:{success:"Early payment enabled",failed:"",notification:""},charge_card_auto_pay_disable:{success:"Early payment disabled",failed:"",notification:""},business_verification_save:{success:"Business Verification Details saved successfully.",failed:"Couldn't save Business Verification Details. Please try again.",notification:""},business_verification_submit:{success:"Business Verification Details submitted successfully.",failed:"Couldn't submit Business Verification Details. Please try again.",notification:""},business_verification_from_bills_submit:{success:"Verified successfully.",failed:"Couldn't submit Business Verification Details. Please try again.",notification:""},plaid_connection:{success:"",failed:"Something went wrong! Please try again.",notification:""},bill_pay_setup:{success:"",failed:"Failed to load Bill Pay Setup Details! Please try again.",notification:""},zeni_accounts_setup:{success:"",failed:"Failed to load Zeni Accounts Setup Details! Please try again.",notification:""},bill_pay_approval_create:{success:"Approval Rule created successfully.",failed:"Couldn't create Approval Rule! Please try again.",notification:""},bill_pay_duplicate_approval_create:{success:"Approval Rule created successfully.",failed:"_api-error_",notification:""},bill_pay_approval_update:{success:"Approval Rule updated successfully.",failed:"Couldn't update Approval Rule! Please try again.",notification:""},update_zeni_account_nickname:{success:"Zeni Account nickname updated successfully",failed:"_api-error_.",notification:""},create_checking_account:{success:"New Business Account Added",failed:"_api-error_.",notification:""},deposit_check:{success:"Check Deposit Successful",failed:"_api-error_.",notification:""},bill_pay_duplicate_approval_update:{success:"Approval Rule updated successfully.",failed:"_api-error_",notification:""},bill_pay_approval_delete:{success:"Approval Rule deleted successfully.",failed:"Couldn't delete Approval Rule! Please try again.",notification:""},reimbursement_setup:{success:"",failed:"Failed to load Reimbursements Setup Details! Please try again.",notification:""},reimbursement_approval_create:{success:"Approval Rule created successfully.",failed:"Couldn't create Approval Rule! Please try again.",notification:""},reimbursement_duplicate_approval_create:{success:"Approval Rule created successfully.",failed:"_api-error_",notification:""},reimbursement_approval_update:{success:"Approval Rule updated successfully.",failed:"Couldn't update Approval Rule! Please try again.",notification:""},reimbursement_duplicate_approval_update:{success:"Approval Rule updated successfully.",failed:"_api-error_",notification:""},reimbursement_approval_delete:{success:"Approval Rule deleted successfully.",failed:"Couldn't delete Approval Rule! Please try again.",notification:""},reimbursement_create_mileage:{success:"Mileage rate added successfully.",failed:"_api-error_.",notification:""},reimbursement_update_mileage:{success:"Mileage rate updated successfully.",failed:"_api-error_.",notification:""},reimbursement_accept_term:{success:"",failed:"_api-error_.",notification:""},reimbursement_accept_employee_term:{success:"",failed:"_api-error_.",notification:""},cockpit_month_end_email_sent:{success:"Zeni Insights sent successfully for _company-name_.",failed:"",notification:""},cockpit_month_end_email_save:{success:"Zeni Insights saved successfully for _company-name_.",failed:"",notification:""},cockpit_month_end_email_attachment_upload:{success:"",failed:"Sorry, the file you uploaded is too large. Maximum file size allowed is 700KB",notification:""},audit_score_updated:{success:"Audit Score updated",failed:"",notification:""},create_bank_account_ach:{success:"ACH account added successfully.",failed:"",notification:""},unlink_deposit_account:{success:"",failed:"_api-error_.",notification:""},create_bank_account_wire:{success:"_wire-type_ wire account added successfully.",failed:"",notification:""},create_bank_account_international:{success:"_wire-type_ wire account added successfully.",failed:"",notification:""},bill_pay_updated:{success:"Bill saved",failed:"_api-error_.",notification:""},bill_pay_deleted:{success:"Bill deleted",failed:"_api-error_.",notification:""},bill_pay_bulk_submit:{success:"_count_ _bill_ will be _action_. You'll be notified once it's done.",failed:"_api-error_.",notification:""},bill_pay_bulk_processed:{success:"_bill_ _has_ been _action_. The page will refresh now to reflect updates.",failed:"_api-error_.",notification:""},bill_pay_cancelled_deleted:{success:"Bill canceled and deleted",failed:"_api-error_.",notification:""},bill_pay_cancelled:{success:"Bill canceled",failed:"_api-error_.",notification:""},bill_pay_approved:{success:"Bill approved",failed:"_api-error_.",notification:""},bill_pay_rejected:{success:"Bill rejected",failed:"_api-error_.",notification:""},bill_pay_sent_for_approval:{success:"Bill sent for approval",failed:"_api-error_.",notification:""},bill_pay_accept_term:{success:"",failed:"_api-error_.",notification:""},bill_pay_refund:{success:"Refund process initiated",failed:"_api-error_.",notification:""},bill_pay_retry:{success:"Payment retried",failed:"_api-error_.",notification:""},bill_pay_marked_as_paid:{success:"Bill marked as paid",failed:"_api-error_.",notification:""},update_vendor:{success:"Vendor updated successfully.",failed:"_api-error_.",notification:""},data_refresh_update:{success:"Data refreshed",failed:"_api-error_.",notification:""},delete_bank_account:{success:"Bank account deleted successfully.",failed:"_api-error_.",notification:""},update_debit_card_pin_attempt:{success:"PIN changed successfully",failed:"_api-error_.",notification:""},set_debit_card_pin:{success:"PIN set successfully",failed:"_api-error_.",notification:""},create_bank_account:{success:"",failed:"_api-error_.",notification:""},send_email_magic_link_to_user:{success:"",failed:"_api-error_.",notification:""},complete_profile_done:{success:"Profile details saved.",failed:"_api-error_.",notification:""},zeni_account_accept_term:{success:"",failed:"_api-error_.",notification:""},transfer_money:{success:"",failed:"_api-error_.",notification:""},create_vendor:{success:"Vendor created successfully.",failed:"_api-error_.",notification:""},onboarding_customer_view:{success:"Onboarding Business Details fetched successfully.",failed:"Couldn't fetch Onboarding Business Details. Please try again.",notification:""},onboarding_customer_view_complete:{success:"Onboarding status updated successfully.",failed:"Couldn't update Onboarding status. Please try again.",notification:""},onboarding_customer_identity_verification_save:{success:"Onboarding Identity Details saved successfully.",failed:"Couldn't save Onboarding Identity Details. Please try again.",notification:""},onboarding_customer_identity_verification_submit:{success:"Onboarding Identity Details submitted successfully.",failed:"Couldn't submit Onboarding Identity Details. Please try again.",notification:""},onboarding_customer_business_verification_save:{success:"Onboarding Business Details saved successfully.",failed:"Couldn't save Onboarding Business Details. Please try again.",notification:""},onboarding_customer_business_verification_submit:{success:"Onboarding Business Details submitted successfully.",failed:"Couldn't submit Onboarding Business Details. Please try again.",notification:""},retry_bank_account_connection:{success:"Bank account connection completed successfully.",failed:"Bank account connection failed.",notification:""},dashboard_invite_sent:{success:"Dashboard invite sent to _user-name_ for _company-name_ successfully.",failed:"Dashboard invite failed",notification:""},onboarding_info_saved:{success:"Saved successfully",failed:"Save failed",notification:""},approve_original_merchant:{success:'Review request for "_merchant_name_" is approved successfully.',failed:"_api-error_.",notification:""},approve_global_merchant:{success:'Review request for "_original_merchant_name_" to "_approved_merchant_name_" is approved successfully.',failed:"_api-error_.",notification:""},reject_global_merchant:{success:'Vendor "_merchant_name_" review rejected',failed:"_api-error_.",notification:""},create_global_merchant:{success:'Vendor "_global_merchant_name_" successfully added to global list.',failed:"_api-error_.",notification:""},fetch_global_merchant_no_recommendation:{success:'There are no recommendations for the name "_global_merchant_name_".',failed:"_api-error_.",notification:""},save_vendor_sent_for_review:{success:'Vendor "_vendor_name_" sent for the review.',failed:"_api-error_.",notification:""},save_vendor_renamed:{success:'Vendor "_old_vendor_name_" renamed to "_updated_vendor_name_."',failed:"_api-error_.",notification:""},save_vendor_marked_as_employee:{success:"Marked as employee",failed:"_api-error_.",notification:""},save_vendor_marked_as_local_contractor:{success:"Marked as local contractor",failed:"_api-error_.",notification:""},charge_card_setup:{success:"",failed:"Failed to load Cards Setup Details! Please try again.",notification:""},charge_card_receipt_upload:{success:"Card receipt uploaded",failed:"_api-error_.",notification:""},charge_card_resend_invite:{success:"Card invite resent",failed:"_api-error_.",notification:""},charge_card_revoke_invite:{success:"Card invite revoked",failed:"_api-error_.",notification:""},charge_card_update_limit:{success:"Card limit updated to _amount_",failed:"Limit updation failed with _api-error_.",notification:""},charge_cards_update_limit:{success:"Limit updated for _number_of_cards_",failed:"Limit updation failed with _api-error_.",notification:""},update_charge_card_name:{success:'Card _masked_card_number_ renamed to "_new_card_name_"',failed:"Card name updation failed with _api-error_.",notification:""},update_charge_card_name_card_user:{success:'Card renamed to "_new_card_name_"',failed:"Card name updation failed with _api-error_.",notification:""},lock_charge_card:{success:"Card _masked_card_number_ locked",failed:"Card lock failed with _api-error_.",notification:""},lock_charge_card_card_user:{success:"Card locked",failed:"Card lock failed with _api-error_.",notification:""},unlock_charge_card:{success:"Card _masked_card_number_ unlocked",failed:"Card unlock failed with _api-error_.",notification:""},unlock_charge_card_card_user:{success:"Card unlocked",failed:"Card unlock failed with _api-error_.",notification:""},close_charge_card:{success:"Card _masked_card_number_ closed",failed:"Card close failed with _api-error_.",notification:""},unlock_charge_cards:{success:"_number_of_cards_ unlocked",failed:"Cards unlock failed with _api-error_.",notification:""},lock_charge_cards:{success:"_number_of_cards_ locked",failed:"Cards lock failed with _api-error_.",notification:""},close_charge_cards:{success:"_number_of_cards_ closed",failed:"Cards close failed with _api-error_.",notification:""},revoke_invite_charge_cards:{success:"Invite revoked for _number_of_cards_",failed:"Invite revoke failed with _api-error_.",notification:""},create_schedule:{success:'Schedule created for "_vendor_name_"',failed:"Schedule creation failed with _api-error_.",notification:""},save_schedule:{success:'Schedule saved for "_vendor_name_"',failed:"Save schedule failed with _api-error_.",notification:""},je_posted:{success:"JE Posted",failed:"JE Posting failed with _api-error_.",notification:""},ignore_schedule:{success:"Schedule Ignored",failed:"Schedule Ignore failed with _api-error_.",notification:""},delete_schedule:{success:'Schedule deleted for "_vendor_name_"',failed:"Delete schedule failed with _api-error_.",notification:""},mark_as_complete_schedule:{success:'Schedule marked as completed for "_vendor_name_"',failed:"Mark as complete schedule failed with _api-error_.",notification:""},cancel_journal_entry:{success:"Accrual Canceled",failed:"Accrual Cancel failed with _api-error_.",notification:""},charge_card_accept_term:{success:"",failed:"_api-error_.",notification:""},charge_card_express_interest:{success:"Interest expressed successfully",failed:"_api-error_.",notification:""},save_task_detail:{success:"",failed:"_api-error_.",notification:""},fetch_task_detail:{success:"Task details fetched successfully.",failed:"_api-error_.",notification:""},delete_task:{success:"",failed:"_api-error_.",notification:""},archive_task:{success:"",failed:"_api-error_.",notification:""},update_charge_card:{success:"",failed:"_api-error_.",notification:""},notification_settings_saved:{success:"Notification Settings Saved",failed:"_api-error_.",notification:""},referral_invite_sent:{success:"Referral Invite Sent",failed:"_api-error_.",notification:""},notification_mark_as_read:{success:"Notifications marked as read successfully.",failed:"Something went wrong! Please try again.",notification:""},settings_accounting_accounts_updated:{success:"Accounts saved",failed:"",notification:""},task_group_creation_success:{success:"Task group created successfully",failed:"Task group creation failed",notification:""},task_group_deletion_success:{success:"Task group deleted successfully",failed:"Task group deletion failed",notification:""},task_group_update_success:{success:"Task group updated successfully",failed:"Task group update failed",notification:""},primary_funding_account_updated:{success:"Bank account updated for _productType_.",failed:"",notification:""},task_time_spent_validation:{success:"",failed:"Time can't exceed 99h 59m",notification:""},missing_receipts_attachment:{success:"",failed:"Failed to upload attachment__message__ please try again!",notification:""},flux_analysis_reviewed:{success:"_vendors_count_ _vendor_ reviewed",failed:"_api-error_.",notification:""},flux_analysis_unreviewed:{success:"_vendors_count_ _vendor_ unreviewed",failed:"_api-error_.",notification:""},express_pay_submit:{success:"Payment scheduled",failed:"_api-error_.",notification:""},recon_transaction_categorize:{success:"Transaction reviewed",failed:"_api-error_.",notification:""},recon_transaction_match:{success:"Transaction matched",failed:"_api-error_.",notification:""},ai_cfo_create_session_and_submit:{success:"",failed:"Something went wrong, please try again!",notification:""},treasury_setup:{success:"",failed:"Failed to load Treasury Setup Details! Please try again.",notification:""},treasury_accept_term:{success:"Treasury Terms accepted successfully.",failed:"Failed to accept terms. Please try again.",notification:""},treasury_transfer_money:{success:"Transfer initiated.",failed:"Transfer failed. Please try again.",notification:""},treasury_transfer_money_failed:{success:"",failed:"Transfer failed. Please try again.",notification:""},treasury_update_portfolio_allocation:{success:"Portfolio allocation updated.",failed:"Portfolio allocation update failed. Please try again!",notification:""},reports_resync:{success:"",failed:"Something went wrong. Please try again.",notification:"No new data available."},invalid_phone_number:{success:"",failed:"Invalid phone number",notification:""}},currency:{currencyCode:"USD",currencySymbol:"$",currency:"United States Dollar",countryCode:"US"},format:{ssnFormat:"###-##-####",tinFormat:"##-#######"},status:{pending:"Pending"},cancel:"Cancel",confirm:"Confirm",continue:"Continue",proceed:"Proceed",next:"Next",noText:"--",privacy:"Zeni Privacy Policy",terms:"Terms and Conditions",privacyPolicyUrl:"https://www.zeni.ai/legal/privacy-policy",termsUrl:"https://www.zeni.ai/legal/terms-of-service",footer:{save:"Save",submit:"Submit",cancel:"Cancel",approve:"Approve",reject:"Reject",send:"Send",resubmit:"Resubmit",add:"Add",continueAnyway:"Continue Anyway",resolve:"Resolve",inReview:"In Review",sentForReview:"Sent for Review",linkCard:"Link Card",next:"Next",back:"Back",markAsUnReviewed:"Mark as Unreviewed",markAsReviewed:"Mark as Reviewed",saveForLater:"Save for Later",reconcile:"Reconcile",edit:"Edit",noThanks:"No, Thanks",letsGetStarted:"Let's Get Started"},completeText:"Complete",incompleteText:"Incomplete",notInitiatedText:"Not Initiated",pendingReviewText:"Pending Review",pendingVerificationText:"Pending Verification",retry:"Retry",verified:"Verified",validation:{emailAddressRequired:"Email address required",invalidEmailAddress:"Invalid email address",invalidUrlAddress:"Invalid URL"},needHelp:{text:"Need Help",hoverPrefix:"Experiencing issues?",hoverSuffix:" Schedule a call"},confirmationPopup:{discardTitle:"Discard unsaved changes?",discardDescription:"Changes are not automatically saved. Your changes will be lost if you continue.",discard:"Discard",cancel:"Cancel"},via:"via",cockpit:"cockpit",analytics:"Analytics",filters:{noOptions:"No Options",noMatchesFound:"No Matches Found",userProfileAltText:"Failed to load",startDate:"Start Date",endDate:"End Date"},updated:"Updated",hoursAgo:"hours ago",minutesAgo:"a few minutes ago",noMatches:"Nothing matched your search. Please try again!",noReport:"No _item-name_ to display yet!",reloadPage:{label:"Something went wrong, please try again!"},settings:{title:{accounting:"Accounting Setup",approvalRules:"Approval Rules",bankConnections:"Bank Connections",integrations:"Integrations",myProfile:"My Profile",myBankConnections:"My Bank Connections",notifications:"Notifications"},common:{update:"Update",cancel:"Cancel",productTypeString:"My Profile"},subtitle:{myProfile:"Profile Details",myBankConnections:"Reimbursements"},label:{primary:"Primary",billPay:"Bill Pay",reimbursements:"Reimbursements",bankAccount:"Bank Account",noManager:"No Manager",myProfile:"My Profile"},infoText:{accounting:"Quick access to manage the company's accounting-related settings",approvalRules:"Quick access to manage the multi-level approval rules for bills & reimbursements to make Zeni work better for you",bankConnections:"Manage primary bank account connections for Zeni Bill Payments, Reimbursements, Business Checking, and Business Cards.",businessVerification:"Financial regulations require Zeni to collect both identity & company details to verify your business",companyDetails:"Quick access to manage the company's detailed information",integrations:"Quick access to manage the company's third-party connected services",myProfile:"Quick access to manage your personal details",myBankConnections:"Manage your linked personal bank details used to receive reimbursements"},bankConnectionHeader:{productType:"Products",primaryAccount:"Primary Account",linkAccount:"QBO Linked Account",status:"Status",balance:"Balance"},bankConnectionListHeader:{primary:"Primary",other:"Other Connections",otherToolTip:"These bank connections aren't linked to any product. Select from the dropdown above to connect."},productNameByType:{bill_pay:"Bill Pay",reimbursement:"Reimbursements",zeni_accounts:"Checking",zeni_treasury:"Treasury",charge_cards:"Cards"},otherAccount:{title:"Product",subTitle:"Not assigned",subTitleSmall:"not assigned",remove:"Remove Connection"},notifications:{sectionTitle:{reminders:"Reminders",monthEndInsights:"Month-end Insights"},frequency:{biWeekly:"Bi-Weekly"},mode:{email:"Email",dashboard:"Dashboard"},reminders:{missingReceiptNotification:"Missing Receipts:",uncategorizedTransactionNotification:"Uncategorized Transactions:",pendingBillApprovalNotification:"Bill Approvals:",pendingReimbursementApprovalNotification:"Reimbursement Approvals:"},monthEndInsights:{labels:{notifyMe:"Notify Me:",notifyOthers:"Notify Others:"},userFieldPlaceholder:"Who should receive this email?",stopReceivingEmailsText:"To stop receiving this email, reach out to",stopReceivingMonthEndInsightsSubject:"Stop Month End Insights"},reminderFrequencyOptions:[{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Bi-weekly",value:"bi-weekly"},{label:"Monthly",value:"monthly"}]}},copyToClipBoard:{copy:"Copy",copied:"Copied"},monthsByIndex:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},download:{errorMessages:{unsupportedFileType:"Unsupported Filetype",fileDownloadError:"Download __feature__ Failed with"},defaultFileName:"Report.xlsx"},balanceCard:{cashBalanceSectionTitle:"Total Cash Balance",cardBalanceSectionTitle:"Total Card Balance",comparedTo:"compared to",noBalanceText:"No balance data to display yet!"},insightsCard:{vs:"vs",title:"Insights",no_data:{label:"Cash, Opex, Revenue, COS, and Cash In Cash Out Insights, will appear once you have sufficient financial activity. Stay tuned! 💸"}},timeframe:{day:"Days",month:"Months",quarter:"Quarters",year:"Years",week:"Weeks",free_range:"Time period",this_week_to_date:"This Week",last_week:"Last Week",this_month_to_date:"This Month",last_month:"Last Month",last_3_months:"Last 3 Months",last_6_months:"Last 6 Months",last_12_months:"Last 12 Months",this_year_to_date:"This Year",last_year:"Last Year"},quarterPrefix:"Q",compareSwitchLabel:"Compare",compareMode:{off:"Off",compare_mode_percent:"Percentage",compare_mode_amount:"Amount",changePercent:"Change %",changePrefix:"Change"},chartCard:{total:"Total",activity:"Activity",no_data_available:"No data available!",no_data_available_for:"No data available for",tooltip:{actual:"Actual",forecast:"Forecast",change:"Change",change_percent:"Change %"},forecast_dropdown:{forecast_source:"Via Quickbooks",forecast_invalid_issue:"This period is not in the time frame of the actuals. Please view it via the Forecast tab."},netBurnOrIncome:{grossBurn:"Gross Burn",netBurnOrIncome:"Net Income / Burn",gross_burn:"Gross Burn",cogs:"COS",net_burn_or_income:"Net Income / Burn",income:"Revenue",expenses:"OPEX",net_burn:"Net Burn",net_income:"Net Income",no_data_available:"A minimum of one-month data is required!",cogs_forecast:"Forecast",net_burn_or_income_forecast:"Forecast",income_forecast:"Forecast",expenses_forecast:"Forecast"},netBurnOrIncomeCalculator:{title:"Burn Rate Calculator",accounting_method:{label:"Configure Burn Rate, Runway, and Cash Zero date based on below options:",cash:"Cash Flow from Operating Activities",ebitda:"EBITDA",net_income:"Net Income"},time_span_id_for_average:{label:"Further configure Burn Rate, Runway, and Cash Zero date based on below options:",last_month:"Last month",last_completed_month:"Last completed month",average_of_last_2_months:"Average of last 2 completed months",average_of_last_3_months:"Average of last 3 completed months",under_review_last_month_label:"(Including Under Review)"}},revenue:{income:"Revenue",cogs:"COS",gross_margin:"Gross Margin",grossMargin:"Gross Margin",income_forecast:"Forecast",cogs_forecast:"Forecast",gross_margin_forecast:"Forecast",grossMargin_forecast:"Forecast"},cashInCashOut:{cash_in:"Cash In",cash_out:"Cash Out",net_cash_flow:"Net Cash Flow"},no_data:{revenue:"No revenues to display yet, but thrift is a great revenue. Fight On!🤘",cash_in_cash_out:"No cash in cash out to display yet!",cash_position:"No cash position to display yet!",net_burn_or_income:"No net burn to display yet!",operating_expenses:"No operating expenses to display yet!",top_expenses:{this_week_to_date:"No expenses this week 🤷",last_week:"No expenses last week 🤷",this_month_to_date:"No expenses this month 🤷",last_month:"No expenses last month 🤷",last_3_months:"No expenses last 3 months 🤷",last_6_months:"No expenses last 6 months 🤷",last_12_months:"No expenses last 12 months 🤷",this_year_to_date:"No expenses this year 🤷",last_year:"No expenses last year 🤷"},aging_report:"No data to display yet!"}},drawerMenus:{dashboard:"Dashboard",cockpit:"Cockpit",reports:"Reports",people:"People",forecast:"Forecast",cards:"Cards",bills:"Bills",ai_automation:"AI Bookkeeping",storybooks:"Storybooks",settings:"Settings",logout:"Logout",reimbursements:"Reimbursements",checking:"Checking",vendors:"Vendors",rewards:"Rewards",accounting:"Accounting",approval_rules:"Approval Rules",billing:"Billing",bank_connections:"Bank Connections",business_verification:"Business Verification",company_details:"Company Details",integrations:"Integrations",my_profile:"My Profile",my_bank_connections:"My Bank Connections",notifications:"Notifications",performance:"Performance",ai_accountant:"AI Accountant",ai_cfo:"AI CFO",new_chat:"New Chat",explore:"Explore",treasury:"Treasury"},drawerMenuSubtitles:{rewards:"Earn __reward-amount__ per referral"},drawerGroups:{finance:"Finance",cash:"Cash",spend_management:"Spend Management",banking:"Banking",company:"Company",company_settings:"Company Settings",personal_settings:"Personal Settings",ai_bookkeeping:"AI Bookkeeping",ai_cfo:"",ai_agents:"AI Agents",ai_accountant:"AI Accountant"},drawerTags:{new:"NEW"},dashboardDropDownList:{menuOption:{logout:{label:"Logout",value:"logout"},settings:{label:"Settings",value:"settings"},cockpit:{label:"Cockpit",value:"cockpit"}}},transactionItem:{date:"Date",account:"Account"},transactionType:{invoice:"Invoice",creditMemo:"Credit Memo",salesReceipt:"Sales Receipt",refund:"Refund",expense:"Expense",check:"Check",bill:"Bill",billPayment:"Bill Payment",transfer:"Transfer",vendorCredit:"Vendor Credit",creditCardCredit:"Credit Card Credit",deposit:"Deposit",creditCardPayment:"Credit Card Payment",journalEntry:"Journal Entry",payment:"Payment"},signIn:{heading:"Welcome to Zeni",confirmationLinkSent:"Sign-in link sent",message:"Your financial dashboard is just one step away. Get started.",signInSecurelyMessage:"Choose an account to sign in securely",signInGoogleButton:"Sign In With Google",signInMicrosoftButton:"Sign In With Microsoft",termsPrivacyFinePrintPart:"By creating an account on Zeni, you confirm that you ",agreeWith:"agree with our ",termsOfService:"terms of service",and:"and",privacyPolicy:"privacy policy",termsUrl:"https://www.zeni.ai/terms",privacyPolicyUrl:"https://www.zeni.ai/privacy-policy",signInError:`Couldn’t sign-in to your account.
|
|
330
330
|
Please try again.`,signInAuthError:`Authorization failed, and sign-in is restricted.
|
|
331
331
|
Please try and authorize again.`,emailNotFoundPopup:{title:"We couldn't find the email ID",confirmEmail:"Please ensure that you are logging in with the same email ID that you shared with Zeni.",checkAccess:"Make sure you have access to your company's Zeni dashboard. If not, reach out to your Zeni admin.",contactZeni:"Please contact Zeni's sales executive if you are in the process of onboarding with Zeni."},magicLinkSent:{primaryMessage:"A secure sign in link has been sent to __email__ to access the dashboard.",secondaryMessage:"If you can't see the email, check your spam/junk folder.",resendLinkCountdown:"Resend Link in __seconds__s",resendLink:"Resend Link",attemptsRemaining:"(__remaining__/__total__) attempt(s) remaining",resendLimitExceededRedirecting:"Resend Limit exceeded. Redirecting you in __seconds__s"},workEmailExample:"name@workemail.com",signInButton:"Sign In",invalidEmailMessage:"Invalid email address",magicLinkExpired:"Your sign-in link has expired. Please try again.",magicLinkExpiredHeading:"This sign-in link has expired",magicLinkAlreadyUsedHeading:"This sign-in link has already been used",magicLinkAlreadyUsedMessage:"For security reasons, sign-in links can only be used once.",requestNewLink:"Request a new link",workEmailLink:"Sign in using email",workEmailSubText:"For users without Google/Microsoft access.",googleOrMicrosoftLink:"Sign in using Google or Microsoft",continueAs:"Continue as"},billPayPromoCard:{title:"Bill Pay",aipoweredInvoice:{prefix:"AI-powered invoice processing helps create bills in seconds."},multiLevelApproval:{prefix:"Multi-level approval flows allows you to stay in control of payments."},financeTeam:{prefix:"Fully managed by your expert Zeni Finance Team."},fastestWay:{prefix:"Fastest way to pay your vendors and contractors, 100% free"},btn:"Learn More",signUp:"Sign Up for FREE"},reimbursementPromoCard:{title:"Reimbursements",aiPowered:{prefix:"AI powered receipts processing helps you create reports in seconds."},multiLevel:{prefix:"Multi-level approval flows allow you to stay in control of payments."},reimburse:{prefix:"Reimburse employees at lightning speed, absolutely free"},signUp:"Sign Up for FREE",btn:"Learn More"},treasuryPromoCard:{title:"Treasury",introducing:"Introducing",btn:"Get Started",watchVideo:{prefix:"Watch how Zeni Treasury helps you earn more."},highYield:{title:"Earn yields upto",prefix:`Put your idle cash to work and earn
|
|
332
332
|
more than a standard checking account.`},sipcInsured:{title:"SIPC coverage upto",amount:"$500K",prefix:`SIPC protection ensures your assets
|
|
@@ -418,7 +418,7 @@ _failed_count_ Transaction failed.`},transactionsUpdated_transactionsFailed:{suc
|
|
|
418
418
|
_updated_count_ Transaction updated.
|
|
419
419
|
_failed_count_ Transactions failed.`},transactionCategorized_transactionUpdated_transactionFailed:{success:"",failed:"",notification:`_categorized_count_ Transaction categorized.
|
|
420
420
|
_updated_count_ Transaction updated.
|
|
421
|
-
_failed_count_ Transaction failed.`},people_invite_people:{success:"Invitation sent",failed:"",notification:""},people_invite_multiple_people:{success:"Users invited",failed:"",notification:""},people_update_person:{success:"User info changed",failed:"",notification:""},people_delete_person:{success:"User deleted",failed:"",notification:""},reimbursement_updated:{success:"Reimbursement saved",failed:"_api-error_.",notification:""},reimbursement_approved:{success:"Reimbursement approved",failed:"_api-error_.",notification:""},reimbursement_rejected:{success:"Reimbursement rejected",failed:"_api-error_.",notification:""},reimbursement_sent_for_approval:{success:"Reimbursement sent for approval",failed:"_api-error_.",notification:""},reimbursement_deleted:{success:"Reimbursement deleted",failed:"_api-error_.",notification:""},reimbursement_cancelled:{success:"Reimbursement canceled",failed:"_api-error_.",notification:""},reimbursement_cancelled_deleted:{success:"Reimbursement canceled and deleted",failed:"_api-error_.",notification:""},reimbursement_bulk_submit:{success:"_count_ _report_ will be _action_. You'll be notified once it's done.",failed:"_api-error_.",notification:""},reimbursement_bulk_processed:{success:"_report_ _has_ been _action_. The page will refresh now to reflect updates.",failed:"_api-error_.",notification:""},save_reconcile_for_later:{success:"Reconciliation saved",failed:"Reconciliation not saved. Please try again!",notification:""},reconcile:{success:"_reconcile_account_ reconciliation in progress.",failed:"Reconciliation failed for _reconcile_account_",notification:""},exclude_transaction:{success:"Transaction excluded",failed:"Transaction exclusion failed",notification:""},account_added:{success:"Account added successfully",failed:"",notification:""},issue_charge_card:{success:"New _card_ issued for _user-name_",failed:"",notification:""},issue_charge_cards:{success:"New cards issued",failed:"",notification:""},charge_card_auto_pay_enable:{success:"Early payment enabled",failed:"",notification:""},charge_card_auto_pay_disable:{success:"Early payment disabled",failed:"",notification:""},business_verification_save:{success:"Business Verification Details saved successfully.",failed:"Couldn't save Business Verification Details. Please try again.",notification:""},business_verification_submit:{success:"Business Verification Details submitted successfully.",failed:"Couldn't submit Business Verification Details. Please try again.",notification:""},business_verification_from_bills_submit:{success:"Verified successfully.",failed:"Couldn't submit Business Verification Details. Please try again.",notification:""},plaid_connection:{success:"",failed:"Something went wrong! Please try again.",notification:""},bill_pay_setup:{success:"",failed:"Failed to load Bill Pay Setup Details! Please try again.",notification:""},zeni_accounts_setup:{success:"",failed:"Failed to load Zeni Accounts Setup Details! Please try again.",notification:""},bill_pay_approval_create:{success:"Approval Rule created successfully.",failed:"Couldn't create Approval Rule! Please try again.",notification:""},bill_pay_duplicate_approval_create:{success:"Approval Rule created successfully.",failed:"_api-error_",notification:""},bill_pay_approval_update:{success:"Approval Rule updated successfully.",failed:"Couldn't update Approval Rule! Please try again.",notification:""},update_zeni_account_nickname:{success:"Zeni Account nickname updated successfully",failed:"_api-error_.",notification:""},create_checking_account:{success:"New Business Account Added",failed:"_api-error_.",notification:""},deposit_check:{success:"Check Deposit Successful",failed:"_api-error_.",notification:""},bill_pay_duplicate_approval_update:{success:"Approval Rule updated successfully.",failed:"_api-error_",notification:""},bill_pay_approval_delete:{success:"Approval Rule deleted successfully.",failed:"Couldn't delete Approval Rule! Please try again.",notification:""},reimbursement_setup:{success:"",failed:"Failed to load Reimbursements Setup Details! Please try again.",notification:""},reimbursement_approval_create:{success:"Approval Rule created successfully.",failed:"Couldn't create Approval Rule! Please try again.",notification:""},reimbursement_duplicate_approval_create:{success:"Approval Rule created successfully.",failed:"_api-error_",notification:""},reimbursement_approval_update:{success:"Approval Rule updated successfully.",failed:"Couldn't update Approval Rule! Please try again.",notification:""},reimbursement_duplicate_approval_update:{success:"Approval Rule updated successfully.",failed:"_api-error_",notification:""},reimbursement_approval_delete:{success:"Approval Rule deleted successfully.",failed:"Couldn't delete Approval Rule! Please try again.",notification:""},reimbursement_create_mileage:{success:"Mileage rate added successfully.",failed:"_api-error_.",notification:""},reimbursement_update_mileage:{success:"Mileage rate updated successfully.",failed:"_api-error_.",notification:""},reimbursement_accept_term:{success:"",failed:"_api-error_.",notification:""},reimbursement_accept_employee_term:{success:"",failed:"_api-error_.",notification:""},cockpit_month_end_email_sent:{success:"Zeni Insights sent successfully for _company-name_.",failed:"",notification:""},cockpit_month_end_email_save:{success:"Zeni Insights saved successfully for _company-name_.",failed:"",notification:""},cockpit_month_end_email_attachment_upload:{success:"",failed:"Sorry, the file you uploaded is too large. Maximum file size allowed is 700KB",notification:""},audit_score_updated:{success:"Audit Score updated",failed:"",notification:""},create_bank_account_ach:{success:"ACH account added successfully.",failed:"",notification:""},unlink_deposit_account:{success:"",failed:"_api-error_.",notification:""},create_bank_account_wire:{success:"_wire-type_ wire account added successfully.",failed:"",notification:""},create_bank_account_international:{success:"_wire-type_ wire account added successfully.",failed:"",notification:""},bill_pay_updated:{success:"Bill saved",failed:"_api-error_.",notification:""},bill_pay_deleted:{success:"Bill deleted",failed:"_api-error_.",notification:""},bill_pay_bulk_submit:{success:"_count_ _bill_ will be _action_. You'll be notified once it's done.",failed:"_api-error_.",notification:""},bill_pay_bulk_processed:{success:"_bill_ _has_ been _action_. The page will refresh now to reflect updates.",failed:"_api-error_.",notification:""},bill_pay_cancelled_deleted:{success:"Bill canceled and deleted",failed:"_api-error_.",notification:""},bill_pay_cancelled:{success:"Bill canceled",failed:"_api-error_.",notification:""},bill_pay_approved:{success:"Bill approved",failed:"_api-error_.",notification:""},bill_pay_rejected:{success:"Bill rejected",failed:"_api-error_.",notification:""},bill_pay_sent_for_approval:{success:"Bill sent for approval",failed:"_api-error_.",notification:""},bill_pay_accept_term:{success:"",failed:"_api-error_.",notification:""},bill_pay_refund:{success:"Refund process initiated",failed:"_api-error_.",notification:""},bill_pay_retry:{success:"Payment retried",failed:"_api-error_.",notification:""},bill_pay_marked_as_paid:{success:"Bill marked as paid",failed:"_api-error_.",notification:""},update_vendor:{success:"Vendor updated successfully.",failed:"_api-error_.",notification:""},data_refresh_update:{success:"Data refreshed",failed:"_api-error_.",notification:""},delete_bank_account:{success:"Bank account deleted successfully.",failed:"_api-error_.",notification:""},update_debit_card_pin_attempt:{success:"PIN changed successfully",failed:"_api-error_.",notification:""},set_debit_card_pin:{success:"PIN set successfully",failed:"_api-error_.",notification:""},create_bank_account:{success:"",failed:"_api-error_.",notification:""},send_email_magic_link_to_user:{success:"",failed:"_api-error_.",notification:""},complete_profile_done:{success:"Profile details saved.",failed:"_api-error_.",notification:""},zeni_account_accept_term:{success:"",failed:"_api-error_.",notification:""},transfer_money:{success:"",failed:"_api-error_.",notification:""},create_vendor:{success:"Vendor created successfully.",failed:"_api-error_.",notification:""},onboarding_customer_view:{success:"Onboarding Business Details fetched successfully.",failed:"Couldn't fetch Onboarding Business Details. Please try again.",notification:""},onboarding_customer_view_complete:{success:"Onboarding status updated successfully.",failed:"Couldn't update Onboarding status. Please try again.",notification:""},onboarding_customer_identity_verification_save:{success:"Onboarding Identity Details saved successfully.",failed:"Couldn't save Onboarding Identity Details. Please try again.",notification:""},onboarding_customer_identity_verification_submit:{success:"Onboarding Identity Details submitted successfully.",failed:"Couldn't submit Onboarding Identity Details. Please try again.",notification:""},onboarding_customer_business_verification_save:{success:"Onboarding Business Details saved successfully.",failed:"Couldn't save Onboarding Business Details. Please try again.",notification:""},onboarding_customer_business_verification_submit:{success:"Onboarding Business Details submitted successfully.",failed:"Couldn't submit Onboarding Business Details. Please try again.",notification:""},retry_bank_account_connection:{success:"Bank account connection completed successfully.",failed:"Bank account connection failed.",notification:""},dashboard_invite_sent:{success:"Dashboard invite sent to _user-name_ for _company-name_ successfully.",failed:"Dashboard invite failed",notification:""},onboarding_info_saved:{success:"Saved successfully",failed:"Save failed",notification:""},approve_original_merchant:{success:'Review request for "_merchant_name_" is approved successfully.',failed:"_api-error_.",notification:""},approve_global_merchant:{success:'Review request for "_original_merchant_name_" to "_approved_merchant_name_" is approved successfully.',failed:"_api-error_.",notification:""},reject_global_merchant:{success:'Vendor "_merchant_name_" review rejected',failed:"_api-error_.",notification:""},create_global_merchant:{success:'Vendor "_global_merchant_name_" successfully added to global list.',failed:"_api-error_.",notification:""},fetch_global_merchant_no_recommendation:{success:'There are no recommendations for the name "_global_merchant_name_".',failed:"_api-error_.",notification:""},save_vendor_sent_for_review:{success:'Vendor "_vendor_name_" sent for the review.',failed:"_api-error_.",notification:""},save_vendor_renamed:{success:'Vendor "_old_vendor_name_" renamed to "_updated_vendor_name_."',failed:"_api-error_.",notification:""},save_vendor_marked_as_employee:{success:"Marked as employee",failed:"_api-error_.",notification:""},save_vendor_marked_as_local_contractor:{success:"Marked as local contractor",failed:"_api-error_.",notification:""},charge_card_setup:{success:"",failed:"Failed to load Cards Setup Details! Please try again.",notification:""},charge_card_receipt_upload:{success:"Card receipt uploaded",failed:"_api-error_.",notification:""},charge_card_resend_invite:{success:"Card invite resent",failed:"_api-error_.",notification:""},charge_card_revoke_invite:{success:"Card invite revoked",failed:"_api-error_.",notification:""},charge_card_update_limit:{success:"Card limit updated to _amount_",failed:"Limit updation failed with _api-error_.",notification:""},charge_cards_update_limit:{success:"Limit updated for _number_of_cards_",failed:"Limit updation failed with _api-error_.",notification:""},update_charge_card_name:{success:'Card _masked_card_number_ renamed to "_new_card_name_"',failed:"Card name updation failed with _api-error_.",notification:""},update_charge_card_name_card_user:{success:'Card renamed to "_new_card_name_"',failed:"Card name updation failed with _api-error_.",notification:""},lock_charge_card:{success:"Card _masked_card_number_ locked",failed:"Card lock failed with _api-error_.",notification:""},lock_charge_card_card_user:{success:"Card locked",failed:"Card lock failed with _api-error_.",notification:""},unlock_charge_card:{success:"Card _masked_card_number_ unlocked",failed:"Card unlock failed with _api-error_.",notification:""},unlock_charge_card_card_user:{success:"Card unlocked",failed:"Card unlock failed with _api-error_.",notification:""},close_charge_card:{success:"Card _masked_card_number_ closed",failed:"Card close failed with _api-error_.",notification:""},unlock_charge_cards:{success:"_number_of_cards_ unlocked",failed:"Cards unlock failed with _api-error_.",notification:""},lock_charge_cards:{success:"_number_of_cards_ locked",failed:"Cards lock failed with _api-error_.",notification:""},close_charge_cards:{success:"_number_of_cards_ closed",failed:"Cards close failed with _api-error_.",notification:""},revoke_invite_charge_cards:{success:"Invite revoked for _number_of_cards_",failed:"Invite revoke failed with _api-error_.",notification:""},create_schedule:{success:'Schedule created for "_vendor_name_"',failed:"Schedule creation failed with _api-error_.",notification:""},save_schedule:{success:'Schedule saved for "_vendor_name_"',failed:"Save schedule failed with _api-error_.",notification:""},je_posted:{success:"JE Posted",failed:"JE Posting failed with _api-error_.",notification:""},ignore_schedule:{success:"Schedule ignored",failed:"Schedule ignore failed with _api-error_.",notification:""},delete_schedule:{success:'Schedule deleted for "_vendor_name_"',failed:"Delete schedule failed with _api-error_.",notification:""},mark_as_complete_schedule:{success:'Schedule marked as completed for "_vendor_name_"',failed:"Mark as complete schedule failed with _api-error_.",notification:""},cancel_journal_entry:{success:"Accrual Canceled",failed:"Accrual Cancel failed with _api-error_.",notification:""},charge_card_accept_term:{success:"",failed:"_api-error_.",notification:""},charge_card_express_interest:{success:"Interest expressed successfully",failed:"_api-error_.",notification:""},save_task_detail:{success:"",failed:"_api-error_.",notification:""},fetch_task_detail:{success:"Task details fetched successfully.",failed:"_api-error_.",notification:""},delete_task:{success:"",failed:"_api-error_.",notification:""},archive_task:{success:"",failed:"_api-error_.",notification:""},update_charge_card:{success:"",failed:"_api-error_.",notification:""},notification_settings_saved:{success:"Notification Settings Saved",failed:"_api-error_.",notification:""},referral_invite_sent:{success:"Referral Invite Sent",failed:"_api-error_.",notification:""},notification_mark_as_read:{success:"Notifications marked as read successfully.",failed:"Something went wrong! Please try again.",notification:""},settings_accounting_accounts_updated:{success:"Accounts saved",failed:"",notification:""},task_group_creation_success:{success:"Task group created successfully",failed:"Task group creation failed",notification:""},task_group_deletion_success:{success:"Task group deleted successfully",failed:"Task group deletion failed",notification:""},task_group_update_success:{success:"Task group updated successfully",failed:"Task group update failed",notification:""},primary_funding_account_updated:{success:"Bank account updated for _productType_.",failed:"",notification:""},task_time_spent_validation:{success:"",failed:"Time can't exceed 99h 59m",notification:""},missing_receipts_attachment:{success:"",failed:"Failed to upload attachment__message__ please try again!",notification:""},flux_analysis_reviewed:{success:"_vendors_count_ _vendor_ reviewed",failed:"_api-error_.",notification:""},flux_analysis_unreviewed:{success:"_vendors_count_ _vendor_ unreviewed",failed:"_api-error_.",notification:""},express_pay_submit:{success:"Payment scheduled",failed:"_api-error_.",notification:""},recon_transaction_categorize:{success:"Transaction reviewed",failed:"_api-error_.",notification:""},recon_transaction_match:{success:"Transaction matched",failed:"_api-error_.",notification:""},ai_cfo_create_session_and_submit:{success:"",failed:"Something went wrong, please try again!",notification:""},treasury_setup:{success:"",failed:"Failed to load Treasury Setup Details! Please try again.",notification:""},treasury_accept_term:{success:"Treasury Terms accepted successfully.",failed:"Failed to accept terms. Please try again.",notification:""},treasury_transfer_money:{success:"Transfer initiated.",failed:"Transfer failed. Please try again.",notification:""},treasury_transfer_money_failed:{success:"",failed:"Transfer failed. Please try again.",notification:""},treasury_update_portfolio_allocation:{success:"Portfolio allocation updated.",failed:"Portfolio allocation update failed. Please try again!",notification:""},reports_resync:{success:"",failed:"Something went wrong. Please try again.",notification:"No new data available."},invalid_phone_number:{success:"",failed:"Invalid phone number",notification:""}},currency:{currencyCode:"INR",currencySymbol:"₹",currency:"Indian Rupee",countryCode:"IN"},format:{ssnFormat:"###-##-####",tinFormat:"##-#######"},status:{pending:"Pending"},cancel:"Cancel",confirm:"Confirm",continue:"Continue",proceed:"Proceed",next:"Next",noText:"--",privacy:"Zeni Privacy Policy",terms:"Terms and Conditions",privacyPolicyUrl:"https://www.zeni.ai/legal/privacy-policy",termsUrl:"https://www.zeni.ai/legal/terms-of-service",footer:{save:"Save",submit:"Submit",cancel:"Cancel",approve:"Approve",reject:"Reject",send:"Send",resubmit:"Resubmit",add:"Add",continueAnyway:"Continue Anyway",resolve:"Resolve",inReview:"In Review",sentForReview:"Sent for Review",linkCard:"Link Card",next:"Next",back:"Back",markAsUnReviewed:"Mark as Unreviewed",markAsReviewed:"Mark as Reviewed",saveForLater:"Save for Later",reconcile:"Reconcile",edit:"Edit",noThanks:"No, Thanks",letsGetStarted:"Let's Get Started"},completeText:"Complete",incompleteText:"Incomplete",notInitiatedText:"Not Initiated",pendingReviewText:"Pending Review",pendingVerificationText:"Pending Verification",retry:"Retry",verified:"Verified",validation:{emailAddressRequired:"Email address required",invalidEmailAddress:"Invalid email address",invalidUrlAddress:"Invalid URL"},needHelp:{text:"Need Help",hoverPrefix:"Experiencing issues?",hoverSuffix:" Schedule a call"},confirmationPopup:{discardTitle:"Discard unsaved changes?",discardDescription:"Changes are not automatically saved. Your changes will be lost if you continue.",discard:"Discard",cancel:"Cancel"},via:"via",cockpit:"cockpit",analytics:"Analytics",filters:{noOptions:"No Options",noMatchesFound:"No Matches Found",userProfileAltText:"Failed to load",startDate:"Start Date",endDate:"End Date"},updated:"Updated",hoursAgo:"hours ago",minutesAgo:"a few minutes ago",noMatches:"Nothing matched your search. Please try again!",noReport:"No _item-name_ to display yet!",reloadPage:{label:"Something went wrong, please try again!"},settings:{title:{accounting:"Accounting Setup",approvalRules:"Approval Rules",bankConnections:"Bank Connections",integrations:"Integrations",myProfile:"My Profile",myBankConnections:"My Bank Connections",notifications:"Notifications"},common:{update:"Update",cancel:"Cancel",productTypeString:"My Profile"},subtitle:{myProfile:"Profile Details",myBankConnections:"Reimbursements"},label:{primary:"Primary",billPay:"Bill Pay",reimbursements:"Reimbursements",bankAccount:"Bank Account",noManager:"No Manager",myProfile:"My Profile"},infoText:{accounting:"Quick access to manage the company's accounting-related settings",approvalRules:"Quick access to manage the multi-level approval rules for bills & reimbursements to make Zeni work better for you",bankConnections:"Manage primary bank account connections for Zeni Bill Payments, Reimbursements, Business Checking, and Business Cards.",businessVerification:"Financial regulations require Zeni to collect both identity & company details to verify your business",companyDetails:"Quick access to manage the company's detailed information",integrations:"Quick access to manage the company's third-party connected services",myProfile:"Quick access to manage your personal details",myBankConnections:"Manage your linked personal bank details used to receive reimbursements"},bankConnectionHeader:{productType:"Products",primaryAccount:"Primary Account",linkAccount:"QBO Linked Account",status:"Status",balance:"Balance"},bankConnectionListHeader:{primary:"Primary",other:"Other Connections",otherToolTip:"These bank connections aren't linked to any product. Select from the dropdown above to connect."},productNameByType:{bill_pay:"Bill Pay",reimbursement:"Reimbursements",zeni_accounts:"Checking",zeni_treasury:"Treasury",charge_cards:"Cards"},otherAccount:{title:"Product",subTitle:"Not assigned",subTitleSmall:"not assigned",remove:"Remove Connection"},notifications:{sectionTitle:{reminders:"Reminders",monthEndInsights:"Month-end Insights"},frequency:{biWeekly:"Bi-Weekly"},mode:{email:"Email",dashboard:"Dashboard"},reminders:{missingReceiptNotification:"Missing Receipts:",uncategorizedTransactionNotification:"Uncategorized Transactions:",pendingBillApprovalNotification:"Bill Approvals:",pendingReimbursementApprovalNotification:"Reimbursement Approvals:"},monthEndInsights:{labels:{notifyMe:"Notify Me:",notifyOthers:"Notify Others:"},userFieldPlaceholder:"Who should receive this email?",stopReceivingEmailsText:"To stop receiving this email, reach out to",stopReceivingMonthEndInsightsSubject:"Stop Month End Insights"},reminderFrequencyOptions:[{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Bi-weekly",value:"bi-weekly"},{label:"Monthly",value:"monthly"}]}},copyToClipBoard:{copy:"Copy",copied:"Copied"},monthsByIndex:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},download:{errorMessages:{unsupportedFileType:"Unsupported Filetype",fileDownloadError:"Download __feature__ Failed with"},defaultFileName:"Report.xlsx"},balanceCard:{cashBalanceSectionTitle:"Total Cash Balance",cardBalanceSectionTitle:"Total Card Balance",comparedTo:"compared to",noBalanceText:"No balance data to display yet!"},insightsCard:{vs:"vs",title:"Insights",no_data:{label:"Cash, Opex, Revenue, COS, and Cash In Cash Out Insights, will appear once you have sufficient financial activity. Stay tuned! 💸"}},timeframe:{day:"Days",month:"Months",quarter:"Quarters",year:"Years",week:"Weeks",free_range:"Time period",this_week_to_date:"This Week",last_week:"Last Week",this_month_to_date:"This Month",last_month:"Last Month",last_3_months:"Last 3 Months",last_6_months:"Last 6 Months",last_12_months:"Last 12 Months",this_year_to_date:"This Year",last_year:"Last Year"},quarterPrefix:"Q",compareSwitchLabel:"Compare",compareMode:{off:"Off",compare_mode_percent:"Percentage",compare_mode_amount:"Amount",changePercent:"Change %",changePrefix:"Change"},chartCard:{total:"Total",activity:"Activity",no_data_available:"No data available!",no_data_available_for:"No data available for",tooltip:{actual:"Actual",forecast:"Forecast",change:"Change",change_percent:"Change %"},forecast_dropdown:{forecast_source:"Via Quickbooks",forecast_invalid_issue:"This period is not in the time frame of the actuals. Please view it via the Forecast tab."},netBurnOrIncome:{grossBurn:"Gross Burn",netBurnOrIncome:"Net Income / Burn",gross_burn:"Gross Burn",cogs:"COS",net_burn_or_income:"Net Income / Burn",income:"Revenue",expenses:"OPEX",net_burn:"Net Burn",net_income:"Net Income",no_data_available:"A minimum of one-month data is required!",cogs_forecast:"Forecast",net_burn_or_income_forecast:"Forecast",income_forecast:"Forecast",expenses_forecast:"Forecast"},netBurnOrIncomeCalculator:{title:"Burn Rate Calculator",accounting_method:{label:"Configure Burn Rate, Runway, and Cash Zero date based on below options:",cash:"Cash Flow from Operating Activities",ebitda:"EBITDA",net_income:"Net Income"},time_span_id_for_average:{label:"Further configure Burn Rate, Runway, and Cash Zero date based on below options:",last_month:"Last month",last_completed_month:"Last completed month",average_of_last_2_months:"Average of last 2 completed months",average_of_last_3_months:"Average of last 3 completed months",under_review_last_month_label:"(Including Under Review)"}},revenue:{income:"Revenue",cogs:"COS",gross_margin:"Gross Margin",grossMargin:"Gross Margin",income_forecast:"Forecast",cogs_forecast:"Forecast",gross_margin_forecast:"Forecast",grossMargin_forecast:"Forecast"},cashInCashOut:{cash_in:"Cash In",cash_out:"Cash Out",net_cash_flow:"Net Cash Flow"},no_data:{revenue:"No revenues to display yet, but thrift is a great revenue. Fight On!🤘",cash_in_cash_out:"No cash in cash out to display yet!",cash_position:"No cash position to display yet!",net_burn_or_income:"No net burn to display yet!",operating_expenses:"No operating expenses to display yet!",top_expenses:{this_week_to_date:"No expenses this week 🤷",last_week:"No expenses last week 🤷",this_month_to_date:"No expenses this month 🤷",last_month:"No expenses last month 🤷",last_3_months:"No expenses last 3 months 🤷",last_6_months:"No expenses last 6 months 🤷",last_12_months:"No expenses last 12 months 🤷",this_year_to_date:"No expenses this year 🤷",last_year:"No expenses last year 🤷"},aging_report:"No data to display yet!"}},drawerMenus:{dashboard:"Dashboard",cockpit:"Cockpit",reports:"Reports",people:"People",forecast:"Forecast",ai_automation:"AI Bookkeeping",cards:"Cards",bills:"Bills",storybooks:"Storybooks",settings:"Settings",logout:"Logout",reimbursements:"Reimbursements",checking:"Checking",vendors:"Vendors",rewards:"Rewards",accounting:"Accounting",approval_rules:"Approval Rules",billing:"Billing",bank_connections:"Bank Connections",business_verification:"Business Verification",company_details:"Company Details",integrations:"Integrations",my_profile:"My Profile",my_bank_connections:"My Bank Connections",notifications:"Notifications",performance:"Performance",ai_accountant:"AI Accountant",ai_cfo:"AI CFO",new_chat:"New Chat",explore:"Explore",treasury:"Treasury"},drawerMenuSubtitles:{rewards:"Earn __reward-amount__ per referral"},drawerGroups:{finance:"Finance",cash:"Cash",spend_management:"Spend Management",banking:"Banking",company:"Company",company_settings:"Company Settings",personal_settings:"Personal Settings",ai_bookkeeping:"AI Bookkeeping",ai_cfo:"",ai_agents:"AI Agents",ai_accountant:"AI Accountant"},drawerTags:{new:"NEW"},dashboardDropDownList:{menuOption:{logout:{label:"Logout",value:"logout"},settings:{label:"Settings",value:"settings"},cockpit:{label:"Cockpit",value:"cockpit"}}},transactionItem:{date:"Date",account:"Account"},transactionType:{invoice:"Invoice",creditMemo:"Credit Memo",salesReceipt:"Sales Receipt",refund:"Refund",expense:"Expense",check:"Check",bill:"Bill",billPayment:"Bill Payment",transfer:"Transfer",vendorCredit:"Vendor Credit",creditCardCredit:"Credit Card Credit",deposit:"Deposit",creditCardPayment:"Credit Card Payment",journalEntry:"Journal Entry",payment:"Payment"},signIn:{heading:"Welcome to Zeni",confirmationLinkSent:"Confirmation link sent",message:"Your financial dashboard is just one step away. Get started.",signInSecurelyMessage:"Choose an account to sign in securely",signInGoogleButton:"Sign In With Google",signInMicrosoftButton:"Sign In With Microsoft",termsPrivacyFinePrintPart:"By creating an account on Zeni, you confirm that you ",agreeWith:"agree with our ",termsOfService:"terms of service",and:"and",privacyPolicy:"privacy policy",termsUrl:"https://www.zeni.ai/terms",privacyPolicyUrl:"https://www.zeni.ai/privacy-policy",signInError:`Couldn’t sign-in to your account.
|
|
421
|
+
_failed_count_ Transaction failed.`},people_invite_people:{success:"Invitation sent",failed:"",notification:""},people_invite_multiple_people:{success:"Users invited",failed:"",notification:""},people_update_person:{success:"User info changed",failed:"",notification:""},people_delete_person:{success:"User deleted",failed:"",notification:""},reimbursement_updated:{success:"Reimbursement saved",failed:"_api-error_.",notification:""},reimbursement_approved:{success:"Reimbursement approved",failed:"_api-error_.",notification:""},reimbursement_rejected:{success:"Reimbursement rejected",failed:"_api-error_.",notification:""},reimbursement_sent_for_approval:{success:"Reimbursement sent for approval",failed:"_api-error_.",notification:""},reimbursement_deleted:{success:"Reimbursement deleted",failed:"_api-error_.",notification:""},reimbursement_cancelled:{success:"Reimbursement canceled",failed:"_api-error_.",notification:""},reimbursement_cancelled_deleted:{success:"Reimbursement canceled and deleted",failed:"_api-error_.",notification:""},reimbursement_bulk_submit:{success:"_count_ _report_ will be _action_. You'll be notified once it's done.",failed:"_api-error_.",notification:""},reimbursement_bulk_processed:{success:"_report_ _has_ been _action_. The page will refresh now to reflect updates.",failed:"_api-error_.",notification:""},save_reconcile_for_later:{success:"Reconciliation saved",failed:"Reconciliation not saved. Please try again!",notification:""},reconcile:{success:"_reconcile_account_ reconciliation in progress.",failed:"Reconciliation failed for _reconcile_account_",notification:""},exclude_transaction:{success:"Transaction excluded",failed:"Transaction exclusion failed",notification:""},account_added:{success:"Account added successfully",failed:"",notification:""},issue_charge_card:{success:"New _card_ issued for _user-name_",failed:"",notification:""},issue_charge_cards:{success:"New cards issued",failed:"",notification:""},charge_card_auto_pay_enable:{success:"Early payment enabled",failed:"",notification:""},charge_card_auto_pay_disable:{success:"Early payment disabled",failed:"",notification:""},business_verification_save:{success:"Business Verification Details saved successfully.",failed:"Couldn't save Business Verification Details. Please try again.",notification:""},business_verification_submit:{success:"Business Verification Details submitted successfully.",failed:"Couldn't submit Business Verification Details. Please try again.",notification:""},business_verification_from_bills_submit:{success:"Verified successfully.",failed:"Couldn't submit Business Verification Details. Please try again.",notification:""},plaid_connection:{success:"",failed:"Something went wrong! Please try again.",notification:""},bill_pay_setup:{success:"",failed:"Failed to load Bill Pay Setup Details! Please try again.",notification:""},zeni_accounts_setup:{success:"",failed:"Failed to load Zeni Accounts Setup Details! Please try again.",notification:""},bill_pay_approval_create:{success:"Approval Rule created successfully.",failed:"Couldn't create Approval Rule! Please try again.",notification:""},bill_pay_duplicate_approval_create:{success:"Approval Rule created successfully.",failed:"_api-error_",notification:""},bill_pay_approval_update:{success:"Approval Rule updated successfully.",failed:"Couldn't update Approval Rule! Please try again.",notification:""},update_zeni_account_nickname:{success:"Zeni Account nickname updated successfully",failed:"_api-error_.",notification:""},create_checking_account:{success:"New Business Account Added",failed:"_api-error_.",notification:""},deposit_check:{success:"Check Deposit Successful",failed:"_api-error_.",notification:""},bill_pay_duplicate_approval_update:{success:"Approval Rule updated successfully.",failed:"_api-error_",notification:""},bill_pay_approval_delete:{success:"Approval Rule deleted successfully.",failed:"Couldn't delete Approval Rule! Please try again.",notification:""},reimbursement_setup:{success:"",failed:"Failed to load Reimbursements Setup Details! Please try again.",notification:""},reimbursement_approval_create:{success:"Approval Rule created successfully.",failed:"Couldn't create Approval Rule! Please try again.",notification:""},reimbursement_duplicate_approval_create:{success:"Approval Rule created successfully.",failed:"_api-error_",notification:""},reimbursement_approval_update:{success:"Approval Rule updated successfully.",failed:"Couldn't update Approval Rule! Please try again.",notification:""},reimbursement_duplicate_approval_update:{success:"Approval Rule updated successfully.",failed:"_api-error_",notification:""},reimbursement_approval_delete:{success:"Approval Rule deleted successfully.",failed:"Couldn't delete Approval Rule! Please try again.",notification:""},reimbursement_create_mileage:{success:"Mileage rate added successfully.",failed:"_api-error_.",notification:""},reimbursement_update_mileage:{success:"Mileage rate updated successfully.",failed:"_api-error_.",notification:""},reimbursement_accept_term:{success:"",failed:"_api-error_.",notification:""},reimbursement_accept_employee_term:{success:"",failed:"_api-error_.",notification:""},cockpit_month_end_email_sent:{success:"Zeni Insights sent successfully for _company-name_.",failed:"",notification:""},cockpit_month_end_email_save:{success:"Zeni Insights saved successfully for _company-name_.",failed:"",notification:""},cockpit_month_end_email_attachment_upload:{success:"",failed:"Sorry, the file you uploaded is too large. Maximum file size allowed is 700KB",notification:""},audit_score_updated:{success:"Audit Score updated",failed:"",notification:""},create_bank_account_ach:{success:"ACH account added successfully.",failed:"",notification:""},unlink_deposit_account:{success:"",failed:"_api-error_.",notification:""},create_bank_account_wire:{success:"_wire-type_ wire account added successfully.",failed:"",notification:""},create_bank_account_international:{success:"_wire-type_ wire account added successfully.",failed:"",notification:""},bill_pay_updated:{success:"Bill saved",failed:"_api-error_.",notification:""},bill_pay_deleted:{success:"Bill deleted",failed:"_api-error_.",notification:""},bill_pay_bulk_submit:{success:"_count_ _bill_ will be _action_. You'll be notified once it's done.",failed:"_api-error_.",notification:""},bill_pay_bulk_processed:{success:"_bill_ _has_ been _action_. The page will refresh now to reflect updates.",failed:"_api-error_.",notification:""},bill_pay_cancelled_deleted:{success:"Bill canceled and deleted",failed:"_api-error_.",notification:""},bill_pay_cancelled:{success:"Bill canceled",failed:"_api-error_.",notification:""},bill_pay_approved:{success:"Bill approved",failed:"_api-error_.",notification:""},bill_pay_rejected:{success:"Bill rejected",failed:"_api-error_.",notification:""},bill_pay_sent_for_approval:{success:"Bill sent for approval",failed:"_api-error_.",notification:""},bill_pay_accept_term:{success:"",failed:"_api-error_.",notification:""},bill_pay_refund:{success:"Refund process initiated",failed:"_api-error_.",notification:""},bill_pay_retry:{success:"Payment retried",failed:"_api-error_.",notification:""},bill_pay_marked_as_paid:{success:"Bill marked as paid",failed:"_api-error_.",notification:""},update_vendor:{success:"Vendor updated successfully.",failed:"_api-error_.",notification:""},data_refresh_update:{success:"Data refreshed",failed:"_api-error_.",notification:""},delete_bank_account:{success:"Bank account deleted successfully.",failed:"_api-error_.",notification:""},update_debit_card_pin_attempt:{success:"PIN changed successfully",failed:"_api-error_.",notification:""},set_debit_card_pin:{success:"PIN set successfully",failed:"_api-error_.",notification:""},create_bank_account:{success:"",failed:"_api-error_.",notification:""},send_email_magic_link_to_user:{success:"",failed:"_api-error_.",notification:""},complete_profile_done:{success:"Profile details saved.",failed:"_api-error_.",notification:""},zeni_account_accept_term:{success:"",failed:"_api-error_.",notification:""},transfer_money:{success:"",failed:"_api-error_.",notification:""},create_vendor:{success:"Vendor created successfully.",failed:"_api-error_.",notification:""},onboarding_customer_view:{success:"Onboarding Business Details fetched successfully.",failed:"Couldn't fetch Onboarding Business Details. Please try again.",notification:""},onboarding_customer_view_complete:{success:"Onboarding status updated successfully.",failed:"Couldn't update Onboarding status. Please try again.",notification:""},onboarding_customer_identity_verification_save:{success:"Onboarding Identity Details saved successfully.",failed:"Couldn't save Onboarding Identity Details. Please try again.",notification:""},onboarding_customer_identity_verification_submit:{success:"Onboarding Identity Details submitted successfully.",failed:"Couldn't submit Onboarding Identity Details. Please try again.",notification:""},onboarding_customer_business_verification_save:{success:"Onboarding Business Details saved successfully.",failed:"Couldn't save Onboarding Business Details. Please try again.",notification:""},onboarding_customer_business_verification_submit:{success:"Onboarding Business Details submitted successfully.",failed:"Couldn't submit Onboarding Business Details. Please try again.",notification:""},retry_bank_account_connection:{success:"Bank account connection completed successfully.",failed:"Bank account connection failed.",notification:""},dashboard_invite_sent:{success:"Dashboard invite sent to _user-name_ for _company-name_ successfully.",failed:"Dashboard invite failed",notification:""},onboarding_info_saved:{success:"Saved successfully",failed:"Save failed",notification:""},approve_original_merchant:{success:'Review request for "_merchant_name_" is approved successfully.',failed:"_api-error_.",notification:""},approve_global_merchant:{success:'Review request for "_original_merchant_name_" to "_approved_merchant_name_" is approved successfully.',failed:"_api-error_.",notification:""},reject_global_merchant:{success:'Vendor "_merchant_name_" review rejected',failed:"_api-error_.",notification:""},create_global_merchant:{success:'Vendor "_global_merchant_name_" successfully added to global list.',failed:"_api-error_.",notification:""},fetch_global_merchant_no_recommendation:{success:'There are no recommendations for the name "_global_merchant_name_".',failed:"_api-error_.",notification:""},save_vendor_sent_for_review:{success:'Vendor "_vendor_name_" sent for the review.',failed:"_api-error_.",notification:""},save_vendor_renamed:{success:'Vendor "_old_vendor_name_" renamed to "_updated_vendor_name_."',failed:"_api-error_.",notification:""},save_vendor_marked_as_employee:{success:"Marked as employee",failed:"_api-error_.",notification:""},save_vendor_marked_as_local_contractor:{success:"Marked as local contractor",failed:"_api-error_.",notification:""},charge_card_setup:{success:"",failed:"Failed to load Cards Setup Details! Please try again.",notification:""},charge_card_receipt_upload:{success:"Card receipt uploaded",failed:"_api-error_.",notification:""},charge_card_resend_invite:{success:"Card invite resent",failed:"_api-error_.",notification:""},charge_card_revoke_invite:{success:"Card invite revoked",failed:"_api-error_.",notification:""},charge_card_update_limit:{success:"Card limit updated to _amount_",failed:"Limit updation failed with _api-error_.",notification:""},charge_cards_update_limit:{success:"Limit updated for _number_of_cards_",failed:"Limit updation failed with _api-error_.",notification:""},update_charge_card_name:{success:'Card _masked_card_number_ renamed to "_new_card_name_"',failed:"Card name updation failed with _api-error_.",notification:""},update_charge_card_name_card_user:{success:'Card renamed to "_new_card_name_"',failed:"Card name updation failed with _api-error_.",notification:""},lock_charge_card:{success:"Card _masked_card_number_ locked",failed:"Card lock failed with _api-error_.",notification:""},lock_charge_card_card_user:{success:"Card locked",failed:"Card lock failed with _api-error_.",notification:""},unlock_charge_card:{success:"Card _masked_card_number_ unlocked",failed:"Card unlock failed with _api-error_.",notification:""},unlock_charge_card_card_user:{success:"Card unlocked",failed:"Card unlock failed with _api-error_.",notification:""},close_charge_card:{success:"Card _masked_card_number_ closed",failed:"Card close failed with _api-error_.",notification:""},unlock_charge_cards:{success:"_number_of_cards_ unlocked",failed:"Cards unlock failed with _api-error_.",notification:""},lock_charge_cards:{success:"_number_of_cards_ locked",failed:"Cards lock failed with _api-error_.",notification:""},close_charge_cards:{success:"_number_of_cards_ closed",failed:"Cards close failed with _api-error_.",notification:""},revoke_invite_charge_cards:{success:"Invite revoked for _number_of_cards_",failed:"Invite revoke failed with _api-error_.",notification:""},create_schedule:{success:'Schedule created for "_vendor_name_"',failed:"Schedule creation failed with _api-error_.",notification:""},save_schedule:{success:'Schedule saved for "_vendor_name_"',failed:"Save schedule failed with _api-error_.",notification:""},je_posted:{success:"JE Posted",failed:"JE Posting failed with _api-error_.",notification:""},ignore_schedule:{success:"Schedule ignored",failed:"Schedule ignore failed with _api-error_.",notification:""},delete_schedule:{success:'Schedule deleted for "_vendor_name_"',failed:"Delete schedule failed with _api-error_.",notification:""},mark_as_complete_schedule:{success:'Schedule marked as completed for "_vendor_name_"',failed:"Mark as complete schedule failed with _api-error_.",notification:""},cancel_journal_entry:{success:"Accrual Canceled",failed:"Accrual Cancel failed with _api-error_.",notification:""},charge_card_accept_term:{success:"",failed:"_api-error_.",notification:""},charge_card_express_interest:{success:"Interest expressed successfully",failed:"_api-error_.",notification:""},save_task_detail:{success:"",failed:"_api-error_.",notification:""},fetch_task_detail:{success:"Task details fetched successfully.",failed:"_api-error_.",notification:""},delete_task:{success:"",failed:"_api-error_.",notification:""},archive_task:{success:"",failed:"_api-error_.",notification:""},update_charge_card:{success:"",failed:"_api-error_.",notification:""},notification_settings_saved:{success:"Notification Settings Saved",failed:"_api-error_.",notification:""},referral_invite_sent:{success:"Referral Invite Sent",failed:"_api-error_.",notification:""},notification_mark_as_read:{success:"Notifications marked as read successfully.",failed:"Something went wrong! Please try again.",notification:""},settings_accounting_accounts_updated:{success:"Accounts saved",failed:"",notification:""},task_group_creation_success:{success:"Task group created successfully",failed:"Task group creation failed",notification:""},task_group_deletion_success:{success:"Task group deleted successfully",failed:"Task group deletion failed",notification:""},task_group_update_success:{success:"Task group updated successfully",failed:"Task group update failed",notification:""},primary_funding_account_updated:{success:"Bank account updated for _productType_.",failed:"",notification:""},task_time_spent_validation:{success:"",failed:"Time can't exceed 99h 59m",notification:""},missing_receipts_attachment:{success:"",failed:"Failed to upload attachment__message__ please try again!",notification:""},flux_analysis_reviewed:{success:"_vendors_count_ _vendor_ reviewed",failed:"_api-error_.",notification:""},flux_analysis_unreviewed:{success:"_vendors_count_ _vendor_ unreviewed",failed:"_api-error_.",notification:""},express_pay_submit:{success:"Payment scheduled",failed:"_api-error_.",notification:""},recon_transaction_categorize:{success:"Transaction reviewed",failed:"_api-error_.",notification:""},recon_transaction_match:{success:"Transaction matched",failed:"_api-error_.",notification:""},ai_cfo_create_session_and_submit:{success:"",failed:"Something went wrong, please try again!",notification:""},treasury_setup:{success:"",failed:"Failed to load Treasury Setup Details! Please try again.",notification:""},treasury_accept_term:{success:"Treasury Terms accepted successfully.",failed:"Failed to accept terms. Please try again.",notification:""},treasury_transfer_money:{success:"Transfer initiated.",failed:"Transfer failed. Please try again.",notification:""},treasury_transfer_money_failed:{success:"",failed:"Transfer failed. Please try again.",notification:""},treasury_update_portfolio_allocation:{success:"Portfolio allocation updated.",failed:"Portfolio allocation update failed. Please try again!",notification:""},reports_resync:{success:"",failed:"Something went wrong. Please try again.",notification:"No new data available."},invalid_phone_number:{success:"",failed:"Invalid phone number",notification:""}},currency:{currencyCode:"INR",currencySymbol:"₹",currency:"Indian Rupee",countryCode:"IN"},format:{ssnFormat:"###-##-####",tinFormat:"##-#######"},status:{pending:"Pending"},cancel:"Cancel",confirm:"Confirm",continue:"Continue",proceed:"Proceed",next:"Next",noText:"--",privacy:"Zeni Privacy Policy",terms:"Terms and Conditions",privacyPolicyUrl:"https://www.zeni.ai/legal/privacy-policy",termsUrl:"https://www.zeni.ai/legal/terms-of-service",footer:{save:"Save",submit:"Submit",cancel:"Cancel",approve:"Approve",reject:"Reject",send:"Send",resubmit:"Resubmit",add:"Add",continueAnyway:"Continue Anyway",resolve:"Resolve",inReview:"In Review",sentForReview:"Sent for Review",linkCard:"Link Card",next:"Next",back:"Back",markAsUnReviewed:"Mark as Unreviewed",markAsReviewed:"Mark as Reviewed",saveForLater:"Save for Later",reconcile:"Reconcile",edit:"Edit",noThanks:"No, Thanks",letsGetStarted:"Let's Get Started"},completeText:"Complete",incompleteText:"Incomplete",notInitiatedText:"Not Initiated",pendingReviewText:"Pending Review",pendingVerificationText:"Pending Verification",retry:"Retry",verified:"Verified",validation:{emailAddressRequired:"Email address required",invalidEmailAddress:"Invalid email address",invalidUrlAddress:"Invalid URL"},needHelp:{text:"Need Help",hoverPrefix:"Experiencing issues?",hoverSuffix:" Schedule a call"},confirmationPopup:{discardTitle:"Discard unsaved changes?",discardDescription:"Changes are not automatically saved. Your changes will be lost if you continue.",discard:"Discard",cancel:"Cancel"},via:"via",cockpit:"cockpit",analytics:"Analytics",filters:{noOptions:"No Options",noMatchesFound:"No Matches Found",userProfileAltText:"Failed to load",startDate:"Start Date",endDate:"End Date"},updated:"Updated",hoursAgo:"hours ago",minutesAgo:"a few minutes ago",noMatches:"Nothing matched your search. Please try again!",noReport:"No _item-name_ to display yet!",reloadPage:{label:"Something went wrong, please try again!"},settings:{title:{accounting:"Accounting Setup",approvalRules:"Approval Rules",bankConnections:"Bank Connections",integrations:"Integrations",myProfile:"My Profile",myBankConnections:"My Bank Connections",notifications:"Notifications"},common:{update:"Update",cancel:"Cancel",productTypeString:"My Profile"},subtitle:{myProfile:"Profile Details",myBankConnections:"Reimbursements"},label:{primary:"Primary",billPay:"Bill Pay",reimbursements:"Reimbursements",bankAccount:"Bank Account",noManager:"No Manager",myProfile:"My Profile"},infoText:{accounting:"Quick access to manage the company's accounting-related settings",approvalRules:"Quick access to manage the multi-level approval rules for bills & reimbursements to make Zeni work better for you",bankConnections:"Manage primary bank account connections for Zeni Bill Payments, Reimbursements, Business Checking, and Business Cards.",businessVerification:"Financial regulations require Zeni to collect both identity & company details to verify your business",companyDetails:"Quick access to manage the company's detailed information",integrations:"Quick access to manage the company's third-party connected services",myProfile:"Quick access to manage your personal details",myBankConnections:"Manage your linked personal bank details used to receive reimbursements"},bankConnectionHeader:{productType:"Products",primaryAccount:"Primary Account",linkAccount:"QBO Linked Account",status:"Status",balance:"Balance"},bankConnectionListHeader:{primary:"Primary",other:"Other Connections",otherToolTip:"These bank connections aren't linked to any product. Select from the dropdown above to connect."},productNameByType:{bill_pay:"Bill Pay",reimbursement:"Reimbursements",zeni_accounts:"Checking",zeni_treasury:"Treasury",charge_cards:"Cards"},otherAccount:{title:"Product",subTitle:"Not assigned",subTitleSmall:"not assigned",remove:"Remove Connection"},notifications:{sectionTitle:{reminders:"Reminders",monthEndInsights:"Month-end Insights"},frequency:{biWeekly:"Bi-Weekly"},mode:{email:"Email",dashboard:"Dashboard"},reminders:{missingReceiptNotification:"Missing Receipts:",uncategorizedTransactionNotification:"Uncategorized Transactions:",pendingBillApprovalNotification:"Bill Approvals:",pendingReimbursementApprovalNotification:"Reimbursement Approvals:"},monthEndInsights:{labels:{notifyMe:"Notify Me:",notifyOthers:"Notify Others:"},userFieldPlaceholder:"Who should receive this email?",stopReceivingEmailsText:"To stop receiving this email, reach out to",stopReceivingMonthEndInsightsSubject:"Stop Month End Insights"},reminderFrequencyOptions:[{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Bi-weekly",value:"bi-weekly"},{label:"Monthly",value:"monthly"}]}},copyToClipBoard:{copy:"Copy",copied:"Copied"},monthsByIndex:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},download:{errorMessages:{unsupportedFileType:"Unsupported Filetype",fileDownloadError:"Download __feature__ Failed with"},defaultFileName:"Report.xlsx"},balanceCard:{cashBalanceSectionTitle:"Total Cash Balance",cardBalanceSectionTitle:"Total Card Balance",comparedTo:"compared to",noBalanceText:"No balance data to display yet!"},insightsCard:{vs:"vs",title:"Insights",no_data:{label:"Cash, Opex, Revenue, COS, and Cash In Cash Out Insights, will appear once you have sufficient financial activity. Stay tuned! 💸"}},timeframe:{day:"Days",month:"Months",quarter:"Quarters",year:"Years",week:"Weeks",free_range:"Time period",this_week_to_date:"This Week",last_week:"Last Week",this_month_to_date:"This Month",last_month:"Last Month",last_3_months:"Last 3 Months",last_6_months:"Last 6 Months",last_12_months:"Last 12 Months",this_year_to_date:"This Year",last_year:"Last Year"},quarterPrefix:"Q",compareSwitchLabel:"Compare",compareMode:{off:"Off",compare_mode_percent:"Percentage",compare_mode_amount:"Amount",changePercent:"Change %",changePrefix:"Change"},chartCard:{total:"Total",activity:"Activity",no_data_available:"No data available!",no_data_available_for:"No data available for",tooltip:{actual:"Actual",forecast:"Forecast",change:"Change",change_percent:"Change %"},forecast_dropdown:{forecast_source:"Via Quickbooks",forecast_invalid_issue:"This period is not in the time frame of the actuals. Please view it via the Forecast tab."},netBurnOrIncome:{grossBurn:"Gross Burn",netBurnOrIncome:"Net Income / Burn",gross_burn:"Gross Burn",cogs:"COS",net_burn_or_income:"Net Income / Burn",income:"Revenue",expenses:"OPEX",net_burn:"Net Burn",net_income:"Net Income",no_data_available:"A minimum of one-month data is required!",cogs_forecast:"Forecast",net_burn_or_income_forecast:"Forecast",income_forecast:"Forecast",expenses_forecast:"Forecast"},netBurnOrIncomeCalculator:{title:"Burn Rate Calculator",accounting_method:{label:"Configure Burn Rate, Runway, and Cash Zero date based on below options:",cash:"Cash Flow from Operating Activities",ebitda:"EBITDA",net_income:"Net Income"},time_span_id_for_average:{label:"Further configure Burn Rate, Runway, and Cash Zero date based on below options:",last_month:"Last month",last_completed_month:"Last completed month",average_of_last_2_months:"Average of last 2 completed months",average_of_last_3_months:"Average of last 3 completed months",under_review_last_month_label:"(Including Under Review)"}},revenue:{income:"Revenue",cogs:"COS",gross_margin:"Gross Margin",grossMargin:"Gross Margin",income_forecast:"Forecast",cogs_forecast:"Forecast",gross_margin_forecast:"Forecast",grossMargin_forecast:"Forecast"},cashInCashOut:{cash_in:"Cash In",cash_out:"Cash Out",net_cash_flow:"Net Cash Flow"},no_data:{revenue:"No revenues to display yet, but thrift is a great revenue. Fight On!🤘",cash_in_cash_out:"No cash in cash out to display yet!",cash_position:"No cash position to display yet!",net_burn_or_income:"No net burn to display yet!",operating_expenses:"No operating expenses to display yet!",top_expenses:{this_week_to_date:"No expenses this week 🤷",last_week:"No expenses last week 🤷",this_month_to_date:"No expenses this month 🤷",last_month:"No expenses last month 🤷",last_3_months:"No expenses last 3 months 🤷",last_6_months:"No expenses last 6 months 🤷",last_12_months:"No expenses last 12 months 🤷",this_year_to_date:"No expenses this year 🤷",last_year:"No expenses last year 🤷"},aging_report:"No data to display yet!"}},drawerMenus:{dashboard:"Dashboard",cockpit:"Cockpit",reports:"Reports",people:"People",forecast:"Forecast",ai_automation:"AI Bookkeeping",cards:"Cards",bills:"Bills",storybooks:"Storybooks",settings:"Settings",logout:"Logout",reimbursements:"Reimbursements",checking:"Checking",vendors:"Vendors",rewards:"Rewards",accounting:"Accounting",approval_rules:"Approval Rules",billing:"Billing",bank_connections:"Bank Connections",business_verification:"Business Verification",company_details:"Company Details",integrations:"Integrations",my_profile:"My Profile",my_bank_connections:"My Bank Connections",notifications:"Notifications",performance:"Performance",ai_accountant:"AI Accountant",ai_cfo:"AI CFO",new_chat:"New Chat",explore:"Explore",treasury:"Treasury"},drawerMenuSubtitles:{rewards:"Earn __reward-amount__ per referral"},drawerGroups:{finance:"Finance",cash:"Cash",spend_management:"Spend Management",banking:"Banking",company:"Company",company_settings:"Company Settings",personal_settings:"Personal Settings",ai_bookkeeping:"AI Bookkeeping",ai_cfo:"",ai_agents:"AI Agents",ai_accountant:"AI Accountant"},drawerTags:{new:"NEW"},dashboardDropDownList:{menuOption:{logout:{label:"Logout",value:"logout"},settings:{label:"Settings",value:"settings"},cockpit:{label:"Cockpit",value:"cockpit"}}},transactionItem:{date:"Date",account:"Account"},transactionType:{invoice:"Invoice",creditMemo:"Credit Memo",salesReceipt:"Sales Receipt",refund:"Refund",expense:"Expense",check:"Check",bill:"Bill",billPayment:"Bill Payment",transfer:"Transfer",vendorCredit:"Vendor Credit",creditCardCredit:"Credit Card Credit",deposit:"Deposit",creditCardPayment:"Credit Card Payment",journalEntry:"Journal Entry",payment:"Payment"},signIn:{heading:"Welcome to Zeni",confirmationLinkSent:"Sign-in link sent",message:"Your financial dashboard is just one step away. Get started.",signInSecurelyMessage:"Choose an account to sign in securely",signInGoogleButton:"Sign In With Google",signInMicrosoftButton:"Sign In With Microsoft",termsPrivacyFinePrintPart:"By creating an account on Zeni, you confirm that you ",agreeWith:"agree with our ",termsOfService:"terms of service",and:"and",privacyPolicy:"privacy policy",termsUrl:"https://www.zeni.ai/terms",privacyPolicyUrl:"https://www.zeni.ai/privacy-policy",signInError:`Couldn’t sign-in to your account.
|
|
422
422
|
Please try again.`,signInAuthError:`Authorization failed, and sign-in is restricted.
|
|
423
423
|
Please try and authorize again.`,emailNotFoundPopup:{title:"We couldn't find the email ID",confirmEmail:"Please ensure that you are logging in with the same email ID that you shared with Zeni.",checkAccess:"Make sure you have access to your company's Zeni dashboard. If not, reach out to your Zeni admin.",contactZeni:"Please contact Zeni's sales executive if you are in the process of onboarding with Zeni."},magicLinkSent:{primaryMessage:"A secure sign in link has been sent to __email__ to access the dashboard.",secondaryMessage:"If you can't see the email, check your spam/junk folder.",resendLinkCountdown:"Resend Link in __seconds__s",resendLink:"Resend Link",attemptsRemaining:"(__remaining__/__total__) attempt(s) remaining",resendLimitExceededRedirecting:"Resend Limit exceeded. Redirecting you in __seconds__s"},workEmailExample:"name@workemail.com",signInButton:"Sign In",invalidEmailMessage:"Invalid email address",magicLinkExpired:"Your sign-in link has expired. Please try again.",magicLinkExpiredHeading:"This sign-in link has expired",magicLinkAlreadyUsedHeading:"This sign-in link has already been used",magicLinkAlreadyUsedMessage:"For security reasons, sign-in links can only be used once.",requestNewLink:"Request a new link",workEmailLink:"Sign in using email",workEmailSubText:"For users without Google/Microsoft access.",googleOrMicrosoftLink:"Sign in using Google or Microsoft",continueAs:"Continue as"},billPayPromoCard:{title:"Bill Pay",aipoweredInvoice:{prefix:"AI-powered invoice processing helps create bills in seconds."},multiLevelApproval:{prefix:"Multi-level approval flows allows you to stay in control of payments."},financeTeam:{prefix:"Fully managed by your expert Zeni Finance Team."},fastestWay:{prefix:"Fastest way to pay your vendors and contractors, 100% free"},btn:"Learn More",signUp:"Sign Up for FREE"},reimbursementPromoCard:{title:"Reimbursements",aiPowered:{prefix:"AI powered receipts processing helps you create reports in seconds."},multiLevel:{prefix:"Multi-level approval flows allow you to stay in control of payments."},reimburse:{prefix:"Reimburse employees at lightning speed, absolutely free"},signUp:"Sign Up for FREE",btn:"Learn More"},treasuryPromoCard:{title:"Treasury",introducing:"Introducing",btn:"Get Started",watchVideo:{prefix:"Watch how Zeni Treasury helps you earn more."},highYield:{title:"Earn yields upto",prefix:`Put your idle cash to work and earn
|
|
424
424
|
more than a standard checking account.`},sipcInsured:{title:"SIPC coverage upto",amount:"$500K",prefix:`SIPC protection ensures your assets
|
|
@@ -5397,7 +5397,7 @@ Initiate your first transfer to start earning yield.`,insuredFundsTooltip:"Secur
|
|
|
5397
5397
|
padding-top: ${e=>_s.ButtonContainerPaddingTop.valuePx(e.windowSize)};
|
|
5398
5398
|
`,VHt=m.div``,UHt=m(SHt)`
|
|
5399
5399
|
transform: scale(1, 0.9);
|
|
5400
|
-
`,WHt=m(Xa)``,YHt=14e5,b7e=1e7,GHt=32e6,qHt=["application/postscript","application/pdf","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/rtf","text/plain","text/html","text/csv","text/xml","image/jpg","image/jpeg","image/png","image/svg+xml","image/webp","image/gif","image/heic","image/heif","application/x-excel","image/tiff","image/tif","application/xml"],ZHt=e=>z0(e,qHt),I7=({fileType:e="file",value:t,isSizeLimitForEachFile:r=!1,fileRef:n,multiple:i=!0,name:o,acceptableTypes:a,sizeLimit:l,isDisabled:d=!1,onFileSizeError:u,onFileChange:p})=>{const h=["application/postscript","application/pdf","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/rtf","text/plain","text/html","text/csv","text/xml","image/jpeg","image/png","image/svg+xml","image/webp","image/gif","image/heic","image/heif"];return s.jsx("input",{type:e,ref:n,value:t,name:o,size:1e3,disabled:d,"data-testid":ke("file-input",o),onChange:f=>{let g=0;if(l!=null&&f.target.files!=null&&f.target.files.length>0){if(r&&f.target.files.length===1&&f.target.files[0].size>l){u?.(!0,!0),f.target.value="";return}for(let y=0;y<f.target.files.length;y++){if(r&&f.target.files[y].size>l){u?.(!0,!1),f.target.value="";return}g=g+f.target.files[y].size}g>l?(u?.(!0),f.target.value=""):(u?.(!1),p(f),f.target.value="")}else u?.(!1),p(f),f.target.value=""},style:{display:"none"},accept:(a??h).toString(),multiple:i})},w7e="application/pdf",x7e=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],KHt={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2},QHt=async(e,t)=>{if(x7e.includes(e.type)===!1)return e;const r=await ea(e,{useWebWorker:!0,maxWidthOrHeight:900,initialQuality:1,maxSizeMB:1.4}),n=r.lastModified,i=r.type.split("/")[1];let o=`image_${n}.${i}`;return t!=null&&(o=`${t}.${i}`),new File([r],o,{lastModified:n,type:r.type})},XHt=async(e,t)=>{if(x7e.includes(e.type)===!1)return e;const r=await ea(e,KHt),n=r.type.split("/")[1],i=`${t.replace(/\.[^.]+$/,"")||"image"}.${n}`;return new File([r],i,{lastModified:e.lastModified,type:r.type})},JHt=1.5,eVt=.7;function tVt(e,t){return new Promise((r,n)=>{e.toBlob(i=>{if(i==null){n(new Error("canvas.toBlob returned null"));return}r(i)},"image/jpeg",t)})}async function rVt(e,t,r){const n=e.getViewport({scale:t}),i=document.createElement("canvas");i.width=Math.floor(n.width),i.height=Math.floor(n.height);const o=i.getContext("2d");if(o==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:o,viewport:n}).promise,(await tVt(i,r)).arrayBuffer()}async function nVt(e,t){const[{PDFDocument:r},n]=await Promise.all([bt(()=>import("./index-
|
|
5400
|
+
`,WHt=m(Xa)``,YHt=14e5,b7e=1e7,GHt=32e6,qHt=["application/postscript","application/pdf","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/rtf","text/plain","text/html","text/csv","text/xml","image/jpg","image/jpeg","image/png","image/svg+xml","image/webp","image/gif","image/heic","image/heif","application/x-excel","image/tiff","image/tif","application/xml"],ZHt=e=>z0(e,qHt),I7=({fileType:e="file",value:t,isSizeLimitForEachFile:r=!1,fileRef:n,multiple:i=!0,name:o,acceptableTypes:a,sizeLimit:l,isDisabled:d=!1,onFileSizeError:u,onFileChange:p})=>{const h=["application/postscript","application/pdf","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/rtf","text/plain","text/html","text/csv","text/xml","image/jpeg","image/png","image/svg+xml","image/webp","image/gif","image/heic","image/heif"];return s.jsx("input",{type:e,ref:n,value:t,name:o,size:1e3,disabled:d,"data-testid":ke("file-input",o),onChange:f=>{let g=0;if(l!=null&&f.target.files!=null&&f.target.files.length>0){if(r&&f.target.files.length===1&&f.target.files[0].size>l){u?.(!0,!0),f.target.value="";return}for(let y=0;y<f.target.files.length;y++){if(r&&f.target.files[y].size>l){u?.(!0,!1),f.target.value="";return}g=g+f.target.files[y].size}g>l?(u?.(!0),f.target.value=""):(u?.(!1),p(f),f.target.value="")}else u?.(!1),p(f),f.target.value=""},style:{display:"none"},accept:(a??h).toString(),multiple:i})},w7e="application/pdf",x7e=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],KHt={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2},QHt=async(e,t)=>{if(x7e.includes(e.type)===!1)return e;const r=await ea(e,{useWebWorker:!0,maxWidthOrHeight:900,initialQuality:1,maxSizeMB:1.4}),n=r.lastModified,i=r.type.split("/")[1];let o=`image_${n}.${i}`;return t!=null&&(o=`${t}.${i}`),new File([r],o,{lastModified:n,type:r.type})},XHt=async(e,t)=>{if(x7e.includes(e.type)===!1)return e;const r=await ea(e,KHt),n=r.type.split("/")[1],i=`${t.replace(/\.[^.]+$/,"")||"image"}.${n}`;return new File([r],i,{lastModified:e.lastModified,type:r.type})},JHt=1.5,eVt=.7;function tVt(e,t){return new Promise((r,n)=>{e.toBlob(i=>{if(i==null){n(new Error("canvas.toBlob returned null"));return}r(i)},"image/jpeg",t)})}async function rVt(e,t,r){const n=e.getViewport({scale:t}),i=document.createElement("canvas");i.width=Math.floor(n.width),i.height=Math.floor(n.height);const o=i.getContext("2d");if(o==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:o,viewport:n}).promise,(await tVt(i,r)).arrayBuffer()}async function nVt(e,t){const[{PDFDocument:r},n]=await Promise.all([bt(()=>import("./index-WnHIYL2y.js"),__vite__mapDeps([13,5,1,6,14])),bt(()=>Promise.resolve().then(()=>imt),void 0).then(p=>p.pdfjs)]),i=await e.arrayBuffer(),o=await n.getDocument({data:new Uint8Array(i)}).promise,a=o.numPages,l=await r.create();for(let p=1;p<=a;p++){const h=await o.getPage(p),f=await rVt(h,JHt,eVt),g=await l.embedJpg(new Uint8Array(f)),y=g.scale(1);l.addPage([y.width,y.height]).drawImage(g,{x:0,y:0,width:y.width,height:y.height})}const d=await l.save(),u=t.toLowerCase().endsWith(".pdf")?t:`${t}.pdf`;return new File([d],u,{type:w7e,lastModified:e.lastModified})}async function iVt(e,t){const r=e instanceof File?e:new File([e],t,{type:e.type});if(e.type===w7e){const i=await nVt(r,t);return i.size<r.size?{blob:i,name:i.name}:{blob:e,name:t}}const n=await XHt(r,t);return{blob:n,name:n.name}}async function IZr(e,t){const r=await Promise.all(e.map((n,i)=>{const o=t[i]??`file_${i}`;return iVt(n,o).catch(a=>(console.warn("[compressReceiptFiles] compression failed, using original:",a instanceof Error?a.message:a),{blob:n,name:o}))}));return{blobs:r.map(n=>n.blob),names:r.map(n=>n.name)}}const oVt=({fileType:e="file",fileRef:t,name:r,value:n="",multiple:i=!1,acceptableTypes:o,onFileSizeError:a,onImageChange:l})=>s.jsx("input",{type:e,ref:t,name:r,value:n,size:1e3,"data-testid":ke("input-file-element-mobile",r),onChange:async d=>{const u=d.target.files?.[0],p=u?.size;u!=null&&p!=null?(a?.(!1),l(u),d.target.value=""):(a?.(!0),d.target.value="")},style:{display:"none"},accept:`${(o??"image/jpg, image/jpeg").toString()}`,multiple:i,capture:!0}),C7e=({shouldDisplay:e,width:t=30,height:r=30,styles:n,animationInLoop:i=!1})=>{const[,o]=o5e(a5e),[a]=Ic("MoneyTransferSuccess");return C.useEffect(()=>{e&&o(!0)},[e,o]),e&&a!=null?s.jsx(O1,{style:{width:t,height:r,...n},play:!0,animationData:a,loop:i,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},aVt=e=>tn`
|
|
5401
5401
|
0% {
|
|
5402
5402
|
width: 0%;
|
|
5403
5403
|
}
|
|
@@ -21492,7 +21492,7 @@ to {
|
|
|
21492
21492
|
display: flex;
|
|
21493
21493
|
flex-direction: column;
|
|
21494
21494
|
row-gap: ${e=>_l.sectionRowGap.valuePx(e.windowSize)};
|
|
21495
|
-
`,E9e=e=>`${e}_form`,h8r=Object.freeze(Object.defineProperty({__proto__:null,default:s8r,trackTreasuryTransferAnalytics:Gy,uniqueName:E9e},Symbol.toStringTag,{value:"Module"}));vt(()=>Promise.resolve().then(()=>LIt));const lXr=vt(()=>bt(()=>import("./OverlayContainerPage-Daz3A7cI-DZPeSqh9.js"),__vite__mapDeps([15,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ConfettiBurst-CJc1ZWFJ-3-Ap54Ud.js"),__vite__mapDeps([21,1,17,6,8,5,16,18,19,20,7])));vt(()=>Promise.resolve().then(()=>uUt));const cXr=vt(()=>bt(()=>import("./SignIn-DhRwLJFX-CJyBsyvF.js"),__vite__mapDeps([22,1,16,17,6,8,5,23,24,25,18,19,20,7])));vt(()=>bt(()=>import("./Dashboard-BQGdcgDK-C1nmLdwJ.js"),__vite__mapDeps([26,1,16,17,6,8,5,27,28,29,30,31,32,33,34,35,36,37,38,39,40,18,19,20,7,41,42,43,44,45,46,47,21])));vt(()=>bt(()=>import("./AppDrawerContent-CObWehh2-DDaZ77eU.js"),__vite__mapDeps([48,1,16,17,6,8,5,27,18,19,20,7])));vt(()=>bt(()=>import("./TransactionListBig-JLNkkeay-GwIa9a3j.js"),__vite__mapDeps([49,1,16,17,6,8,5,41,37,30,38,39,18,19,20,7])));vt(()=>bt(()=>import("./TransactionListPage-Cf2i0F_k-BRw5VvHr.js"),__vite__mapDeps([50,1,16,17,6,8,5,51,52,53,54,18,19,20,7])));vt(()=>bt(()=>import("./DashboardReportPage-C9eB1Lz--CKXkiVgD.js"),__vite__mapDeps([55,1,16,17,6,8,5,56,57,58,59,60,39,61,33,29,34,35,62,63,64,65,66,67,32,68,69,18,19,20,7])));vt(()=>bt(()=>import("./ReportsPage-DVZ3Rcn1-Wq7Sa7FA.js"),__vite__mapDeps([70,1,16,17,6,8,5,56,57,58,59,64,71,65,72,54,18,19,20,7,66,73,68,69])));vt(()=>bt(()=>import("./TopExDetailPage-pOK_Ly9f-YYkSMo_K.js"),__vite__mapDeps([74,16,1,17,6,8,5,31,30,32,65,67,18,19,20,7])));vt(()=>bt(()=>import("./TransactionDetailPage-T1xurXsz-CH4IU-6k.js"),__vite__mapDeps([75,1,16,17,6,8,5,76,77,78,29,34,35,18,19,20,7,62,60,39,51,52,53,79,80])));vt(()=>bt(()=>import("./QBOConnectionDialog-CBtavUIz-B6M_dsQg.js"),__vite__mapDeps([81,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./VerifyDevice-CzW6x8kw-DL7_PzvN.js"),__vite__mapDeps([82,1,16,17,6,8,5,83,25,18,19,20,7])));vt(()=>bt(()=>import("./AccountLockedInfoModal-DM9AQ-14-CoO7wjK9.js"),__vite__mapDeps([83,16,1,17,6,8,5,25,18,19,20,7])).then(e=>e.a));vt(()=>bt(()=>import("./InsightsCardStack-CmTNccBr-q2L1pr7k.js"),__vite__mapDeps([36,1,37,30,16,17,6,8,5,38,39,40,18,19,20,7])));vt(()=>bt(()=>import("./InformationCardStack-GuTsARmk-CLzorLL7.js"),__vite__mapDeps([44,1,37,30,16,17,6,8,5,38,39,18,19,20,7])));vt(()=>bt(()=>import("./DownloadOverlay-a0IFrzRd-D3xHdLjr.js"),__vite__mapDeps([72,1,16,17,6,8,5,56,57,58,59,54,18,19,20,7])));vt(()=>bt(()=>import("./PeoplePage-PetKjS8P-BPodINWd.js"),__vite__mapDeps([84,1,16,17,6,8,5,85,86,18,19,20,7])));vt(()=>bt(()=>import("./PandLWithForecastPage-ChmIZfeB-ClSkfHo-.js"),__vite__mapDeps([87,1,16,17,6,8,5,88,56,71,65,58,59,89,66,73,18,19,20,7])));vt(()=>bt(()=>import("./TrendChart-BhcSso96-D1M97qk4.js"),__vite__mapDeps([78,1,5,6,29,16,17,8,34,35,18,19,20,7])));vt(()=>bt(()=>import("./EntityDetailPage-B8vx2Mri-D3jt8mho.js"),__vite__mapDeps([90,16,1,17,6,8,5,77,78,29,34,35,18,19,20,7,62,60,39,51,52,53])));const dXr=vt(()=>bt(()=>import("./NotFoundPage-8N4Q0cRS-BFLKl-lt.js"),__vite__mapDeps([91,16,1,17,6,8,5,23,18,19,20,7]))),uXr=vt(()=>Promise.resolve().then(()=>BYt));vt(()=>bt(()=>import("./CompanyPassportCard-BLw_MMZR-WOarnR-d.js"),__vite__mapDeps([42,16,1,17,6,8,5,37,30,18,19,20,7])));vt(()=>bt(()=>import("./CompanyPassportPage-BamWWVQB-56Enokzr.js"),__vite__mapDeps([92,1,16,17,6,8,5,93,94,95,96,18,19,20,7])));vt(()=>bt(()=>import("./CreateOrEditVendorPage-CDqjntBH-bCKETiwb.js"),__vite__mapDeps([97,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./VendorACHDetailsPage-CjsWjEGI-Dx-cpWMi.js"),__vite__mapDeps([98,1,99,16,17,6,8,5,100,101,102,18,19,20,7])));vt(()=>bt(()=>import("./VendorDomesticWireDetailsPage-DBOWshWu-2HsQayCN.js"),__vite__mapDeps([103,1,104,16,17,6,8,5,102,101,100,105,106,18,19,20,7])));vt(()=>bt(()=>import("./VendorInternationalWireDetailsPage-Czz9BmEm-j7TWYMZY.js"),__vite__mapDeps([107,1,16,17,6,8,5,100,105,106,108,18,19,20,7])));vt(()=>bt(()=>import("./ReviewDetailsPage-Cl2_0ldt-I0ORbaK-.js"),__vite__mapDeps([109,1,16,17,6,8,5,110,111,18,19,20,7])));vt(()=>bt(()=>import("./BillPayPromoPage-fBpp10um-DK5_Xpo1.js"),__vite__mapDeps([112,1,16,17,6,8,5,113,47,89,18,19,20,7])));vt(()=>bt(()=>import("./BillPaySetUpPage-9iEVFLUa-SVF28UG7.js"),__vite__mapDeps([114,1,16,17,6,8,5,115,18,19,20,7])));vt(()=>bt(()=>import("./ApprovalRulesSettingsPage-ZqKHe7B_-CU8TBRQ0.js"),__vite__mapDeps([116,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BankConnectionsSettingsPage-BgliKI11-3RjzZ2Bg.js"),__vite__mapDeps([117,1,16,17,6,8,5,118,18,19,20,7])));vt(()=>bt(()=>import("./MyBankConnectionsSettingsPage-BwD3OyXL-CYJkaop_.js"),__vite__mapDeps([119,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./MyProfileSettingsPage-Bb4QkILK-dnKU-rey.js"),__vite__mapDeps([120,1,16,17,6,8,5,106,121,86,122,18,19,20,7])));vt(()=>bt(()=>import("./NotificationSettingsPage--cl75C4Y-f1m5g0NX.js"),__vite__mapDeps([123,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BusinessVerificationPage-KZWTxmeh-ChQXq_Mg.js"),__vite__mapDeps([124,1,16,17,6,8,5,125,106,126,93,94,96,127,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementPromoPage-CC_zFd3U-CTzC3o_d.js"),__vite__mapDeps([128,1,16,17,6,8,5,113,47,89,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementSetUpPage-ChjBTodZ-BOCtoEcr.js"),__vite__mapDeps([129,1,16,17,6,8,5,115,18,19,20,7])));vt(()=>Promise.resolve().then(()=>tlr));vt(()=>bt(()=>import("./BillDetailPage-DNPgeuje-C8neAjYh.js"),__vite__mapDeps([130,1,16,17,6,8,5,110,18,19,20,7])));vt(()=>bt(()=>import("./InvoiceUploadSection-De-7n3RO-ByskKeOl.js"),__vite__mapDeps([131,1,16,17,6,8,5,132,18,19,20,7,133])));vt(()=>bt(()=>import("./BillPayApprovalRulesPage-DXcPkwwf-CiS_5AAk.js"),__vite__mapDeps([134,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BillPayApprovalRuleDetailPage-OrTzXAEP-QAGSeB_n.js"),__vite__mapDeps([135,1,16,17,6,8,5,136,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementApprovalRulesPage-B5hHz-7T-Dv8WAEdQ.js"),__vite__mapDeps([137,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementApprovalRuleDetailPage-BoarRMWS-BectwrxR.js"),__vite__mapDeps([138,1,16,17,6,8,5,136,18,19,20,7])));const pXr=vt(()=>Promise.resolve().then(()=>yOt));vt(()=>bt(()=>import("./EditReimbursementDetailPage-BzKR9gus-DXDSnq7N.js"),__vite__mapDeps([139,1,16,17,6,8,5,131,132,18,19,20,7,133,140,93,108,102,100,80])));vt(()=>bt(()=>import("./ReimbursementDetailPage-YfiCLu3C-CwkxO_yG.js"),__vite__mapDeps([141,1,16,17,6,8,5,131,132,18,19,20,7,133,140])));vt(()=>bt(()=>import("./InvitePeoplePage-DxLF-5KU-9xQ616eR.js"),__vite__mapDeps([142,1,16,17,6,8,5,143,121,86,122,18,19,20,7])));vt(()=>bt(()=>import("./CompleteProfile-CPwV8diq-8P18d35b.js"),__vite__mapDeps([144,1,16,17,6,8,5,95,18,19,20,7])));vt(()=>bt(()=>import("./EditPeoplePage-BnCysZo9-DOsQLMpG.js"),__vite__mapDeps([145,1,16,17,6,8,5,143,121,86,122,18,19,20,7])));const m8r=vt(()=>bt(()=>import("./AppBasePage-Cz2ddFfo-BclY1Wkm.js"),__vite__mapDeps([146,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./SpendManagementListViewPage-C3i-Mkip-DzQMh6GP.js"),__vite__mapDeps([147,5,1,6,16,17,8,148,149,18,19,20,7])).then(e=>e.S));vt(()=>bt(()=>import("./VendorDetailPage-DQKnd_wl-DgCC2d7y.js"),__vite__mapDeps([150,1,16,17,6,8,5,151,51,52,53,77,78,29,34,35,18,19,20,7,62,60,39,40,106,152])));vt(()=>bt(()=>import("./VendorFiling1099EditablePage-monlt0GX-D11nhKRT.js"),__vite__mapDeps([153,1,16,17,6,8,5,152,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountListViewPage-D5VNz-Hq-5LAtN_Rm.js"),__vite__mapDeps([154,1,16,17,6,8,5,155,156,157,158,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountDetailPage-Bs_CVksP-BDdSvLD_.js"),__vite__mapDeps([159,1,16,17,6,8,5,52,53,160,161,157,18,19,20,7])));vt(()=>bt(()=>import("./AccountInfoPage-C2Dq8UPa-DbUqKkGr.js"),__vite__mapDeps([162,1,16,17,6,8,5,149,163,160,53,18,19,20,7])));vt(()=>bt(()=>import("./TransferDrawerPage-BukQB5RF-BaFvth7f.js"),__vite__mapDeps([164,1,16,17,6,8,5,158,163,160,53,18,19,20,7])));vt(()=>bt(()=>import("./CreditCardPaymentDrawerPage-cBCHuatx-PXPlAMN0.js"),__vite__mapDeps([165,16,1,17,6,8,5,76,18,19,20,7])));vt(()=>bt(()=>import("./CheckDepositDrawerPage-C7rL0Ts2-DvlJgu1r.js"),__vite__mapDeps([166,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountPromoPage-DvOrXg46-dzcFBDQn.js"),__vite__mapDeps([167,1,16,17,6,8,5,89,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountSetupPage-zxlxRsQl-B6ap5Abk.js"),__vite__mapDeps([168,1,16,17,6,8,5,115,18,19,20,7])));vt(()=>bt(()=>import("./DepositAccTransactionListPage-gxOQSQ9a-DSufMjrN.js"),__vite__mapDeps([169,1,16,17,6,8,5,52,53,161,18,19,20,7])));vt(()=>bt(()=>import("./StatementsPage-DwvWOETo-CXlDv2KT.js"),__vite__mapDeps([170,1,16,17,6,8,5,52,53,171,160,18,19,20,7])));vt(()=>bt(()=>import("./TransactionVendorDetailPage-B4T07nWa-Hek7YOkl.js"),__vite__mapDeps([172,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./CustomerOnboardingPage-AHQX5bSN-DyVDcmlu.js"),__vite__mapDeps([173,1,16,17,6,8,5,174,127,118,175,125,106,126,93,94,96,176,81,18,19,20,7])));vt(()=>bt(()=>import("./CustomerOnboardingContainerPage-CY24zxv4-Dlglmitj.js"),__vite__mapDeps([177,178,16,1,17,6,8,5,174,127,118,175,18,19,20,7,173,125,106,126,93,94,96,176,81])));vt(()=>bt(()=>import("./CustomerOnboardingNoStepsPage-Dx_Py2Fa-DzOp0_kE.js"),__vite__mapDeps([178,16,1,17,6,8,5,174,127,118,175,18,19,20,7])));vt(()=>bt(()=>import("./CustomerOnboardingProductSuitePage-CJ9rX2hA-D_AGKikc.js"),__vite__mapDeps([179,1,16,17,6,8,5,21,18,19,20,7,24])));vt(()=>bt(()=>import("./CustomerOnboardingActivationPage-BU5SX7SV-dB7jbnPX.js"),__vite__mapDeps([180,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BillingSettingsPage-IL6J1DV0-Se1sNo_q.js"),__vite__mapDeps([181,1,16,17,6,8,5,174,127,118,18,19,20,7])));vt(()=>bt(()=>import("./UncategorizedAccountsMappingPage-DDqyVfnh-Crd__Sgm.js"),__vite__mapDeps([182,1,16,17,6,8,5,183,18,19,20,7])));vt(()=>bt(()=>import("./IntegrationsSettingsPage-JZMYvwgs-zsnKO8Tk.js"),__vite__mapDeps([184,16,1,17,6,8,5,176,81,18,19,20,7])));vt(()=>bt(()=>import("./UnitIntegrationPage-BpT6E05N-e92ZbAwu.js"),__vite__mapDeps([185,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkACHDetailsPage-Bwzk6331-DJfV3lU-.js"),__vite__mapDeps([186,99,1,16,17,6,8,5,100,101,102,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkDomesticWireDetailsPage-23WXWUBb-DJ6qKsHx.js"),__vite__mapDeps([187,104,1,16,17,6,8,5,102,101,100,105,106,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkInternationalWireDetailsPage-XqDeRmny-DL7ST80r.js"),__vite__mapDeps([188,189,1,16,17,6,8,5,100,105,106,101,18,19,20,7])));vt(()=>bt(()=>import("./AttachmentView-C3WpRmXR-Bolhu6cG.js"),__vite__mapDeps([132,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkSuccessPage-MURH2rp8-CLSHC5Hv.js"),__vite__mapDeps([190,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./Vendor2FAPopup-CayW9AB7-x46gcb9G.js"),__vite__mapDeps([191,1,17,6,8,5,16,18,19,20,7])));vt(()=>bt(()=>import("./AgingReportsPage-__jUwahK-B6-kjXQe.js"),__vite__mapDeps([192,1,16,17,6,8,5,63,28,29,62,58,59,67,32,193,194,18,19,20,7])));vt(()=>bt(()=>import("./ApAgingDetailPage-C1LyqY_A-CwTL7ATF.js"),__vite__mapDeps([195,1,16,17,6,8,5,196,194,18,19,20,7])));vt(()=>bt(()=>import("./ArAgingDetailPage-DXjs7XAS-DXCvwuMN.js"),__vite__mapDeps([197,1,16,17,6,8,5,196,194,18,19,20,7])));vt(()=>bt(()=>import("./OpExByVendorPage-B24tsc-s-kLP2AkBc.js"),__vite__mapDeps([198,1,16,17,6,8,5,29,35,56,64,58,59,71,65,62,67,32,61,63,199,69,193,18,19,20,7])));vt(()=>bt(()=>import("./VendorInternationalWireSwiftDetailsPage-B-mh5P3v-Ca_AkD0f.js"),__vite__mapDeps([200,1,189,16,17,6,8,5,100,105,106,101,18,19,20,7])));vt(()=>bt(()=>import("./VendorFirstReviewPage-B_5VMGPE-BQGRha_7.js"),__vite__mapDeps([201,1,16,17,6,8,5,85,18,19,20,7])));const hXr=vt(()=>bt(()=>import("./NewGlobalMerchantPage-DFt03MpW-DlxPCqjn.js"),__vite__mapDeps([202,1,16,17,6,8,5,18,19,20,7]))),mXr=vt(()=>bt(()=>import("./GlobalReviewListPage-CxH9D6qC-LJp8AeZZ.js"),__vite__mapDeps([203,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ScheduleDetailsPage-LbjrnfcH-B4mXvCnN.js"),__vite__mapDeps([204,1,16,17,6,8,5,205,18,19,20,7])));vt(()=>bt(()=>import("./ScheduleDetailsFixedAssetsPage-D9w3rUch-DJz9Yey_.js"),__vite__mapDeps([206,1,16,17,6,8,5,205,18,19,20,7])));vt(()=>bt(()=>import("./LinkJETransactionPage-CpttcuV1-DuV4F8Zk.js"),__vite__mapDeps([207,1,16,17,6,8,5,75,76,77,78,29,34,35,18,19,20,7,62,60,39,51,52,53,79,80])));vt(()=>bt(()=>import("./ChargeCardPromoPage-DsrTt5B0-D5poeoI3.js"),__vite__mapDeps([208,1,16,17,6,8,5,39,46,89,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardSetupPage-DcYthQvc-DDpbhz_U.js"),__vite__mapDeps([209,1,16,17,6,8,5,76,115,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardListPage-zDV88I5X-7k0VThqH.js"),__vite__mapDeps([210,1,16,17,6,8,5,148,211,85,86,212,208,39,46,89,18,19,20,7,213,45,40])));vt(()=>bt(()=>import("./MyPendingActivationChargeCardListPage-B4yQ0O4T-DshQIKqq.js"),__vite__mapDeps([214,16,1,17,6,8,5,211,85,86,212,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardDetailPage-ChwrpnhL-C74i3xWs.js"),__vite__mapDeps([215,1,16,17,6,8,5,39,216,18,212,133,213,86,19,20,7])));vt(()=>bt(()=>import("./CashbackDetailPage-D-l7cqjW-DQ3Pl_mP.js"),__vite__mapDeps([217,16,1,17,6,8,5,60,39,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardStatementsPage-DkUJKxIz-W8sJIYuD.js"),__vite__mapDeps([218,16,1,17,6,8,5,52,53,160,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardPaymentHistoryPage-Db6zW203-BuQibLL8.js"),__vite__mapDeps([219,1,16,17,6,8,5,148,147,149,18,19,20,7,155])));vt(()=>bt(()=>import("./IssueChargeCardPage-CzKlIsrE-wJKAxEPa.js"),__vite__mapDeps([220,1,16,17,6,8,5,121,86,18,19,20,7])));vt(()=>bt(()=>import("./AddToWalletPage-DfB-vvqh-DUAF88ZP.js"),__vite__mapDeps([221,1,16,17,6,8,5,216,18,19,20,7])));vt(()=>bt(()=>import("./AddAddressForCardDrawer-Rm7tH3HQ-DZTmUgpi.js"),__vite__mapDeps([222,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./TaskManagementPage-kHOwTTeJ-CfCX6wr3.js"),__vite__mapDeps([223,1,16,17,6,8,5,148,224,147,149,18,19,20,7])));vt(()=>bt(()=>Promise.resolve().then(()=>zwr),void 0).then(e=>e.m));vt(()=>bt(()=>import("./InvitePageListView-74Ymz8Xr-6S5FKTrd.js"),__vite__mapDeps([225,1,16,17,6,8,5,43,18,19,20,7])));vt(()=>bt(()=>import("./InviteFormPage-CDlB29vX-CQLcphyk.js"),__vite__mapDeps([226,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./DrawerPage-D3ezgD8z-BT84_uAX.js"),__vite__mapDeps([227,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./NotificationsPage-ClhmC4cD-DPPL3j0E.js"),__vite__mapDeps([228,1,16,17,6,8,5,151,229,224,18,19,20,7])));vt(()=>bt(()=>import("./FeaturePreviewPage-AXorSpml-V2Mh62fT.js"),__vite__mapDeps([230,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BillsBulkReviewDrawerPage-DcRTKRMw-BopU9rI-.js"),__vite__mapDeps([231,1,5,6,232,16,17,8,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementsBulkReviewDrawerPage-DOSDVT4u-eNIlif5R.js"),__vite__mapDeps([233,1,5,6,232,16,17,8,18,19,20,7])));vt(()=>bt(()=>import("./ExpenseAutomationOverviewPage-D25gPCR4-Dfqi0A-P.js"),__vite__mapDeps([234,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./AIPerformancePage-DqmxZNlX-CD4PTSl6.js"),__vite__mapDeps([235,1,16,17,6,8,5,88,18,19,20,7])));vt(()=>bt(()=>import("./ExpenseAutomationPage-BUAS2p9i-BpbTS8YU.js"),__vite__mapDeps([236,1,16,17,6,8,5,58,59,199,69,183,79,18,19,20,7])));vt(()=>bt(()=>import("./AccountReconDetailsDrawerPage-zcvYkXrD-Dbe0H637.js"),__vite__mapDeps([237,1,16,17,6,8,5,59,18,19,20,7])));vt(()=>bt(()=>import("./InternationalWireVerificationPage-Cg0oEA0I-D4laLv6p.js"),__vite__mapDeps([238,1,16,17,6,8,5,126,94,18,19,20,7])));vt(()=>bt(()=>import("./ExpressPayPage-DfIwfewF-DNrp1uq8.js"),__vite__mapDeps([239,1,16,17,6,8,5,94,111,18,19,20,7])));vt(()=>bt(()=>import("./TreasuryPromoPage-BaXLj90f-DyGHzvkx.js"),__vite__mapDeps([240,1,16,17,6,8,5,47,155,156,18,19,20,7])));vt(()=>Promise.resolve().then(()=>h8r));vt(()=>Promise.resolve().then(()=>t8r));vt(()=>Promise.resolve().then(()=>a6r));vt(()=>bt(()=>import("./TreasuryOverviewPage-C0bQkCDh-BSIFfKG0.js"),__vite__mapDeps([241,1,16,17,6,8,5,53,52,156,18,19,20,7])));vt(()=>bt(()=>import("./TreasuryStatementsPage-CNK6wX8W-BBctfBrh.js"),__vite__mapDeps([242,1,16,17,6,8,5,52,53,171,160,18,19,20,7])));vt(()=>bt(()=>import("./TreasuryTaxLetterPage-DEnUpGEu-PzAYgPYT.js"),__vite__mapDeps([243,1,16,17,6,8,5,52,53,171,160,18,19,20,7])));const f8r=e=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("rect",{x:3.16187,y:4.9248,width:16,height:16,rx:2,stroke:"currentColor",strokeWidth:1.5}),b.createElement("path",{d:"M9.75 1.9248H18.1619C20.371 1.9248 22.1619 3.71567 22.1619 5.9248V15",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),b.createElement("path",{d:"M15.4644 10.7257L10.4607 15.494C10.3977 15.5542 10.3231 15.6009 10.2415 15.6314C10.1598 15.6619 10.0728 15.6754 9.98577 15.6712C9.8999 15.6671 9.81573 15.6459 9.73823 15.6087C9.66073 15.5715 9.59148 15.5191 9.53459 15.4546L7.2569 12.8672",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),g8r=e=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M1.40002 7H22.5756",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M8.065 17.29H15.9105",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M4.26514 12.1444H19.7104",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),y8r=TR(new Date().getFullYear(),0),v8r=[...Array(12)].map((e,t)=>y8r.add(t,"month").format(de.getLocalizedStrings().dateFormat.visual.MMMMFormat)),_9e=()=>Rt().subtract(1,"quarter").endOf("quarter"),T9e=()=>Rt().subtract(1,"month").endOf("month"),fXr=({options:e,selectedDate:t})=>{const r=de.getLocalizedStrings().dateFormat.analytics.MMSlashDDSlashYYYYFormat;return e.find(n=>n.value==="month"?t.format(r)===T9e().format(r):n.value==="quarter"?t.format(r)===_9e().format(r):!1)?.value},b8r=e=>e==="month"?T9e():_9e(),A9e=e=>v8r.findIndex(t=>t===e)+1,w8r=m(Z4e)`
|
|
21495
|
+
`,E9e=e=>`${e}_form`,h8r=Object.freeze(Object.defineProperty({__proto__:null,default:s8r,trackTreasuryTransferAnalytics:Gy,uniqueName:E9e},Symbol.toStringTag,{value:"Module"}));vt(()=>Promise.resolve().then(()=>LIt));const lXr=vt(()=>bt(()=>import("./OverlayContainerPage-Daz3A7cI-jq9xEsKm.js"),__vite__mapDeps([15,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ConfettiBurst-CpmYtgfk-D3B4eByY.js"),__vite__mapDeps([21,1,17,6,8,5,16,18,19,20,7])));vt(()=>Promise.resolve().then(()=>uUt));const cXr=vt(()=>bt(()=>import("./SignIn-CwWQnPnB-BjWxjduT.js"),__vite__mapDeps([22,1,16,17,6,8,5,23,24,25,18,19,20,7])));vt(()=>bt(()=>import("./Dashboard-Dkwr9npN-BXZ9_-Zj.js"),__vite__mapDeps([26,1,16,17,6,8,5,27,28,29,30,31,32,33,34,35,36,37,38,39,40,18,19,20,7,41,42,43,44,45,46,47,21])));vt(()=>bt(()=>import("./AppDrawerContent-C2CNe5yn-CV61WWnW.js"),__vite__mapDeps([48,1,16,17,6,8,5,27,18,19,20,7])));vt(()=>bt(()=>import("./TransactionListBig-CDMd8KmW-BMMhha0s.js"),__vite__mapDeps([49,1,16,17,6,8,5,41,37,30,38,39,18,19,20,7])));vt(()=>bt(()=>import("./TransactionListPage-Dm_JZDPM-CpkM0KX9.js"),__vite__mapDeps([50,1,16,17,6,8,5,51,52,53,54,18,19,20,7])));vt(()=>bt(()=>import("./DashboardReportPage-Qk5_OFw7-BDc17Jc3.js"),__vite__mapDeps([55,1,16,17,6,8,5,56,57,58,59,60,39,61,33,29,34,35,62,63,64,65,66,67,32,68,69,18,19,20,7])));vt(()=>bt(()=>import("./ReportsPage-DqXYfBQC-DTOBKK0U.js"),__vite__mapDeps([70,1,16,17,6,8,5,56,57,58,59,64,71,65,72,54,18,19,20,7,66,73,68,69])));vt(()=>bt(()=>import("./TopExDetailPage-BRJ9k9hY-DGh-mViS.js"),__vite__mapDeps([74,16,1,17,6,8,5,31,30,32,65,67,18,19,20,7])));vt(()=>bt(()=>import("./TransactionDetailPage-CJjGDJoM-4j_0Nnvx.js"),__vite__mapDeps([75,1,16,17,6,8,5,76,77,78,29,34,35,18,19,20,7,62,60,39,51,52,53,79,80])));vt(()=>bt(()=>import("./QBOConnectionDialog-A0ysjdIC-Eqpwl6_L.js"),__vite__mapDeps([81,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./VerifyDevice-DGjS39sh-CtcNv75O.js"),__vite__mapDeps([82,1,16,17,6,8,5,83,25,18,19,20,7])));vt(()=>bt(()=>import("./AccountLockedInfoModal-B9_FdrYm-5NyxuZ6Z.js"),__vite__mapDeps([83,16,1,17,6,8,5,25,18,19,20,7])).then(e=>e.a));vt(()=>bt(()=>import("./InsightsCardStack-BnEWSQ0m-VtqL0Nqc.js"),__vite__mapDeps([36,1,37,30,16,17,6,8,5,38,39,40,18,19,20,7])));vt(()=>bt(()=>import("./InformationCardStack-BwgEyJER-uNbIwCBo.js"),__vite__mapDeps([44,1,37,30,16,17,6,8,5,38,39,18,19,20,7])));vt(()=>bt(()=>import("./DownloadOverlay-Nc_Ra7Co-DN1ubFHO.js"),__vite__mapDeps([72,1,16,17,6,8,5,56,57,58,59,54,18,19,20,7])));vt(()=>bt(()=>import("./PeoplePage-DahKRMoB-F0cHCzgT.js"),__vite__mapDeps([84,1,16,17,6,8,5,85,86,18,19,20,7])));vt(()=>bt(()=>import("./PandLWithForecastPage-GOxiUR2j-BGagWawc.js"),__vite__mapDeps([87,1,16,17,6,8,5,88,56,71,65,58,59,89,66,73,18,19,20,7])));vt(()=>bt(()=>import("./TrendChart-DhH1bAfv-Bh3qy9e2.js"),__vite__mapDeps([78,1,5,6,29,16,17,8,34,35,18,19,20,7])));vt(()=>bt(()=>import("./EntityDetailPage-DCcgGupN-C9TRJ7Es.js"),__vite__mapDeps([90,16,1,17,6,8,5,77,78,29,34,35,18,19,20,7,62,60,39,51,52,53])));const dXr=vt(()=>bt(()=>import("./NotFoundPage-VR72eVPP-RofDTL3E.js"),__vite__mapDeps([91,16,1,17,6,8,5,23,18,19,20,7]))),uXr=vt(()=>Promise.resolve().then(()=>BYt));vt(()=>bt(()=>import("./CompanyPassportCard-I21kA_Ir-BLJfyfQk.js"),__vite__mapDeps([42,16,1,17,6,8,5,37,30,18,19,20,7])));vt(()=>bt(()=>import("./CompanyPassportPage-BSDnF5-7-Cj98T4ob.js"),__vite__mapDeps([92,1,16,17,6,8,5,93,94,95,96,18,19,20,7])));vt(()=>bt(()=>import("./CreateOrEditVendorPage-AfKsEb9G-Dm36bf3i.js"),__vite__mapDeps([97,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./VendorACHDetailsPage-DLY7vm1r-DGGLogkV.js"),__vite__mapDeps([98,1,99,16,17,6,8,5,100,101,102,18,19,20,7])));vt(()=>bt(()=>import("./VendorDomesticWireDetailsPage-B83WB2Vz-DFPT0ZYm.js"),__vite__mapDeps([103,1,104,16,17,6,8,5,102,101,100,105,106,18,19,20,7])));vt(()=>bt(()=>import("./VendorInternationalWireDetailsPage-DKsYBIjo-D8VzNPtl.js"),__vite__mapDeps([107,1,16,17,6,8,5,100,105,106,108,18,19,20,7])));vt(()=>bt(()=>import("./ReviewDetailsPage-DmHHVA8I-Sy4HvXq_.js"),__vite__mapDeps([109,1,16,17,6,8,5,110,111,18,19,20,7])));vt(()=>bt(()=>import("./BillPayPromoPage-BsEtxcjB-BRyrvd2x.js"),__vite__mapDeps([112,1,16,17,6,8,5,113,47,89,18,19,20,7])));vt(()=>bt(()=>import("./BillPaySetUpPage-B-rBYCtR-CKuO1PYp.js"),__vite__mapDeps([114,1,16,17,6,8,5,115,18,19,20,7])));vt(()=>bt(()=>import("./ApprovalRulesSettingsPage-XsMzIe4e-WBRcfJJV.js"),__vite__mapDeps([116,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BankConnectionsSettingsPage-BOdlcBfa-aX1YHXK9.js"),__vite__mapDeps([117,1,16,17,6,8,5,118,18,19,20,7])));vt(()=>bt(()=>import("./MyBankConnectionsSettingsPage-DtnGJLK--62eLaU86.js"),__vite__mapDeps([119,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./MyProfileSettingsPage-BHpnpTmJ-DUJX3teA.js"),__vite__mapDeps([120,1,16,17,6,8,5,106,121,86,122,18,19,20,7])));vt(()=>bt(()=>import("./NotificationSettingsPage-Bwf-7o4F-Aj6P3Xzl.js"),__vite__mapDeps([123,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BusinessVerificationPage-B9hjIdCd-fjXOOEEK.js"),__vite__mapDeps([124,1,16,17,6,8,5,125,106,126,93,94,96,127,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementPromoPage-ClRa3wo6-GK77Fy92.js"),__vite__mapDeps([128,1,16,17,6,8,5,113,47,89,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementSetUpPage-CaJCRajP-Bhbzq9G6.js"),__vite__mapDeps([129,1,16,17,6,8,5,115,18,19,20,7])));vt(()=>Promise.resolve().then(()=>tlr));vt(()=>bt(()=>import("./BillDetailPage-Ct4Q960V-B1Ta0IG7.js"),__vite__mapDeps([130,1,16,17,6,8,5,110,18,19,20,7])));vt(()=>bt(()=>import("./InvoiceUploadSection-H-JhX_DQ-B3PXCVQk.js"),__vite__mapDeps([131,1,16,17,6,8,5,132,18,19,20,7,133])));vt(()=>bt(()=>import("./BillPayApprovalRulesPage-C0pcFzje-Rb9cSqGe.js"),__vite__mapDeps([134,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BillPayApprovalRuleDetailPage-DUU4rXuM-DI9nvx98.js"),__vite__mapDeps([135,1,16,17,6,8,5,136,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementApprovalRulesPage-D8stgYq_-CqsPNPUT.js"),__vite__mapDeps([137,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementApprovalRuleDetailPage-dID4dZbu-DAIygneU.js"),__vite__mapDeps([138,1,16,17,6,8,5,136,18,19,20,7])));const pXr=vt(()=>Promise.resolve().then(()=>yOt));vt(()=>bt(()=>import("./EditReimbursementDetailPage-D-uH9OV3-BSdAEEMn.js"),__vite__mapDeps([139,1,16,17,6,8,5,131,132,18,19,20,7,133,140,93,108,102,100,80])));vt(()=>bt(()=>import("./ReimbursementDetailPage-DaYD1eTP-BBI-ZKs3.js"),__vite__mapDeps([141,1,16,17,6,8,5,131,132,18,19,20,7,133,140])));vt(()=>bt(()=>import("./InvitePeoplePage-BKffwOP--D-GaMZqa.js"),__vite__mapDeps([142,1,16,17,6,8,5,143,121,86,122,18,19,20,7])));vt(()=>bt(()=>import("./CompleteProfile-uultMZ5R-wTNN90nG.js"),__vite__mapDeps([144,1,16,17,6,8,5,95,18,19,20,7])));vt(()=>bt(()=>import("./EditPeoplePage-BnYTxq_9-DPMlpday.js"),__vite__mapDeps([145,1,16,17,6,8,5,143,121,86,122,18,19,20,7])));const m8r=vt(()=>bt(()=>import("./AppBasePage-CnlPnTBn-DzDs3_Wg.js"),__vite__mapDeps([146,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./SpendManagementListViewPage-B-EbBpvJ-ON20KKOZ.js"),__vite__mapDeps([147,5,1,6,16,17,8,148,149,18,19,20,7])).then(e=>e.S));vt(()=>bt(()=>import("./VendorDetailPage-Bl6Xaq0d-DsXiZRzL.js"),__vite__mapDeps([150,1,16,17,6,8,5,151,51,52,53,77,78,29,34,35,18,19,20,7,62,60,39,40,106,152])));vt(()=>bt(()=>import("./VendorFiling1099EditablePage-DHabnH22-CEFAMCGK.js"),__vite__mapDeps([153,1,16,17,6,8,5,152,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountListViewPage-BJF3-1hq-aqs0GGLS.js"),__vite__mapDeps([154,1,16,17,6,8,5,155,156,157,158,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountDetailPage-DJiB-R44-8YHKJ_Rk.js"),__vite__mapDeps([159,1,16,17,6,8,5,52,53,160,161,157,18,19,20,7])));vt(()=>bt(()=>import("./AccountInfoPage-CI5UcHFj-BegJKMi4.js"),__vite__mapDeps([162,1,16,17,6,8,5,149,163,160,53,18,19,20,7])));vt(()=>bt(()=>import("./TransferDrawerPage-lY_wB7eB-BHJQPQzp.js"),__vite__mapDeps([164,1,16,17,6,8,5,158,163,160,53,18,19,20,7])));vt(()=>bt(()=>import("./CreditCardPaymentDrawerPage-D0Lh5Tw1-XpTz-POB.js"),__vite__mapDeps([165,16,1,17,6,8,5,76,18,19,20,7])));vt(()=>bt(()=>import("./CheckDepositDrawerPage-CFl7Vr_I-m-GUaKwL.js"),__vite__mapDeps([166,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountPromoPage-VfZj6e9J-CEBstujd.js"),__vite__mapDeps([167,1,16,17,6,8,5,89,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountSetupPage-CfUBgLaM-ZmrhqCPO.js"),__vite__mapDeps([168,1,16,17,6,8,5,115,18,19,20,7])));vt(()=>bt(()=>import("./DepositAccTransactionListPage-Dc3G81fB-A9cH7zUI.js"),__vite__mapDeps([169,1,16,17,6,8,5,52,53,161,18,19,20,7])));vt(()=>bt(()=>import("./StatementsPage-2OCuox8g-8nyeHbc9.js"),__vite__mapDeps([170,1,16,17,6,8,5,52,53,171,160,18,19,20,7])));vt(()=>bt(()=>import("./TransactionVendorDetailPage-BDuBQged-CAcA5ymW.js"),__vite__mapDeps([172,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./CustomerOnboardingPage-Byojt-WN-CQTmwoTL.js"),__vite__mapDeps([173,1,16,17,6,8,5,174,127,118,175,125,106,126,93,94,96,176,81,18,19,20,7])));vt(()=>bt(()=>import("./CustomerOnboardingContainerPage-DGhE9fpo-BZZCLRzR.js"),__vite__mapDeps([177,178,16,1,17,6,8,5,174,127,118,175,18,19,20,7,173,125,106,126,93,94,96,176,81])));vt(()=>bt(()=>import("./CustomerOnboardingNoStepsPage-p062pNc5-C-l3wTbU.js"),__vite__mapDeps([178,16,1,17,6,8,5,174,127,118,175,18,19,20,7])));vt(()=>bt(()=>import("./CustomerOnboardingProductSuitePage-C9W7h_tT-Brpfoewd.js"),__vite__mapDeps([179,1,16,17,6,8,5,21,18,19,20,7,24])));vt(()=>bt(()=>import("./CustomerOnboardingActivationPage-OtCugBPI-qX05IlgL.js"),__vite__mapDeps([180,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BillingSettingsPage-BadzsZdt-CdWNz3my.js"),__vite__mapDeps([181,1,16,17,6,8,5,174,127,118,18,19,20,7])));vt(()=>bt(()=>import("./UncategorizedAccountsMappingPage-CFir4dX5-DJbsYjHd.js"),__vite__mapDeps([182,1,16,17,6,8,5,183,18,19,20,7])));vt(()=>bt(()=>import("./IntegrationsSettingsPage-De8DEt0a-Cw9Ydly2.js"),__vite__mapDeps([184,16,1,17,6,8,5,176,81,18,19,20,7])));vt(()=>bt(()=>import("./UnitIntegrationPage-CHR1UsV3-CoAODj2A.js"),__vite__mapDeps([185,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkACHDetailsPage-CTqUXhIp-BPw-bzqm.js"),__vite__mapDeps([186,99,1,16,17,6,8,5,100,101,102,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkDomesticWireDetailsPage-Dn7zRSmC-Cp1zfiCQ.js"),__vite__mapDeps([187,104,1,16,17,6,8,5,102,101,100,105,106,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkInternationalWireDetailsPage-BP3vdY52-BzDP-7_t.js"),__vite__mapDeps([188,189,1,16,17,6,8,5,100,105,106,101,18,19,20,7])));vt(()=>bt(()=>import("./AttachmentView-uaen0kuU-Bv_0F11t.js"),__vite__mapDeps([132,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkSuccessPage-RsvHwQTQ-DKdw4jPk.js"),__vite__mapDeps([190,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./Vendor2FAPopup-BJI6SeE0-CTu9U0EV.js"),__vite__mapDeps([191,1,17,6,8,5,16,18,19,20,7])));vt(()=>bt(()=>import("./AgingReportsPage-BlPqvXdx-BhMR9uMZ.js"),__vite__mapDeps([192,1,16,17,6,8,5,63,28,29,62,58,59,67,32,193,194,18,19,20,7])));vt(()=>bt(()=>import("./ApAgingDetailPage-CHVwRH_g-DOXwF09t.js"),__vite__mapDeps([195,1,16,17,6,8,5,196,194,18,19,20,7])));vt(()=>bt(()=>import("./ArAgingDetailPage-KRWJzbCq-SXmC1xou.js"),__vite__mapDeps([197,1,16,17,6,8,5,196,194,18,19,20,7])));vt(()=>bt(()=>import("./OpExByVendorPage-BlEqljuU-DVw46mxv.js"),__vite__mapDeps([198,1,16,17,6,8,5,29,35,56,64,58,59,71,65,62,67,32,61,63,199,69,193,18,19,20,7])));vt(()=>bt(()=>import("./VendorInternationalWireSwiftDetailsPage-XKp9TJ4g-m_5Ao1BR.js"),__vite__mapDeps([200,1,189,16,17,6,8,5,100,105,106,101,18,19,20,7])));vt(()=>bt(()=>import("./VendorFirstReviewPage-JhwEqiFF-kofbScrA.js"),__vite__mapDeps([201,1,16,17,6,8,5,85,18,19,20,7])));const hXr=vt(()=>bt(()=>import("./NewGlobalMerchantPage-DV2k3q5N-BcTx-Ahj.js"),__vite__mapDeps([202,1,16,17,6,8,5,18,19,20,7]))),mXr=vt(()=>bt(()=>import("./GlobalReviewListPage-BfVSGVJe-Bw9xs6tt.js"),__vite__mapDeps([203,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ScheduleDetailsPage-BCw7YaHZ-CsQRejR9.js"),__vite__mapDeps([204,1,16,17,6,8,5,205,18,19,20,7])));vt(()=>bt(()=>import("./ScheduleDetailsFixedAssetsPage-DuuvsMhX-gKNOvkFU.js"),__vite__mapDeps([206,1,16,17,6,8,5,205,18,19,20,7])));vt(()=>bt(()=>import("./LinkJETransactionPage-Cn7He0uo-CU1EJOb0.js"),__vite__mapDeps([207,1,16,17,6,8,5,75,76,77,78,29,34,35,18,19,20,7,62,60,39,51,52,53,79,80])));vt(()=>bt(()=>import("./ChargeCardPromoPage-CPURUrkI-ElY1-FvK.js"),__vite__mapDeps([208,1,16,17,6,8,5,39,46,89,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardSetupPage-Bumq17f6-CZtiCi9E.js"),__vite__mapDeps([209,1,16,17,6,8,5,76,115,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardListPage-CxplfJ1W-Cs-f2f69.js"),__vite__mapDeps([210,1,16,17,6,8,5,148,211,85,86,212,208,39,46,89,18,19,20,7,213,45,40])));vt(()=>bt(()=>import("./MyPendingActivationChargeCardListPage-B1A2Dxw3-KQAV9F2y.js"),__vite__mapDeps([214,16,1,17,6,8,5,211,85,86,212,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardDetailPage-D8dY9X8Q-CY9gkPfd.js"),__vite__mapDeps([215,1,16,17,6,8,5,39,216,18,212,133,213,86,19,20,7])));vt(()=>bt(()=>import("./CashbackDetailPage-Bp85-5Ie-BrWWJ_z3.js"),__vite__mapDeps([217,16,1,17,6,8,5,60,39,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardStatementsPage-DbU7LEIP-BvT1248-.js"),__vite__mapDeps([218,16,1,17,6,8,5,52,53,160,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardPaymentHistoryPage-Brh4ot5q-B0jRGM62.js"),__vite__mapDeps([219,1,16,17,6,8,5,148,147,149,18,19,20,7,155])));vt(()=>bt(()=>import("./IssueChargeCardPage-rinAPB-d-By9lpPwl.js"),__vite__mapDeps([220,1,16,17,6,8,5,121,86,18,19,20,7])));vt(()=>bt(()=>import("./AddToWalletPage-C2Z6f8Y6-DKRITatO.js"),__vite__mapDeps([221,1,16,17,6,8,5,216,18,19,20,7])));vt(()=>bt(()=>import("./AddAddressForCardDrawer-O987RTn2-BVD6IV9k.js"),__vite__mapDeps([222,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./TaskManagementPage-J0L5w2Wc-ChHzcbst.js"),__vite__mapDeps([223,1,16,17,6,8,5,148,224,147,149,18,19,20,7])));vt(()=>bt(()=>Promise.resolve().then(()=>zwr),void 0).then(e=>e.m));vt(()=>bt(()=>import("./InvitePageListView-BQbRhQ6V-DRrSpNW9.js"),__vite__mapDeps([225,1,16,17,6,8,5,43,18,19,20,7])));vt(()=>bt(()=>import("./InviteFormPage-Ca_tdccZ-C7hXm59I.js"),__vite__mapDeps([226,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./DrawerPage-Bq1naYya-CQiLfSVq.js"),__vite__mapDeps([227,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./NotificationsPage-B8GufkTS-DUQT6vp2.js"),__vite__mapDeps([228,1,16,17,6,8,5,151,229,224,18,19,20,7])));vt(()=>bt(()=>import("./FeaturePreviewPage-W5YS3_F--DlENOTKC.js"),__vite__mapDeps([230,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BillsBulkReviewDrawerPage-CbA-LUIt-BCAx-hEw.js"),__vite__mapDeps([231,1,5,6,232,16,17,8,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementsBulkReviewDrawerPage-BuBVWui--heWobZZd.js"),__vite__mapDeps([233,1,5,6,232,16,17,8,18,19,20,7])));vt(()=>bt(()=>import("./ExpenseAutomationOverviewPage-XA0L4mZw-dYnFXq-m.js"),__vite__mapDeps([234,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./AIPerformancePage-J3dtNEgn-DnDSfWCN.js"),__vite__mapDeps([235,1,16,17,6,8,5,88,18,19,20,7])));vt(()=>bt(()=>import("./ExpenseAutomationPage-CGkJWoKY-B55w2jvQ.js"),__vite__mapDeps([236,1,16,17,6,8,5,58,59,199,69,183,79,18,19,20,7])));vt(()=>bt(()=>import("./AccountReconDetailsDrawerPage-DFjW0u9--BQEqjGYe.js"),__vite__mapDeps([237,1,16,17,6,8,5,59,18,19,20,7])));vt(()=>bt(()=>import("./InternationalWireVerificationPage-CPIRgDy5-DxjBH4Le.js"),__vite__mapDeps([238,1,16,17,6,8,5,126,94,18,19,20,7])));vt(()=>bt(()=>import("./ExpressPayPage-BX3rmT8V-AcNsZZN-.js"),__vite__mapDeps([239,1,16,17,6,8,5,94,111,18,19,20,7])));vt(()=>bt(()=>import("./TreasuryPromoPage-8tXexPVv-CiI-0ZNb.js"),__vite__mapDeps([240,1,16,17,6,8,5,47,155,156,18,19,20,7])));vt(()=>Promise.resolve().then(()=>h8r));vt(()=>Promise.resolve().then(()=>t8r));vt(()=>Promise.resolve().then(()=>a6r));vt(()=>bt(()=>import("./TreasuryOverviewPage-D5OetJEP-DU_svhq3.js"),__vite__mapDeps([241,1,16,17,6,8,5,53,52,156,18,19,20,7])));vt(()=>bt(()=>import("./TreasuryStatementsPage-DEOyNQFW-CWB-xLSh.js"),__vite__mapDeps([242,1,16,17,6,8,5,52,53,171,160,18,19,20,7])));vt(()=>bt(()=>import("./TreasuryTaxLetterPage-B2AurZ-A-Dvkl-xbT.js"),__vite__mapDeps([243,1,16,17,6,8,5,52,53,171,160,18,19,20,7])));const f8r=e=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("rect",{x:3.16187,y:4.9248,width:16,height:16,rx:2,stroke:"currentColor",strokeWidth:1.5}),b.createElement("path",{d:"M9.75 1.9248H18.1619C20.371 1.9248 22.1619 3.71567 22.1619 5.9248V15",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),b.createElement("path",{d:"M15.4644 10.7257L10.4607 15.494C10.3977 15.5542 10.3231 15.6009 10.2415 15.6314C10.1598 15.6619 10.0728 15.6754 9.98577 15.6712C9.8999 15.6671 9.81573 15.6459 9.73823 15.6087C9.66073 15.5715 9.59148 15.5191 9.53459 15.4546L7.2569 12.8672",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),g8r=e=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M1.40002 7H22.5756",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M8.065 17.29H15.9105",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M4.26514 12.1444H19.7104",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),y8r=TR(new Date().getFullYear(),0),v8r=[...Array(12)].map((e,t)=>y8r.add(t,"month").format(de.getLocalizedStrings().dateFormat.visual.MMMMFormat)),_9e=()=>Rt().subtract(1,"quarter").endOf("quarter"),T9e=()=>Rt().subtract(1,"month").endOf("month"),fXr=({options:e,selectedDate:t})=>{const r=de.getLocalizedStrings().dateFormat.analytics.MMSlashDDSlashYYYYFormat;return e.find(n=>n.value==="month"?t.format(r)===T9e().format(r):n.value==="quarter"?t.format(r)===_9e().format(r):!1)?.value},b8r=e=>e==="month"?T9e():_9e(),A9e=e=>v8r.findIndex(t=>t===e)+1,w8r=m(Z4e)`
|
|
21496
21496
|
border: none;
|
|
21497
21497
|
background-color: ${e=>e.theme.colors.grey5};
|
|
21498
21498
|
width: 105px;
|
|
@@ -29387,7 +29387,7 @@ ${e}`,KAr=e=>b.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
29387
29387
|
&:hover {
|
|
29388
29388
|
color: ${e=>e.theme.colors.primary};
|
|
29389
29389
|
}
|
|
29390
|
-
`,FXr=vt(()=>bt(()=>import("./WarningsDrawerPage-BbN2G_rG-hi1DPTM_.js"),__vite__mapDeps([244,16,1,17,6,8,5,18,19,20,7])));var rWr=Dbe();const p7=lw(rWr);class nWr{getSignedInUser(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(r!=null&&t!=null)return JSON.parse(this.decrypt(r,t))}getShowNegativeAmountInParenthesis(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),r=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&r!=null?JSON.parse(this.decrypt(t,r)):!1}getShowNegativeAmountInParenthesisPDF(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),r=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&r!=null?JSON.parse(this.decrypt(t,r)):!0}getSignedInUserTenant(t){const r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null&&n!=null)return JSON.parse(this.decrypt(r,n)).find(o=>o.tenantEmailDomain===t)}getSignedInUserTenantWithId(t){const r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null&&n!=null)return JSON.parse(this.decrypt(r,n)).find(o=>o.tenantId===t)}getForceRefreshedComponents(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),r=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(r&&t!=null){const n=this.decrypt(r,t);return n?JSON.parse(n):[]}return[]}saveForceRefreshedComponents(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(t),r)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveSignedInUserWithSession(t,r){if(t==null||r==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,r),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(t),r))}saveSignedInUserTenants(t,r){const n=r??window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(t),n)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(r=>window.localStorage.getItem(r)!=null).reduce((r,n)=>r&&n)}clearAll(){this.ALL_IDs.forEach(t=>window.localStorage.removeItem(t))}setTheme(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(t,r))}getTheme(){const t=window.localStorage.getItem(this.ZENI_THEME),r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null&&r!==null)return this.decrypt(t,r)}encrypt(t,r){return p7.AES.encrypt(t,r).toString()}decrypt(t,r){return p7.AES.decrypt(t,r).toString(p7.enc.Utf8)}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_THEME="ZENI_THEME";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS]}const la=new nWr,iWr=({children:e})=>{const t=Tbe("(prefers-color-scheme: dark)"),[r,n]=C.useState({dark:t});b.useEffect(()=>{const a=la.getTheme()==null?t:la.getTheme()==="dark";r.dark!==a&&n({dark:a})},[r,t]);const i=()=>{const a=!r.dark;la.setTheme(a?"dark":"light"),n({...r,dark:a})},o=r.dark?vur():yur();return Wt.jsx(uur,{dark:r.dark,webAppTheme:o,toggle:i,children:e})},oWr=["sandbox","production"],aWr=e=>z0(e,oWr),sWr=e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"sandbox";case"PROD":case"NEXT":return"production";default:return"sandbox"}},lWr=["development","staging","production"],cWr=e=>z0(e,lWr),dWr=e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";case"DEV":default:return"development"}},uWr=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],pWr=e=>z0(e,uWr),h1=pWr("QA"),kR=()=>h1==="DEV"||h1==="QA"||h1==="PUNE"||h1==="SUNNYVALE"||h1==="DELHI"||h1==="MOHALI",vz="https://zeni-webapp-qa.uc.r.appspot.com",hWr="ed1936cb971f6aad4104ddbe708f812c",NXr=aWr(sWr(h1)),mWr=cWr(dWr(h1));function fWr(e,t){return p7.AES.decrypt(e,t).toString(p7.enc.Utf8)}const gWr="ZENI-WEB-APP-",bye=.9,uo={sentryDsn:"",sentryTraceSamplingRate:1,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",featureClientSecretCockpit:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let vm,bz;function yWr(e){uo.sentryDsn=e.keys.SENTRY_DSN,uo.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):bye,uo.googleClientId=e.keys.GOOGLE_CLIENT_ID,uo.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,uo.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,uo.mixpanelToken=e.keys.MIXPANEL_TOKEN,uo.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,uo.pusherCluster=e.keys.PUSHER_CLUSTER,uo.quickbooksKey=e.keys.QUICKBOOK_TOKEN,uo.appUrl=e.keys.WEB_ENDPOINT,uo.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,uo.featureClientSecretCockpit=e.keys.STATSIG_CLIENT_SECRET_COCKPIT,uo.cardVaultId=e.keys.UNIT_VAULT_ID,uo.stripeKey=e.keys.STRIPE_KEY,uo.qboRedirectionUrl=e.keys.QBO_URL,uo.mixpanelUrl=e.keys.MIXPANEL_URL,uo.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,bz=e.externalEndPoints,vm=e.apiEndPoints,vWr()}function vWr(){try{const e=new Set;if(vm!=null){for(const t of Object.values(vm))if(typeof t=="string"&&t.startsWith("http"))try{e.add(new URL(t).origin)}catch{}}for(const t of e){const r=document.createElement("link");r.rel="preconnect",r.href=t,r.crossOrigin="anonymous",document.head.appendChild(r)}}catch{}}async function bWr(){const t=encodeURIComponent(JSON.stringify({environment:h1}));try{const r=await fetch(`${vz}/api/keys?query=${t}`);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){return console.error("Error fetching details:",r),null}}let cce=!1;function py(){cce||(gh.init(hWr,{api_host:bz.mixpanelBaseUrl,ignore_dnt:!0}),cce=!0)}class Mh{identify(t,r){if(py(),this.#r=t,t!=null&&r!=null&&(Mh.#t==null||mbe({userId:t,traits:r},Mh.#t)!==!0)){const{$email:n,...i}={...r};gh.identify(t),n&&n!=null&&gh.people.set_once({$email:n}),gh.people.set(i),Mh.#t={userId:t,traits:r},kR()&&console.log(`*** Called people set with userId ${t} traits ${JSON.stringify(r)} `)}}identifyUserAndCompany(t,r,n,i,o){throw Error("Use identify in the web-app!!")}track(t,r){if(py(),this.#r!=null){const n={distinct_id:this.#r,...r};gh.track(t,n)}else console.error("user is not identified :(, so can not fire event");kR()&&console.log(`*** firing ${t} with props ${JSON.stringify(r)}`)}alias(t,r){py(),gh.alias(t,r)}reset(){py(),gh.identify(void 0),this.#r=void 0,Mh.#t=void 0}static get analytics(){return this.#e}static#e=new Sn.Analytics(new Mh);static#t;#r}const F$=Mh.analytics,wWr=()=>{const e=cw(),t=C1(r=>r.companyState);if(e.pathname.includes("/management/parent/")){const r=e.pathname.split("/")[3],n=t.companiesById[r];if(n!=null)return`${n.companyInfo.name} ${de.getLocalizedStrings().cockpit.cockpitHeaderSubsidiaryText}`}if(e.pathname.includes("management/month-end-report/company/")){const r=e.pathname.split("/")[4],n=t.companiesById[r];if(n!=null)return n.companyInfo.name}},dce=e=>{switch(e){case"healthMonitor":return"health-monitor";case"taskManager":return"task-manager";default:return e}},zXr=e=>{switch(e){case"healthMonitor":return"health monitor";case"taskManager":return"task manager";default:return e}};function xWr(e,t){return{updateDownloadStateHandler:r=>{e(fbe(r))},onZeniLogoClick:()=>{t.themeState.toggle()},onLogOutClick:()=>{e(Rce()),e(Oce(!1)),la.clearAll();const r=t.locationHook.state?.origin??"/";t.navigate(r,{replace:!0})},onNewCustomerClick:()=>{t.navigate("/onboarding/new"),F$?.trackOnboardingNewCustomerStarted()},onThreadClick:(r,n,i)=>{const o=r.entityType.split(".");if(o.length===2){const a=Mse(o[0]);if(a!=null){const l=dce(a);t.navigate(`/${l}`),i(r,n)}else console.warn(`Invalid navigation target in thread: ${o[0]}`)}},onNotificationClick:(r,n,i)=>{const o=r.entityType.split(".");if(r.isGlobalComment&&o.length===2){const a=Mse(o[0]);if(a!=null){const l=dce(a);t.navigate(`/${l}`),i(r,n)}else console.warn(`Invalid navigation target in notification: ${o[0]}`)}}}}function CWr(e,t){const{signedInUser:r,cockpitHeader:n}=t,i=e.tenantState.currentTenantId,a=pw(e)?.companyName??"",l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:i??""};return{signedInUser:r,cockpitHeader:n,downloadState:e.companyViewState.downloadState,downloadParams:{currentTenantCompanyName:a,cockpitEndPoint:`${vz}/cockpitTabs`,authParams:l}}}const $Wr=cve(CWr,xWr)(iTr);function SWr(){const e=dur(),t=la.getSignedInUser(),r=_R(),n=cw(),i=wWr(),o=C1(d=>gbe(d)),a={tabsFileType:"excel",tabs:["management","subscription","portfolio","onboarding","healthMonitor"],filterByTabs:o.filterByTabs,timezone:ybe()},l=n.pathname.split("/")[1];return Wt.jsx($Wr,{locationHook:n,themeState:e,signedInUser:t,cockpitHeader:i,allTabsViews:o,defaultOptions:a,analytics:F$,currentTab:l,navigate:r})}const kWr=["/management/*","/subscription/*","/onboarding/*","/portfolio/*","/audit/*","/health-monitor/*","/task-manager/*"];function EWr({appContent:e}){const t=kWr.filter(r=>dve(r)).length===0;return Wt.jsxs(Wt.Fragment,{children:[t?null:Wt.jsx(SWr,{}),Wt.jsx(Wt.Fragment,{children:e})]})}const _Wr="cockpit",wye="init-enter";function TWr({location:e,visitedUrl:t}){const{pathname:r}=e;return b.useLayoutEffect(()=>{const n=t.get(r||wye);uce(n!==void 0?n:0)}),null}const AWr=b.memo(TWr,(e,t)=>{const{location:r,visitedUrl:n}=e,{location:i}=t,o=r.pathname||wye,a=LWr();return n.set(o,a),!((i.pathname!==r.pathname||i.search!==r.search)&&i.hash==="")}),uce=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),LWr=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},xye=e=>b.lazy(async()=>{const t=e.toString(),r=la.getForceRefreshedComponents(),n=new Set(r),i=n.has(t);try{const o=await e();return n.delete(t),la.saveForceRefreshedComponents(Array.from(n)),o}catch(o){throw i||(n.add(t),la.saveForceRefreshedComponents(Array.from(n)),location.reload()),o}}),DWr=xye(()=>bt(()=>import("./ScreenRoutes-Dj7TdnaB.js"),__vite__mapDeps([245,5,1,6,17,8,246,16,7,2,14,4,9,11,18,19,20]))),MWr=xye(()=>bt(()=>import("./SignInScreen-Bn4nYRQE.js"),__vite__mapDeps([247,17,1,6,8,5,246,16,18,19,20,7])));function PWr(){const e=b.useRef();e.current==null&&(e.current=new Map);const t=_R(),r=cw(),n=new URLSearchParams(r.search),i=n?.get("utm_source"),o=n?.get("utm_medium");return b.useEffect(()=>{const a="signin/auth";la.isSignedIn()===!1&&!r.pathname.includes(a)&&t(a,{replace:!0,state:{...r.state,message:"...",origin:r.pathname,queryParams:{utmSource:i,utmMedium:o}}})}),Wt.jsxs(RWr,{children:[Wt.jsx(AWr,{visitedUrl:e.current,location:r}),Wt.jsx(IWr,{})]})}const IWr=()=>{const e=la.isSignedIn(),t=la.getSignedInUser(),r=e&&AR(t),n=C1(d=>pw(d)),i={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:n.tenantId??""},o=C1(d=>vbe(d)),l=C1(d=>bbe(d)).map(d=>({companyId:d.companyId,tenantId:d.tenantId,companyName:d.name}));return Wt.jsx(yfr,{roomId:_Wr,authParams:i,users:o,companies:l,authUrlEndPoint:`${vm.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!1,commentingUsersUrlEndPoint:`${vm.tenantMicroServiceBaseUrl}/1.0/users/zeni-users`,autoConnect:r,withRoomProvider:!1,loggedInUser:t,withThreadsProvider:!0,filter:{application:"cockpit"},children:Wt.jsx(jWr,{})})},jWr=()=>Wt.jsx(b.Suspense,{fallback:Wt.jsx(OWr,{children:Wt.jsx(vr,{size:"Large",start:!0})}),children:Wt.jsxs(uve,{children:[Wt.jsx(G$,{path:"/",element:Wt.jsx(pve,{to:"management",replace:!0})}),Wt.jsx(G$,{path:"/signin/auth",element:Wt.jsx(MWr,{})}),Wt.jsx(G$,{path:"*",element:Wt.jsx(EWr,{appContent:Wt.jsx(DWr,{})})})]})}),RWr=Zt("div")``,OWr=Zt("div")`
|
|
29390
|
+
`,FXr=vt(()=>bt(()=>import("./WarningsDrawerPage-Bikg48FF-BUXgPrL6.js"),__vite__mapDeps([244,16,1,17,6,8,5,18,19,20,7])));var rWr=Dbe();const p7=lw(rWr);class nWr{getSignedInUser(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(r!=null&&t!=null)return JSON.parse(this.decrypt(r,t))}getShowNegativeAmountInParenthesis(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),r=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&r!=null?JSON.parse(this.decrypt(t,r)):!1}getShowNegativeAmountInParenthesisPDF(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),r=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&r!=null?JSON.parse(this.decrypt(t,r)):!0}getSignedInUserTenant(t){const r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null&&n!=null)return JSON.parse(this.decrypt(r,n)).find(o=>o.tenantEmailDomain===t)}getSignedInUserTenantWithId(t){const r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null&&n!=null)return JSON.parse(this.decrypt(r,n)).find(o=>o.tenantId===t)}getForceRefreshedComponents(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),r=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(r&&t!=null){const n=this.decrypt(r,t);return n?JSON.parse(n):[]}return[]}saveForceRefreshedComponents(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(t),r)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveSignedInUserWithSession(t,r){if(t==null||r==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,r),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(t),r))}saveSignedInUserTenants(t,r){const n=r??window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(t),n)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(r=>window.localStorage.getItem(r)!=null).reduce((r,n)=>r&&n)}clearAll(){this.ALL_IDs.forEach(t=>window.localStorage.removeItem(t))}setTheme(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(t,r))}getTheme(){const t=window.localStorage.getItem(this.ZENI_THEME),r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null&&r!==null)return this.decrypt(t,r)}encrypt(t,r){return p7.AES.encrypt(t,r).toString()}decrypt(t,r){return p7.AES.decrypt(t,r).toString(p7.enc.Utf8)}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_THEME="ZENI_THEME";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS]}const la=new nWr,iWr=({children:e})=>{const t=Tbe("(prefers-color-scheme: dark)"),[r,n]=C.useState({dark:t});b.useEffect(()=>{const a=la.getTheme()==null?t:la.getTheme()==="dark";r.dark!==a&&n({dark:a})},[r,t]);const i=()=>{const a=!r.dark;la.setTheme(a?"dark":"light"),n({...r,dark:a})},o=r.dark?vur():yur();return Wt.jsx(uur,{dark:r.dark,webAppTheme:o,toggle:i,children:e})},oWr=["sandbox","production"],aWr=e=>z0(e,oWr),sWr=e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"sandbox";case"PROD":case"NEXT":return"production";default:return"sandbox"}},lWr=["development","staging","production"],cWr=e=>z0(e,lWr),dWr=e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";case"DEV":default:return"development"}},uWr=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],pWr=e=>z0(e,uWr),h1=pWr("DEV"),kR=()=>h1==="DEV"||h1==="QA"||h1==="PUNE"||h1==="SUNNYVALE"||h1==="DELHI"||h1==="MOHALI",vz="https://zeni-webapp-dev.uc.r.appspot.com",hWr="63d3a2406505a5737a2b4debdb513f20",NXr=aWr(sWr(h1)),mWr=cWr(dWr(h1));function fWr(e,t){return p7.AES.decrypt(e,t).toString(p7.enc.Utf8)}const gWr="ZENI-WEB-APP-",bye=.9,uo={sentryDsn:"",sentryTraceSamplingRate:1,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",featureClientSecretCockpit:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let vm,bz;function yWr(e){uo.sentryDsn=e.keys.SENTRY_DSN,uo.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):bye,uo.googleClientId=e.keys.GOOGLE_CLIENT_ID,uo.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,uo.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,uo.mixpanelToken=e.keys.MIXPANEL_TOKEN,uo.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,uo.pusherCluster=e.keys.PUSHER_CLUSTER,uo.quickbooksKey=e.keys.QUICKBOOK_TOKEN,uo.appUrl=e.keys.WEB_ENDPOINT,uo.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,uo.featureClientSecretCockpit=e.keys.STATSIG_CLIENT_SECRET_COCKPIT,uo.cardVaultId=e.keys.UNIT_VAULT_ID,uo.stripeKey=e.keys.STRIPE_KEY,uo.qboRedirectionUrl=e.keys.QBO_URL,uo.mixpanelUrl=e.keys.MIXPANEL_URL,uo.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,bz=e.externalEndPoints,vm=e.apiEndPoints,vWr()}function vWr(){try{const e=new Set;if(vm!=null){for(const t of Object.values(vm))if(typeof t=="string"&&t.startsWith("http"))try{e.add(new URL(t).origin)}catch{}}for(const t of e){const r=document.createElement("link");r.rel="preconnect",r.href=t,r.crossOrigin="anonymous",document.head.appendChild(r)}}catch{}}async function bWr(){const t=encodeURIComponent(JSON.stringify({environment:h1}));try{const r=await fetch(`${vz}/api/keys?query=${t}`);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){return console.error("Error fetching details:",r),null}}let cce=!1;function py(){cce||(gh.init(hWr,{api_host:bz.mixpanelBaseUrl,ignore_dnt:!0}),cce=!0)}class Mh{identify(t,r){if(py(),this.#r=t,t!=null&&r!=null&&(Mh.#t==null||mbe({userId:t,traits:r},Mh.#t)!==!0)){const{$email:n,...i}={...r};gh.identify(t),n&&n!=null&&gh.people.set_once({$email:n}),gh.people.set(i),Mh.#t={userId:t,traits:r},kR()&&console.log(`*** Called people set with userId ${t} traits ${JSON.stringify(r)} `)}}identifyUserAndCompany(t,r,n,i,o){throw Error("Use identify in the web-app!!")}track(t,r){if(py(),this.#r!=null){const n={distinct_id:this.#r,...r};gh.track(t,n)}else console.error("user is not identified :(, so can not fire event");kR()&&console.log(`*** firing ${t} with props ${JSON.stringify(r)}`)}alias(t,r){py(),gh.alias(t,r)}reset(){py(),gh.identify(void 0),this.#r=void 0,Mh.#t=void 0}static get analytics(){return this.#e}static#e=new Sn.Analytics(new Mh);static#t;#r}const F$=Mh.analytics,wWr=()=>{const e=cw(),t=C1(r=>r.companyState);if(e.pathname.includes("/management/parent/")){const r=e.pathname.split("/")[3],n=t.companiesById[r];if(n!=null)return`${n.companyInfo.name} ${de.getLocalizedStrings().cockpit.cockpitHeaderSubsidiaryText}`}if(e.pathname.includes("management/month-end-report/company/")){const r=e.pathname.split("/")[4],n=t.companiesById[r];if(n!=null)return n.companyInfo.name}},dce=e=>{switch(e){case"healthMonitor":return"health-monitor";case"taskManager":return"task-manager";default:return e}},zXr=e=>{switch(e){case"healthMonitor":return"health monitor";case"taskManager":return"task manager";default:return e}};function xWr(e,t){return{updateDownloadStateHandler:r=>{e(fbe(r))},onZeniLogoClick:()=>{t.themeState.toggle()},onLogOutClick:()=>{e(Rce()),e(Oce(!1)),la.clearAll();const r=t.locationHook.state?.origin??"/";t.navigate(r,{replace:!0})},onNewCustomerClick:()=>{t.navigate("/onboarding/new"),F$?.trackOnboardingNewCustomerStarted()},onThreadClick:(r,n,i)=>{const o=r.entityType.split(".");if(o.length===2){const a=Mse(o[0]);if(a!=null){const l=dce(a);t.navigate(`/${l}`),i(r,n)}else console.warn(`Invalid navigation target in thread: ${o[0]}`)}},onNotificationClick:(r,n,i)=>{const o=r.entityType.split(".");if(r.isGlobalComment&&o.length===2){const a=Mse(o[0]);if(a!=null){const l=dce(a);t.navigate(`/${l}`),i(r,n)}else console.warn(`Invalid navigation target in notification: ${o[0]}`)}}}}function CWr(e,t){const{signedInUser:r,cockpitHeader:n}=t,i=e.tenantState.currentTenantId,a=pw(e)?.companyName??"",l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:i??""};return{signedInUser:r,cockpitHeader:n,downloadState:e.companyViewState.downloadState,downloadParams:{currentTenantCompanyName:a,cockpitEndPoint:`${vz}/cockpitTabs`,authParams:l}}}const $Wr=cve(CWr,xWr)(iTr);function SWr(){const e=dur(),t=la.getSignedInUser(),r=_R(),n=cw(),i=wWr(),o=C1(d=>gbe(d)),a={tabsFileType:"excel",tabs:["management","subscription","portfolio","onboarding","healthMonitor"],filterByTabs:o.filterByTabs,timezone:ybe()},l=n.pathname.split("/")[1];return Wt.jsx($Wr,{locationHook:n,themeState:e,signedInUser:t,cockpitHeader:i,allTabsViews:o,defaultOptions:a,analytics:F$,currentTab:l,navigate:r})}const kWr=["/management/*","/subscription/*","/onboarding/*","/portfolio/*","/audit/*","/health-monitor/*","/task-manager/*"];function EWr({appContent:e}){const t=kWr.filter(r=>dve(r)).length===0;return Wt.jsxs(Wt.Fragment,{children:[t?null:Wt.jsx(SWr,{}),Wt.jsx(Wt.Fragment,{children:e})]})}const _Wr="cockpit",wye="init-enter";function TWr({location:e,visitedUrl:t}){const{pathname:r}=e;return b.useLayoutEffect(()=>{const n=t.get(r||wye);uce(n!==void 0?n:0)}),null}const AWr=b.memo(TWr,(e,t)=>{const{location:r,visitedUrl:n}=e,{location:i}=t,o=r.pathname||wye,a=LWr();return n.set(o,a),!((i.pathname!==r.pathname||i.search!==r.search)&&i.hash==="")}),uce=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),LWr=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},xye=e=>b.lazy(async()=>{const t=e.toString(),r=la.getForceRefreshedComponents(),n=new Set(r),i=n.has(t);try{const o=await e();return n.delete(t),la.saveForceRefreshedComponents(Array.from(n)),o}catch(o){throw i||(n.add(t),la.saveForceRefreshedComponents(Array.from(n)),location.reload()),o}}),DWr=xye(()=>bt(()=>import("./ScreenRoutes-CcDq1jZA.js"),__vite__mapDeps([245,5,1,6,17,8,246,16,7,2,14,4,9,11,18,19,20]))),MWr=xye(()=>bt(()=>import("./SignInScreen-CMNwX-LP.js"),__vite__mapDeps([247,17,1,6,8,5,246,16,18,19,20,7])));function PWr(){const e=b.useRef();e.current==null&&(e.current=new Map);const t=_R(),r=cw(),n=new URLSearchParams(r.search),i=n?.get("utm_source"),o=n?.get("utm_medium");return b.useEffect(()=>{const a="signin/auth";la.isSignedIn()===!1&&!r.pathname.includes(a)&&t(a,{replace:!0,state:{...r.state,message:"...",origin:r.pathname,queryParams:{utmSource:i,utmMedium:o}}})}),Wt.jsxs(RWr,{children:[Wt.jsx(AWr,{visitedUrl:e.current,location:r}),Wt.jsx(IWr,{})]})}const IWr=()=>{const e=la.isSignedIn(),t=la.getSignedInUser(),r=e&&AR(t),n=C1(d=>pw(d)),i={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:n.tenantId??""},o=C1(d=>vbe(d)),l=C1(d=>bbe(d)).map(d=>({companyId:d.companyId,tenantId:d.tenantId,companyName:d.name}));return Wt.jsx(yfr,{roomId:_Wr,authParams:i,users:o,companies:l,authUrlEndPoint:`${vm.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!1,commentingUsersUrlEndPoint:`${vm.tenantMicroServiceBaseUrl}/1.0/users/zeni-users`,autoConnect:r,withRoomProvider:!1,loggedInUser:t,withThreadsProvider:!0,filter:{application:"cockpit"},children:Wt.jsx(jWr,{})})},jWr=()=>Wt.jsx(b.Suspense,{fallback:Wt.jsx(OWr,{children:Wt.jsx(vr,{size:"Large",start:!0})}),children:Wt.jsxs(uve,{children:[Wt.jsx(G$,{path:"/",element:Wt.jsx(pve,{to:"management",replace:!0})}),Wt.jsx(G$,{path:"/signin/auth",element:Wt.jsx(MWr,{})}),Wt.jsx(G$,{path:"*",element:Wt.jsx(EWr,{appContent:Wt.jsx(DWr,{})})})]})}),RWr=Zt("div")``,OWr=Zt("div")`
|
|
29391
29391
|
display: flex;
|
|
29392
29392
|
flex: 1 1 auto;
|
|
29393
29393
|
flex-direction: row;
|
|
@@ -29398,4 +29398,4 @@ ${e}`,KAr=e=>b.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
29398
29398
|
background-color: ${e=>e.theme.colors.background};
|
|
29399
29399
|
`;function FWr(){de.updateAppLocaleID("en"),HWr();const e=VWr(),[t,r]=b.useState(!1),n=b.useCallback(o=>{o.data?.type==="UPDATE_READY"?r(!0):o.data?.type==="HIDE_UPDATE_POPUP"&&r(!1)},[]);b.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",n),navigator.serviceWorker.addEventListener("controllerchange",()=>{r(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",n)}),[n]);const i=()=>{r(!1),window.location.reload()};return Wt.jsx(iWr,{children:Wt.jsx(hve,{store:e,children:Wt.jsx(gmt,{children:Wt.jsxs(IDt,{children:[t?Wt.jsx(nRt,{onPrimaryClick:i}):null,Wt.jsx(zWr,{})]})})})})}const NWr=()=>{const e=la.getSignedInUser(),t=C1($=>pw($)),r=C1($=>$be($,t.companyId)),n=cw(),i=_R(),o=mve(),a=t?.excludedResources?.fetchState=="Completed"?t.excludedResources.resources:[];b.useEffect(()=>()=>{o(Nz())},[]);const l=C1($=>Sbe($)),d=t?.externalConnections?.accounting[0]?.connectionName,u=()=>{o(Nz())},p=b.useMemo(()=>kbe(t.userRole),[t.userRole]),h=C1($=>$.companyViewState.zeniUsers),f=b.useMemo(()=>{const $=h.fetchState==="Error"&&Ebe(h.error);return $&&console.warn("Auto-logout triggered due to invalid session"),$},[h.fetchState,h.error]),g=b.useMemo(()=>{const $=h.fetchState==="Error"&&_be(h.error)===!0;return $&&console.warn("Page is not accessible, show 404"),$},[h.fetchState,h.error]),y=b.useRef(!1);b.useEffect(()=>(f&&!y.current&&(y.current=!0,v()),()=>{y.current=!1}),[f]),b.useEffect(()=>{g&&window.open("/page-not-found","_self")},[g]);const v=b.useCallback(()=>{o(Rce()),o(Oce(!1)),la.clearAll();const $=n.state?.origin??"/";i($,{replace:!0})},[]),w=b.useMemo(()=>la.getSignedInUser(),[]),x=b.useMemo(()=>({userId:w?.userId??"",sessionId:w?.zeniSessionId??"",tenantId:t.tenantId??""}),[w,t.tenantId]);return Wt.jsx(GDt,{globalInfo:{loggedInUser:e,loggedInUserRole:t?.userRole,excludedResources:a,loggedInUserRoleMap:p,currentTenant:t,connectionName:d,controllersList:r},children:Wt.jsx(FDt,{toolkit:{analytics:F$,sentry:Iye,authParams:x},children:Wt.jsxs(BLt,{endPoint:{url:vz},children:[Wt.jsx(m8r,{isOnDashboard:!1,showSnackbar:l.isSnackbarOpen,snackbar:{message:l.message,messageType:l.messageType,onRemoveSnackbar:u,showStatusIcon:l.showStatusIcon}}),Wt.jsx(PWr,{})]})})})},zWr=()=>{const e=la.isSignedIn(),r=C1(n=>pw(n)).companyId;return Wt.jsx(BIt,{isUserSignedIn:e,featureGateCustomFields:{companyId:r},zeniFeatureConfig:{currentFeatureEnv:mWr,featureClientSecret:uo.featureClientSecretCockpit,providerEndPoint:bz.statsigBaseUrl},children:Wt.jsx(NWr,{})})},BWr=Mye(FWr);function HWr(){console.log("Initialize any 3rd party libs!")}let bP=null;function VWr(){return bP===null&&(bP=UWr(),wbe().catch(e=>{console.error("Failed to load feature epics:",e),Pye(e,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
|
|
29400
29400
|
|
|
29401
|
-
Please refresh the page to try again.`)})),bP}function UWr(){console.warn(`initializing epic state with url ${JSON.stringify(vm)}`);const e=la.getSignedInUser(),t=xbe(vm,e?.userId,e?.zeniSessionId,void 0,kR()),r=Cbe();return r.userId!=null&&F$.identify(r.userId,{tenant_id:r.tenantId}),t}const WWr=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),YWr="QA",GWr="https://zeni-webapp-qa.uc.r.appspot.com",pce=`/service-worker.js?v=${Date.now()}&env=${YWr}&endpoint=${encodeURIComponent(GWr)}`;function qWr(e){if("serviceWorker"in navigator){if(new URL("https://qa.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{WWr?ZWr(pce):Cye(pce)})}}function Cye(e,t){navigator.serviceWorker.register(e).then(r=>{r.onupdatefound=()=>{const n=r.installing;n!=null&&(n.onstatechange=()=>{n.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),r.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},r.waiting&&r.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),r.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(r=>{console.error("Error during service worker registration:",r)})}function ZWr(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(r=>{const n=r.headers.get("content-type");r.status===404||n!=null&&!n.includes("javascript")?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>window.location.reload())}):Cye(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const KWr=la.getSignedInUser(),QWr=KWr?.zeniSessionId;async function XWr(){try{const e=await bWr(),t=fWr(e,gWr+h1);yWr(JSON.parse(t)),Pbe.createRoot(document.getElementById("root")).render(Wt.jsx(C.StrictMode,{children:Wt.jsx(fve,{basename:"/cockpit",children:Wt.jsx(BWr,{})})})),JWr()}catch(e){console.error("Error initializing app:",e)}}function JWr(){const e=()=>{jye({dsn:uo.sentryDsn,integrations:[Rye(),Oye({maskAllText:!0,blockAllMedia:!0})],tracesSampleRate:uo.sentryTraceSamplingRate??bye,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction(t){return t.breadcrumbs&&(t.breadcrumbs=t.breadcrumbs.filter(r=>r.category!=="console"?!0:(r.message??"").toLowerCase().includes("called people set")||Array.isArray(r.data?.arguments)&&r.data.arguments.some(i=>typeof i=="string"&&i.toLowerCase().includes("called people set"))?!1:(Array.isArray(r.data?.arguments)&&(r.data.arguments=r.data.arguments.map(i=>{if(typeof i=="string"&&i.includes("user_roles"))try{const o=i.match(/\{.*\}/s);if(o!==null){const a=JSON.parse(o[0]);if(a.user_roles!=null)return delete a.user_roles,i.replace(o[0],JSON.stringify(a))}}catch{}return i})),!0))),t}}),Fye("session-id",QWr)};typeof requestIdleCallback=="function"?requestIdleCallback(e):setTimeout(e,0)}XWr();qWr();export{LXr as $,SXr as A,l$ as B,dXr as C,NXr as D,Qm as E,de as F,MKr as G,Sn as H,uXr as I,pXr as J,PXr as K,Ar as L,ri as M,d$ as N,tGr as O,MXr as P,DXr as Q,Ot as R,hXr as S,mXr as T,FXr as U,s as V,EXr as W,OXr as X,jXr as Y,IXr as Z,RXr as _,ll as a,J0 as a$,NKr as a0,zKr as a1,AXr as a2,TXr as a3,kXr as a4,xye as a5,cXr as a6,dur as a7,cl as a8,Ti as a9,Pqr as aA,In as aB,TYr as aC,kYr as aD,AYr as aE,EYr as aF,_Yr as aG,qa as aH,FKr as aI,OKr as aJ,PKr as aK,tr as aL,k6 as aM,ke as aN,wn as aO,Ma as aP,IKr as aQ,Wi as aR,_d as aS,ft as aT,yt as aU,jKr as aV,jc as aW,Ic as aX,Ig as aY,ki as aZ,ua as a_,wi as aa,$Yr as ab,_i as ac,Rg as ad,W9 as ae,X1 as af,n$t as ag,it as ah,k$ as ai,SYr as aj,CYr as ak,Ze as al,$t as am,fi as an,qr as ao,zd as ap,kn as aq,u2 as ar,see as as,li as at,Ja as au,Oy as av,da as aw,_Mt as ax,s6 as ay,LYr as az,K as b,uN as b$,Rc as b0,RKr as b1,Sm as b2,s7r as b3,O1 as b4,Wh as b5,Hr as b6,gN as b7,Nn as b8,hn as b9,j1 as bA,_Kr as bB,Ow as bC,yN as bD,dn as bE,Li as bF,ht as bG,FYr as bH,es as bI,qGr as bJ,G1 as bK,ZGr as bL,Vg as bM,fo as bN,$Et as bO,F0 as bP,c5e as bQ,kt as bR,TUt as bS,Xa as bT,vYr as bU,att as bV,D6 as bW,Iyr as bX,jyr as bY,Ho as bZ,Z1 as b_,tc as ba,Fxt as bb,Akt as bc,gvt as bd,Pd as be,nc as bf,m2 as bg,kN as bh,YQr as bi,JQr as bj,ZQr as bk,qQr as bl,uie as bm,Wl as bn,EN as bo,hd as bp,bYr as bq,WCt as br,K1 as bs,Sp as bt,A6 as bu,R1 as bv,b5e as bw,Xl as bx,xDt as by,_Gr as bz,R as c,q1 as c$,lc as c0,_6 as c1,pDt as c2,j9e as c3,f6e as c4,jN as c5,l5e as c6,Hb as c7,ON as c8,FN as c9,Fd as cA,w6 as cB,Qa as cC,M7 as cD,VYr as cE,ei as cF,WLt as cG,wa as cH,F7 as cI,WUt as cJ,I9e as cK,fm as cL,b7e as cM,cGr as cN,m$r as cO,_t as cP,UYr as cQ,aGr as cR,J9e as cS,nz as cT,h2 as cU,en as cV,ts as cW,ro as cX,axt as cY,m5e as cZ,TKt as c_,j6 as ca,ZDt as cb,pZr as cc,B6e as cd,H6e as ce,Yw as cf,hr as cg,g8r as ch,CN as ci,V1 as cj,CKr as ck,wne as cl,wYr as cm,B1 as cn,R0 as co,s2 as cp,Bwr as cq,Y1 as cr,mZr as cs,Doe as ct,Ob as cu,mlr as cv,el as cw,gb as cx,aNt as cy,Ls as cz,wt as d,Kqr as d$,DJ as d0,Hg as d1,o5e as d2,La as d3,L$ as d4,PYr as d5,MYr as d6,DYr as d7,_6e as d8,_$ as d9,RZr as dA,xN as dB,rqt as dC,lte as dD,cte as dE,oqt as dF,aqt as dG,V4e as dH,Thr as dI,X9e as dJ,WOt as dK,zg as dL,B1r as dM,_Ft as dN,AFt as dO,NQr as dP,Y3r as dQ,UZr as dR,jqr as dS,Qqr as dT,Wqr as dU,Uqr as dV,qqr as dW,Gqr as dX,Yqr as dY,Hqr as dZ,Bqr as d_,tz as da,jYr as db,IYr as dc,RYr as dd,EKr as de,OYr as df,mi as dg,NYr as dh,Not as di,zYr as dj,a$r as dk,BYr as dl,fdr as dm,C$ as dn,Ng as dp,Ul as dq,V3 as dr,dte as ds,nqt as dt,iqt as du,vN as dv,FZr as dw,NZr as dx,zZr as dy,OZr as dz,F$ as e,TZr as e$,Zqr as e0,zqr as e1,Nqr as e2,wee as e3,Vqr as e4,nZr as e5,Fqr as e6,Oqr as e7,rZr as e8,Rqr as e9,mN as eA,_3r as eB,T3r as eC,E3r as eD,Bg as eE,BKr as eF,Lp as eG,Q1 as eH,Da as eI,Q9e as eJ,D$ as eK,km as eL,yNt as eM,vNt as eN,cIt as eO,ast as eP,Mf as eQ,qZr as eR,ULt as eS,WYr as eT,GZr as eU,P6 as eV,M6 as eW,R7e as eX,Wm as eY,sWe as eZ,qZe as e_,tZr as ea,iZr as eb,HYr as ec,oZr as ed,FQr as ee,o9e as ef,c6 as eg,Jqr as eh,Eh as ei,I6 as ej,xmr as ek,DFt as el,LFt as em,TFt as en,It as eo,P7 as ep,pm as eq,wmr as er,LL as es,NN as et,vFt as eu,aZr as ev,mb as ew,Br as ex,Utt as ey,$6 as ez,uo as f,cZr as f$,Eir as f0,R7 as f1,KN as f2,kir as f3,tg as f4,Ntr as f5,aHt as f6,qw as f7,xir as f8,oHt as f9,ag as fA,og as fB,O0 as fC,p1 as fD,R5r as fE,F5e as fF,wjt as fG,yjt as fH,Q7e as fI,f4r as fJ,I4r as fK,T6 as fL,x6 as fM,$N as fN,xGr as fO,uZr as fP,Mqr as fQ,YZr as fR,sZr as fS,dZr as fT,lZr as fU,hZr as fV,y$r as fW,wOt as fX,P$ as fY,Nd as fZ,Zl as f_,iHt as fa,zee as fb,FEe as fc,y$ as fd,$a as fe,VZr as ff,xa as fg,Ca as fh,Tir as fi,_ir as fj,L6 as fk,S7e as fl,b6e as fm,Iqr as fn,um as fo,Ogr as fp,Jj as fq,I5r as fr,GOt as fs,Ngr as ft,xb as fu,jZr as fv,cN as fw,t5r as fx,j5r as fy,mm as fz,m$ as g,L9e as g$,lNt as g0,vjt as g1,a_r as g2,qj as g3,t7e as g4,X5e as g5,Ugr as g6,Cb as g7,q7e as g8,sGr as g9,$7e as gA,svt as gB,iRt as gC,eZr as gD,rg as gE,wGr as gF,p$ as gG,k6e as gH,SJ as gI,kb as gJ,im as gK,kmr as gL,x$ as gM,K$r as gN,rGr as gO,xue as gP,sl as gQ,F7e as gR,PZr as gS,xJt as gT,QN as gU,XN as gV,bN as gW,c$ as gX,vt as gY,E6 as gZ,Kyr as g_,LZr as ga,ofe as gb,b6 as gc,j7e as gd,G7e as ge,ci as gf,G5e as gg,p2 as gh,Ir as gi,rHt as gj,MBt as gk,jar as gl,j7 as gm,i7 as gn,Qrr as go,Fee as gp,Ap as gq,jt as gr,JN as gs,E$ as gt,eg as gu,Rtr as gv,I7 as gw,GHt as gx,IZr as gy,dVt as gz,_Xr as h,rR as h$,f9e as h0,V8r as h1,q8r as h2,ryr as h3,YYr as h4,Z8r as h5,G8r as h6,n7 as h7,Mj as h8,gWt as h9,HZr as hA,sZt as hB,U4r as hC,V4r as hD,e5e as hE,x$r as hF,B_ as hG,bGr as hH,uHt as hI,hN as hJ,kF as hK,SF as hL,Z4 as hM,YKr as hN,WKr as hO,GKr as hP,zne as hQ,r9e as hR,VKr as hS,UKr as hT,t9e as hU,M7e as hV,rlr as hW,lGr as hX,GLt as hY,d2 as hZ,fXr as h_,ng as ha,v7e as hb,g7e as hc,y7e as hd,IZt as he,QZt as hf,iGr as hg,oGr as hh,UN as hi,WN as hj,dGr as hk,OEt as hl,f7e as hm,up as hn,TYt as ho,DZr as hp,MZr as hq,C7e as hr,jd as hs,BZr as ht,Uyr as hu,q3r as hv,S$ as hw,vZr as hx,ep as hy,E6e as hz,zXr as i,H4r as i$,$Kr as i0,kKr as i1,oRt as i2,SKr as i3,XKr as i4,rQr as i5,nQr as i6,eQr as i7,tQr as i8,JKr as i9,Uhr as iA,_Qr as iB,Vb as iC,LKr as iD,SQr as iE,uQr as iF,nGr as iG,uKr as iH,J4e as iI,kie as iJ,wDt as iK,gXr as iL,yXr as iM,bXr as iN,wXr as iO,$oe as iP,kxt as iQ,X6e as iR,U2r as iS,Tyr as iT,rOt as iU,aXr as iV,R6e as iW,qwr as iX,Gwr as iY,Ayr as iZ,oXr as i_,iQr as ia,zor as ib,vGr as ic,mjt as id,OQr as ie,VYt as ig,yGr as ih,fkr as ii,mQr as ij,kQr as ik,hQr as il,RQr as im,dQr as io,pQr as ip,Vpr as iq,wQr as ir,Qne as is,EQr as it,Cmr as iu,dmr as iv,sQt as iw,DQr as ix,u9e as iy,c9e as iz,dce as j,gGr as j$,WZr as j0,pOt as j1,rXr as j2,pGr as j3,tKr as j4,iXr as j5,uGr as j6,hGr as j7,nXr as j8,w$ as j9,H9e as jA,B9e as jB,z9e as jC,N9e as jD,O9e as jE,Xbr as jF,F9e as jG,Og as jH,pN as jI,GYr as jJ,$Xr as jK,aCr as jL,Pxr as jM,oCr as jN,Tu as jO,lg as jP,sCr as jQ,sz as jR,lz as jS,dh as jT,Uwr as jU,Z4e as jV,mGr as jW,gjt as jX,Rvr as jY,Dyr as jZ,Myr as j_,Rbt as ja,Qlr as jb,FLt as jc,bZr as jd,mDt as je,kGr as jf,EGr as jg,Nyr as jh,vXr as ji,DIt as jj,scr as jk,vDt as jl,sc as jm,YIt as jn,rKr as jo,pHt as jp,xd as jq,PYt as jr,Jbr as js,Qbr as jt,fN as ju,qy as jv,U9e as jw,U7 as jx,V9e as jy,cg as jz,vr as k,SZr as k$,f8r as k0,XCt as k1,fGr as k2,hDt as k3,qYr as k4,s_r as k5,yZr as k6,KQr as k7,j5e as k8,Pyr as k9,l8e as kA,s5e as kB,i8e as kC,g8e as kD,_se as kE,AN as kF,h8e as kG,Ikr as kH,H4e as kI,z5 as kJ,DKr as kK,z7 as kL,Lmr as kM,LKt as kN,jj as kO,AZr as kP,RBt as kQ,pBt as kR,B7e as kS,fJt as kT,Wwr as kU,sXr as kV,CZr as kW,CXr as kX,gZr as kY,wZr as kZ,$Zr as k_,SGr as ka,mmt as kb,$Gr as kc,CGr as kd,Lyr as ke,PIt as kf,Xqr as kg,n8e as kh,d8e as ki,T1 as kj,R$ as kk,dg as kl,u8e as km,Jb as kn,c8e as ko,qLt as kp,ev as kq,J6e as kr,s8e as ks,Qkr as kt,a8e as ku,p8e as kv,mR as kw,z6 as kx,e_r as ky,Y7 as kz,Yi as l,xZr as l0,_Zr as l1,EZr as l2,kZr as l3,PKt as l4,xXr as l5,fZr as l6,Ywr as l7,vfr as m,Ut as n,c as o,M as p,Ye as q,HKr as r,Fg as s,T5e as t,Bd as u,GQr as v,k5e as w,lXr as x,G as y,la as z};
|
|
29401
|
+
Please refresh the page to try again.`)})),bP}function UWr(){console.warn(`initializing epic state with url ${JSON.stringify(vm)}`);const e=la.getSignedInUser(),t=xbe(vm,e?.userId,e?.zeniSessionId,void 0,kR()),r=Cbe();return r.userId!=null&&F$.identify(r.userId,{tenant_id:r.tenantId}),t}const WWr=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),YWr="DEV",GWr="https://zeni-webapp-dev.uc.r.appspot.com",pce=`/service-worker.js?v=${Date.now()}&env=${YWr}&endpoint=${encodeURIComponent(GWr)}`;function qWr(e){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{WWr?ZWr(pce):Cye(pce)})}}function Cye(e,t){navigator.serviceWorker.register(e).then(r=>{r.onupdatefound=()=>{const n=r.installing;n!=null&&(n.onstatechange=()=>{n.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),r.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},r.waiting&&r.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),r.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(r=>{console.error("Error during service worker registration:",r)})}function ZWr(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(r=>{const n=r.headers.get("content-type");r.status===404||n!=null&&!n.includes("javascript")?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>window.location.reload())}):Cye(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const KWr=la.getSignedInUser(),QWr=KWr?.zeniSessionId;async function XWr(){try{const e=await bWr(),t=fWr(e,gWr+h1);yWr(JSON.parse(t)),Pbe.createRoot(document.getElementById("root")).render(Wt.jsx(C.StrictMode,{children:Wt.jsx(fve,{basename:"/cockpit",children:Wt.jsx(BWr,{})})})),JWr()}catch(e){console.error("Error initializing app:",e)}}function JWr(){const e=()=>{jye({dsn:uo.sentryDsn,integrations:[Rye(),Oye({maskAllText:!0,blockAllMedia:!0})],tracesSampleRate:uo.sentryTraceSamplingRate??bye,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction(t){return t.breadcrumbs&&(t.breadcrumbs=t.breadcrumbs.filter(r=>r.category!=="console"?!0:(r.message??"").toLowerCase().includes("called people set")||Array.isArray(r.data?.arguments)&&r.data.arguments.some(i=>typeof i=="string"&&i.toLowerCase().includes("called people set"))?!1:(Array.isArray(r.data?.arguments)&&(r.data.arguments=r.data.arguments.map(i=>{if(typeof i=="string"&&i.includes("user_roles"))try{const o=i.match(/\{.*\}/s);if(o!==null){const a=JSON.parse(o[0]);if(a.user_roles!=null)return delete a.user_roles,i.replace(o[0],JSON.stringify(a))}}catch{}return i})),!0))),t}}),Fye("session-id",QWr)};typeof requestIdleCallback=="function"?requestIdleCallback(e):setTimeout(e,0)}XWr();qWr();export{LXr as $,SXr as A,l$ as B,dXr as C,NXr as D,Qm as E,de as F,MKr as G,Sn as H,uXr as I,pXr as J,PXr as K,Ar as L,ri as M,d$ as N,tGr as O,MXr as P,DXr as Q,Ot as R,hXr as S,mXr as T,FXr as U,s as V,EXr as W,OXr as X,jXr as Y,IXr as Z,RXr as _,ll as a,J0 as a$,NKr as a0,zKr as a1,AXr as a2,TXr as a3,kXr as a4,xye as a5,cXr as a6,dur as a7,cl as a8,Ti as a9,Pqr as aA,In as aB,TYr as aC,kYr as aD,AYr as aE,EYr as aF,_Yr as aG,qa as aH,FKr as aI,OKr as aJ,PKr as aK,tr as aL,k6 as aM,ke as aN,wn as aO,Ma as aP,IKr as aQ,Wi as aR,_d as aS,ft as aT,yt as aU,jKr as aV,jc as aW,Ic as aX,Ig as aY,ki as aZ,ua as a_,wi as aa,$Yr as ab,_i as ac,Rg as ad,W9 as ae,X1 as af,k$ as ag,n$t as ah,it as ai,SYr as aj,CYr as ak,Ze as al,$t as am,fi as an,qr as ao,zd as ap,kn as aq,u2 as ar,see as as,li as at,Ja as au,Oy as av,da as aw,_Mt as ax,s6 as ay,LYr as az,K as b,uN as b$,Rc as b0,RKr as b1,Sm as b2,s7r as b3,O1 as b4,Wh as b5,Hr as b6,gN as b7,Nn as b8,hn as b9,j1 as bA,_Kr as bB,Ow as bC,yN as bD,dn as bE,Li as bF,ht as bG,FYr as bH,es as bI,qGr as bJ,G1 as bK,ZGr as bL,Vg as bM,fo as bN,$Et as bO,F0 as bP,c5e as bQ,kt as bR,TUt as bS,Xa as bT,vYr as bU,att as bV,D6 as bW,Iyr as bX,jyr as bY,Ho as bZ,Z1 as b_,tc as ba,Fxt as bb,Akt as bc,gvt as bd,Pd as be,nc as bf,m2 as bg,kN as bh,YQr as bi,JQr as bj,ZQr as bk,qQr as bl,uie as bm,Wl as bn,EN as bo,hd as bp,bYr as bq,WCt as br,K1 as bs,Sp as bt,A6 as bu,R1 as bv,b5e as bw,Xl as bx,xDt as by,_Gr as bz,R as c,q1 as c$,lc as c0,_6 as c1,pDt as c2,j9e as c3,f6e as c4,jN as c5,l5e as c6,Hb as c7,ON as c8,FN as c9,Fd as cA,w6 as cB,Qa as cC,M7 as cD,VYr as cE,ei as cF,WLt as cG,wa as cH,F7 as cI,WUt as cJ,I9e as cK,fm as cL,b7e as cM,cGr as cN,m$r as cO,_t as cP,UYr as cQ,aGr as cR,J9e as cS,nz as cT,h2 as cU,en as cV,ts as cW,ro as cX,axt as cY,m5e as cZ,TKt as c_,j6 as ca,ZDt as cb,pZr as cc,B6e as cd,H6e as ce,Yw as cf,hr as cg,g8r as ch,CN as ci,V1 as cj,CKr as ck,wne as cl,wYr as cm,B1 as cn,R0 as co,s2 as cp,Bwr as cq,Y1 as cr,mZr as cs,Doe as ct,Ob as cu,mlr as cv,el as cw,gb as cx,aNt as cy,Ls as cz,wt as d,Kqr as d$,DJ as d0,Hg as d1,o5e as d2,La as d3,L$ as d4,PYr as d5,MYr as d6,DYr as d7,_6e as d8,_$ as d9,RZr as dA,xN as dB,rqt as dC,lte as dD,cte as dE,oqt as dF,aqt as dG,V4e as dH,Thr as dI,X9e as dJ,WOt as dK,zg as dL,B1r as dM,_Ft as dN,AFt as dO,NQr as dP,Y3r as dQ,UZr as dR,jqr as dS,Qqr as dT,Wqr as dU,Uqr as dV,qqr as dW,Gqr as dX,Yqr as dY,Hqr as dZ,Bqr as d_,tz as da,jYr as db,IYr as dc,RYr as dd,EKr as de,OYr as df,mi as dg,NYr as dh,Not as di,zYr as dj,a$r as dk,BYr as dl,fdr as dm,C$ as dn,Ng as dp,Ul as dq,V3 as dr,dte as ds,nqt as dt,iqt as du,vN as dv,FZr as dw,NZr as dx,zZr as dy,OZr as dz,F$ as e,TZr as e$,Zqr as e0,zqr as e1,Nqr as e2,wee as e3,Vqr as e4,nZr as e5,Fqr as e6,Oqr as e7,rZr as e8,Rqr as e9,mN as eA,_3r as eB,T3r as eC,E3r as eD,Bg as eE,BKr as eF,Lp as eG,Q1 as eH,Da as eI,Q9e as eJ,D$ as eK,km as eL,yNt as eM,vNt as eN,cIt as eO,ast as eP,Mf as eQ,qZr as eR,ULt as eS,WYr as eT,GZr as eU,P6 as eV,M6 as eW,R7e as eX,Wm as eY,sWe as eZ,qZe as e_,tZr as ea,iZr as eb,HYr as ec,oZr as ed,FQr as ee,o9e as ef,c6 as eg,Jqr as eh,Eh as ei,I6 as ej,xmr as ek,DFt as el,LFt as em,TFt as en,It as eo,P7 as ep,pm as eq,wmr as er,LL as es,NN as et,vFt as eu,aZr as ev,mb as ew,Br as ex,Utt as ey,$6 as ez,uo as f,cZr as f$,Eir as f0,R7 as f1,KN as f2,kir as f3,tg as f4,Ntr as f5,aHt as f6,qw as f7,xir as f8,oHt as f9,ag as fA,og as fB,O0 as fC,p1 as fD,R5r as fE,F5e as fF,wjt as fG,yjt as fH,Q7e as fI,f4r as fJ,I4r as fK,T6 as fL,x6 as fM,$N as fN,xGr as fO,uZr as fP,Mqr as fQ,YZr as fR,sZr as fS,dZr as fT,lZr as fU,hZr as fV,y$r as fW,wOt as fX,P$ as fY,Nd as fZ,Zl as f_,iHt as fa,zee as fb,FEe as fc,y$ as fd,$a as fe,VZr as ff,xa as fg,Ca as fh,Tir as fi,_ir as fj,L6 as fk,S7e as fl,b6e as fm,Iqr as fn,um as fo,Ogr as fp,Jj as fq,I5r as fr,GOt as fs,Ngr as ft,xb as fu,jZr as fv,cN as fw,t5r as fx,j5r as fy,mm as fz,m$ as g,L9e as g$,lNt as g0,vjt as g1,a_r as g2,qj as g3,t7e as g4,X5e as g5,Ugr as g6,Cb as g7,q7e as g8,sGr as g9,$7e as gA,svt as gB,iRt as gC,eZr as gD,rg as gE,wGr as gF,p$ as gG,k6e as gH,SJ as gI,kb as gJ,im as gK,kmr as gL,x$ as gM,K$r as gN,rGr as gO,xue as gP,sl as gQ,F7e as gR,PZr as gS,xJt as gT,QN as gU,XN as gV,bN as gW,c$ as gX,vt as gY,E6 as gZ,Kyr as g_,LZr as ga,ofe as gb,b6 as gc,j7e as gd,G7e as ge,ci as gf,G5e as gg,p2 as gh,Ir as gi,rHt as gj,MBt as gk,jar as gl,j7 as gm,i7 as gn,Qrr as go,Fee as gp,Ap as gq,jt as gr,JN as gs,E$ as gt,eg as gu,Rtr as gv,I7 as gw,GHt as gx,IZr as gy,dVt as gz,_Xr as h,rR as h$,f9e as h0,V8r as h1,q8r as h2,ryr as h3,YYr as h4,Z8r as h5,G8r as h6,n7 as h7,Mj as h8,gWt as h9,HZr as hA,sZt as hB,U4r as hC,V4r as hD,e5e as hE,x$r as hF,B_ as hG,bGr as hH,uHt as hI,hN as hJ,kF as hK,SF as hL,Z4 as hM,YKr as hN,WKr as hO,GKr as hP,zne as hQ,r9e as hR,VKr as hS,UKr as hT,t9e as hU,M7e as hV,rlr as hW,lGr as hX,GLt as hY,d2 as hZ,fXr as h_,ng as ha,v7e as hb,g7e as hc,y7e as hd,IZt as he,QZt as hf,iGr as hg,oGr as hh,UN as hi,WN as hj,dGr as hk,OEt as hl,f7e as hm,up as hn,TYt as ho,DZr as hp,MZr as hq,C7e as hr,jd as hs,BZr as ht,Uyr as hu,q3r as hv,S$ as hw,vZr as hx,ep as hy,E6e as hz,zXr as i,H4r as i$,$Kr as i0,kKr as i1,oRt as i2,SKr as i3,XKr as i4,rQr as i5,nQr as i6,eQr as i7,tQr as i8,JKr as i9,Uhr as iA,_Qr as iB,Vb as iC,LKr as iD,SQr as iE,uQr as iF,nGr as iG,uKr as iH,J4e as iI,kie as iJ,wDt as iK,gXr as iL,yXr as iM,bXr as iN,wXr as iO,$oe as iP,kxt as iQ,X6e as iR,U2r as iS,Tyr as iT,rOt as iU,aXr as iV,R6e as iW,qwr as iX,Gwr as iY,Ayr as iZ,oXr as i_,iQr as ia,zor as ib,vGr as ic,mjt as id,OQr as ie,VYt as ig,yGr as ih,fkr as ii,mQr as ij,kQr as ik,hQr as il,RQr as im,dQr as io,pQr as ip,Vpr as iq,wQr as ir,Qne as is,EQr as it,Cmr as iu,dmr as iv,sQt as iw,DQr as ix,u9e as iy,c9e as iz,dce as j,gGr as j$,WZr as j0,pOt as j1,rXr as j2,pGr as j3,tKr as j4,iXr as j5,uGr as j6,hGr as j7,nXr as j8,w$ as j9,H9e as jA,B9e as jB,z9e as jC,N9e as jD,O9e as jE,Xbr as jF,F9e as jG,Og as jH,pN as jI,GYr as jJ,$Xr as jK,aCr as jL,Pxr as jM,oCr as jN,Tu as jO,lg as jP,sCr as jQ,sz as jR,lz as jS,dh as jT,Uwr as jU,Z4e as jV,mGr as jW,gjt as jX,Rvr as jY,Dyr as jZ,Myr as j_,Rbt as ja,Qlr as jb,FLt as jc,bZr as jd,mDt as je,kGr as jf,EGr as jg,Nyr as jh,vXr as ji,DIt as jj,scr as jk,vDt as jl,sc as jm,YIt as jn,rKr as jo,pHt as jp,xd as jq,PYt as jr,Jbr as js,Qbr as jt,fN as ju,qy as jv,U9e as jw,U7 as jx,V9e as jy,cg as jz,vr as k,SZr as k$,f8r as k0,XCt as k1,fGr as k2,hDt as k3,qYr as k4,s_r as k5,yZr as k6,KQr as k7,j5e as k8,Pyr as k9,l8e as kA,s5e as kB,i8e as kC,g8e as kD,_se as kE,AN as kF,h8e as kG,Ikr as kH,H4e as kI,z5 as kJ,DKr as kK,z7 as kL,Lmr as kM,LKt as kN,jj as kO,AZr as kP,RBt as kQ,pBt as kR,B7e as kS,fJt as kT,Wwr as kU,sXr as kV,CZr as kW,CXr as kX,gZr as kY,wZr as kZ,$Zr as k_,SGr as ka,mmt as kb,$Gr as kc,CGr as kd,Lyr as ke,PIt as kf,Xqr as kg,n8e as kh,d8e as ki,T1 as kj,R$ as kk,dg as kl,u8e as km,Jb as kn,c8e as ko,qLt as kp,ev as kq,J6e as kr,s8e as ks,Qkr as kt,a8e as ku,p8e as kv,mR as kw,z6 as kx,e_r as ky,Y7 as kz,Yi as l,xZr as l0,_Zr as l1,EZr as l2,kZr as l3,PKt as l4,xXr as l5,fZr as l6,Ywr as l7,vfr as m,Ut as n,c as o,M as p,Ye as q,HKr as r,Fg as s,T5e as t,Bd as u,GQr as v,k5e as w,lXr as x,G as y,la as z};
|