@zeniai/web-cockpit-ui 1.15.68-prod → 2.0.0-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/Preview-C3kztGrG.js +1 -0
- package/dist/assets/ScreenRoutes-5hC3wQD-.js +179 -0
- package/dist/assets/SignInScreen-Bw3kDJOY.js +1 -0
- package/dist/assets/{analytics-D0xbCiOA.js → analytics-Ci62SVC6.js} +15 -15
- package/dist/assets/analyticsHelper-DvZ4fRLz.js +1 -0
- package/dist/assets/{core-VVne9A9m.js → core-CrJ0HRkP.js} +2 -2
- package/dist/assets/{dash.all.min-CZdKQs3q.js → dash.all.min-BC3O3eK3.js} +1 -1
- package/dist/assets/{empty-BxIsRmiL.js → empty-DCdjTxMk.js} +1 -1
- package/dist/assets/{index-CW-pqTwR.js → empty-DewRN75u.js} +1 -1
- package/dist/assets/epic-ButtTfPO.js +2 -0
- package/dist/assets/{index-D0xGm0tM.js → index-BHVDlT_9.js} +1 -1
- package/dist/assets/{index-0sfOIAIW.js → index-BIzFhK6B.js} +1 -1
- package/dist/assets/index-BnSSVzJm.js +1 -0
- package/dist/assets/index-C1011MmK.js +2 -0
- package/dist/assets/index-CS2xkLsB.js +1 -0
- package/dist/assets/index-DrEiJ4Wx.js +1 -0
- package/dist/assets/index-Obh2uEoj.js +75311 -0
- package/dist/assets/{lexical-0vG0lfLn.js → lexical-Y1MbDrft.js} +1 -1
- package/dist/assets/{liveblocks-abv8TgYe.js → liveblocks-CH5Ytl_r.js} +1 -1
- package/dist/assets/{lottie-DehW2chz.js → lottie-jJKhsKLZ.js} +2 -2
- package/dist/assets/{mui-DOS4CfBc.js → mui-DzLLS9Rs.js} +2 -2
- package/dist/assets/{react-C3bwNlEv.js → react-9Kj1B1wt.js} +2 -2
- package/dist/assets/{react-0muarBdd.js → react-BLe964tg.js} +3 -3
- package/dist/assets/{react-DGIuy5RW.js → react-CNU9DWBw.js} +1 -1
- package/dist/assets/{react-DGupjeTm.js → react-C_qk_SxL.js} +2 -2
- package/dist/assets/{react-BX1V71Rc.js → react-CdND5srH.js} +2 -2
- package/dist/assets/{react-BKlbvdVi.js → react-D1VJKwtS.js} +2 -2
- package/dist/assets/{react-BQ6Phht1.js → react-D1lzTawy.js} +2 -2
- package/dist/assets/{react-Bf7WBvpI.js → react-DRO7qhGA.js} +4 -4
- package/dist/assets/{recharts-BBlqu8Rz.js → recharts-DE-kxplH.js} +25 -25
- package/dist/assets/{sentry-DBhcw6Be.js → sentry-SNkBC2Al.js} +2 -2
- package/dist/assets/{url-CSfgHOtI.js → url-C9VCVVAZ.js} +1 -1
- package/dist/assets/url-h1qG-NI4.js +1 -0
- package/dist/assets/{utils-DT6Wq-eT.js → utils-CpsqBQqv.js} +1 -1
- package/dist/assets/zeni-epic-state-B7yJI5lR.js +14 -0
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-B5qIuZya-DM7YY1FB.js +0 -21
- package/dist/assets/AIPerformancePage-BHB45mP--CWndWSdC.js +0 -539
- package/dist/assets/AccountInfoPage-Cd5xYT1g-BbefpV-7.js +0 -18
- package/dist/assets/AccountInfoPageContent-CJ7ycVIK-5M9LxJhG.js +0 -149
- package/dist/assets/AccountLockedInfoModal-Dox7IuAX-BMD0s6gP.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-Bqty08m0-B-ibKIL7.js +0 -239
- package/dist/assets/AccountRow-D1cjRJJD-brXv0bxV.js +0 -298
- package/dist/assets/AccountsPromoCardStack-Bs3naJHM-CnqFEGey.js +0 -207
- package/dist/assets/AddAddressForCardDrawer-DZkBMJfp-C4r6mehv.js +0 -6
- package/dist/assets/AddToWalletPage-CyRfqVDB-BdTdHS85.js +0 -344
- package/dist/assets/AgingReportsPage-xBFff3BM-ky-EAGcf.js +0 -79
- package/dist/assets/AllUserItems-BJf6WPDo-Deh60Xs6.js +0 -192
- package/dist/assets/ApAgingDetailPage-CjBrPyi8-Drme0iaF.js +0 -46
- package/dist/assets/AppBasePage-CqDm-hnV-gy7t8mSc.js +0 -71
- package/dist/assets/AppDrawerContent-CVVWj66i-CgQm4R5E.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-Cckd2uVA-CdSeUeuR.js +0 -47
- package/dist/assets/ArAgingChart-CBsqOd-4-CM7YnEql.js +0 -24
- package/dist/assets/ArAgingDetailPage-i7JObt60-DiaDa_kU.js +0 -46
- package/dist/assets/AttachmentView-CzC4skJ3-DSp7S_ow.js +0 -101
- package/dist/assets/BalancesInsightWithToolTip-B6umvmgL-B0jviFnz.js +0 -38
- package/dist/assets/BankAccountSection-Di4sF52j-CjUG2k4c.js +0 -79
- package/dist/assets/BankAccountWarningSection-Cled-2cR-DDIv4R5M.js +0 -51
- package/dist/assets/BankConnectionsSettingsPage-Ccnzq7st-BhXmaxPm.js +0 -425
- package/dist/assets/BillDetailPage-XXOwBfO1-DxWLoxsB.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-DFZ0csaT-D62XtRWM.js +0 -27
- package/dist/assets/BillPayApprovalRulesPage-COCypDcS-CxH1-1ro.js +0 -241
- package/dist/assets/BillPayPromoPage-DOE2YIqC-BRNhZmcV.js +0 -84
- package/dist/assets/BillPaySetUpPage-BCJbZDsV-EdWAn7sO.js +0 -42
- package/dist/assets/BillingSettingsPage-iImtlEmO-oLToelCa.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-B11GWM_0-BmGfxE4w.js +0 -1
- package/dist/assets/BoxItem-Bxa1M4QU-CY-vorJI.js +0 -53
- package/dist/assets/BusinessVerificationPage-DSuJFoW1-Xi-gZLue.js +0 -138
- package/dist/assets/CardNumberSubText-_ZZbaz_k-BDqMr1hm.js +0 -21
- package/dist/assets/CashbackDetailPage-DAZXitLt-kEgVWuyi.js +0 -285
- package/dist/assets/ChargeCardDetailPage-B1VIpASk-BGlRije7.js +0 -1467
- package/dist/assets/ChargeCardListPage-BOBepN-x-DtybfgKA.js +0 -412
- package/dist/assets/ChargeCardListTable-YznzSsJo-DoULf2wO.js +0 -711
- package/dist/assets/ChargeCardPaymentHistoryPage--jOwsMla-Bzj0wTwy.js +0 -565
- package/dist/assets/ChargeCardPromoPage-DIfakIOK-BNvT1cxv.js +0 -222
- package/dist/assets/ChargeCardSetupPage-0bpVkeJs-Bkuwwfuy.js +0 -36
- package/dist/assets/ChargeCardStatementsPage-ChWyQlw6-CbdQ3AHt.js +0 -60
- package/dist/assets/CheckDepositDrawerPage-BS7hnyZn-kNVwtOWy.js +0 -206
- package/dist/assets/CollapsableReportTable-DNfFkAts-cgYLh83Q.js +0 -2982
- package/dist/assets/CompanyOfficerDetailsSection-CrOIN4IW-B9X3JGYF.js +0 -331
- package/dist/assets/CompanyPassportCard-CkzYFTrp-BcZUZqNN.js +0 -42
- package/dist/assets/CompanyPassportPage-FE6yli6h-DWhiSjrR.js +0 -417
- package/dist/assets/CompleteProfile-Cb8i1XgZ-BP6okX49.js +0 -52
- package/dist/assets/ConfettiBurst-BZCXEGYA-ho8ERS31.js +0 -1
- package/dist/assets/ConstrainedInnerElement-CgdnMeoA-Cv85URYx.js +0 -5
- package/dist/assets/CreateOrEditVendorPage-CzpSgxbO-2ilw068v.js +0 -281
- package/dist/assets/CreditCardPaymentDrawerPage-c_q0MsSO-CoTzu5XT.js +0 -227
- package/dist/assets/CurrencySelectField-BAh7SHrG-CBSRpu74.js +0 -139
- package/dist/assets/CustomerOnboardingActivationPage-f3Aa6E5r-DcPBpEPv.js +0 -88
- package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-DAhlgLSo.js +0 -1
- package/dist/assets/CustomerOnboardingDetailPageSkeleton-DYuiWn8s-DBRyrBpA.js +0 -162
- package/dist/assets/CustomerOnboardingNoStepsPage-Bh_F0-oC-ui07nfsA.js +0 -66
- package/dist/assets/CustomerOnboardingPage-B9hSO88_-BFSPGucc.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-CG0HKCpQ-CTl3yjRz.js +0 -202
- package/dist/assets/Dashboard-BJ_oIHab-nrsDE6qS.js +0 -1611
- package/dist/assets/DashboardReportPage-BemzMw2e-D89HJr4G.js +0 -371
- package/dist/assets/DashboardSidebarBackgroundAnimation-BtA5oEGG-Dlhefpu7.js +0 -12
- package/dist/assets/DepositAccTransactionItem-CyFi1P_L-BDRqwizb.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-DvBRRUdZ-DIdaGFeH.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-DCDo3aHI-kEBCfOTM.js +0 -21
- package/dist/assets/DownloadOverlay-D_lL1sPW-xWfuT0Vo.js +0 -439
- package/dist/assets/DrawerPage-DesxXhZk-CRre4dYu.js +0 -118
- package/dist/assets/EditPeoplePage-QvPy_Six-DH4hfGb_.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-C0ZDkboO-DXyrjaYc.js +0 -865
- package/dist/assets/EntityDetailPage-l7nXIsyF-5oCAhXWK.js +0 -18
- package/dist/assets/EntitySummarySection-BwX0a4JL-zcla-D8w.js +0 -151
- package/dist/assets/ExpenseAutomationOverviewPage-EdyHjbff-MnqvBISM.js +0 -281
- package/dist/assets/ExpenseAutomationPage-DA22Qofw-D083tvHO.js +0 -3001
- package/dist/assets/ExpressPayPage-EMP6inpX-3XG4gLSI.js +0 -168
- package/dist/assets/FeaturePreviewPage-SYJm-3aR-DqyedTbe.js +0 -11
- package/dist/assets/FollowStepsSection-BxESVqJD-Cg2jHWRs.js +0 -390
- package/dist/assets/GlobalReviewListPage-D5_ACa-q-D3OrFPtp.js +0 -291
- package/dist/assets/InformationCardStack-B_qQUEYD-DttLY3HS.js +0 -31
- package/dist/assets/InsightsCardStack-BsQzoVzj-Dk9dJ9p5.js +0 -79
- package/dist/assets/InsightsSection-B6CNlTNH-BdZRn5zX.js +0 -27
- package/dist/assets/IntegrationsSettingsPage-DP6fAccq-LBB3bZYV.js +0 -57
- package/dist/assets/InternationalWireSwiftDetailsPage-VdG7bDZi-CfZjD-fy.js +0 -171
- package/dist/assets/InternationalWireVerificationPage-COC6lZml-DC50drx7.js +0 -65
- package/dist/assets/InviteFormPage-DN02jRy5-Buy4T1zp.js +0 -312
- package/dist/assets/InvitePageListView-CP4K9tJi-CHkbuC7f.js +0 -739
- package/dist/assets/InvitePeoplePage-VTM6kM1u-CU4p_G8a.js +0 -12
- package/dist/assets/InvoiceUploadSection-it-ZYl1N-XsZhHn3v.js +0 -140
- package/dist/assets/IssueChargeCardPage-CVfuvGey-C6KQpSo7.js +0 -532
- package/dist/assets/LabeledAddressValue-DDrQcHIE-hP7vwQBZ.js +0 -49
- package/dist/assets/LabeledAddressValueField-BgWwd5Gw-DFe8vIUL.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-CcPO1k23-CU-iLMSG.js +0 -16
- package/dist/assets/LabeledCountryMultiSelectField-BYYjzwUG-DXWiTuV-.js +0 -237
- package/dist/assets/LabeledCreatableSingleSelectField-CISYMojq-DqRsgtUm.js +0 -208
- package/dist/assets/LabeledDocumentField-C_bcFxdY-DJ7-SOXf.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-ScGGCap8-mVsgmCkO.js +0 -59
- package/dist/assets/LabeledText-C8Y7EOsX-DEEaYkeb.js +0 -42
- package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-D4KRCLOC.js +0 -229
- package/dist/assets/LabeledZeniRolesDropDownField-BZtreVpj-D7w5kOCp.js +0 -297
- package/dist/assets/LinkJETransactionPage-CKq4oiX9-ltE4XV_6.js +0 -98
- package/dist/assets/LockCardPage-CZENNby7-BsVSJBxy.js +0 -623
- package/dist/assets/LowBalancePopup-1727S1ri-Ch0sQQf3.js +0 -34
- package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu--EXqRjnH.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-DyDKS580.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-BwOG2bc6.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-QMkZgQLG-BLATYjDj.js +0 -31
- package/dist/assets/MagicLinkTitleSection-CARU1oLQ-B0cyw7Mk.js +0 -17
- package/dist/assets/MailingDetailsSection-ByOPaJ05-DHEttRbi.js +0 -21
- package/dist/assets/MyBankConnectionsSettingsPage-BdgIIhL1-Dxh6kCPM.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-CX38bDdq-ClsHkhfI.js +0 -6
- package/dist/assets/MyProfileSettingsPage-DYu0Fx6I-CkZmnWdK.js +0 -85
- package/dist/assets/NavBarWithPicker-CGGEvLwe-DZ7VBJBK.js +0 -30
- package/dist/assets/NavigationArrow-CTNkKUtV-DwVtEjKU.js +0 -47
- package/dist/assets/NavigationDots-Dvce3gHt-BhNbY-Jn.js +0 -15
- package/dist/assets/NewGlobalMerchantPage-D_f7z47T-CFtXtRiH.js +0 -160
- package/dist/assets/NoDataChart-CrKeqWSr-DnRwd0s-.js +0 -26
- package/dist/assets/NoDataTable-4vPXmPYF-0AXx0isj.js +0 -8
- package/dist/assets/NotFoundPage-BLWPU1wU-DmwpjiFz.js +0 -46
- package/dist/assets/NotificationSettingsPage-CDiDLX3A-9UeXvRF4.js +0 -163
- package/dist/assets/NotificationsListConfig-B5pDa4cJ-CViBSk1u.js +0 -1
- package/dist/assets/NotificationsPage-Ccl7Dny1-DO1DVf8y.js +0 -685
- package/dist/assets/OpExByVendorPage-spd-nKV4-BYZguWNQ.js +0 -100
- package/dist/assets/OverlayContainerPage-BG9y5C0t-XSUpPkb1.js +0 -11
- package/dist/assets/PandLWithForecastPage-TSoe4Z7F-DADbKlaU.js +0 -123
- package/dist/assets/PaymentAccountSetupBillingAddressSection-9ma8SpIa-DnLcaoHi.js +0 -107
- package/dist/assets/PeoplePage-b5_I0qOw-DREebsk9.js +0 -727
- package/dist/assets/Preview-DkS-Ppwi.js +0 -1
- package/dist/assets/ProductsCarousel-C3M0ocdF-CqKUYrUp.js +0 -142
- package/dist/assets/PromoBaseCards-BOGJI2ws-HYGeFCqU.js +0 -218
- package/dist/assets/QBOConnectionDialog-CmpnnuzP-5mKGNZm7.js +0 -51
- package/dist/assets/QBOSetupSection-DjnN9dgv-D9sOi7j3.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D5NXjrO9-CSFmXSBt.js +0 -32
- package/dist/assets/ReimbursementApprovalRulesPage-BsCTIqUJ-BciPnq07.js +0 -243
- package/dist/assets/ReimbursementDetailPage-BbyxE2uL-CCn1M_IM.js +0 -314
- package/dist/assets/ReimbursementPromoPage-CyEgwqcf-QZKK6RXF.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-RETPkEQd-7RlERPSK.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DnmYl0FM-B6Bppczb.js +0 -1
- package/dist/assets/ReloadCard-Bdoo0XiI-BkT_TrPt.js +0 -26
- package/dist/assets/ReportTableViewSelector-Bc1K7mU_-BcXnhDrl.js +0 -151
- package/dist/assets/ReportsPage-BOTHMLWh-C7yXcceR.js +0 -269
- package/dist/assets/RevenueChart-DvyZ3aO7-ln4Xbq3A.js +0 -280
- package/dist/assets/ReviewDetailsPage-BIMg1n2e-DlA-53yQ.js +0 -290
- package/dist/assets/ReviewOverlay-CxwoiOLC-DmcvjVCl.js +0 -152
- package/dist/assets/RoleWithToolTip-Ct3_VuDM-BKP6CsTd.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-DiL5Dozk-DCavU86U.js +0 -37
- package/dist/assets/ScheduleDetailsPage-5FWpLRtd-CO7mo75a.js +0 -37
- package/dist/assets/ScheduleSequenceTable-R3-PsXES-i-4DMkvc.js +0 -326
- package/dist/assets/ScreenRoutes-D-ddKpF8.js +0 -179
- package/dist/assets/SetUpAccountSection-CctbMmoK-ZyErAiPF.js +0 -378
- package/dist/assets/SignIn-CmgmnRm4-DBoFBrvr.js +0 -491
- package/dist/assets/SignInScreen-DCSGviBr.js +0 -1
- package/dist/assets/SpendManagementListViewPage-CFUxCqkU-dAFL_Ppz.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-C-kqNTci-Udt5CTX9.js +0 -754
- package/dist/assets/SpendManagementSection-CIz4nE_w-0q2VpGOz.js +0 -246
- package/dist/assets/StatementItem-vVtoBN2w-CiKnbbLX.js +0 -31
- package/dist/assets/StatementsPage-As5WOnMR-D0_TDe23.js +0 -58
- package/dist/assets/StatusSwitcher-Bv-ozN6U-Uu-9K_ZT.js +0 -120
- package/dist/assets/SubTabSwitcher-D7QeM6nb-Cvhnug-S.js +0 -58
- package/dist/assets/SummaryCard-C2qoTsAY-AZ17zAeW.js +0 -1
- package/dist/assets/TaskManagementPage-BJwp32Ph-DTb1_fWh.js +0 -508
- package/dist/assets/TimeRangeSwitcher-D00bDDhP-DMLJ4CgT.js +0 -64
- package/dist/assets/TimeframeSwitcher-DA99HdHt-B7dPmR3A.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-DyggDIQj-BDMDYsLj.js +0 -53
- package/dist/assets/TopExCard-Z1WabZ8c-D9ahLOhN.js +0 -38
- package/dist/assets/TopExDetailPage-CzHG4f9E-DSsiHUw6.js +0 -132
- package/dist/assets/TransactionActivityLogPage-CGKnjNfU-DFi44yxk.js +0 -195
- package/dist/assets/TransactionDetailPage-1-mLOWSz-NZ0pEK8W.js +0 -903
- package/dist/assets/TransactionList-BB-xoIGm-CmL2sv-k.js +0 -153
- package/dist/assets/TransactionListBig-C5Sf5Xh--DUDOs_q9.js +0 -284
- package/dist/assets/TransactionListPage-Cj7h1Ros-BpKazEVH.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-SsrSOk3O-BLmQC0O2.js +0 -80
- package/dist/assets/TransferDrawerPage-BvKZ7vHF-BDZmQek2.js +0 -362
- package/dist/assets/TreasuryOverviewPage-DwvjMR4_-BGYjEWMJ.js +0 -725
- package/dist/assets/TreasuryPromoPage-CtTFvSQW-B3Bvdh6x.js +0 -505
- package/dist/assets/TreasuryStatementsPage-Catz8shX-X_IYs6qa.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-D8hzCL5o-Da9lGvIi.js +0 -58
- package/dist/assets/TrendChart-Bnp4Pcdf-CJF7dKdP.js +0 -16
- package/dist/assets/TrendWithTransactions-3D1FvM8G-TXKeFcvZ.js +0 -116
- package/dist/assets/UncategorizedAccountsMappingPage-DbyY-dYB-D1dmyVJ4.js +0 -244
- package/dist/assets/UnitIntegrationPage-CTzme1te-CbgSnbxZ.js +0 -67
- package/dist/assets/UploadAdditionalDocumentOverlay-Wl4Spdpn-PlCykjL7.js +0 -38
- package/dist/assets/Vendor2FAPopup-D0zYKkIv-aIJ1NUXW.js +0 -1
- package/dist/assets/VendorACHDetailsPage-YYX9aQdw-D-OOHJou.js +0 -1
- package/dist/assets/VendorDetailPage-Br9wIOnI-De2XcUb6.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-BdL3didN.js +0 -1
- package/dist/assets/VendorFiling1099EditablePage-himC7iD3-C2XAIK9H.js +0 -175
- package/dist/assets/VendorFirstReviewPage-BbknTCBD-DDAQwDZy.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-CS595Xgc-C3mHhbHk.js +0 -152
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-C2v0qs8u.js +0 -1
- package/dist/assets/VendorsAccountsSection-CgSJu8wq-Ctj2nPMI.js +0 -68
- package/dist/assets/VerifyDevice-Dvf0JsNN-PRfKusRx.js +0 -112
- package/dist/assets/VideoPlayer-VAzOGCDL-6U91k2_g.js +0 -78
- package/dist/assets/VideoPopup-BqvZ-XIh-nZFpm96A.js +0 -31
- package/dist/assets/WarningsDrawerPage-DeNonoNp-Cer8JJKy.js +0 -92
- package/dist/assets/ZeniAccountDetailPage-GcwTJdB8-BghGtTMM.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-CdwO0Duy-D-GLBesW.js +0 -443
- package/dist/assets/ZeniAccountNavBarPieces-BrSIfL36-2vSHgl5n.js +0 -33
- package/dist/assets/ZeniAccountPromoPage-JrcedQYB-DxQZiNCa.js +0 -184
- package/dist/assets/ZeniAccountSetupPage-TKBfbgzJ-CCXkWEma.js +0 -36
- package/dist/assets/ZeniCopyright-DglqrTpl-B_6mXo3q.js +0 -1
- package/dist/assets/ZeniTransferAmountSlider-BcaZZuAw-Dri2Vqf1.js +0 -63
- package/dist/assets/add-to-wallet-DgdBD8_G-2lJ5O5xD.js +0 -1
- package/dist/assets/agingReportHelper-ovKP-qSS-Cx4Hdid-.js +0 -1
- package/dist/assets/analyticsHelper-B3H0U8CW.js +0 -1
- package/dist/assets/analyticsHelper-CAYdbjhS-Bgy1SJeR.js +0 -1
- package/dist/assets/arrow-south-east-round-PEovUgvH-CH2rCMd8.js +0 -1
- package/dist/assets/auto-transfer-rule-mbafm5D3-Bwf-jWRn.js +0 -1
- package/dist/assets/chartTypes-CD3vrBsI-CxjFANZl.js +0 -1
- package/dist/assets/commonDimensions-Oz1tdAcx-C8J13a8y.js +0 -1
- package/dist/assets/commonTypes-5tEXwrX4-DThfJWJu.js +0 -1
- package/dist/assets/constants-B4Nwm03n.js +0 -1
- package/dist/assets/downloadPdf-Dsuxeias-IRIi2izs.js +0 -1
- package/dist/assets/empty-B6p9RErG.js +0 -1
- package/dist/assets/epic-CPlQ2CFE.js +0 -2
- package/dist/assets/getReferrerType-DjPOy76W-DRP5VHem.js +0 -1
- package/dist/assets/gift-box-Cmt9OgIZ-CmAMj3r2.js +0 -1
- package/dist/assets/graphic-no-data-l-DU4J8fDt-Db5RbWJE.js +0 -1
- package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-BEpZ9Tqr.js +0 -1
- package/dist/assets/handshake-BPg58FML-6UbFX0a-.js +0 -1
- package/dist/assets/helper-Ckm10Uko-DCD3fpXN.js +0 -223
- package/dist/assets/index-BYqTlB4Y.js +0 -39
- package/dist/assets/index-BZNcKYJW.js +0 -1
- package/dist/assets/index-C8o-xzAN.js +0 -29875
- package/dist/assets/index-D-Jb9hdv.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-Cl8KOFjG.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-Cgyt68f3-CDBFUVvY.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-XgUp1xUb-B7yPJt54.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Bre8FfBF-C3mdnabF.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-DJ5f-tsr.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-Ca3eEPkJ.js +0 -1
- package/dist/assets/page-detail-CWX5S47F-Db9HhKdl.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-BEaTutPV.js +0 -3
- package/dist/assets/radio-default-CiSgisfh-bKgsz1mh.js +0 -1
- package/dist/assets/shield-DOlUxcFf-CuhCM_gA.js +0 -1
- package/dist/assets/toCOABalancesWithID-aLNB35t7-BtYnBfqr.js +0 -1
- package/dist/assets/toChartData-DUL6vnzJ-Bu4Ds4yf.js +0 -1
- package/dist/assets/types-DyvtCprH-NFPm5TaG.js +0 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-_YW_CWHL.js +0 -1
- package/dist/assets/uploadAttachment-Ck4wivBR-Cl_dwAB6.js +0 -286
- package/dist/assets/uploadReceipts-CIgkuVpu-DNtrxUdf.js +0 -1
- package/dist/assets/url-CRv0BSFG.js +0 -1
- package/dist/assets/useLongPress-GCK2COYQ-Bd_7uKXZ.js +0 -1
- package/dist/assets/usp-line-BBd1wKwW-rq31vkuF.js +0 -1
- package/dist/assets/zeni-epic-state-DMWYYyyR.js +0 -14
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import{FI as Zh,FJ as ar,FK as Yh,jb as qt,hO as xl,jd as Tt,hL as Wh,hS as Il,FL as hs,hU as Kh,hV as Jh,FM as gr,FN as or,hh as Xh,FO as an,FP as Do,c_ as Qh,fh as Mo,fe as Qr,fm as jt,fk as ed,FQ as Al,FR as Cl,i7 as td,i4 as rd,FS as nd,ij as id,id as ds,ia as ad,h$ as od,FT as sd,dV as ud,d4 as cd,jp as Pl,FU as fd,be as Xr,hY as ps,i1 as ld,q9 as kl,jc as on,FV as pt,iz as Fo,FW as hd,jv as dd,B as et,bi as Bo,FX as pd,he as md,FY as gd,FZ as jl,F_ as vd,oJ as ms,oe as yd,F$ as _d,ok as En,G0 as bd,om as wd,G1 as St,ob as Ed,cO as Sd,jg as Ll,jh as ql,jf as Uo,je as $o,ji as Rd,G2 as Od,oM as Td,G3 as xd,ot as Id,oG as Ad,G4 as Cd,ox as Pd,G5 as kd,G6 as Yt,G7 as Vo,G8 as jd,G9 as Ld,nf as qd,nl as Nl,Ga as Dl,gL as Nd,EO as Ml,Gb as Dd,EI as Md,Gc as Fd,Gd as Bd,no as Ud,Ge as $d,ET as Vd,EH as Gd,rF as Fl,Gf as Sn,Gg as Bl,BQ as Go,BC as zd,BT as Ul,BF as Hd,Gh as Zd,BK as Yd,Bw as Wd,Bz as Kd,Gi as Jd,BX as Xd,BN as Qd,bl as ep,bd as tp,Gj as rp,Gk as Bt,Gl as np,Gm as ip,Gn as ap,io as jo,iu as op,ba as sp}from"./zeni-epic-state-B7yJI5lR.js";import{j as $}from"./liveblocks-CH5Ytl_r.js";import{a as le,p as ye,e as $l,d as Vl,g as up}from"./sentry-SNkBC2Al.js";import{C as cp,m as $t,K as sn,u as fp,a as $e,z as We,n as lp,Q as hp,b as ut,c as un,X as dp,M as xt,D as sr,g as Vt,h as Nt,$ as cn,o as kt,d as pp,e as mp,Z as Rt,i as fn,F as Lt,r as gp,s as vp,f as Rn,j as yp,k as Gl,L as _p,l as zl,p as Hl,q as Lo,I as bp,t as wp,v as Ep,w as Zl,x as Sp,y as Rp,A as Op,B as Tp,E as xp,G as Ip,H as Ap,J as Cp,N as Pp,O as kp,P as jp,Y as Lp,R as qp}from"./index-Obh2uEoj.js";import{f as Np}from"./analyticsHelper-DvZ4fRLz.js";import{o as Yl,i as Ve,n as Ke,p as ct,g as Oe,h as Ge,N as tr,k as bt,l as Te,u as zo,j as qo}from"./core-CrJ0HRkP.js";import{D as ln,n as tt,S as Gt}from"./mui-DzLLS9Rs.js";import{a as He,b as Dp,c as Mp,d as Fp,e as Ho,f as Bp,g as Up,h as $p,i as zt,j as Vp,k as nr,l as hn,m as Gp,n as ur,o as zp}from"./utils-CpsqBQqv.js";import{r as Zo}from"./empty-DCdjTxMk.js";import{r as cr,a as Hp}from"./index-BHVDlT_9.js";import{r as Zp}from"./index-CS2xkLsB.js";import"./recharts-DE-kxplH.js";import"./lottie-jJKhsKLZ.js";import"./analytics-Ci62SVC6.js";import"./lexical-Y1MbDrft.js";import"./url-C9VCVVAZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f630b2b9-af98-463c-8609-d628bf2409f8",e._sentryDebugIdIdentifier="sentry-dbid-f630b2b9-af98-463c-8609-d628bf2409f8")}catch{}})();var On={},gs;function dn(){return gs||(gs=1,function(e){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function o(t,r){return Object.prototype.hasOwnProperty.call(t,r)}e.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var s=r.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var d in s)o(s,d)&&(t[d]=s[d])}}return t},e.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var i={arraySet:function(t,r,s,d,f){if(r.subarray&&t.subarray){t.set(r.subarray(s,s+d),f);return}for(var l=0;l<d;l++)t[f+l]=r[s+l]},flattenChunks:function(t){var r,s,d,f,l,h;for(d=0,r=0,s=t.length;r<s;r++)d+=t[r].length;for(h=new Uint8Array(d),f=0,r=0,s=t.length;r<s;r++)l=t[r],h.set(l,f),f+=l.length;return h}},a={arraySet:function(t,r,s,d,f){for(var l=0;l<d;l++)t[f+l]=r[s+l]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)}(On)),On}var ot={},It={},vs;function Yp(){if(vs)return It;vs=1;var e=dn(),n=4,o=0,i=1,a=2;function t(A){for(var ne=A.length;--ne>=0;)A[ne]=0}var r=0,s=1,d=2,f=3,l=258,h=29,c=256,b=c+1+h,m=30,y=19,g=2*b+1,u=15,_=16,w=7,v=256,E=16,x=17,O=18,C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,R=new Array((b+2)*2);t(R);var L=new Array(m*2);t(L);var N=new Array(S);t(N);var V=new Array(l-f+1);t(V);var P=new Array(h);t(P);var j=new Array(m);t(j);function k(A,ne,se,fe,Z){this.static_tree=A,this.extra_bits=ne,this.extra_base=se,this.elems=fe,this.max_length=Z,this.has_stree=A&&A.length}var F,Y,z;function B(A,ne){this.dyn_tree=A,this.max_code=0,this.stat_desc=ne}function q(A){return A<256?N[A]:N[256+(A>>>7)]}function M(A,ne){A.pending_buf[A.pending++]=ne&255,A.pending_buf[A.pending++]=ne>>>8&255}function U(A,ne,se){A.bi_valid>_-se?(A.bi_buf|=ne<<A.bi_valid&65535,M(A,A.bi_buf),A.bi_buf=ne>>_-A.bi_valid,A.bi_valid+=se-_):(A.bi_buf|=ne<<A.bi_valid&65535,A.bi_valid+=se)}function X(A,ne,se){U(A,se[ne*2],se[ne*2+1])}function J(A,ne){var se=0;do se|=A&1,A>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(A){A.bi_valid===16?(M(A,A.bi_buf),A.bi_buf=0,A.bi_valid=0):A.bi_valid>=8&&(A.pending_buf[A.pending++]=A.bi_buf&255,A.bi_buf>>=8,A.bi_valid-=8)}function ue(A,ne){var se=ne.dyn_tree,fe=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,T=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,I,G,ee,_e=0;for(I=0;I<=u;I++)A.bl_count[I]=0;for(se[A.heap[A.heap_max]*2+1]=0,p=A.heap_max+1;p<g;p++)te=A.heap[p],I=se[se[te*2+1]*2+1]+1,I>be&&(I=be,_e++),se[te*2+1]=I,!(te>fe)&&(A.bl_count[I]++,G=0,te>=oe&&(G=T[te-oe]),ee=se[te*2],A.opt_len+=ee*(I+G),ie&&(A.static_len+=ee*(Z[te*2+1]+G)));if(_e!==0){do{for(I=be-1;A.bl_count[I]===0;)I--;A.bl_count[I]--,A.bl_count[I+1]+=2,A.bl_count[be]--,_e-=2}while(_e>0);for(I=be;I!==0;I--)for(te=A.bl_count[I];te!==0;)re=A.heap[--p],!(re>fe)&&(se[re*2+1]!==I&&(A.opt_len+=(I-se[re*2+1])*se[re*2],se[re*2+1]=I),te--)}}function ve(A,ne,se){var fe=new Array(u+1),Z=0,ie,T;for(ie=1;ie<=u;ie++)fe[ie]=Z=Z+se[ie-1]<<1;for(T=0;T<=ne;T++){var oe=A[T*2+1];oe!==0&&(A[T*2]=J(fe[oe]++,oe))}}function me(){var A,ne,se,fe,Z,ie=new Array(u+1);for(se=0,fe=0;fe<h-1;fe++)for(P[fe]=se,A=0;A<1<<C[fe];A++)V[se++]=fe;for(V[se-1]=fe,Z=0,fe=0;fe<16;fe++)for(j[fe]=Z,A=0;A<1<<D[fe];A++)N[Z++]=fe;for(Z>>=7;fe<m;fe++)for(j[fe]=Z<<7,A=0;A<1<<D[fe]-7;A++)N[256+Z++]=fe;for(ne=0;ne<=u;ne++)ie[ne]=0;for(A=0;A<=143;)R[A*2+1]=8,A++,ie[8]++;for(;A<=255;)R[A*2+1]=9,A++,ie[9]++;for(;A<=279;)R[A*2+1]=7,A++,ie[7]++;for(;A<=287;)R[A*2+1]=8,A++,ie[8]++;for(ve(R,b+1,ie),A=0;A<m;A++)L[A*2+1]=5,L[A*2]=J(A,5);F=new k(R,C,c+1,b,u),Y=new k(L,D,0,m,u),z=new k(new Array(0),W,0,y,w)}function we(A){var ne;for(ne=0;ne<b;ne++)A.dyn_ltree[ne*2]=0;for(ne=0;ne<m;ne++)A.dyn_dtree[ne*2]=0;for(ne=0;ne<y;ne++)A.bl_tree[ne*2]=0;A.dyn_ltree[v*2]=1,A.opt_len=A.static_len=0,A.last_lit=A.matches=0}function Ce(A){A.bi_valid>8?M(A,A.bi_buf):A.bi_valid>0&&(A.pending_buf[A.pending++]=A.bi_buf),A.bi_buf=0,A.bi_valid=0}function ke(A,ne,se,fe){Ce(A),M(A,se),M(A,~se),e.arraySet(A.pending_buf,A.window,ne,se,A.pending),A.pending+=se}function je(A,ne,se,fe){var Z=ne*2,ie=se*2;return A[Z]<A[ie]||A[Z]===A[ie]&&fe[ne]<=fe[se]}function Ie(A,ne,se){for(var fe=A.heap[se],Z=se<<1;Z<=A.heap_len&&(Z<A.heap_len&&je(ne,A.heap[Z+1],A.heap[Z],A.depth)&&Z++,!je(ne,fe,A.heap[Z],A.depth));)A.heap[se]=A.heap[Z],se=Z,Z<<=1;A.heap[se]=fe}function Ee(A,ne,se){var fe,Z,ie=0,T,oe;if(A.last_lit!==0)do fe=A.pending_buf[A.d_buf+ie*2]<<8|A.pending_buf[A.d_buf+ie*2+1],Z=A.pending_buf[A.l_buf+ie],ie++,fe===0?X(A,Z,ne):(T=V[Z],X(A,T+c+1,ne),oe=C[T],oe!==0&&(Z-=P[T],U(A,Z,oe)),fe--,T=q(fe),X(A,T,se),oe=D[T],oe!==0&&(fe-=j[T],U(A,fe,oe)));while(ie<A.last_lit);X(A,v,ne)}function Ue(A,ne){var se=ne.dyn_tree,fe=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,T,oe,be=-1,p;for(A.heap_len=0,A.heap_max=g,T=0;T<ie;T++)se[T*2]!==0?(A.heap[++A.heap_len]=be=T,A.depth[T]=0):se[T*2+1]=0;for(;A.heap_len<2;)p=A.heap[++A.heap_len]=be<2?++be:0,se[p*2]=1,A.depth[p]=0,A.opt_len--,Z&&(A.static_len-=fe[p*2+1]);for(ne.max_code=be,T=A.heap_len>>1;T>=1;T--)Ie(A,se,T);p=ie;do T=A.heap[1],A.heap[1]=A.heap[A.heap_len--],Ie(A,se,1),oe=A.heap[1],A.heap[--A.heap_max]=T,A.heap[--A.heap_max]=oe,se[p*2]=se[T*2]+se[oe*2],A.depth[p]=(A.depth[T]>=A.depth[oe]?A.depth[T]:A.depth[oe])+1,se[T*2+1]=se[oe*2+1]=p,A.heap[1]=p++,Ie(A,se,1);while(A.heap_len>=2);A.heap[--A.heap_max]=A.heap[1],ue(A,ne),ve(se,be,A.bl_count)}function at(A,ne,se){var fe,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,fe=0;fe<=se;fe++)ie=T,T=ne[(fe+1)*2+1],!(++oe<be&&ie===T)&&(oe<p?A.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&A.bl_tree[ie*2]++,A.bl_tree[E*2]++):oe<=10?A.bl_tree[x*2]++:A.bl_tree[O*2]++,oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4))}function qe(A,ne,se){var fe,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),fe=0;fe<=se;fe++)if(ie=T,T=ne[(fe+1)*2+1],!(++oe<be&&ie===T)){if(oe<p)do X(A,ie,A.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(X(A,ie,A.bl_tree),oe--),X(A,E,A.bl_tree),U(A,oe-3,2)):oe<=10?(X(A,x,A.bl_tree),U(A,oe-3,3)):(X(A,O,A.bl_tree),U(A,oe-11,7));oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4)}}function De(A){var ne;for(at(A,A.dyn_ltree,A.l_desc.max_code),at(A,A.dyn_dtree,A.d_desc.max_code),Ue(A,A.bl_desc),ne=y-1;ne>=3&&A.bl_tree[H[ne]*2+1]===0;ne--);return A.opt_len+=3*(ne+1)+5+5+4,ne}function Ze(A,ne,se,fe){var Z;for(U(A,ne-257,5),U(A,se-1,5),U(A,fe-4,4),Z=0;Z<fe;Z++)U(A,A.bl_tree[H[Z]*2+1],3);qe(A,A.dyn_ltree,ne-1),qe(A,A.dyn_dtree,se-1)}function K(A){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&A.dyn_ltree[se*2]!==0)return o;if(A.dyn_ltree[9*2]!==0||A.dyn_ltree[10*2]!==0||A.dyn_ltree[13*2]!==0)return i;for(se=32;se<c;se++)if(A.dyn_ltree[se*2]!==0)return i;return o}var Q=!1;function ce(A){Q||(me(),Q=!0),A.l_desc=new B(A.dyn_ltree,F),A.d_desc=new B(A.dyn_dtree,Y),A.bl_desc=new B(A.bl_tree,z),A.bi_buf=0,A.bi_valid=0,we(A)}function ge(A,ne,se,fe){U(A,(r<<1)+(fe?1:0),3),ke(A,ne,se)}function he(A){U(A,s<<1,3),X(A,v,R),ae(A)}function Se(A,ne,se,fe){var Z,ie,T=0;A.level>0?(A.strm.data_type===a&&(A.strm.data_type=K(A)),Ue(A,A.l_desc),Ue(A,A.d_desc),T=De(A),Z=A.opt_len+3+7>>>3,ie=A.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(A,ne,se,fe):A.strategy===n||ie===Z?(U(A,(s<<1)+(fe?1:0),3),Ee(A,R,L)):(U(A,(d<<1)+(fe?1:0),3),Ze(A,A.l_desc.max_code+1,A.d_desc.max_code+1,T+1),Ee(A,A.dyn_ltree,A.dyn_dtree)),we(A),fe&&Ce(A)}function Re(A,ne,se){return A.pending_buf[A.d_buf+A.last_lit*2]=ne>>>8&255,A.pending_buf[A.d_buf+A.last_lit*2+1]=ne&255,A.pending_buf[A.l_buf+A.last_lit]=se&255,A.last_lit++,ne===0?A.dyn_ltree[se*2]++:(A.matches++,ne--,A.dyn_ltree[(V[se]+c+1)*2]++,A.dyn_dtree[q(ne)*2]++),A.last_lit===A.lit_bufsize-1}return It._tr_init=ce,It._tr_stored_block=ge,It._tr_flush_block=Se,It._tr_tally=Re,It._tr_align=he,It}var Tn,ys;function Wl(){if(ys)return Tn;ys=1;function e(n,o,i,a){for(var t=n&65535|0,r=n>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do t=t+o[a++]|0,r=r+t|0;while(--s);t%=65521,r%=65521}return t|r<<16|0}return Tn=e,Tn}var xn,_s;function Kl(){if(_s)return xn;_s=1;function e(){for(var i,a=[],t=0;t<256;t++){i=t;for(var r=0;r<8;r++)i=i&1?3988292384^i>>>1:i>>>1;a[t]=i}return a}var n=e();function o(i,a,t,r){var s=n,d=r+t;i^=-1;for(var f=r;f<d;f++)i=i>>>8^s[(i^a[f])&255];return i^-1}return xn=o,xn}var In,bs;function Wp(){return bs||(bs=1,In={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),In}var ws;function Kp(){if(ws)return ot;ws=1;var e=dn(),n=Yp(),o=Wl(),i=Kl(),a=Wp(),t=0,r=1,s=3,d=4,f=5,l=0,h=1,c=-2,b=-3,m=-5,y=-1,g=1,u=2,_=3,w=4,v=0,E=2,x=8,O=9,C=15,D=8,W=29,H=256,S=H+1+W,R=30,L=19,N=2*S+1,V=15,P=3,j=258,k=j+P+1,F=32,Y=42,z=69,B=73,q=91,M=103,U=113,X=666,J=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=a[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function ke(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ie(p,te){n._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function Ue(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function at(p,te,re,I){var G=p.avail_in;return G>I&&(G=I),G===0?0:(p.avail_in-=G,e.arraySet(te,p.input,p.next_in,G,re),p.state.wrap===1?p.adler=o(p.adler,te,G,re):p.state.wrap===2&&(p.adler=i(p.adler,te,G,re)),p.next_in+=G,p.total_in+=G,G)}function qe(p,te){var re=p.max_chain_length,I=p.strstart,G,ee,_e=p.prev_length,de=p.nice_match,pe=p.strstart>p.w_size-k?p.strstart-(p.w_size-k):0,xe=p.window,gt=p.w_mask,Le=p.prev,Ae=p.strstart+j,Fe=xe[I+_e-1],Ye=xe[I+_e];p.prev_length>=p.good_match&&(re>>=2),de>p.lookahead&&(de=p.lookahead);do if(G=te,!(xe[G+_e]!==Ye||xe[G+_e-1]!==Fe||xe[G]!==xe[I]||xe[++G]!==xe[I+1])){I+=2,G++;do;while(xe[++I]===xe[++G]&&xe[++I]===xe[++G]&&xe[++I]===xe[++G]&&xe[++I]===xe[++G]&&xe[++I]===xe[++G]&&xe[++I]===xe[++G]&&xe[++I]===xe[++G]&&xe[++I]===xe[++G]&&I<Ae);if(ee=j-(Ae-I),I=Ae-j,ee>_e){if(p.match_start=te,_e=ee,ee>=de)break;Fe=xe[I+_e-1],Ye=xe[I+_e]}}while((te=Le[te>])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function De(p){var te=p.w_size,re,I,G,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-k)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,I=p.hash_size,re=I;do G=p.head[--re],p.head[re]=G>=te?G-te:0;while(--I);I=te,re=I;do G=p.prev[--re],p.prev[re]=G>=te?G-te:0;while(--I);ee+=te}if(p.strm.avail_in===0)break;if(I=at(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=I,p.lookahead+p.insert>=P)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+P-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<P)););}while(p.lookahead<k&&p.strm.avail_in!==0)}function Ze(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(De(p),p.lookahead===0&&te===t)return J;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var I=p.block_start+re;if((p.strstart===0||p.strstart>=I)&&(p.lookahead=p.strstart-I,p.strstart=I,Ie(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-k&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===d?(Ie(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ie(p,!1),p.strm.avail_out===0),J)}function K(p,te){for(var re,I;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return J;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re)),p.match_length>=P)if(I=n._tr_tally(p,p.strstart-p.match_start,p.match_length-P),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=P){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else I=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(I&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function Q(p,te){for(var re,I,G;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return J;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=P-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===P&&p.strstart-p.match_start>4096)&&(p.match_length=P-1)),p.prev_length>=P&&p.match_length<=p.prev_length){G=p.strstart+p.lookahead-P,I=n._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-P),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=G&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=P-1,p.strstart++,I&&(Ie(p,!1),p.strm.avail_out===0))return J}else if(p.match_available){if(I=n._tr_tally(p,0,p.window[p.strstart-1]),I&&Ie(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return J}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(I=n._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function ce(p,te){for(var re,I,G,ee,_e=p.window;;){if(p.lookahead<=j){if(De(p),p.lookahead<=j&&te===t)return J;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=P&&p.strstart>0&&(G=p.strstart-1,I=_e[G],I===_e[++G]&&I===_e[++G]&&I===_e[++G])){ee=p.strstart+j;do;while(I===_e[++G]&&I===_e[++G]&&I===_e[++G]&&I===_e[++G]&&I===_e[++G]&&I===_e[++G]&&I===_e[++G]&&I===_e[++G]&&G<ee);p.match_length=j-(ee-G),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=P?(re=n._tr_tally(p,1,p.match_length-P),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===d?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(De(p),p.lookahead===0)){if(te===t)return J;break}if(p.match_length=0,re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===d?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function he(p,te,re,I,G){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=I,this.func=G}var Se;Se=[new he(0,0,0,0,Ze),new he(4,4,8,4,K),new he(4,5,16,8,K),new he(4,6,32,32,K),new he(4,4,16,16,Q),new he(8,16,32,32,Q),new he(8,16,128,128,Q),new he(8,32,128,256,Q),new he(32,128,258,1024,Q),new he(32,258,258,4096,Q)];function Re(p){p.window_size=2*p.w_size,ke(p.head),p.max_lazy_match=Se[p.level].max_lazy,p.good_match=Se[p.level].good_length,p.nice_match=Se[p.level].nice_length,p.max_chain_length=Se[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=P-1,p.match_available=0,p.ins_h=0}function A(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(N*2),this.dyn_dtree=new e.Buf16((2*R+1)*2),this.bl_tree=new e.Buf16((2*L+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(V+1),this.heap=new e.Buf16(2*S+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),ke(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=E,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?Y:U,p.adler=te.wrap===2?0:1,te.last_flush=t,n._tr_init(te),l)}function se(p){var te=ne(p);return te===l&&Re(p.state),te}function fe(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,l)}function Z(p,te,re,I,G,ee){if(!p)return c;var _e=1;if(te===y&&(te=6),I<0?(_e=0,I=-I):I>15&&(_e=2,I-=16),G<1||G>O||re!==x||I<8||I>15||te<0||te>9||ee<0||ee>w)return we(p,c);I===8&&(I=9);var de=new A;return p.state=de,de.strm=p,de.wrap=_e,de.gzhead=null,de.w_bits=I,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=G+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+P-1)/P),de.window=new e.Buf8(de.w_size*2),de.head=new e.Buf16(de.hash_size),de.prev=new e.Buf16(de.w_size),de.lit_bufsize=1<<G+6,de.pending_buf_size=de.lit_bufsize*4,de.pending_buf=new e.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=te,de.strategy=ee,de.method=re,se(p)}function ie(p,te){return Z(p,te,x,C,D,v)}function T(p,te){var re,I,G,ee;if(!p||!p.state||te>f||te<0)return p?we(p,c):c;if(I=p.state,!p.output||!p.input&&p.avail_in!==0||I.status===X&&te!==d)return we(p,p.avail_out===0?m:c);if(I.strm=p,re=I.last_flush,I.last_flush=te,I.status===Y)if(I.wrap===2)p.adler=0,Ee(I,31),Ee(I,139),Ee(I,8),I.gzhead?(Ee(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),Ee(I,I.gzhead.time&255),Ee(I,I.gzhead.time>>8&255),Ee(I,I.gzhead.time>>16&255),Ee(I,I.gzhead.time>>24&255),Ee(I,I.level===9?2:I.strategy>=u||I.level<2?4:0),Ee(I,I.gzhead.os&255),I.gzhead.extra&&I.gzhead.extra.length&&(Ee(I,I.gzhead.extra.length&255),Ee(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(p.adler=i(p.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=z):(Ee(I,0),Ee(I,0),Ee(I,0),Ee(I,0),Ee(I,0),Ee(I,I.level===9?2:I.strategy>=u||I.level<2?4:0),Ee(I,me),I.status=U);else{var _e=x+(I.w_bits-8<<4)<<8,de=-1;I.strategy>=u||I.level<2?de=0:I.level<6?de=1:I.level===6?de=2:de=3,_e|=de<<6,I.strstart!==0&&(_e|=F),_e+=31-_e%31,I.status=U,Ue(I,_e),I.strstart!==0&&(Ue(I,p.adler>>>16),Ue(I,p.adler&65535)),p.adler=1}if(I.status===z)if(I.gzhead.extra){for(G=I.pending;I.gzindex<(I.gzhead.extra.length&65535)&&!(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>G&&(p.adler=i(p.adler,I.pending_buf,I.pending-G,G)),je(p),G=I.pending,I.pending===I.pending_buf_size));)Ee(I,I.gzhead.extra[I.gzindex]&255),I.gzindex++;I.gzhead.hcrc&&I.pending>G&&(p.adler=i(p.adler,I.pending_buf,I.pending-G,G)),I.gzindex===I.gzhead.extra.length&&(I.gzindex=0,I.status=B)}else I.status=B;if(I.status===B)if(I.gzhead.name){G=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>G&&(p.adler=i(p.adler,I.pending_buf,I.pending-G,G)),je(p),G=I.pending,I.pending===I.pending_buf_size)){ee=1;break}I.gzindex<I.gzhead.name.length?ee=I.gzhead.name.charCodeAt(I.gzindex++)&255:ee=0,Ee(I,ee)}while(ee!==0);I.gzhead.hcrc&&I.pending>G&&(p.adler=i(p.adler,I.pending_buf,I.pending-G,G)),ee===0&&(I.gzindex=0,I.status=q)}else I.status=q;if(I.status===q)if(I.gzhead.comment){G=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>G&&(p.adler=i(p.adler,I.pending_buf,I.pending-G,G)),je(p),G=I.pending,I.pending===I.pending_buf_size)){ee=1;break}I.gzindex<I.gzhead.comment.length?ee=I.gzhead.comment.charCodeAt(I.gzindex++)&255:ee=0,Ee(I,ee)}while(ee!==0);I.gzhead.hcrc&&I.pending>G&&(p.adler=i(p.adler,I.pending_buf,I.pending-G,G)),ee===0&&(I.status=M)}else I.status=M;if(I.status===M&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&je(p),I.pending+2<=I.pending_buf_size&&(Ee(I,p.adler&255),Ee(I,p.adler>>8&255),p.adler=0,I.status=U)):I.status=U),I.pending!==0){if(je(p),p.avail_out===0)return I.last_flush=-1,l}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==d)return we(p,m);if(I.status===X&&p.avail_in!==0)return we(p,m);if(p.avail_in!==0||I.lookahead!==0||te!==t&&I.status!==X){var pe=I.strategy===u?ge(I,te):I.strategy===_?ce(I,te):Se[I.level].func(I,te);if((pe===ue||pe===ve)&&(I.status=X),pe===J||pe===ue)return p.avail_out===0&&(I.last_flush=-1),l;if(pe===ae&&(te===r?n._tr_align(I):te!==f&&(n._tr_stored_block(I,0,0,!1),te===s&&(ke(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),je(p),p.avail_out===0))return I.last_flush=-1,l}return te!==d?l:I.wrap<=0?h:(I.wrap===2?(Ee(I,p.adler&255),Ee(I,p.adler>>8&255),Ee(I,p.adler>>16&255),Ee(I,p.adler>>24&255),Ee(I,p.total_in&255),Ee(I,p.total_in>>8&255),Ee(I,p.total_in>>16&255),Ee(I,p.total_in>>24&255)):(Ue(I,p.adler>>>16),Ue(I,p.adler&65535)),je(p),I.wrap>0&&(I.wrap=-I.wrap),I.pending!==0?l:h)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==Y&&te!==z&&te!==B&&te!==q&&te!==M&&te!==U&&te!==X?we(p,c):(p.state=null,te===U?we(p,b):l))}function be(p,te){var re=te.length,I,G,ee,_e,de,pe,xe,gt;if(!p||!p.state||(I=p.state,_e=I.wrap,_e===2||_e===1&&I.status!==Y||I.lookahead))return c;for(_e===1&&(p.adler=o(p.adler,te,re,0)),I.wrap=0,re>=I.w_size&&(_e===0&&(ke(I.head),I.strstart=0,I.block_start=0,I.insert=0),gt=new e.Buf8(I.w_size),e.arraySet(gt,te,re-I.w_size,I.w_size,0),te=gt,re=I.w_size),de=p.avail_in,pe=p.next_in,xe=p.input,p.avail_in=re,p.next_in=0,p.input=te,De(I);I.lookahead>=P;){G=I.strstart,ee=I.lookahead-(P-1);do I.ins_h=(I.ins_h<<I.hash_shift^I.window[G+P-1])&I.hash_mask,I.prev[G&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=G,G++;while(--ee);I.strstart=G,I.lookahead=P-1,De(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=P-1,I.match_available=0,p.next_in=pe,p.input=xe,p.avail_in=de,I.wrap=_e,l}return ot.deflateInit=ie,ot.deflateInit2=Z,ot.deflateReset=se,ot.deflateResetKeep=ne,ot.deflateSetHeader=fe,ot.deflate=T,ot.deflateEnd=oe,ot.deflateSetDictionary=be,ot.deflateInfo="pako deflate (from Nodeca project)",ot}var An,Es;function Jp(){if(Es)return An;Es=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return An=e,An}var it={},Cn,Ss;function Xp(){if(Ss)return Cn;Ss=1;var e=30,n=12;return Cn=function(i,a){var t,r,s,d,f,l,h,c,b,m,y,g,u,_,w,v,E,x,O,C,D,W,H,S,R;t=i.state,r=i.next_in,S=i.input,s=r+(i.avail_in-5),d=i.next_out,R=i.output,f=d-(a-i.avail_out),l=d+(i.avail_out-257),h=t.dmax,c=t.wsize,b=t.whave,m=t.wnext,y=t.window,g=t.hold,u=t.bits,_=t.lencode,w=t.distcode,v=(1<<t.lenbits)-1,E=(1<<t.distbits)-1;e:do{u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=_[g&v];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)R[d++]=x&65535;else if(O&16){C=x&65535,O&=15,O&&(u<O&&(g+=S[r++]<<u,u+=8),C+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=w[g&E];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(D=x&65535,O&=15,u<O&&(g+=S[r++]<<u,u+=8,u<O&&(g+=S[r++]<<u,u+=8)),D+=g&(1<<O)-1,D>h){i.msg="invalid distance too far back",t.mode=e;break e}if(g>>>=O,u-=O,O=d-f,D>O){if(O=D-O,O>b&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(W=0,H=y,m===0){if(W+=c-O,O<C){C-=O;do R[d++]=y[W++];while(--O);W=d-D,H=R}}else if(m<O){if(W+=c+m-O,O-=m,O<C){C-=O;do R[d++]=y[W++];while(--O);if(W=0,m<C){O=m,C-=O;do R[d++]=y[W++];while(--O);W=d-D,H=R}}}else if(W+=m-O,O<C){C-=O;do R[d++]=y[W++];while(--O);W=d-D,H=R}for(;C>2;)R[d++]=H[W++],R[d++]=H[W++],R[d++]=H[W++],C-=3;C&&(R[d++]=H[W++],C>1&&(R[d++]=H[W++]))}else{W=d-D;do R[d++]=R[W++],R[d++]=R[W++],R[d++]=R[W++],C-=3;while(C>2);C&&(R[d++]=R[W++],C>1&&(R[d++]=R[W++]))}}else if((O&64)===0){x=w[(x&65535)+(g&(1<<O)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){t.mode=n;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(r<s&&d<l);C=u>>3,r-=C,u-=C<<3,g&=(1<<u)-1,i.next_in=r,i.next_out=d,i.avail_in=r<s?5+(s-r):5-(r-s),i.avail_out=d<l?257+(l-d):257-(d-l),t.hold=g,t.bits=u},Cn}var Pn,Rs;function Qp(){if(Rs)return Pn;Rs=1;var e=dn(),n=15,o=852,i=592,a=0,t=1,r=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return Pn=function(c,b,m,y,g,u,_,w){var v=w.bits,E=0,x=0,O=0,C=0,D=0,W=0,H=0,S=0,R=0,L=0,N,V,P,j,k,F=null,Y=0,z,B=new e.Buf16(n+1),q=new e.Buf16(n+1),M=null,U=0,X,J,ae;for(E=0;E<=n;E++)B[E]=0;for(x=0;x<y;x++)B[b[m+x]]++;for(D=v,C=n;C>=1&&B[C]===0;C--);if(D>C&&(D=C),C===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,w.bits=1,0;for(O=1;O<C&&B[O]===0;O++);for(D<O&&(D=O),S=1,E=1;E<=n;E++)if(S<<=1,S-=B[E],S<0)return-1;if(S>0&&(c===a||C!==1))return-1;for(q[1]=0,E=1;E<n;E++)q[E+1]=q[E]+B[E];for(x=0;x<y;x++)b[m+x]!==0&&(_[q[b[m+x]]++]=x);if(c===a?(F=M=_,z=19):c===t?(F=s,Y-=257,M=d,U-=257,z=256):(F=f,M=l,z=-1),L=0,x=0,E=O,k=u,W=D,H=0,P=-1,R=1<<D,j=R-1,c===t&&R>o||c===r&&R>i)return 1;for(;;){X=E-H,_[x]<z?(J=0,ae=_[x]):_[x]>z?(J=M[U+_[x]],ae=F[Y+_[x]]):(J=96,ae=0),N=1<<E-H,V=1<<W,O=V;do V-=N,g[k+(L>>H)+V]=X<<24|J<<16|ae|0;while(V!==0);for(N=1<<E-1;L&N;)N>>=1;if(N!==0?(L&=N-1,L+=N):L=0,x++,--B[E]===0){if(E===C)break;E=b[m+_[x]]}if(E>D&&(L&j)!==P){for(H===0&&(H=D),k+=O,W=E-H,S=1<<W;W+H<C&&(S-=B[W+H],!(S<=0));)W++,S<<=1;if(R+=1<<W,c===t&&R>o||c===r&&R>i)return 1;P=L&j,g[P]=D<<24|W<<16|k-u|0}}return L!==0&&(g[k+L]=E-H<<24|64<<16|0),w.bits=D,0},Pn}var Os;function em(){if(Os)return it;Os=1;var e=dn(),n=Wl(),o=Kl(),i=Xp(),a=Qp(),t=0,r=1,s=2,d=4,f=5,l=6,h=0,c=1,b=2,m=-2,y=-3,g=-4,u=-5,_=8,w=1,v=2,E=3,x=4,O=5,C=6,D=7,W=8,H=9,S=10,R=11,L=12,N=13,V=14,P=15,j=16,k=17,F=18,Y=19,z=20,B=21,q=22,M=23,U=24,X=25,J=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,ke=852,je=592,Ie=15,Ee=Ie;function Ue(Z){return(Z>>>24&255)+(Z>>>8&65280)+((Z&65280)<<8)+((Z&255)<<24)}function at(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qe(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,Z.total_in=Z.total_out=ie.total=0,Z.msg="",ie.wrap&&(Z.adler=ie.wrap&1),ie.mode=w,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new e.Buf32(ke),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,h)}function De(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function Ze(Z,ie){var T,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(T=0,ie=-ie):(T=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?m:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=T,oe.wbits=ie,De(Z))}function K(Z,ie){var T,oe;return Z?(oe=new at,Z.state=oe,oe.window=null,T=Ze(Z,ie),T!==h&&(Z.state=null),T):m}function Q(Z){return K(Z,Ee)}var ce=!0,ge,he;function Se(Z){if(ce){var ie;for(ge=new e.Buf32(512),he=new e.Buf32(32),ie=0;ie<144;)Z.lens[ie++]=8;for(;ie<256;)Z.lens[ie++]=9;for(;ie<280;)Z.lens[ie++]=7;for(;ie<288;)Z.lens[ie++]=8;for(a(r,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;a(s,Z.lens,0,32,he,0,Z.work,{bits:5}),ce=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=he,Z.distbits=5}function Re(Z,ie,T,oe){var be,p=Z.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),oe>=p.wsize?(e.arraySet(p.window,ie,T-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,T-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,T-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function A(Z,ie){var T,oe,be,p,te,re,I,G,ee,_e,de,pe,xe,gt,Le=0,Ae,Fe,Ye,Xe,pr,mr,Me,nt,ze=new e.Buf8(4),vt,ht,ls=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Z||!Z.state||!Z.output||!Z.input&&Z.avail_in!==0)return m;T=Z.state,T.mode===L&&(T.mode=N),te=Z.next_out,be=Z.output,I=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=T.hold,ee=T.bits,_e=re,de=I,nt=h;e:for(;;)switch(T.mode){case w:if(T.wrap===0){T.mode=N;break}for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(T.wrap&2&&G===35615){T.check=0,ze[0]=G&255,ze[1]=G>>>8&255,T.check=o(T.check,ze,2,0),G=0,ee=0,T.mode=v;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||(((G&255)<<8)+(G>>8))%31){Z.msg="incorrect header check",T.mode=me;break}if((G&15)!==_){Z.msg="unknown compression method",T.mode=me;break}if(G>>>=4,ee-=4,Me=(G&15)+8,T.wbits===0)T.wbits=Me;else if(Me>T.wbits){Z.msg="invalid window size",T.mode=me;break}T.dmax=1<<Me,Z.adler=T.check=1,T.mode=G&512?S:L,G=0,ee=0;break;case v:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(T.flags=G,(T.flags&255)!==_){Z.msg="unknown compression method",T.mode=me;break}if(T.flags&57344){Z.msg="unknown header flags set",T.mode=me;break}T.head&&(T.head.text=G>>8&1),T.flags&512&&(ze[0]=G&255,ze[1]=G>>>8&255,T.check=o(T.check,ze,2,0)),G=0,ee=0,T.mode=E;case E:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.head&&(T.head.time=G),T.flags&512&&(ze[0]=G&255,ze[1]=G>>>8&255,ze[2]=G>>>16&255,ze[3]=G>>>24&255,T.check=o(T.check,ze,4,0)),G=0,ee=0,T.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.head&&(T.head.xflags=G&255,T.head.os=G>>8),T.flags&512&&(ze[0]=G&255,ze[1]=G>>>8&255,T.check=o(T.check,ze,2,0)),G=0,ee=0,T.mode=O;case O:if(T.flags&1024){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.length=G,T.head&&(T.head.extra_len=G),T.flags&512&&(ze[0]=G&255,ze[1]=G>>>8&255,T.check=o(T.check,ze,2,0)),G=0,ee=0}else T.head&&(T.head.extra=null);T.mode=C;case C:if(T.flags&1024&&(pe=T.length,pe>re&&(pe=re),pe&&(T.head&&(Me=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),e.arraySet(T.head.extra,oe,p,pe,Me)),T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,T.length-=pe),T.length))break e;T.length=0,T.mode=D;case D:if(T.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=W;case W:if(T.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.comment=null);T.mode=H;case H:if(T.flags&512){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(T.check&65535)){Z.msg="header crc mismatch",T.mode=me;break}G=0,ee=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),Z.adler=T.check=0,T.mode=L;break;case S:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}Z.adler=T.check=Ue(G),G=0,ee=0,T.mode=R;case R:if(T.havedict===0)return Z.next_out=te,Z.avail_out=I,Z.next_in=p,Z.avail_in=re,T.hold=G,T.bits=ee,b;Z.adler=T.check=1,T.mode=L;case L:if(ie===f||ie===l)break e;case N:if(T.last){G>>>=ee&7,ee-=ee&7,T.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}switch(T.last=G&1,G>>>=1,ee-=1,G&3){case 0:T.mode=V;break;case 1:if(Se(T),T.mode=z,ie===l){G>>>=2,ee-=2;break e}break;case 2:T.mode=k;break;case 3:Z.msg="invalid block type",T.mode=me}G>>>=2,ee-=2;break;case V:for(G>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((G&65535)!==(G>>>16^65535)){Z.msg="invalid stored block lengths",T.mode=me;break}if(T.length=G&65535,G=0,ee=0,T.mode=P,ie===l)break e;case P:T.mode=j;case j:if(pe=T.length,pe){if(pe>re&&(pe=re),pe>I&&(pe=I),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,I-=pe,te+=pe,T.length-=pe;break}T.mode=L;break;case k:for(;ee<14;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(T.nlen=(G&31)+257,G>>>=5,ee-=5,T.ndist=(G&31)+1,G>>>=5,ee-=5,T.ncode=(G&15)+4,G>>>=4,ee-=4,T.nlen>286||T.ndist>30){Z.msg="too many length or distance symbols",T.mode=me;break}T.have=0,T.mode=F;case F:for(;T.have<T.ncode;){for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.lens[ls[T.have++]]=G&7,G>>>=3,ee-=3}for(;T.have<19;)T.lens[ls[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,vt={bits:T.lenbits},nt=a(t,T.lens,0,19,T.lencode,0,T.work,vt),T.lenbits=vt.bits,nt){Z.msg="invalid code lengths set",T.mode=me;break}T.have=0,T.mode=Y;case Y:for(;T.have<T.nlen+T.ndist;){for(;Le=T.lencode[G&(1<<T.lenbits)-1],Ae=Le>>>24,Fe=Le>>>16&255,Ye=Le&65535,!(Ae<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Ye<16)G>>>=Ae,ee-=Ae,T.lens[T.have++]=Ye;else{if(Ye===16){for(ht=Ae+2;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G>>>=Ae,ee-=Ae,T.have===0){Z.msg="invalid bit length repeat",T.mode=me;break}Me=T.lens[T.have-1],pe=3+(G&3),G>>>=2,ee-=2}else if(Ye===17){for(ht=Ae+3;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Ae,ee-=Ae,Me=0,pe=3+(G&7),G>>>=3,ee-=3}else{for(ht=Ae+7;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Ae,ee-=Ae,Me=0,pe=11+(G&127),G>>>=7,ee-=7}if(T.have+pe>T.nlen+T.ndist){Z.msg="invalid bit length repeat",T.mode=me;break}for(;pe--;)T.lens[T.have++]=Me}}if(T.mode===me)break;if(T.lens[256]===0){Z.msg="invalid code -- missing end-of-block",T.mode=me;break}if(T.lenbits=9,vt={bits:T.lenbits},nt=a(r,T.lens,0,T.nlen,T.lencode,0,T.work,vt),T.lenbits=vt.bits,nt){Z.msg="invalid literal/lengths set",T.mode=me;break}if(T.distbits=6,T.distcode=T.distdyn,vt={bits:T.distbits},nt=a(s,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,vt),T.distbits=vt.bits,nt){Z.msg="invalid distances set",T.mode=me;break}if(T.mode=z,ie===l)break e;case z:T.mode=B;case B:if(re>=6&&I>=258){Z.next_out=te,Z.avail_out=I,Z.next_in=p,Z.avail_in=re,T.hold=G,T.bits=ee,i(Z,de),te=Z.next_out,be=Z.output,I=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=T.hold,ee=T.bits,T.mode===L&&(T.back=-1);break}for(T.back=0;Le=T.lencode[G&(1<<T.lenbits)-1],Ae=Le>>>24,Fe=Le>>>16&255,Ye=Le&65535,!(Ae<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Fe&&(Fe&240)===0){for(Xe=Ae,pr=Fe,mr=Ye;Le=T.lencode[mr+((G&(1<<Xe+pr)-1)>>Xe)],Ae=Le>>>24,Fe=Le>>>16&255,Ye=Le&65535,!(Xe+Ae<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,T.back+=Xe}if(G>>>=Ae,ee-=Ae,T.back+=Ae,T.length=Ye,Fe===0){T.mode=J;break}if(Fe&32){T.back=-1,T.mode=L;break}if(Fe&64){Z.msg="invalid literal/length code",T.mode=me;break}T.extra=Fe&15,T.mode=q;case q:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.length+=G&(1<<T.extra)-1,G>>>=T.extra,ee-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=M;case M:for(;Le=T.distcode[G&(1<<T.distbits)-1],Ae=Le>>>24,Fe=Le>>>16&255,Ye=Le&65535,!(Ae<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((Fe&240)===0){for(Xe=Ae,pr=Fe,mr=Ye;Le=T.distcode[mr+((G&(1<<Xe+pr)-1)>>Xe)],Ae=Le>>>24,Fe=Le>>>16&255,Ye=Le&65535,!(Xe+Ae<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,T.back+=Xe}if(G>>>=Ae,ee-=Ae,T.back+=Ae,Fe&64){Z.msg="invalid distance code",T.mode=me;break}T.offset=Ye,T.extra=Fe&15,T.mode=U;case U:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}T.offset+=G&(1<<T.extra)-1,G>>>=T.extra,ee-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){Z.msg="invalid distance too far back",T.mode=me;break}T.mode=X;case X:if(I===0)break e;if(pe=de-I,T.offset>pe){if(pe=T.offset-pe,pe>T.whave&&T.sane){Z.msg="invalid distance too far back",T.mode=me;break}pe>T.wnext?(pe-=T.wnext,xe=T.wsize-pe):xe=T.wnext-pe,pe>T.length&&(pe=T.length),gt=T.window}else gt=be,xe=te-T.offset,pe=T.length;pe>I&&(pe=I),I-=pe,T.length-=pe;do be[te++]=gt[xe++];while(--pe);T.length===0&&(T.mode=B);break;case J:if(I===0)break e;be[te++]=T.length,I--,T.mode=B;break;case ae:if(T.wrap){for(;ee<32;){if(re===0)break e;re--,G|=oe[p++]<<ee,ee+=8}if(de-=I,Z.total_out+=de,T.total+=de,de&&(Z.adler=T.check=T.flags?o(T.check,be,de,te-de):n(T.check,be,de,te-de)),de=I,(T.flags?G:Ue(G))!==T.check){Z.msg="incorrect data check",T.mode=me;break}G=0,ee=0}T.mode=ue;case ue:if(T.wrap&&T.flags){for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(T.total&4294967295)){Z.msg="incorrect length check",T.mode=me;break}G=0,ee=0}T.mode=ve;case ve:nt=c;break e;case me:nt=y;break e;case we:return g;case Ce:default:return m}return Z.next_out=te,Z.avail_out=I,Z.next_in=p,Z.avail_in=re,T.hold=G,T.bits=ee,(T.wsize||de!==Z.avail_out&&T.mode<me&&(T.mode<ae||ie!==d))&&Re(Z,Z.output,Z.next_out,de-Z.avail_out),_e-=Z.avail_in,de-=Z.avail_out,Z.total_in+=_e,Z.total_out+=de,T.total+=de,T.wrap&&de&&(Z.adler=T.check=T.flags?o(T.check,be,de,Z.next_out-de):n(T.check,be,de,Z.next_out-de)),Z.data_type=T.bits+(T.last?64:0)+(T.mode===L?128:0)+(T.mode===z||T.mode===P?256:0),(_e===0&&de===0||ie===d)&&nt===h&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return m;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,h}function se(Z,ie){var T;return!Z||!Z.state||(T=Z.state,(T.wrap&2)===0)?m:(T.head=ie,ie.done=!1,h)}function fe(Z,ie){var T=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==R)?m:oe.mode===R&&(be=1,be=n(be,ie,T,0),be!==oe.check)?y:(p=Re(Z,ie,T,T),p?(oe.mode=we,g):(oe.havedict=1,h))}return it.inflateReset=De,it.inflateReset2=Ze,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=K,it.inflate=A,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=fe,it.inflateInfo="pako inflate (from Nodeca project)",it}var kn,Ts;function tm(){return Ts||(Ts=1,kn={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),kn}const Dt=()=>{const[e,n]=Yl(),[o,i]=le.useState(),a=le.useRef(!1);return le.useEffect(()=>{if(a.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=cp(e);r!=null&&i(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),a.current=!0},[e,n]),o},rm={overlayWidth:new ut(100,100,50)},{common:{strings:xs}}=sr.getLocalizedStrings();function nm(e,n){return{headerActions:{onTabChange:o=>{const i=Nt(o),a=Vt(o);$e.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(gr({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&$e.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(xs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(xs.comma)}}),e(gr({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Il(o))},onColumnSortConfigChanged:(o,i)=>{e(gr({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(xl())},onFiltersChange:o=>{e(gr({uiState:{filters:o}}))}}}}function im(e,n){return{headerData:{selectedTabOption:xt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const am=Ge(im,nm)(dp);function jn({isDrawerOpen:e}){const n=Ve(),o=Ke(),i=$t(),a=sn(),{companyId:t}=ct(),[r,s]=Yl(),[d,f]=le.useState(!1),l=Dt(),h=Oe(v=>Zh(v)),c=Oe(v=>ar(v)),{additionalChurnFactors:b}=Oe(v=>Yh(v)),{selectedCompanyDetail:m,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=h,u=Oe(v=>v.companyViewState.zeniUsers.fetchState),_=Oe(v=>v.companyHealthMetricConfigViewState);if(le.useEffect(()=>{const v=E=>E==="Not-Started"||E==="Error";h.fetchState==="Completed"?o(qt(!1)):v(h.fetchState)&&(o(xl()),v(u)&&o(Tt()),v(_.fetchState)&&o(Wh()))},[h.fetchState,_.fetchState]),le.useEffect(()=>{t!=null&&h.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Il(t)),m!=null&&(fp(),$e.trackCockpitHealthMonitorNotificationAlertClicked({companyId:m.companyInfo.companyId,companyName:m.companyInfo.name,churnProbability:m.companyHealthMetric.churnProbabilityPercentage??null}),f(!0),r.delete("utm_source"),s(r)))},[h.fetchState,m?.companyInfo.companyId,m?.companyInfo.name]),We.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return $.jsxs($.Fragment,{children:[e===!0||y!=null&&m!=null?$.jsx(ln,{anchor:"right",open:y!=null,PaperProps:{style:{width:rm.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(hs()),children:$.jsx(lp,{roomId:`cockpit_${y}`,autoConnect:!0,children:$.jsx(hp,{onSaveClick:()=>{y!=null&&o(Jh(y))},onSaveChangesToLocalStore:v=>{h.selectedCompanyId!=null&&o(Kh({companyId:h.selectedCompanyId,updatedLocalData:v}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:h,onCloseDrawer:()=>o(hs()),analytics:$e,urlSource:d,additionalChurnFactorsOptions:b})})}):null,$.jsx(am,{initialOpenThreadRequest:l??void 0,healthView:h,managementView:c,navigate:n,mixpanelHMUrl:un.mixpanelHMUrl})]})}const Jl=(e,n)=>{const o=[...e??[]];return o.push(n),o},om=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},sm=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>We.isSignedIn()===!0?$.jsx($.Fragment,{children:n}):$.jsx(tr,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function um(){return $.jsxs(bt,{children:[$.jsx(Te,{path:"/companies/:companyId",element:$.jsx(Pe,{element:$.jsx(jn,{isDrawerOpen:!0})})}),$.jsx(Te,{path:"/",element:$.jsx(Pe,{element:$.jsx(jn,{})})}),$.jsx(Te,{path:"/*",element:$.jsx(Pe,{element:$.jsx(jn,{})})})]})}const cm={drawerLeftMargin:new ut(0,0,240)};function fr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=sn(),r=o?.valuePx(t)??cm.drawerLeftMargin.valuePx(t),s=$t();return $.jsx(ln,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const fm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?$.jsx(lm,{children:$.jsx(cn,{size:"ExtraLarge",start:!0})}):null,lm=tt.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
+
box-shadow: ${e=>`0px 2px ${kt.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
+
`;function hm(e,n){const{loggedInUser:o,companyId:i,isMonthEnd:a,allUsers:t,isAuditScoreCompleted:r}=n,d=or(e).companies.find(h=>h.companyId===i),f=an(e),l=i!=null?Do(i,e,o):null;return{allUsers:t,isAuditScoreCompleted:r,reviewCompanyView:d,loggedInUser:o,auditRuleGroups:f.auditRuleGroups??[],auditReportGroupView:{auditReportGroups:l?.auditReportGroups??[],isControllerOrReviewer:l?.isControllerOrReviewer??!1},isMonthEnd:a,analytics:$e}}function dm(e,n){const{companyId:o,companyView:i,closeAuditScoreDrawer:a}=n;return{handleFetchAuditReportGroupView:t=>{o!=null&&e(Qr(o,"generate",t))},handleGenerateAuditReport:t=>{o!=null&&(e(Al(o)),t.forEach(r=>{e(Qr(o,"generate",r))}))},handleRuleClick:(t,r)=>{switch(t){case"reports":window.open(`/${i?.company.companyInfo.primaryEmailDomain}/reports`);break;case"transactions":window.open(`/${i?.company.companyInfo.primaryEmailDomain}/transactions/${r}`);break;case"dashboard":window.open(`/${i?.company.companyInfo.primaryEmailDomain}/dashboard/${r}`);break;default:console.error("Audit Page - Invalid entityType")}},handleCancelIconClick:()=>{e(jt()),a?a():n.navigate("../")},handleReasonAuditRule:(t,r,s,d)=>{o!=null&&e(ed(o,r,t,s,d))}}}const pm=Ge(hm,dm)(pp);function Xl({closeAuditScoreDrawer:e}){const n=Ve(),o=Ke(),{companyId:i}=ct(),a=We.getSignedInUser(),[t,r]=le.useState(!1);if(a==null)throw Error("Can't access Audit Report page without signing in...");const s=Oe(m=>or(m)),d=Oe(m=>ar(m).fetchState),f=Oe(m=>Xh(m.companyState,i??"")),l=Oe(m=>an(m)),h=Oe(m=>Do(i??"",m,a)),c=Oe(m=>Qh(m));le.useEffect(()=>{s.fetchState==="Completed"&&l.fetchState==="Not-Started"&&o(Mo())},[s.fetchState,l.fetchState]),le.useEffect(()=>{l.fetchState==="Completed"&&d==="Completed"&&l.auditRuleGroups.forEach(m=>{if(h.auditReportGroups.find(g=>g.auditReportGroupId===m.auditRuleGroupId)==null&&i!=null){const u=s.companies.find(_=>_.companyId===i)?.auditSummary?.auditReportLastGeneratedDate!=null?"view":"generate";o(Qr(i,u,m.auditRuleGroupId))}})},[l,s,h,d]),le.useEffect(()=>{const m=h.auditReportGroups.filter(y=>y.fetchState==="Completed"||y.fetchState==="Error");t===!1&&m.length!==0&&m.length===l.auditRuleGroups.length&&(r(!0),o(jt(!0)))},[JSON.stringify(h.auditReportGroups.filter(m=>m.fetchState==="Completed"||m.fetchState==="Error"))]),le.useEffect(()=>{const m=h.auditReportGroups.filter(y=>y.fetchState==="In-Progress");t===!0&&m.length!==0&&m.length===l.auditRuleGroups.length&&r(!1)},[JSON.stringify(h.auditReportGroups.filter(m=>m.fetchState==="In-Progress"))]);const b=s.fetchState!=="Completed"||l.fetchState!=="Completed"||d!=="Completed"||l.auditRuleGroups.length===0;return b?$.jsx(fm,{fetchState:b?"In-Progress":"Completed"}):$.jsx($.Fragment,{children:$.jsx(pm,{isAuditScoreCompleted:(s.fetchState==="Completed"||s.fetchState==="Error")&&t,allUsers:c,companyId:i,isMonthEnd:!!e,navigate:n,loggedInUser:a,companyView:f,closeAuditScoreDrawer:e})})}const mm=tt.div`
|
|
11
|
+
display: flex;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: calc(100vh - 110px);
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
align-items: center;
|
|
17
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
18
|
+
`;function gm({closeCustomerRequestDrawer:e,addCustomerRequest:n,resetCustomerRequest:o}){const{companyId:i}=ct(),a=We.getSignedInUser();if(a==null)throw Error("Can't access Customer Request page without signing in...");const t=Oe(r=>Cl(r,i,a));return le.useEffect(()=>{o()},[]),$.jsx($.Fragment,{children:t.fetchState==="In-Progress"||t.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?$.jsx(mm,{children:$.jsx(cn,{size:"Large",start:!0})}):$.jsx(mp,{onCloseClick:e,addCustomerRequest:n,snippets:t.companyMonthEndReportTemplatesData,bulletPoints:t.zeniRequestsData??[]})})}function vm({onClose:e}){const n=Ke(),{companyId:o}=ct(),[i,a]=le.useState(!1),{useFeatureGate:t,useDynamicConfig:r}=Rt(),{isFeatureEnabled:s}=t(fn.enableZeniGPTFeatureForMonthEndEmail),{configValue:d}=r(Lt.monthEndPreviewEnablement);if(o==null)throw Error("Can't access Month End Email page without valid company details...");const[f,l]=le.useState(!1),[h,c]=le.useState(!1),[b,m]=le.useState(!1),[y,g]=le.useState([]),u=We.getSignedInUser();if(u==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const _=Oe(B=>ar(B)),w=Oe(B=>or(B)),v=Oe(B=>an(B)),E=Oe(B=>Do(o,B,u)),x=Oe(B=>Cl(B,o,u)),O=le.useCallback((B=!1,q=!1)=>{n(Al(o)),l(!1),_.fetchState==="Completed"&&w.fetchState==="Completed"&&v.fetchState==="Completed"&&(v.auditRuleGroups.forEach(M=>{n(Qr(o,"generate",M.auditRuleGroupId))}),n(td(B,o,void 0,void 0,q)),n(rd(o)))},[o,_.fetchState,w.fetchState,v.fetchState]);le.useEffect(()=>{const B=E.auditReportGroups.filter(q=>q.fetchState==="Completed"||q.fetchState==="Error");f===!1&&B.length!==0&&B.length===v.auditRuleGroups.length&&(l(!0),n(jt(!0,!0)))},[E.auditReportGroups]);const C=le.useCallback(()=>{n(nd({companyId:o})),l(!1),e()},[e]),D=le.useCallback(()=>{O(!0,!0)},[O]),W=le.useCallback(B=>{n(id(o,B))},[]),H=le.useCallback((B,q,M,U)=>{n(ds(B,o,q,!0,M,U))},[]),S=le.useCallback((B,q,M,U)=>{n(ds(B,o,q,!1,M,U))},[]),R=le.useCallback(()=>{a(!1)},[]),L=le.useCallback(B=>{n(ad(B,o))},[]),N=le.useCallback(B=>{n(od({files:B}))},[]),V=le.useCallback(B=>{n(sd(B))},[]),P=le.useCallback(()=>{n(ud({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},[]),j=le.useCallback(()=>{n(cd())},[]),k=le.useCallback(()=>{c(!0)},[]),F=le.useCallback(()=>{m(!0)},[]),Y=le.useCallback(B=>{g(B),m(!1)},[]),z=le.useCallback(()=>{g([])},[]);return le.useEffect(()=>{x?.previewMonthEndReportStatus?.fetchState==="Completed"?a(!0):a(!1)},[x?.previewMonthEndReportStatus?.fetchState]),le.useEffect(()=>{(x?.sendMonthEndReportStatus?.fetchState==="Completed"||x?.saveMonthEndReportStatus?.fetchState==="Completed")&&C()},[x?.sendMonthEndReportStatus?.fetchState,x?.saveMonthEndReportStatus?.fetchState,C]),le.useEffect(()=>{n(Pl(!1)),n(Tt()),n(Mo())},[]),le.useEffect(()=>{O()},[O]),$.jsxs($.Fragment,{children:[$.jsx(fr,{isOpen:h||b,drawerLeftMargin:h?new ut(0,0,0,0):b?new ut(0,0,300,650):new ut(0,0,300,650),onClose:()=>{h?(n(jt(!0,!0)),c(!1)):b&&m(!1)},children:$.jsx(ym,{onClick:B=>B.stopPropagation(),children:h?$.jsx(Xl,{closeAuditScoreDrawer:()=>c(!1)}):b?$.jsx(gm,{closeCustomerRequestDrawer:()=>m(!1),addCustomerRequest:Y,resetCustomerRequest:z}):null})}),$.jsx(gp,{companyId:o,enableZeniGPTFeature:s,enableSendingMonthEndEmail:d.companiesByPassPreviewMonthEndReport!=null&&Array.isArray(d.companiesByPassPreviewMonthEndReport)?d.companiesByPassPreviewMonthEndReport.includes(o):!1,monthEndReportView:x,previewMode:i,customerRequestData:y,onNavigateBack:C,onRefresh:D,sendMonthEndReport:W,previewMonthEndReport:H,saveMonthEndReport:S,onEditClick:R,improveUsingZeniGPTClick:L,onRemoveFileAttachment:V,onUpdateFileAttachment:N,onOpenFileAttachmentSnackBar:P,onCloseFileAttachmentSnackBar:j,onClickAuditScore:k,onClickCustomerRequest:F,isAuditScoreLoadingCompleted:f&&(w.fetchState==="Completed"||w.fetchState==="Error")})]})}const ym=tt(Gt)`
|
|
19
|
+
display: flex;
|
|
20
|
+
min-height: 100%;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
`;function _m(){const e=Ke(),n=Ve(),{companyId:o,reportDate:i}=ct(),a=Oe(d=>ar(d).fetchState);if(o==null||i==null)throw Error("Can't access historic Email without company id and reportDate...");const t=Oe(d=>fd(d,o,Xr(i))),r=le.useCallback(d=>{n(`../../management/month-end-report-history/company/${o}/${d.format(sr.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`),e(ps(o,d))},[o]),s=le.useCallback(()=>{a==="Completed"&&t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&(e(ld(o)),e(ps(o,Xr(i))))},[o,a,i,t.fetchState]);return le.useEffect(()=>{e(Pl(!1))},[]),le.useEffect(()=>{s()},[s]),$.jsx(vp,{monthEndReportHistoricData:t,reportSentDate:Xr(i),onDateChange:r,onNavigateBack:()=>n("../../"),onRefresh:s})}function bm({isOpen:e,emailHistoryMode:n,onClose:o}){return n?$.jsx(fr,{drawerLeftMargin:new ut(Rn[0],Rn[0],Rn[0]),isOpen:e,onClose:o,children:$.jsx(_m,{})}):$.jsx(yp,{isOpen:e,children:$.jsx(vm,{onClose:o})})}const{common:{strings:Ln},dateFormat:wm}=sr.getLocalizedStrings();function Em(e,n){const{loggedInUserRole:o,loggedInUser:i,navigate:a}=n;return{headerActions:{onTabChange:t=>{const r=Nt(t),s=Vt(t);$e.trackCockpitTabClicked(s),a(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(t,r)=>{e(pt({filterText:r}))},onFiltersChange:(t,r)=>{e(pt({filters:r}))}}},managementPageActions:{onColumnSortConfigChanged:(t,r)=>{e(pt({sortKey:t,sortOrder:r}))},changeHandlers:(t,r)=>{const s=Om(r);Object.keys(s).length>0&&e(Fo(t,s))},onScroll:t=>{e(pt({scrollYOffset:t}))},onViewDetailsLinkClicked:t=>{a(`./parent/${t}`)},onCompanyNameClicked:t=>window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:t=>window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onMonthEndReportPageClick:t=>{a(`/management/month-end-report/company/${t.company.company.companyInfo.companyId}`)},onTaskIconClicked:t=>{const r=t.controllers.map(s=>s.user.email);t.company.company.companyInfo.tenantId!=null&&i.userEmail!=null&&$e.trackCockpitTaskCardClicked({tenantName:t.company.company.companyInfo.name,tenantId:t.company.company.companyInfo.tenantId,user:{name:i.firstName!=null?i.firstName.concat(Ln.space,i.lastName??Ln.empty).trim():i.lastName??Ln.empty,email:i.userEmail,role:o?.userRoles??[]},controllerEmails:r}),window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/tasks`)},onFiltersChange:(t,r)=>{e(pt({filters:r}))},onCockpitReloadData:t=>{t==="management"&&e(on())},showMonthEndReportHistoricData:(t,r)=>{a(`/management/month-end-report-history/company/${t}/${r.startOf("month").format(wm.analytics.YYYYDashMMDashDDFormat)}`)}}}}function Sm(e,n){return{headerData:{selectedTabOption:xt("management")},managementPageData:{loggedInUser:n.loggedInUser,loggedInUserRole:n.loggedInUserRole,managementView:n.managementView}}}const Rm=Ge(Sm,Em)(Gl);function vr({isMonthEndEmailDrawerOpen:e=!1,emailHistoryMode:n=!1}){const o=Ve(),i=Ke(),a=Dt(),{useDynamicConfig:t}=Rt(),{configValue:r}=t(Lt.monthEndInsightsEnablement),{configValue:s}=t(Lt.expenseAutomationEnablement),d=We.getSignedInUser();if(d==null)throw Error("Can't access Management page without signing in...");const f=Oe(b=>ar(b)),l=Oe(b=>kl(b.userRoleState,d.userId)),h=Oe(b=>b.companyViewState.zeniUsers.fetchState);le.useEffect(()=>{f.fetchState==="Completed"?i(qt(!1)):(f.fetchState==="Not-Started"||f.fetchState==="Error")&&(i(on()),(h==="Not-Started"||h==="Error")&&i(Tt()))},[f.fetchState]);const c=()=>{o(-1)};return $.jsxs($.Fragment,{children:[e===!0?$.jsx(bm,{isOpen:e===!0,emailHistoryMode:n===!0,onClose:c}):null,$.jsx(Rm,{initialOpenThreadRequest:a??void 0,loggedInUser:d,loggedInUserRole:l,managementView:f,navigate:o,companiesExcludedFromMonthEndReport:r.companiesExcludedFromMonthEndReport!=null?r.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:s.expenseAutomationEnabledCompanies!=null&&Array.isArray(s.expenseAutomationEnabledCompanies)?s.expenseAutomationEnabledCompanies:[]})]})}const Om=e=>{const{status:n,group:o,taxStatus:i,reportSent:a,users:t,customerSatisfaction:r}=e;return n?{statusCode:n?.selectedValue?.code}:o?{companyGroupId:o?.selectedValue?.id}:i?{taxStatusCode:i?.selectedValue?.code}:a?{lastReportSentDate:a?.date,lastReportSentBusinessDay:a?.businessDay}:t?{users:t}:r?{customerSatisfaction:r}:{}};function Tm(e,n){return{onGoBack:()=>{n.navigate(-1)},onGoHome:()=>{n.navigate("/")}}}const xm=Ge(null,Tm)(_p);function Yo(){const e=Ve();return $.jsx(xm,{navigate:e})}const Im=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"})),{dateFormat:Am}=sr.getLocalizedStrings();function Cm(e,n){const{navigate:o}=n;return{headerActions:{onNavigateBack:()=>{n.navigate("../")},filterActions:{onFilterTextChanged:(i,a)=>{i==="management"&&e(pt({filterText:a}))},onFiltersChange:(i,a)=>{i==="management"&&e(pt({filters:a}))}}},managementPageActions:{onColumnSortConfigChanged:(i,a)=>{e(pt({sortKey:i,sortOrder:a}))},changeHandlers:(i,a)=>{const t=Lm(a);Object.keys(t).length>0&&e(Fo(i,t))},onScroll:i=>{e(pt({scrollYOffset:i}))},onCompanyNameClicked:i=>window.open(`/${i.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:i=>window.open(`/${i.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onFiltersChange:(i,a)=>{i==="management"&&e(pt({filters:a}))},onMonthEndReportPageClick:i=>{o(`/management/month-end-report/company/${i.company.company.companyInfo.companyId}`)},onCockpitReloadData:i=>{i==="management"&&e(on())},showMonthEndReportHistoricData:(i,a)=>{o(`/management/month-end-report-history/company/${i}/${a.startOf("month").format(Am.analytics.YYYYDashMMDashDDFormat)}`)}}}}function Pm(e,n){return{headerData:{selectedTabOption:xt("management"),showBackButton:!0},managementPageData:{loggedInUser:n.loggedInUser,loggedInUserRole:n.loggedInUserRole,showDetailsPageLink:!1,managementView:{...n.managementView,uiState:{...n.managementView.uiState,scrollYOffset:0}}}}}const km=Ge(Pm,Cm)(Gl);function jm(){const e=Ve(),[n,o]=le.useState(!1),i=Ke(),{parentId:a}=ct(),{useDynamicConfig:t}=Rt(),{configValue:r}=t(Lt.monthEndInsightsEnablement),{configValue:s}=t(Lt.expenseAutomationEnablement),d=a!=null?Oe(h=>hd(h,a)):void 0;le.useEffect(()=>{n===!1&&a!=null&&(o(!0),i(dd(!1,a)))},[n]);const f=We.getSignedInUser();if(f==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const l=Oe(h=>kl(h.userRoleState,f.userId));return a==null?$.jsx(Yo,{}):d!=null?$.jsx(km,{loggedInUser:f,loggedInUserRole:l,managementView:d,navigate:e,companiesExcludedFromMonthEndReport:r.companiesExcludedFromMonthEndReport!=null?r.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:s.expenseAutomationEnabledCompanies!=null&&Array.isArray(s.expenseAutomationEnabledCompanies)?s.expenseAutomationEnabledCompanies:[]}):null}const Lm=e=>{const{status:n,group:o,taxStatus:i,reportSent:a,users:t,customerSatisfaction:r}=e;return n?{statusCode:n?.selectedValue?.code}:o?{companyGroupId:o?.selectedValue?.id}:i?{taxStatusCode:i?.selectedValue?.code}:a?{lastReportSentDate:a?.date,lastReportSentBusinessDay:a?.businessDay}:t?{users:t}:r?{customerSatisfaction:r}:{}};function qm(){return $.jsxs(bt,{children:[$.jsx(Te,{path:"/",element:$.jsx(Pe,{element:$.jsx(vr,{})})}),$.jsx(Te,{path:"/parent/:parentId",element:$.jsx(Pe,{element:$.jsx(jm,{})})}),$.jsx(Te,{path:"/month-end-report/company/:companyId",element:$.jsx(Pe,{element:$.jsx(vr,{isMonthEndEmailDrawerOpen:!0})})}),$.jsx(Te,{path:"/month-end-report-history/company/:companyId/:reportDate",element:$.jsx(Pe,{element:$.jsx(vr,{emailHistoryMode:!0,isMonthEndEmailDrawerOpen:!0})})}),$.jsx(Te,{path:"/*",element:$.jsx(Pe,{element:$.jsx(vr,{})})})]})}var qn={exports:{}},Is;function Nm(){return Is||(Is=1,function(e){(function(n){function o(a){return typeof a=="function"?a:typeof et=="function"?function(r){return new et(r,"base64").toString("binary")}:typeof n.base64js=="object"?function(r){var s=n.base64js.b64ToByteArray(r);return Array.prototype.map.call(s,function(d){return String.fromCharCode(d)}).join("")}:function(){throw new Error("You're probably in an old browser or an iOS webworker. It might help to include beatgammit's base64-js.")}}var i=o(n.atob);n.atob=i,e&&e.exports&&(e.exports=i)})(window)}(qn)),qn.exports}var yr={exports:{}},Nn={exports:{}},Dn={},As;function Ql(){if(As)return Dn;As=1;function e(_){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},e(_)}function n(_,w,v){return Object.defineProperty(_,"prototype",{writable:!1}),_}function o(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function i(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),w&&a(_,w)}function a(_,w){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,x){return E.__proto__=x,E},a(_,w)}function t(_){var w=d();return function(){var E=f(_),x;if(w){var O=f(this).constructor;x=Reflect.construct(E,arguments,O)}else x=E.apply(this,arguments);return r(this,x)}}function r(_,w){if(w&&(e(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(_)}function s(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(_){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},f(_)}var l={},h,c;function b(_,w,v){v||(v=Error);function E(O,C,D){return typeof w=="string"?w:w(O,C,D)}var x=function(O){i(D,O);var C=t(D);function D(W,H,S){var R;return o(this,D),R=C.call(this,E(W,H,S)),R.code=_,R}return n(D)}(v);l[_]=x}function m(_,w){if(Array.isArray(_)){var v=_.length;return _=_.map(function(E){return String(E)}),v>2?"one of ".concat(w," ").concat(_.slice(0,v-1).join(", "),", or ")+_[v-1]:v===2?"one of ".concat(w," ").concat(_[0]," or ").concat(_[1]):"of ".concat(w," ").concat(_[0])}else return"of ".concat(w," ").concat(String(_))}function y(_,w,v){return _.substr(0,w.length)===w}function g(_,w,v){return(v===void 0||v>_.length)&&(v=_.length),_.substring(v-w.length,v)===w}function u(_,w,v){return typeof v!="number"&&(v=0),v+w.length>_.length?!1:_.indexOf(w,v)!==-1}return b("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),b("ERR_INVALID_ARG_TYPE",function(_,w,v){h===void 0&&(h=ir()),h(typeof _=="string","'name' must be a string");var E;typeof w=="string"&&y(w,"not ")?(E="must not be",w=w.replace(/^not /,"")):E="must be";var x;if(g(_," argument"))x="The ".concat(_," ").concat(E," ").concat(m(w,"type"));else{var O=u(_,".")?"property":"argument";x='The "'.concat(_,'" ').concat(O," ").concat(E," ").concat(m(w,"type"))}return x+=". Received type ".concat(e(v)),x},TypeError),b("ERR_INVALID_ARG_VALUE",function(_,w){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";c===void 0&&(c=He());var E=c.inspect(w);return E.length>128&&(E="".concat(E.slice(0,128),"...")),"The argument '".concat(_,"' ").concat(v,". Received ").concat(E)},TypeError),b("ERR_INVALID_RETURN_VALUE",function(_,w,v){var E;return v&&v.constructor&&v.constructor.name?E="instance of ".concat(v.constructor.name):E="type ".concat(e(v)),"Expected ".concat(_,' to be returned from the "').concat(w,'"')+" function but got ".concat(E,".")},TypeError),b("ERR_MISSING_ARGS",function(){for(var _=arguments.length,w=new Array(_),v=0;v<_;v++)w[v]=arguments[v];h===void 0&&(h=ir()),h(w.length>0,"At least one arg needs to be specified");var E="The ",x=w.length;switch(w=w.map(function(O){return'"'.concat(O,'"')}),x){case 1:E+="".concat(w[0]," argument");break;case 2:E+="".concat(w[0]," and ").concat(w[1]," arguments");break;default:E+=w.slice(0,x-1).join(", "),E+=", and ".concat(w[x-1]," arguments");break}return"".concat(E," must be specified")},TypeError),Dn.codes=l,Dn}var Mn,Cs;function Dm(){if(Cs)return Mn;Cs=1;function e(k,F){var Y=Object.keys(k);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(k);F&&(z=z.filter(function(B){return Object.getOwnPropertyDescriptor(k,B).enumerable})),Y.push.apply(Y,z)}return Y}function n(k){for(var F=1;F<arguments.length;F++){var Y=arguments[F]!=null?arguments[F]:{};F%2?e(Object(Y),!0).forEach(function(z){o(k,z,Y[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(Y)):e(Object(Y)).forEach(function(z){Object.defineProperty(k,z,Object.getOwnPropertyDescriptor(Y,z))})}return k}function o(k,F,Y){return F=r(F),F in k?Object.defineProperty(k,F,{value:Y,enumerable:!0,configurable:!0,writable:!0}):k[F]=Y,k}function i(k,F){if(!(k instanceof F))throw new TypeError("Cannot call a class as a function")}function a(k,F){for(var Y=0;Y<F.length;Y++){var z=F[Y];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(k,r(z.key),z)}}function t(k,F,Y){return F&&a(k.prototype,F),Object.defineProperty(k,"prototype",{writable:!1}),k}function r(k){var F=s(k,"string");return _(F)==="symbol"?F:String(F)}function s(k,F){if(_(k)!=="object"||k===null)return k;var Y=k[Symbol.toPrimitive];if(Y!==void 0){var z=Y.call(k,F);if(_(z)!=="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(k)}function d(k,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(F&&F.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),F&&g(k,F)}function f(k){var F=m();return function(){var z=u(k),B;if(F){var q=u(this).constructor;B=Reflect.construct(z,arguments,q)}else B=z.apply(this,arguments);return l(this,B)}}function l(k,F){if(F&&(_(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(k)}function h(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function c(k){var F=typeof Map=="function"?new Map:void 0;return c=function(z){if(z===null||!y(z))return z;if(typeof z!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(z))return F.get(z);F.set(z,B)}function B(){return b(z,arguments,u(this).constructor)}return B.prototype=Object.create(z.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),g(B,z)},c(k)}function b(k,F,Y){return m()?b=Reflect.construct.bind():b=function(B,q,M){var U=[null];U.push.apply(U,q);var X=Function.bind.apply(B,U),J=new X;return M&&g(J,M.prototype),J},b.apply(null,arguments)}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(k){return Function.toString.call(k).indexOf("[native code]")!==-1}function g(k,F){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,B){return z.__proto__=B,z},g(k,F)}function u(k){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},u(k)}function _(k){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},_(k)}var w=He(),v=w.inspect,E=Ql(),x=E.codes.ERR_INVALID_ARG_TYPE;function O(k,F,Y){return(Y===void 0||Y>k.length)&&(Y=k.length),k.substring(Y-F.length,Y)===F}function C(k,F){if(F=Math.floor(F),k.length==0||F==0)return"";var Y=k.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)k+=k,F--;return k+=k.substring(0,Y-k.length),k}var D="",W="",H="",S="",R={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},L=10;function N(k){var F=Object.keys(k),Y=Object.create(Object.getPrototypeOf(k));return F.forEach(function(z){Y[z]=k[z]}),Object.defineProperty(Y,"message",{value:k.message}),Y}function V(k){return v(k,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function P(k,F,Y){var z="",B="",q=0,M="",U=!1,X=V(k),J=X.split(`
|
|
23
|
+
`),ae=V(F).split(`
|
|
24
|
+
`),ue=0,ve="";if(Y==="strictEqual"&&_(k)==="object"&&_(F)==="object"&&k!==null&&F!==null&&(Y="strictEqualObject"),J.length===1&&ae.length===1&&J[0]!==ae[0]){var me=J[0].length+ae[0].length;if(me<=L){if((_(k)!=="object"||k===null)&&(_(F)!=="object"||F===null)&&(k!==0||F!==0))return"".concat(R[Y],`
|
|
25
|
+
|
|
26
|
+
`)+"".concat(J[0]," !== ").concat(ae[0],`
|
|
27
|
+
`)}else if(Y!=="strictEqualObject"){var we=ye.stderr&&ye.stderr.isTTY?ye.stderr.columns:80;if(me<we){for(;J[0][ue]===ae[0][ue];)ue++;ue>2&&(ve=`
|
|
28
|
+
`.concat(C(" ",ue),"^"),ue=0)}}}for(var Ce=J[J.length-1],ke=ae[ae.length-1];Ce===ke&&(ue++<2?M=`
|
|
29
|
+
`.concat(Ce).concat(M):z=Ce,J.pop(),ae.pop(),!(J.length===0||ae.length===0));)Ce=J[J.length-1],ke=ae[ae.length-1];var je=Math.max(J.length,ae.length);if(je===0){var Ie=X.split(`
|
|
30
|
+
`);if(Ie.length>30)for(Ie[26]="".concat(D,"...").concat(S);Ie.length>27;)Ie.pop();return"".concat(R.notIdentical,`
|
|
31
|
+
|
|
32
|
+
`).concat(Ie.join(`
|
|
33
|
+
`),`
|
|
34
|
+
`)}ue>3&&(M=`
|
|
35
|
+
`.concat(D,"...").concat(S).concat(M),U=!0),z!==""&&(M=`
|
|
36
|
+
`.concat(z).concat(M),z="");var Ee=0,Ue=R[Y]+`
|
|
37
|
+
`.concat(W,"+ actual").concat(S," ").concat(H,"- expected").concat(S),at=" ".concat(D,"...").concat(S," Lines skipped");for(ue=0;ue<je;ue++){var qe=ue-q;if(J.length<ue+1)qe>1&&ue>2&&(qe>4?(B+=`
|
|
38
|
+
`.concat(D,"...").concat(S),U=!0):qe>3&&(B+=`
|
|
39
|
+
`.concat(ae[ue-2]),Ee++),B+=`
|
|
40
|
+
`.concat(ae[ue-1]),Ee++),q=ue,z+=`
|
|
41
|
+
`.concat(H,"-").concat(S," ").concat(ae[ue]),Ee++;else if(ae.length<ue+1)qe>1&&ue>2&&(qe>4?(B+=`
|
|
42
|
+
`.concat(D,"...").concat(S),U=!0):qe>3&&(B+=`
|
|
43
|
+
`.concat(J[ue-2]),Ee++),B+=`
|
|
44
|
+
`.concat(J[ue-1]),Ee++),q=ue,B+=`
|
|
45
|
+
`.concat(W,"+").concat(S," ").concat(J[ue]),Ee++;else{var De=ae[ue],Ze=J[ue],K=Ze!==De&&(!O(Ze,",")||Ze.slice(0,-1)!==De);K&&O(De,",")&&De.slice(0,-1)===Ze&&(K=!1,Ze+=","),K?(qe>1&&ue>2&&(qe>4?(B+=`
|
|
46
|
+
`.concat(D,"...").concat(S),U=!0):qe>3&&(B+=`
|
|
47
|
+
`.concat(J[ue-2]),Ee++),B+=`
|
|
48
|
+
`.concat(J[ue-1]),Ee++),q=ue,B+=`
|
|
49
|
+
`.concat(W,"+").concat(S," ").concat(Ze),z+=`
|
|
50
|
+
`.concat(H,"-").concat(S," ").concat(De),Ee+=2):(B+=z,z="",(qe===1||ue===0)&&(B+=`
|
|
51
|
+
`.concat(Ze),Ee++))}if(Ee>20&&ue<je-2)return"".concat(Ue).concat(at,`
|
|
52
|
+
`).concat(B,`
|
|
53
|
+
`).concat(D,"...").concat(S).concat(z,`
|
|
54
|
+
`)+"".concat(D,"...").concat(S)}return"".concat(Ue).concat(U?at:"",`
|
|
55
|
+
`).concat(B).concat(z).concat(M).concat(ve)}var j=function(k,F){d(z,k);var Y=f(z);function z(B){var q;if(i(this,z),_(B)!=="object"||B===null)throw new x("options","Object",B);var M=B.message,U=B.operator,X=B.stackStartFn,J=B.actual,ae=B.expected,ue=Error.stackTraceLimit;if(Error.stackTraceLimit=0,M!=null)q=Y.call(this,String(M));else if(ye.stderr&&ye.stderr.isTTY&&(ye.stderr&&ye.stderr.getColorDepth&&ye.stderr.getColorDepth()!==1?(D="\x1B[34m",W="\x1B[32m",S="\x1B[39m",H="\x1B[31m"):(D="",W="",S="",H="")),_(J)==="object"&&J!==null&&_(ae)==="object"&&ae!==null&&"stack"in J&&J instanceof Error&&"stack"in ae&&ae instanceof Error&&(J=N(J),ae=N(ae)),U==="deepStrictEqual"||U==="strictEqual")q=Y.call(this,P(J,ae,U));else if(U==="notDeepStrictEqual"||U==="notStrictEqual"){var ve=R[U],me=V(J).split(`
|
|
56
|
+
`);if(U==="notStrictEqual"&&_(J)==="object"&&J!==null&&(ve=R.notStrictEqualObject),me.length>30)for(me[26]="".concat(D,"...").concat(S);me.length>27;)me.pop();me.length===1?q=Y.call(this,"".concat(ve," ").concat(me[0])):q=Y.call(this,"".concat(ve,`
|
|
57
|
+
|
|
58
|
+
`).concat(me.join(`
|
|
59
|
+
`),`
|
|
60
|
+
`))}else{var we=V(J),Ce="",ke=R[U];U==="notDeepEqual"||U==="notEqual"?(we="".concat(R[U],`
|
|
61
|
+
|
|
62
|
+
`).concat(we),we.length>1024&&(we="".concat(we.slice(0,1021),"..."))):(Ce="".concat(V(ae)),we.length>512&&(we="".concat(we.slice(0,509),"...")),Ce.length>512&&(Ce="".concat(Ce.slice(0,509),"...")),U==="deepEqual"||U==="equal"?we="".concat(ke,`
|
|
63
|
+
|
|
64
|
+
`).concat(we,`
|
|
65
|
+
|
|
66
|
+
should equal
|
|
67
|
+
|
|
68
|
+
`):Ce=" ".concat(U," ").concat(Ce)),q=Y.call(this,"".concat(we).concat(Ce))}return Error.stackTraceLimit=ue,q.generatedMessage=!M,Object.defineProperty(h(q),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),q.code="ERR_ASSERTION",q.actual=J,q.expected=ae,q.operator=U,Error.captureStackTrace&&Error.captureStackTrace(h(q),X),q.stack,q.name="AssertionError",l(q)}return t(z,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:F,value:function(q,M){return v(this,n(n({},M),{},{customInspect:!1,depth:0}))}}]),z}(c(Error),v.custom);return Mn=j,Mn}var Fn,Ps;function eh(){if(Ps)return Fn;Ps=1;var e=Object.prototype.toString;return Fn=function(o){var i=e.call(o),a=i==="[object Arguments]";return a||(a=i!=="[object Array]"&&o!==null&&typeof o=="object"&&typeof o.length=="number"&&o.length>=0&&e.call(o.callee)==="[object Function]"),a},Fn}var Bn,ks;function Mm(){if(ks)return Bn;ks=1;var e;if(!Object.keys){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=eh(),a=Object.prototype.propertyIsEnumerable,t=!a.call({toString:null},"toString"),r=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(c){var b=c.constructor;return b&&b.prototype===c},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},l=function(){if(typeof window>"u")return!1;for(var c in window)try{if(!f["$"+c]&&n.call(window,c)&&window[c]!==null&&typeof window[c]=="object")try{d(window[c])}catch{return!0}}catch{return!0}return!1}(),h=function(c){if(typeof window>"u"||!l)return d(c);try{return d(c)}catch{return!1}};e=function(b){var m=b!==null&&typeof b=="object",y=o.call(b)==="[object Function]",g=i(b),u=m&&o.call(b)==="[object String]",_=[];if(!m&&!y&&!g)throw new TypeError("Object.keys called on a non-object");var w=r&&y;if(u&&b.length>0&&!n.call(b,0))for(var v=0;v<b.length;++v)_.push(String(v));if(g&&b.length>0)for(var E=0;E<b.length;++E)_.push(String(E));else for(var x in b)!(w&&x==="prototype")&&n.call(b,x)&&_.push(String(x));if(t)for(var O=h(b),C=0;C<s.length;++C)!(O&&s[C]==="constructor")&&n.call(b,s[C])&&_.push(s[C]);return _}}return Bn=e,Bn}var Un,js;function th(){if(js)return Un;js=1;var e=Array.prototype.slice,n=eh(),o=Object.keys,i=o?function(r){return o(r)}:Mm(),a=Object.keys;return i.shim=function(){if(Object.keys){var r=function(){var s=Object.keys(arguments);return s&&s.length===arguments.length}(1,2);r||(Object.keys=function(d){return n(d)?a(e.call(d)):a(d)})}else Object.keys=i;return Object.keys||i},Un=i,Un}var $n,Ls;function Fm(){if(Ls)return $n;Ls=1;var e=th(),n=Dp()(),o=Mp(),i=Fp(),a=o("Array.prototype.push"),t=o("Object.prototype.propertyIsEnumerable"),r=n?i.getOwnPropertySymbols:null;return $n=function(d,f){if(d==null)throw new TypeError("target must be an object");var l=i(d);if(arguments.length===1)return l;for(var h=1;h<arguments.length;++h){var c=i(arguments[h]),b=e(c),m=n&&(i.getOwnPropertySymbols||r);if(m)for(var y=m(c),g=0;g<y.length;++g){var u=y[g];t(c,u)&&a(b,u)}for(var _=0;_<b.length;++_){var w=b[_];if(t(c,w)){var v=c[w];l[w]=v}}}return l},$n}var Vn,qs;function Bm(){if(qs)return Vn;qs=1;var e=Fm(),n=function(){if(!Object.assign)return!1;for(var i="abcdefghijklmnopqrst",a=i.split(""),t={},r=0;r<a.length;++r)t[a[r]]=a[r];var s=Object.assign({},t),d="";for(var f in s)d+=f;return i!==d},o=function(){if(!Object.assign||!Object.preventExtensions)return!1;var i=Object.preventExtensions({1:2});try{Object.assign(i,"xy")}catch{return i[1]==="y"}return!1};return Vn=function(){return!Object.assign||n()||o()?e:Object.assign},Vn}var Gn,Ns;function rh(){if(Ns)return Gn;Ns=1;var e=function(n){return n!==n};return Gn=function(o,i){return o===0&&i===0?1/o===1/i:!!(o===i||e(o)&&e(i))},Gn}var zn,Ds;function Wo(){if(Ds)return zn;Ds=1;var e=rh();return zn=function(){return typeof Object.is=="function"?Object.is:e},zn}var Hn,Ms;function Um(){if(Ms)return Hn;Ms=1;var e=Bp(),n=Ho(),o=n(e("String.prototype.indexOf"));return Hn=function(a,t){var r=e(a,!!t);return typeof r=="function"&&o(a,".prototype.")>-1?n(r):r},Hn}var Zn,Fs;function pn(){if(Fs)return Zn;Fs=1;var e=th(),n=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",o=Object.prototype.toString,i=Array.prototype.concat,a=$p(),t=function(f){return typeof f=="function"&&o.call(f)==="[object Function]"},r=Up()(),s=function(f,l,h,c){if(l in f){if(c===!0){if(f[l]===h)return}else if(!t(c)||!c())return}r?a(f,l,h,!0):a(f,l,h)},d=function(f,l){var h=arguments.length>2?arguments[2]:{},c=e(l);n&&(c=i.call(c,Object.getOwnPropertySymbols(l)));for(var b=0;b<c.length;b+=1)s(f,c[b],l[c[b]],h[c[b]])};return d.supportsDescriptors=!!r,Zn=d,Zn}var Yn,Bs;function $m(){if(Bs)return Yn;Bs=1;var e=Wo(),n=pn();return Yn=function(){var i=e();return n(Object,{is:i},{is:function(){return Object.is!==i}}),i},Yn}var Wn,Us;function Vm(){if(Us)return Wn;Us=1;var e=pn(),n=Ho(),o=rh(),i=Wo(),a=$m(),t=n(i(),Object);return e(t,{getPolyfill:i,implementation:o,shim:a}),Wn=t,Wn}var Kn,$s;function nh(){return $s||($s=1,Kn=function(n){return n!==n}),Kn}var Jn,Vs;function ih(){if(Vs)return Jn;Vs=1;var e=nh();return Jn=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},Jn}var Xn,Gs;function Gm(){if(Gs)return Xn;Gs=1;var e=pn(),n=ih();return Xn=function(){var i=n();return e(Number,{isNaN:i},{isNaN:function(){return Number.isNaN!==i}}),i},Xn}var Qn,zs;function zm(){if(zs)return Qn;zs=1;var e=Ho(),n=pn(),o=nh(),i=ih(),a=Gm(),t=e(i(),Number);return n(t,{getPolyfill:i,implementation:o,shim:a}),Qn=t,Qn}var ei,Hs;function Hm(){if(Hs)return ei;Hs=1;function e(K,Q){return t(K)||a(K,Q)||o(K,Q)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
69
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(K,Q){if(K){if(typeof K=="string")return i(K,Q);var ce=Object.prototype.toString.call(K).slice(8,-1);if(ce==="Object"&&K.constructor&&(ce=K.constructor.name),ce==="Map"||ce==="Set")return Array.from(K);if(ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce))return i(K,Q)}}function i(K,Q){(Q==null||Q>K.length)&&(Q=K.length);for(var ce=0,ge=new Array(Q);ce<Q;ce++)ge[ce]=K[ce];return ge}function a(K,Q){var ce=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(ce!=null){var ge,he,Se,Re,A=[],ne=!0,se=!1;try{if(Se=(ce=ce.call(K)).next,Q!==0)for(;!(ne=(ge=Se.call(ce)).done)&&(A.push(ge.value),A.length!==Q);ne=!0);}catch(fe){se=!0,he=fe}finally{try{if(!ne&&ce.return!=null&&(Re=ce.return(),Object(Re)!==Re))return}finally{if(se)throw he}}return A}}function t(K){if(Array.isArray(K))return K}function r(K){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},r(K)}var s=/a/g.flags!==void 0,d=function(Q){var ce=[];return Q.forEach(function(ge){return ce.push(ge)}),ce},f=function(Q){var ce=[];return Q.forEach(function(ge,he){return ce.push([he,ge])}),ce},l=Object.is?Object.is:Vm(),h=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:zm();function b(K){return K.call.bind(K)}var m=b(Object.prototype.hasOwnProperty),y=b(Object.prototype.propertyIsEnumerable),g=b(Object.prototype.toString),u=He().types,_=u.isAnyArrayBuffer,w=u.isArrayBufferView,v=u.isDate,E=u.isMap,x=u.isRegExp,O=u.isSet,C=u.isNativeError,D=u.isBoxedPrimitive,W=u.isNumberObject,H=u.isStringObject,S=u.isBooleanObject,R=u.isBigIntObject,L=u.isSymbolObject,N=u.isFloat32Array,V=u.isFloat64Array;function P(K){if(K.length===0||K.length>10)return!0;for(var Q=0;Q<K.length;Q++){var ce=K.charCodeAt(Q);if(ce<48||ce>57)return!0}return K.length===10&&K>=Math.pow(2,32)}function j(K){return Object.keys(K).filter(P).concat(h(K).filter(Object.prototype.propertyIsEnumerable.bind(K)))}function k(K,Q){if(K===Q)return 0;for(var ce=K.length,ge=Q.length,he=0,Se=Math.min(ce,ge);he<Se;++he)if(K[he]!==Q[he]){ce=K[he],ge=Q[he];break}return ce<ge?-1:ge<ce?1:0}var F=!0,Y=!1,z=0,B=1,q=2,M=3;function U(K,Q){return s?K.source===Q.source&&K.flags===Q.flags:RegExp.prototype.toString.call(K)===RegExp.prototype.toString.call(Q)}function X(K,Q){if(K.byteLength!==Q.byteLength)return!1;for(var ce=0;ce<K.byteLength;ce++)if(K[ce]!==Q[ce])return!1;return!0}function J(K,Q){return K.byteLength!==Q.byteLength?!1:k(new Uint8Array(K.buffer,K.byteOffset,K.byteLength),new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength))===0}function ae(K,Q){return K.byteLength===Q.byteLength&&k(new Uint8Array(K),new Uint8Array(Q))===0}function ue(K,Q){return W(K)?W(Q)&&l(Number.prototype.valueOf.call(K),Number.prototype.valueOf.call(Q)):H(K)?H(Q)&&String.prototype.valueOf.call(K)===String.prototype.valueOf.call(Q):S(K)?S(Q)&&Boolean.prototype.valueOf.call(K)===Boolean.prototype.valueOf.call(Q):R(K)?R(Q)&&BigInt.prototype.valueOf.call(K)===BigInt.prototype.valueOf.call(Q):L(Q)&&Symbol.prototype.valueOf.call(K)===Symbol.prototype.valueOf.call(Q)}function ve(K,Q,ce,ge){if(K===Q)return K!==0?!0:ce?l(K,Q):!0;if(ce){if(r(K)!=="object")return typeof K=="number"&&c(K)&&c(Q);if(r(Q)!=="object"||K===null||Q===null||Object.getPrototypeOf(K)!==Object.getPrototypeOf(Q))return!1}else{if(K===null||r(K)!=="object")return Q===null||r(Q)!=="object"?K==Q:!1;if(Q===null||r(Q)!=="object")return!1}var he=g(K),Se=g(Q);if(he!==Se)return!1;if(Array.isArray(K)){if(K.length!==Q.length)return!1;var Re=j(K),A=j(Q);return Re.length!==A.length?!1:we(K,Q,ce,ge,B,Re)}if(he==="[object Object]"&&(!E(K)&&E(Q)||!O(K)&&O(Q)))return!1;if(v(K)){if(!v(Q)||Date.prototype.getTime.call(K)!==Date.prototype.getTime.call(Q))return!1}else if(x(K)){if(!x(Q)||!U(K,Q))return!1}else if(C(K)||K instanceof Error){if(K.message!==Q.message||K.name!==Q.name)return!1}else if(w(K)){if(!ce&&(N(K)||V(K))){if(!X(K,Q))return!1}else if(!J(K,Q))return!1;var ne=j(K),se=j(Q);return ne.length!==se.length?!1:we(K,Q,ce,ge,z,ne)}else{if(O(K))return!O(Q)||K.size!==Q.size?!1:we(K,Q,ce,ge,q);if(E(K))return!E(Q)||K.size!==Q.size?!1:we(K,Q,ce,ge,M);if(_(K)){if(!ae(K,Q))return!1}else if(D(K)&&!ue(K,Q))return!1}return we(K,Q,ce,ge,z)}function me(K,Q){return Q.filter(function(ce){return y(K,ce)})}function we(K,Q,ce,ge,he,Se){if(arguments.length===5){Se=Object.keys(K);var Re=Object.keys(Q);if(Se.length!==Re.length)return!1}for(var A=0;A<Se.length;A++)if(!m(Q,Se[A]))return!1;if(ce&&arguments.length===5){var ne=h(K);if(ne.length!==0){var se=0;for(A=0;A<ne.length;A++){var fe=ne[A];if(y(K,fe)){if(!y(Q,fe))return!1;Se.push(fe),se++}else if(y(Q,fe))return!1}var Z=h(Q);if(ne.length!==Z.length&&me(Q,Z).length!==se)return!1}else{var ie=h(Q);if(ie.length!==0&&me(Q,ie).length!==0)return!1}}if(Se.length===0&&(he===z||he===B&&K.length===0||K.size===0))return!0;if(ge===void 0)ge={val1:new Map,val2:new Map,position:0};else{var T=ge.val1.get(K);if(T!==void 0){var oe=ge.val2.get(Q);if(oe!==void 0)return T===oe}ge.position++}ge.val1.set(K,ge.position),ge.val2.set(Q,ge.position);var be=qe(K,Q,ce,Se,ge,he);return ge.val1.delete(K),ge.val2.delete(Q),be}function Ce(K,Q,ce,ge){for(var he=d(K),Se=0;Se<he.length;Se++){var Re=he[Se];if(ve(Q,Re,ce,ge))return K.delete(Re),!0}return!1}function ke(K){switch(r(K)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":K=+K;case"number":if(c(K))return!1}return!0}function je(K,Q,ce){var ge=ke(ce);return ge??(Q.has(ge)&&!K.has(ge))}function Ie(K,Q,ce,ge,he){var Se=ke(ce);if(Se!=null)return Se;var Re=Q.get(Se);return Re===void 0&&!Q.has(Se)||!ve(ge,Re,!1,he)?!1:!K.has(Se)&&ve(ge,Re,!1,he)}function Ee(K,Q,ce,ge){for(var he=null,Se=d(K),Re=0;Re<Se.length;Re++){var A=Se[Re];if(r(A)==="object"&&A!==null)he===null&&(he=new Set),he.add(A);else if(!Q.has(A)){if(ce||!je(K,Q,A))return!1;he===null&&(he=new Set),he.add(A)}}if(he!==null){for(var ne=d(Q),se=0;se<ne.length;se++){var fe=ne[se];if(r(fe)==="object"&&fe!==null){if(!Ce(he,fe,ce,ge))return!1}else if(!ce&&!K.has(fe)&&!Ce(he,fe,ce,ge))return!1}return he.size===0}return!0}function Ue(K,Q,ce,ge,he,Se){for(var Re=d(K),A=0;A<Re.length;A++){var ne=Re[A];if(ve(ce,ne,he,Se)&&ve(ge,Q.get(ne),he,Se))return K.delete(ne),!0}return!1}function at(K,Q,ce,ge){for(var he=null,Se=f(K),Re=0;Re<Se.length;Re++){var A=e(Se[Re],2),ne=A[0],se=A[1];if(r(ne)==="object"&&ne!==null)he===null&&(he=new Set),he.add(ne);else{var fe=Q.get(ne);if(fe===void 0&&!Q.has(ne)||!ve(se,fe,ce,ge)){if(ce||!Ie(K,Q,ne,se,ge))return!1;he===null&&(he=new Set),he.add(ne)}}}if(he!==null){for(var Z=f(Q),ie=0;ie<Z.length;ie++){var T=e(Z[ie],2),oe=T[0],be=T[1];if(r(oe)==="object"&&oe!==null){if(!Ue(he,K,oe,be,ce,ge))return!1}else if(!ce&&(!K.has(oe)||!ve(K.get(oe),be,!1,ge))&&!Ue(he,K,oe,be,!1,ge))return!1}return he.size===0}return!0}function qe(K,Q,ce,ge,he,Se){var Re=0;if(Se===q){if(!Ee(K,Q,ce,he))return!1}else if(Se===M){if(!at(K,Q,ce,he))return!1}else if(Se===B)for(;Re<K.length;Re++)if(m(K,Re)){if(!m(Q,Re)||!ve(K[Re],Q[Re],ce,he))return!1}else{if(m(Q,Re))return!1;for(var A=Object.keys(K);Re<A.length;Re++){var ne=A[Re];if(!m(Q,ne)||!ve(K[ne],Q[ne],ce,he))return!1}return A.length===Object.keys(Q).length}for(Re=0;Re<ge.length;Re++){var se=ge[Re];if(!ve(K[se],Q[se],ce,he))return!1}return!0}function De(K,Q){return ve(K,Q,Y)}function Ze(K,Q){return ve(K,Q,F)}return ei={isDeepEqual:De,isDeepStrictEqual:Ze},ei}var Zs;function ir(){if(Zs)return Nn.exports;Zs=1;function e(q){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},e(q)}function n(q,M,U){return Object.defineProperty(q,"prototype",{writable:!1}),q}function o(q,M){if(!(q instanceof M))throw new TypeError("Cannot call a class as a function")}var i=Ql(),a=i.codes,t=a.ERR_AMBIGUOUS_ARGUMENT,r=a.ERR_INVALID_ARG_TYPE,s=a.ERR_INVALID_ARG_VALUE,d=a.ERR_INVALID_RETURN_VALUE,f=a.ERR_MISSING_ARGS,l=Dm(),h=He(),c=h.inspect,b=He().types,m=b.isPromise,y=b.isRegExp,g=Bm()(),u=Wo()(),_=Um()("RegExp.prototype.test"),w,v;function E(){var q=Hm();w=q.isDeepEqual,v=q.isDeepStrictEqual}var x=!1,O=Nn.exports=S,C={};function D(q){throw q.message instanceof Error?q.message:new l(q)}function W(q,M,U,X,J){var ae=arguments.length,ue;if(ae===0)ue="Failed";else if(ae===1)U=q,q=void 0;else{if(x===!1){x=!0;var ve=ye.emitWarning?ye.emitWarning:console.warn.bind(console);ve("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}ae===2&&(X="!=")}if(U instanceof Error)throw U;var me={actual:q,expected:M,operator:X===void 0?"fail":X,stackStartFn:J||W};U!==void 0&&(me.message=U);var we=new l(me);throw ue&&(we.message=ue,we.generatedMessage=!0),we}O.fail=W,O.AssertionError=l;function H(q,M,U,X){if(!U){var J=!1;if(M===0)J=!0,X="No value argument passed to `assert.ok()`";else if(X instanceof Error)throw X;var ae=new l({actual:U,expected:!0,message:X,operator:"==",stackStartFn:q});throw ae.generatedMessage=J,ae}}function S(){for(var q=arguments.length,M=new Array(q),U=0;U<q;U++)M[U]=arguments[U];H.apply(void 0,[S,M.length].concat(M))}O.ok=S,O.equal=function q(M,U,X){if(arguments.length<2)throw new f("actual","expected");M!=U&&D({actual:M,expected:U,message:X,operator:"==",stackStartFn:q})},O.notEqual=function q(M,U,X){if(arguments.length<2)throw new f("actual","expected");M==U&&D({actual:M,expected:U,message:X,operator:"!=",stackStartFn:q})},O.deepEqual=function q(M,U,X){if(arguments.length<2)throw new f("actual","expected");w===void 0&&E(),w(M,U)||D({actual:M,expected:U,message:X,operator:"deepEqual",stackStartFn:q})},O.notDeepEqual=function q(M,U,X){if(arguments.length<2)throw new f("actual","expected");w===void 0&&E(),w(M,U)&&D({actual:M,expected:U,message:X,operator:"notDeepEqual",stackStartFn:q})},O.deepStrictEqual=function q(M,U,X){if(arguments.length<2)throw new f("actual","expected");w===void 0&&E(),v(M,U)||D({actual:M,expected:U,message:X,operator:"deepStrictEqual",stackStartFn:q})},O.notDeepStrictEqual=R;function R(q,M,U){if(arguments.length<2)throw new f("actual","expected");w===void 0&&E(),v(q,M)&&D({actual:q,expected:M,message:U,operator:"notDeepStrictEqual",stackStartFn:R})}O.strictEqual=function q(M,U,X){if(arguments.length<2)throw new f("actual","expected");u(M,U)||D({actual:M,expected:U,message:X,operator:"strictEqual",stackStartFn:q})},O.notStrictEqual=function q(M,U,X){if(arguments.length<2)throw new f("actual","expected");u(M,U)&&D({actual:M,expected:U,message:X,operator:"notStrictEqual",stackStartFn:q})};var L=n(function q(M,U,X){var J=this;o(this,q),U.forEach(function(ae){ae in M&&(X!==void 0&&typeof X[ae]=="string"&&y(M[ae])&&_(M[ae],X[ae])?J[ae]=X[ae]:J[ae]=M[ae])})});function N(q,M,U,X,J,ae){if(!(U in q)||!v(q[U],M[U])){if(!X){var ue=new L(q,J),ve=new L(M,J,q),me=new l({actual:ue,expected:ve,operator:"deepStrictEqual",stackStartFn:ae});throw me.actual=q,me.expected=M,me.operator=ae.name,me}D({actual:q,expected:M,message:X,operator:ae.name,stackStartFn:ae})}}function V(q,M,U,X){if(typeof M!="function"){if(y(M))return _(M,q);if(arguments.length===2)throw new r("expected",["Function","RegExp"],M);if(e(q)!=="object"||q===null){var J=new l({actual:q,expected:M,message:U,operator:"deepStrictEqual",stackStartFn:X});throw J.operator=X.name,J}var ae=Object.keys(M);if(M instanceof Error)ae.push("name","message");else if(ae.length===0)throw new s("error",M,"may not be an empty object");return w===void 0&&E(),ae.forEach(function(ue){typeof q[ue]=="string"&&y(M[ue])&&_(M[ue],q[ue])||N(q,M,ue,U,ae,X)}),!0}return M.prototype!==void 0&&q instanceof M?!0:Error.isPrototypeOf(M)?!1:M.call({},q)===!0}function P(q){if(typeof q!="function")throw new r("fn","Function",q);try{q()}catch(M){return M}return C}function j(q){return m(q)||q!==null&&e(q)==="object"&&typeof q.then=="function"&&typeof q.catch=="function"}function k(q){return Promise.resolve().then(function(){var M;if(typeof q=="function"){if(M=q(),!j(M))throw new d("instance of Promise","promiseFn",M)}else if(j(q))M=q;else throw new r("promiseFn",["Function","Promise"],q);return Promise.resolve().then(function(){return M}).then(function(){return C}).catch(function(U){return U})})}function F(q,M,U,X){if(typeof U=="string"){if(arguments.length===4)throw new r("error",["Object","Error","Function","RegExp"],U);if(e(M)==="object"&&M!==null){if(M.message===U)throw new t("error/message",'The error message "'.concat(M.message,'" is identical to the message.'))}else if(M===U)throw new t("error/message",'The error "'.concat(M,'" is identical to the message.'));X=U,U=void 0}else if(U!=null&&e(U)!=="object"&&typeof U!="function")throw new r("error",["Object","Error","Function","RegExp"],U);if(M===C){var J="";U&&U.name&&(J+=" (".concat(U.name,")")),J+=X?": ".concat(X):".";var ae=q.name==="rejects"?"rejection":"exception";D({actual:void 0,expected:U,operator:q.name,message:"Missing expected ".concat(ae).concat(J),stackStartFn:q})}if(U&&!V(M,U,X,q))throw M}function Y(q,M,U,X){if(M!==C){if(typeof U=="string"&&(X=U,U=void 0),!U||V(M,U)){var J=X?": ".concat(X):".",ae=q.name==="doesNotReject"?"rejection":"exception";D({actual:M,expected:U,operator:q.name,message:"Got unwanted ".concat(ae).concat(J,`
|
|
70
|
+
`)+'Actual message: "'.concat(M&&M.message,'"'),stackStartFn:q})}throw M}}O.throws=function q(M){for(var U=arguments.length,X=new Array(U>1?U-1:0),J=1;J<U;J++)X[J-1]=arguments[J];F.apply(void 0,[q,P(M)].concat(X))},O.rejects=function q(M){for(var U=arguments.length,X=new Array(U>1?U-1:0),J=1;J<U;J++)X[J-1]=arguments[J];return k(M).then(function(ae){return F.apply(void 0,[q,ae].concat(X))})},O.doesNotThrow=function q(M){for(var U=arguments.length,X=new Array(U>1?U-1:0),J=1;J<U;J++)X[J-1]=arguments[J];Y.apply(void 0,[q,P(M)].concat(X))},O.doesNotReject=function q(M){for(var U=arguments.length,X=new Array(U>1?U-1:0),J=1;J<U;J++)X[J-1]=arguments[J];return k(M).then(function(ae){return Y.apply(void 0,[q,ae].concat(X))})},O.ifError=function q(M){if(M!=null){var U="ifError got unwanted exception: ";e(M)==="object"&&typeof M.message=="string"?M.message.length===0&&M.constructor?U+=M.constructor.name:U+=M.message:U+=c(M);var X=new l({actual:M,expected:null,operator:"ifError",message:U,stackStartFn:q}),J=M.stack;if(typeof J=="string"){var ae=J.split(`
|
|
71
|
+
`);ae.shift();for(var ue=X.stack.split(`
|
|
72
|
+
`),ve=0;ve<ae.length;ve++){var me=ue.indexOf(ae[ve]);if(me!==-1){ue=ue.slice(0,me);break}}X.stack="".concat(ue.join(`
|
|
73
|
+
`),`
|
|
74
|
+
`).concat(ae.join(`
|
|
75
|
+
`))}throw X}};function z(q,M,U,X,J){if(!y(M))throw new r("regexp","RegExp",M);var ae=J==="match";if(typeof q!="string"||_(M,q)!==ae){if(U instanceof Error)throw U;var ue=!U;U=U||(typeof q!="string"?'The "string" argument must be of type string. Received type '+"".concat(e(q)," (").concat(c(q),")"):(ae?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(c(M),`. Input:
|
|
76
|
+
|
|
77
|
+
`).concat(c(q),`
|
|
78
|
+
`));var ve=new l({actual:q,expected:M,message:U,operator:J,stackStartFn:X});throw ve.generatedMessage=ue,ve}}O.match=function q(M,U,X){z(M,U,X,q,"match")},O.doesNotMatch=function q(M,U,X){z(M,U,X,q,"doesNotMatch")};function B(){for(var q=arguments.length,M=new Array(q),U=0;U<q;U++)M[U]=arguments[U];H.apply(void 0,[B,M.length].concat(M))}return O.strict=g(B,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict,Nn.exports}var Ys;function Zm(){return Ys||(Ys=1,function(e,n){var o=ir(),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a="abcdefghijklmnopqrstuvwxyz0123456789",t="0123456789";n=e.exports=r(i),n.base62=n,n.base36=r(a),n.base10=r(t),n.create=r;function r(s){o(typeof s=="string","the list of characters must be a string!");var d=et.byteLength(s);return function(l){l=l||10,o(typeof l=="number"&&l>=0,"the length of the random string must be a number!");for(var h="",c=0;c<l;c++)h+=s[Math.floor(d*Math.random())];return h}}}(yr,yr.exports)),yr.exports}var _r={exports:{}},br={exports:{}};var Ws;function Ym(){if(Ws)return br.exports;Ws=1;var e=zt(),n=e.randomBytes===e.pseudoRandomBytes?1:3;br.exports=o,br.exports.sync=i;function o(t,r){if(r!==void 0&&typeof r!="function")throw new TypeError("argument callback must be a function");if(!r&&!$l.Promise)throw new TypeError("argument callback is required");return r?a(t,n,r):new Promise(function(d,f){a(t,n,function(h,c){if(h)return f(h);d(c)})})}function i(t){for(var r=null,s=0;s<n;s++)try{return e.randomBytes(t)}catch(d){r=d}throw r}function a(t,r,s){e.randomBytes(t,function(f,l){if(!f)return s(null,l);if(!--r)return s(f);setTimeout(a.bind(null,t,r,s),10)})}return br.exports}var Ks;function Wm(){if(Ks)return _r.exports;Ks=1;var e=Ym(),n=/=+$/,o=/\+/g,i=/\//g;_r.exports=a,_r.exports.sync=t;function a(d,f){if(f!==void 0&&typeof f!="function")throw new TypeError("argument callback must be a function");if(!f&&!$l.Promise)throw new TypeError("argument callback is required");return f?r(d,f):new Promise(function(h,c){r(d,function(m,y){if(m)return c(m);h(y)})})}function t(d){return s(e.sync(d))}function r(d,f){e(d,function(l,h){if(l)return f(l);f(null,s(h))})}function s(d){return d.toString("base64").replace(n,"").replace(o,"-").replace(i,"_")}return _r.exports}var ti,Js;function Km(){if(Js)return ti;Js=1;var e=zt();function n(i,a){if(i.length!==a.length)return!1;if(e.timingSafeEqual)return e.timingSafeEqual(i,a);for(var t=0;t<i.length;t++)if(i[t]!==a[t])return!1;return!0}function o(i,a){var t=String(i),r=String(a),s=e.pseudoRandomBytes(32),d=e.createHmac("sha256",s).update(t).digest(),f=e.createHmac("sha256",s).update(r).digest();return n(d,f)&&i===a}return ti=o,ti}var ri,Xs;function Jm(){if(Xs)return ri;Xs=1;var e=Zm(),n=Wm(),o=Km(),i=zt(),a=/=/g,t=/\+/g,r=/\//g;ri=s;function s(f){if(!(this instanceof s))return new s(f);var l=f||{},h=l.saltLength!==void 0?l.saltLength:8;if(typeof h!="number"||!isFinite(h)||h<1)throw new TypeError("option saltLength must be finite number > 1");var c=l.secretLength!==void 0?l.secretLength:18;if(typeof c!="number"||!isFinite(c)||c<1)throw new TypeError("option secretLength must be finite number > 1");this.saltLength=h,this.secretLength=c}s.prototype.create=function(l){if(!l||typeof l!="string")throw new TypeError("argument secret is required");return this._tokenize(l,e(this.saltLength))},s.prototype.secret=function(l){return n(this.secretLength,l)},s.prototype.secretSync=function(){return n.sync(this.secretLength)},s.prototype._tokenize=function(l,h){return h+"-"+d(h+"-"+l)},s.prototype.verify=function(l,h){if(!l||typeof l!="string"||!h||typeof h!="string")return!1;var c=h.indexOf("-");if(c===-1)return!1;var b=h.substr(0,c),m=this._tokenize(l,b);return o(h,m)};function d(f){return i.createHash("sha1").update(f,"ascii").digest("base64").replace(t,"-").replace(r,"_").replace(a,"")}return ri}var ni={},ii,Qs;function Xm(){return Qs||(Qs=1,ii=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`)),ii}var ai,eu;function Qm(){if(eu)return ai;eu=1;var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),o=new RegExp("("+e+")+","gi");function i(r,s){try{return[decodeURIComponent(r.join(""))]}catch{}if(r.length===1)return r;s=s||1;var d=r.slice(0,s),f=r.slice(s);return Array.prototype.concat.call([],i(d),i(f))}function a(r){try{return decodeURIComponent(r)}catch{for(var s=r.match(n)||[],d=1;d<s.length;d++)r=i(s,d).join(""),s=r.match(n)||[];return r}}function t(r){for(var s={"%FE%FF":"��","%FF%FE":"��"},d=o.exec(r);d;){try{s[d[0]]=decodeURIComponent(d[0])}catch{var f=a(d[0]);f!==d[0]&&(s[d[0]]=f)}d=o.exec(r)}s["%C2"]="�";for(var l=Object.keys(s),h=0;h<l.length;h++){var c=l[h];r=r.replace(new RegExp(c,"g"),s[c])}return r}return ai=function(r){if(typeof r!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch{return t(r)}},ai}var oi,tu;function eg(){return tu||(tu=1,oi=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const o=e.indexOf(n);return o===-1?[e]:[e.slice(0,o),e.slice(o+n.length)]}),oi}var si,ru;function tg(){return ru||(ru=1,si=function(e,n){for(var o={},i=Object.keys(e),a=Array.isArray(n),t=0;t<i.length;t++){var r=i[t],s=e[r];(a?n.indexOf(r)!==-1:n(r,s,e))&&(o[r]=s)}return o}),si}var nu;function rg(){return nu||(nu=1,function(e){const n=Xm(),o=Qm(),i=eg(),a=tg(),t=u=>u==null;function r(u){switch(u.arrayFormat){case"index":return _=>(w,v)=>{const E=w.length;return v===void 0||u.skipNull&&v===null||u.skipEmptyString&&v===""?w:v===null?[...w,[f(_,u),"[",E,"]"].join("")]:[...w,[f(_,u),"[",f(E,u),"]=",f(v,u)].join("")]};case"bracket":return _=>(w,v)=>v===void 0||u.skipNull&&v===null||u.skipEmptyString&&v===""?w:v===null?[...w,[f(_,u),"[]"].join("")]:[...w,[f(_,u),"[]=",f(v,u)].join("")];case"comma":case"separator":return _=>(w,v)=>v==null||v.length===0?w:w.length===0?[[f(_,u),"=",f(v,u)].join("")]:[[w,f(v,u)].join(u.arrayFormatSeparator)];default:return _=>(w,v)=>v===void 0||u.skipNull&&v===null||u.skipEmptyString&&v===""?w:v===null?[...w,f(_,u)]:[...w,[f(_,u),"=",f(v,u)].join("")]}}function s(u){let _;switch(u.arrayFormat){case"index":return(w,v,E)=>{if(_=/\[(\d*)\]$/.exec(w),w=w.replace(/\[\d*\]$/,""),!_){E[w]=v;return}E[w]===void 0&&(E[w]={}),E[w][_[1]]=v};case"bracket":return(w,v,E)=>{if(_=/(\[\])$/.exec(w),w=w.replace(/\[\]$/,""),!_){E[w]=v;return}if(E[w]===void 0){E[w]=[v];return}E[w]=[].concat(E[w],v)};case"comma":case"separator":return(w,v,E)=>{const x=typeof v=="string"&&v.includes(u.arrayFormatSeparator),O=typeof v=="string"&&!x&&l(v,u).includes(u.arrayFormatSeparator);v=O?l(v,u):v;const C=x||O?v.split(u.arrayFormatSeparator).map(D=>l(D,u)):v===null?v:l(v,u);E[w]=C};default:return(w,v,E)=>{if(E[w]===void 0){E[w]=v;return}E[w]=[].concat(E[w],v)}}}function d(u){if(typeof u!="string"||u.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function f(u,_){return _.encode?_.strict?n(u):encodeURIComponent(u):u}function l(u,_){return _.decode?o(u):u}function h(u){return Array.isArray(u)?u.sort():typeof u=="object"?h(Object.keys(u)).sort((_,w)=>Number(_)-Number(w)).map(_=>u[_]):u}function c(u){const _=u.indexOf("#");return _!==-1&&(u=u.slice(0,_)),u}function b(u){let _="";const w=u.indexOf("#");return w!==-1&&(_=u.slice(w)),_}function m(u){u=c(u);const _=u.indexOf("?");return _===-1?"":u.slice(_+1)}function y(u,_){return _.parseNumbers&&!Number.isNaN(Number(u))&&typeof u=="string"&&u.trim()!==""?u=Number(u):_.parseBooleans&&u!==null&&(u.toLowerCase()==="true"||u.toLowerCase()==="false")&&(u=u.toLowerCase()==="true"),u}function g(u,_){_=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},_),d(_.arrayFormatSeparator);const w=s(_),v=Object.create(null);if(typeof u!="string"||(u=u.trim().replace(/^[?#&]/,""),!u))return v;for(const E of u.split("&")){if(E==="")continue;let[x,O]=i(_.decode?E.replace(/\+/g," "):E,"=");O=O===void 0?null:["comma","separator"].includes(_.arrayFormat)?O:l(O,_),w(l(x,_),O,v)}for(const E of Object.keys(v)){const x=v[E];if(typeof x=="object"&&x!==null)for(const O of Object.keys(x))x[O]=y(x[O],_);else v[E]=y(x,_)}return _.sort===!1?v:(_.sort===!0?Object.keys(v).sort():Object.keys(v).sort(_.sort)).reduce((E,x)=>{const O=v[x];return O&&typeof O=="object"&&!Array.isArray(O)?E[x]=h(O):E[x]=O,E},Object.create(null))}e.extract=m,e.parse=g,e.stringify=(u,_)=>{if(!u)return"";_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_),d(_.arrayFormatSeparator);const w=O=>_.skipNull&&t(u[O])||_.skipEmptyString&&u[O]==="",v=r(_),E={};for(const O of Object.keys(u))w(O)||(E[O]=u[O]);const x=Object.keys(E);return _.sort!==!1&&x.sort(_.sort),x.map(O=>{const C=u[O];return C===void 0?"":C===null?f(O,_):Array.isArray(C)?C.reduce(v(O),[]).join("&"):f(O,_)+"="+f(C,_)}).filter(O=>O.length>0).join("&")},e.parseUrl=(u,_)=>{_=Object.assign({decode:!0},_);const[w,v]=i(u,"#");return Object.assign({url:w.split("?")[0]||"",query:g(m(u),_)},_&&_.parseFragmentIdentifier&&v?{fragmentIdentifier:l(v,_)}:{})},e.stringifyUrl=(u,_)=>{_=Object.assign({encode:!0,strict:!0},_);const w=c(u.url).split("?")[0]||"",v=e.extract(u.url),E=e.parse(v,{sort:!1}),x=Object.assign(E,u.query);let O=e.stringify(x,_);O&&(O=`?${O}`);let C=b(u.url);return u.fragmentIdentifier&&(C=`#${f(u.fragmentIdentifier,_)}`),`${w}${O}${C}`},e.pick=(u,_,w)=>{w=Object.assign({parseFragmentIdentifier:!0},w);const{url:v,query:E,fragmentIdentifier:x}=e.parseUrl(u,w);return e.stringifyUrl({url:v,query:a(E,_),fragmentIdentifier:x},w)},e.exclude=(u,_,w)=>{const v=Array.isArray(_)?E=>!_.includes(E):(E,x)=>!_(E,x);return e.pick(u,v,w)}}(ni)),ni}var At={},Ct={},ui={},Wt={},iu;function ah(){if(iu)return Wt;iu=1,Object.defineProperty(Wt,"__esModule",{value:!0});class e{constructor(){this._=[],this.$=Object.create(null)}on(i,a){(this.$[i]=this.$[i]||[]).push(a)}off(i,a){const t=this.$[i];t&&t.splice(t.indexOf(a)>>>0,1)}each(i){this._.push(i)}none(i){this._.splice(this._.indexOf(i)>>>0,1)}emit(i,...a){const t=this.$[i];t&&t.slice().forEach(r=>r(...a)),this._.slice().forEach(r=>r({type:i,args:a}))}}Wt.Emitter=e;function n(o,i,a){function t(...r){return o.off(i,t),a(...r)}return o.on(i,t),t}return Wt.once=n,Wt}var wr={},au;function ng(){if(au)return wr;au=1,Object.defineProperty(wr,"__esModule",{value:!0});function e(n){if(!n)return 0;n=n.toString();for(var o=n.length,i=n.length;i--;){var a=n.charCodeAt(i);56320<=a&&a<=57343&&i--,127<a&&a<=2047?o++:2047<a&&a<=65535&&(o+=2)}return o}return wr.byteLength=e,wr}var Pt={},ou;function ig(){if(ou)return Pt;ou=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.expectNever=Pt.expectType=void 0;const e=o=>{};Pt.expectType=e;const n=o=>{throw new TypeError("Unexpected value: "+o)};return Pt.expectNever=n,Pt}var Er={},su;function en(){if(su)return Er;su=1,Object.defineProperty(Er,"__esModule",{value:!0});class e{constructor(o){this.object=Object.create(null),o&&this.extend(o)}set(o,i){this.object[o.toLowerCase()]=Array.isArray(i)?i.map(String):String(i)}append(o,i){const a=o.toLowerCase(),t=this.object[a];if(t===void 0)Array.isArray(i)?this.object[a]=i.map(String):this.object[a]=String(i);else if(Array.isArray(t))if(Array.isArray(i))for(const r of i)t.push(String(r));else t.push(String(i));else this.object[a]=Array.isArray(i)?[t,...i.map(String)]:[t,String(i)]}get(o){const i=this.object[o.toLowerCase()];return i===void 0?null:Array.isArray(i)?i[0]:i}getAll(o){const i=this.object[o.toLowerCase()];return i===void 0?[]:Array.isArray(i)?[...i]:[i]}has(o){return o.toLowerCase()in this.object}delete(o){delete this.object[o.toLowerCase()]}*entries(){yield*Object.entries(this.object)}*keys(){yield*Object.keys(this.object)}*values(){yield*Object.values(this.object)}clear(){this.object=Object.create(null)}asObject(){return Object.assign(Object.create(null),this.object)}extend(o){if(Symbol.iterator in o)for(const[i,a]of o)this.append(i,a);else if(o instanceof e)for(const[i,a]of o.entries())this.append(i,a);else for(const i of Object.keys(o)){const a=o[i];a!==void 0&&this.append(i,a)}}clone(){return new e(this.object)}}return Er.Headers=e,Er}var Kt={},uu;function tn(){if(uu)return Kt;uu=1,Object.defineProperty(Kt,"__esModule",{value:!0});const e=ah();class n extends e.Emitter{constructor(){super(),this.aborted=!1,e.once(this,"abort",()=>this.aborted=!0)}}Kt.Signal=n;class o{constructor(){this.signal=new n}abort(){this.signal.emit("abort")}}return Kt.AbortController=o,Kt}var ci={},cu;function oh(){return cu||(cu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.kBodyUsed=Symbol("bodyUsed"),e.kBodyDestroyed=Symbol("bodyDestroyed");function n(i){const a=o(i);return a===null?null:(i.$rawBody=e.kBodyUsed,a)}e.useRawBody=n;function o(i){const{$rawBody:a}=i;if(a===e.kBodyUsed)throw new TypeError("Body already used");if(a===e.kBodyDestroyed)throw new TypeError("Body is destroyed");return a}e.getRawBody=o}(ci)),ci}var fu;function sh(){return fu||(fu=1,function(e){function n(y){for(var g in y)e.hasOwnProperty(g)||(e[g]=y[g])}Object.defineProperty(e,"__esModule",{value:!0});const o=ah(),i=ng(),a=ig(),t=en(),r=tn(),s=oh();n(en()),n(tn());function d(y){const g=new DataView(y);return new TextDecoder("utf-8").decode(g)}function f(y){return new TextEncoder().encode(y)}function l(y){const g=y.getReader();function u(_){return g.read().then(w=>{if(w.done)return _;const v=w.value,E=new Uint8Array(_.byteLength+v.byteLength);return E.set(_,0),E.set(v,_.byteLength),u(E)})}return u(new Uint8Array(0))}class h{constructor(g){const u=g===void 0?null:g;this.$rawBody=u}get bodyUsed(){return this.$rawBody===s.kBodyUsed||this.$rawBody===s.kBodyDestroyed}json(){return this.text().then(g=>JSON.parse(g))}text(){const g=s.useRawBody(this);return g===null?Promise.resolve(""):typeof g=="string"?Promise.resolve(g):g instanceof ArrayBuffer?Promise.resolve(d(g)):l(g).then(d)}arrayBuffer(){const g=s.useRawBody(this);return g===null?Promise.resolve(new ArrayBuffer(0)):g instanceof ArrayBuffer?Promise.resolve(g):typeof g=="string"?Promise.resolve(f(g).buffer):l(g)}readableStream(){const g=s.useRawBody(this);return g===null?new ReadableStream({start(u){u.close()}}):typeof g=="string"?new ReadableStream({start(u){u.enqueue(f(g)),u.close()}}):g instanceof ArrayBuffer?new ReadableStream({start(u){u.enqueue(new Uint8Array(g)),u.close()}}):g}clone(){const g=s.getRawBody(this);if(g instanceof ReadableStream){const[u,_]=g.tee();return this.$rawBody=u,new h(_)}return new h(g)}destroy(){const g=s.getRawBody(this);return this.$rawBody=s.kBodyDestroyed,g instanceof ReadableStream?g.cancel():Promise.resolve()}}e.Body=h;class c extends h{constructor(g,u={}){const _=typeof g=="string"?void 0:g.clone(),w=u.body||(_?s.getRawBody(_):null),v=_&&!u.headers?_.headers:m(w,u.headers,u.omitDefaultHeaders===!0);super(w),this.url=typeof g=="string"?g:g.url,this.method=u.method||_&&_.method||"GET",this.signal=u.signal||_&&_.signal||new r.Signal,this.headers=v,this.trailer=_&&!u.trailer?_.trailer:Promise.resolve(u.trailer).then(E=>new t.Headers(E)),o.once(this.signal,"abort",()=>this.destroy())}clone(){const g=super.clone();return new c(this.url,{body:s.getRawBody(g),headers:this.headers.clone(),omitDefaultHeaders:!0,method:this.method,signal:this.signal,trailer:this.trailer.then(u=>u.clone())})}}e.Request=c;class b extends h{get ok(){return this.status>=200&&this.status<300}constructor(g,u={}){const _=m(g,u.headers,u.omitDefaultHeaders===!0);super(g),this.status=u.status||200,this.statusText=u.statusText||"",this.headers=_,this.trailer=Promise.resolve(u.trailer).then(w=>new t.Headers(w))}clone(){const g=super.clone();return new b(s.getRawBody(g),{status:this.status,statusText:this.statusText,headers:this.headers.clone(),omitDefaultHeaders:!0,trailer:this.trailer.then(u=>u.clone())})}}e.Response=b;function m(y,g,u){const _=new t.Headers(g);if(y==null)return _;if(typeof y=="string")return!u&&!_.has("Content-Type")&&_.set("Content-Type","text/plain"),!u&&!_.has("Content-Length")&&_.set("Content-Length",i.byteLength(y).toString()),_;if(!u&&!_.has("Content-Type")&&_.set("Content-Type","application/octet-stream"),y instanceof ArrayBuffer)return!u&&!_.has("Content-Length")&&_.set("Content-Length",String(y.byteLength)),_;if(y instanceof ReadableStream)return _;throw a.expectType(y),new TypeError("Unknown body type")}}(ui)),ui}var st={},lu;function ag(){if(lu)return st;lu=1,Object.defineProperty(st,"__esModule",{value:!0});const e=sh(),n=oh();class o extends e.Response{constructor(c,b){super(c,b),this.url=b.url}}st.XhrResponse=o;class i extends Error{constructor(c,b){super(b),this.request=c,this.code="EBLOCKED"}}st.BlockedRequestError=i;class a extends Error{constructor(c,b){super(b),this.request=c,this.code="EINVALID"}}st.InvalidRequestError=a;class t extends Error{constructor(c,b){super(b),this.request=c,this.code="EUNAVAILABLE"}}st.ConnectionError=t;class r extends Error{constructor(c,b){super(b),this.request=c,this.code="ECSP"}}st.CSPError=r;class s extends Error{constructor(c,b){super(b),this.request=c,this.code="ETYPE"}}st.TypeError=s;class d extends Error{constructor(c,b){super(b),this.request=c,this.code="EABORT"}}st.AbortError=d;function f(h={}){return function(c){return new Promise(function(b,m){const y=h.type||"arraybuffer",g=c.method.toUpperCase();if(c.signal.aborted)return m(new d(c,"Request has been aborted"));if(window.location.protocol==="https:"&&c.url.startsWith("http:"))return m(new i(c,`The connection to "${c.url}" is blocked`));if(/^https?\:\/*(?:[~#\\\?;\:]|$)/.test(c.url))return m(new a(c,`Refusing to connect to "${c.url}"`));const u=new XMLHttpRequest;let _=!1;function w(){const E=new o(y==="text"?u.responseText:u.response,{status:u.status===1223?204:u.status,statusText:u.statusText,headers:l(u.getAllResponseHeaders()),omitDefaultHeaders:!0,url:u.responseURL});return c.signal.emit("responseStarted"),c.signal.emit("responseEnded"),b(E)}function v(){return m(new t(c,`Unable to connect to "${c.url}"`))}u.onload=w,u.onabort=w,u.onerror=v,u.onprogress=E=>{c.signal.emit("requestBytes",E.loaded)},g!=="GET"&&g!=="HEAD"&&u.upload&&(_=!0,u.upload.onprogress=E=>{c.signal.emit("responseBytes",E.loaded)},u.upload.onloadend=()=>{c.signal.emit("requestEnded")});try{u.open(g,c.url)}catch{return m(new r(c,`Refused to connect to "${c.url}"`))}if(h.withCredentials&&(u.withCredentials=!0),h.overrideMimeType&&u.overrideMimeType(h.overrideMimeType),y!=="text")try{u.responseType=y}finally{if(u.responseType!==y)return m(new s(c,`Unsupported type: ${y}`))}for(const[E,x]of c.headers.entries())if(Array.isArray(x))for(const O of x)u.setRequestHeader(E,O);else u.setRequestHeader(E,x);c.signal.emit("requestStarted"),_||c.signal.emit("requestEnded"),c.signal.on("abort",()=>u.abort()),u.send(n.useRawBody(c))})}}st.transport=f;function l(h){const c=[],b=h.split(/\r?\n/);for(const m of b)if(m){const y=m.indexOf(":"),g=m.substr(0,y).trim(),u=m.substr(y+1).trim();c.push([g,u])}return c}return st}var Jt={},hu;function No(){if(hu)return Jt;hu=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.toFetch=void 0;function e(n,o){function i(){throw new TypeError("Invalid middleware stack, missing transport function")}return function(...t){const r=t.length===1&&t[0]instanceof o?t[0]:new o(...t);return n(r,i)}}return Jt.toFetch=e,Jt}var du;function og(){return du||(du=1,function(e){var n=Ct&&Ct.__createBinding||(Object.create?function(r,s,d,f){f===void 0&&(f=d),Object.defineProperty(r,f,{enumerable:!0,get:function(){return s[d]}})}:function(r,s,d,f){f===void 0&&(f=d),r[f]=s[d]}),o=Ct&&Ct.__exportStar||function(r,s){for(var d in r)d!=="default"&&!Object.prototype.hasOwnProperty.call(s,d)&&n(s,r,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.fetch=e.middleware=e.XhrResponse=e.transport=e.Request=void 0;const i=sh();Object.defineProperty(e,"Request",{enumerable:!0,get:function(){return i.Request}});const a=ag();Object.defineProperty(e,"transport",{enumerable:!0,get:function(){return a.transport}}),Object.defineProperty(e,"XhrResponse",{enumerable:!0,get:function(){return a.XhrResponse}});const t=No();o(No(),e),o(tn(),e),o(en(),e),e.middleware=a.transport(),e.fetch=t.toFetch(e.middleware,i.Request)}(Ct)),Ct}var pu;function sg(){return pu||(pu=1,function(e){var n=At&&At.__createBinding||(Object.create?function(a,t,r,s){s===void 0&&(s=r),Object.defineProperty(a,s,{enumerable:!0,get:function(){return t[r]}})}:function(a,t,r,s){s===void 0&&(s=r),a[s]=t[r]}),o=At&&At.__exportStar||function(a,t){for(var r in a)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,a,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.middleware=e.fetch=void 0;const i=og();o(No(),e),o(tn(),e),o(en(),e),e.fetch=i.fetch,e.middleware=i.middleware}(At)),At}var Be={},mu;function Mt(){return mu||(mu=1,Be.endianness=function(){return"LE"},Be.hostname=function(){return typeof location<"u"?location.hostname:""},Be.loadavg=function(){return[]},Be.uptime=function(){return 0},Be.freemem=function(){return Number.MAX_VALUE},Be.totalmem=function(){return Number.MAX_VALUE},Be.cpus=function(){return[]},Be.type=function(){return"Browser"},Be.release=function(){return typeof navigator<"u"?navigator.appVersion:""},Be.networkInterfaces=Be.getNetworkInterfaces=function(){return{}},Be.arch=function(){return"javascript"},Be.platform=function(){return"browser"},Be.tmpdir=Be.tmpDir=function(){return"/tmp"},Be.EOL=`
|
|
79
|
+
`,Be.homedir=function(){return"/"}),Be}var fi={},Sr={},li,gu;function rt(){if(gu)return li;gu=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},e(m)}function n(m,y,g){return Object.defineProperty(m,"prototype",{writable:!1}),m}function o(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function i(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),y&&h(m,y)}function a(m){var y=f();return function(){var u=c(m),_;if(y){var w=c(this).constructor;_=Reflect.construct(u,arguments,w)}else _=u.apply(this,arguments);return t(this,_)}}function t(m,y){if(y&&(e(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(m)}function r(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function s(m){var y=typeof Map=="function"?new Map:void 0;return s=function(u){if(u===null||!l(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof y<"u"){if(y.has(u))return y.get(u);y.set(u,_)}function _(){return d(u,arguments,c(this).constructor)}return _.prototype=Object.create(u.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),h(_,u)},s(m)}function d(m,y,g){return f()?d=Reflect.construct.bind():d=function(_,w,v){var E=[null];E.push.apply(E,w);var x=Function.bind.apply(_,E),O=new x;return v&&h(O,v.prototype),O},d.apply(null,arguments)}function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(m){return Function.toString.call(m).indexOf("[native code]")!==-1}function h(m,y){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,_){return u.__proto__=_,u},h(m,y)}function c(m){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},c(m)}var b=function(m){i(g,m);var y=a(g);function g(u){var _;return o(this,g),_=y.call(this,`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
80
|
+
Found: `.concat(u.toString().split(`
|
|
81
|
+
`)[0],`
|
|
82
|
+
`)),Error.captureStackTrace(r(_),g),_}return n(g)}(s(Error));return li=function(m){if(m.length>2)throw new b(m);function y(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=u}y.prototype.transform=m;function g(u){return new y(u)}return g.Format=y,g},li}var Xt={exports:{}},hi={exports:{}},di={exports:{}},pi={exports:{}},vu;function ug(){return vu||(vu=1,function(e){var n={};e.exports=n;var o={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(o).forEach(function(i){var a=o[i],t=n[i]=[];t.open="\x1B["+a[0]+"m",t.close="\x1B["+a[1]+"m"})}(pi)),pi.exports}var mi,yu;function cg(){return yu||(yu=1,mi=function(e,n){n=n||ye.argv;var o=n.indexOf("--"),i=/^-{1,2}/.test(e)?"":"--",a=n.indexOf(i+e);return a!==-1&&(o===-1?!0:a<o)}),mi}var gi,_u;function fg(){if(_u)return gi;_u=1;var e={},n=Mt(),o=cg(),i=e,a=void 0;o("no-color")||o("no-colors")||o("color=false")?a=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=!0),"FORCE_COLOR"in i&&(a=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function t(d){return d===0?!1:{level:d,hasBasic:!0,has256:d>=2,has16m:d>=3}}function r(d){if(a===!1)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(d&&!d.isTTY&&a!==!0)return 0;var f=a?1:0;if(ye.platform==="win32"){var l=n.release().split(".");return Number(ye.versions.node.split(".")[0])>=8&&Number(l[0])>=10&&Number(l[2])>=10586?Number(l[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(c){return c in i})||i.CI_NAME==="codeship"?1:f;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in i){var h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM==="dumb",f)}function s(d){var f=r(d);return t(f)}return gi={supportsColor:s,stdout:s(ye.stdout),stderr:s(ye.stderr)},gi}var vi={exports:{}},bu;function lg(){return bu||(bu=1,function(e){e.exports=function(o,i){var a="";o=o||"Run the trap, drop the bass",o=o.split("");var t={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return o.forEach(function(r){r=r.toLowerCase();var s=t[r]||[" "],d=Math.floor(Math.random()*s.length);typeof t[r]<"u"?a+=t[r][d]:a+=r}),a}}(vi)),vi.exports}var yi={exports:{}},wu;function hg(){return wu||(wu=1,function(e){e.exports=function(o,i){o=o||" he is here ";var a={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},t=[].concat(a.up,a.down,a.mid);function r(f){var l=Math.floor(Math.random()*f);return l}function s(f){var l=!1;return t.filter(function(h){l=h===f}),l}function d(f,l){var h="",c,b;l=l||{},l.up=typeof l.up<"u"?l.up:!0,l.mid=typeof l.mid<"u"?l.mid:!0,l.down=typeof l.down<"u"?l.down:!0,l.size=typeof l.size<"u"?l.size:"maxi",f=f.split("");for(b in f)if(!s(b)){switch(h=h+f[b],c={up:0,down:0,mid:0},l.size){case"mini":c.up=r(8),c.mid=r(2),c.down=r(8);break;case"maxi":c.up=r(16)+3,c.mid=r(4)+1,c.down=r(64)+3;break;default:c.up=r(8)+1,c.mid=r(6)/2,c.down=r(8)+1;break}var m=["up","mid","down"];for(var y in m)for(var g=m[y],u=0;u<=c[g];u++)l[g]&&(h=h+a[g][r(a[g].length)])}return h}return d(o,i)}}(yi)),yi.exports}var _i={exports:{}},Eu;function dg(){return Eu||(Eu=1,function(e){e.exports=function(n){return function(o,i,a){if(o===" ")return o;switch(i%3){case 0:return n.red(o);case 1:return n.white(o);case 2:return n.blue(o)}}}}(_i)),_i.exports}var bi={exports:{}},Su;function pg(){return Su||(Su=1,function(e){e.exports=function(n){return function(o,i,a){return i%2===0?o:n.inverse(o)}}}(bi)),bi.exports}var wi={exports:{}},Ru;function mg(){return Ru||(Ru=1,function(e){e.exports=function(n){var o=["red","yellow","green","blue","magenta"];return function(i,a,t){return i===" "?i:n[o[a++%o.length]](i)}}}(wi)),wi.exports}var Ei={exports:{}},Ou;function gg(){return Ou||(Ou=1,function(e){e.exports=function(n){var o=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(i,a,t){return i===" "?i:n[o[Math.round(Math.random()*(o.length-2))]](i)}}}(Ei)),Ei.exports}var Tu;function vg(){return Tu||(Tu=1,function(e){var n={};e.exports=n,n.themes={};var o=He(),i=n.styles=ug(),a=Object.defineProperties,t=new RegExp(/[\r\n]+/g);n.supportsColor=fg().supportsColor,typeof n.enabled>"u"&&(n.enabled=n.supportsColor()!==!1),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(y){return(""+y).replace(/\x1B\[\d+m/g,"")},n.stylize=function(g,u){if(!n.enabled)return g+"";var _=i[u];return!_&&u in n?n[u](g):_.open+g+_.close};var r=/[|\\{}()[\]^$+*?.]/g,s=function(y){if(typeof y!="string")throw new TypeError("Expected a string");return y.replace(r,"\\$&")};function d(y){var g=function u(){return h.apply(u,arguments)};return g._styles=y,g.__proto__=l,g}var f=function(){var y={};return i.grey=i.gray,Object.keys(i).forEach(function(g){i[g].closeRe=new RegExp(s(i[g].close),"g"),y[g]={get:function(){return d(this._styles.concat(g))}}}),y}(),l=a(function(){},f);function h(){var y=Array.prototype.slice.call(arguments),g=y.map(function(E){return E!=null&&E.constructor===String?E:o.inspect(E)}).join(" ");if(!n.enabled||!g)return g;for(var u=g.indexOf(`
|
|
83
|
+
`)!=-1,_=this._styles,w=_.length;w--;){var v=i[_[w]];g=v.open+g.replace(v.closeRe,v.open)+v.close,u&&(g=g.replace(t,function(E){return v.close+E+v.open}))}return g}n.setTheme=function(y){if(typeof y=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var g in y)(function(u){n[u]=function(_){if(typeof y[u]=="object"){var w=_;for(var v in y[u])w=n[y[u][v]](w);return w}return n[y[u]](_)}})(g)};function c(){var y={};return Object.keys(f).forEach(function(g){y[g]={get:function(){return d([g])}}}),y}var b=function(g,u){var _=u.split("");return _=_.map(g),_.join("")};n.trap=lg(),n.zalgo=hg(),n.maps={},n.maps.america=dg()(n),n.maps.zebra=pg()(n),n.maps.rainbow=mg()(n),n.maps.random=gg()(n);for(var m in n.maps)(function(y){n[y]=function(g){return b(n.maps[y],g)}})(m);a(n,c())}(di)),di.exports}var xu;function uh(){return xu||(xu=1,function(e){var n=vg();e.exports=n}(hi)),hi.exports}var Si={},Ri={},Rr={},Iu;function yg(){return Iu||(Iu=1,Rr.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},Rr.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}),Rr}var Or={},Au;function _g(){return Au||(Au=1,Or.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},Or.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}),Or}var Tr={},Cu;function bg(){return Cu||(Cu=1,Tr.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},Tr.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}),Tr}var Pu;function wg(){return Pu||(Pu=1,function(e){Object.defineProperty(e,"cli",{value:yg()}),Object.defineProperty(e,"npm",{value:_g()}),Object.defineProperty(e,"syslog",{value:bg()})}(Ri)),Ri}var ku;function Ne(){return ku||(ku=1,function(e){Object.defineProperty(e,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(e,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(e,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(e,"configs",{value:wg()})}(Si)),Si}var ju;function Ko(){if(ju)return Xt.exports;ju=1;function e(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function n(f,l){for(var h=0;h<l.length;h++){var c=l[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(f,c.key,c)}}function o(f,l,h){return l&&n(f.prototype,l),h&&n(f,h),Object.defineProperty(f,"prototype",{writable:!1}),f}var i=uh(),a=Ne(),t=a.LEVEL,r=a.MESSAGE;i.enabled=!0;var s=/\s+/,d=function(){function f(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,f),l.colors&&this.addColors(l.colors),this.options=l}return o(f,[{key:"addColors",value:function(h){return f.addColors(h)}},{key:"colorize",value:function(h,c,b){if(typeof b>"u"&&(b=c),!Array.isArray(f.allColors[h]))return i[f.allColors[h]](b);for(var m=0,y=f.allColors[h].length;m<y;m++)b=i[f.allColors[h][m]](b);return b}},{key:"transform",value:function(h,c){return c.all&&typeof h[r]=="string"&&(h[r]=this.colorize(h[t],h.level,h[r])),(c.level||c.all||!c.message)&&(h.level=this.colorize(h[t],h.level)),(c.all||c.message)&&(h.message=this.colorize(h[t],h.level,h.message)),h}}],[{key:"addColors",value:function(h){var c=Object.keys(h).reduce(function(b,m){return b[m]=s.test(h[m])?h[m].split(s):h[m],b},{});return f.allColors=Object.assign({},f.allColors||{},c),f.allColors}}]),f}();return Xt.exports=function(f){return new d(f)},Xt.exports.Colorizer=Xt.exports.Format=d,Xt.exports}var Oi,Lu;function Eg(){if(Lu)return Oi;Lu=1;var e=Ko(),n=e.Colorizer;return Oi=function(o){return n.addColors(o.colors||o),o},Oi}var Ti,qu;function Sg(){if(qu)return Ti;qu=1;var e=rt();return Ti=e(function(n){return n.message=" ".concat(n.message),n}),Ti}var xr={exports:{}},Qt={exports:{}},Nu;function ch(){if(Nu)return Qt.exports;Nu=1;function e(m){return a(m)||i(m)||o(m)||n()}function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
84
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(m,y){if(m){if(typeof m=="string")return t(m,y);var g=Object.prototype.toString.call(m).slice(8,-1);if(g==="Object"&&m.constructor&&(g=m.constructor.name),g==="Map"||g==="Set")return Array.from(m);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return t(m,y)}}function i(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function a(m){if(Array.isArray(m))return t(m)}function t(m,y){(y==null||y>m.length)&&(y=m.length);for(var g=0,u=new Array(y);g<y;g++)u[g]=m[g];return u}function r(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function s(m,y){for(var g=0;g<y.length;g++){var u=y[g];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function d(m,y,g){return y&&s(m.prototype,y),g&&s(m,g),Object.defineProperty(m,"prototype",{writable:!1}),m}var f=Ne(),l=f.configs,h=f.LEVEL,c=f.MESSAGE,b=function(){function m(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{levels:l.npm.levels};r(this,m),this.paddings=m.paddingForLevels(y.levels,y.filler),this.options=y}return d(m,[{key:"transform",value:function(g,u){return g.message="".concat(this.paddings[g[h]]).concat(g.message),g[c]&&(g[c]="".concat(this.paddings[g[h]]).concat(g[c])),g}}],[{key:"getLongestLevel",value:function(g){var u=Object.keys(g).map(function(_){return _.length});return Math.max.apply(Math,e(u))}},{key:"paddingForLevel",value:function(g,u,_){var w=_+1-g.length,v=Math.floor(w/u.length),E="".concat(u).concat(u.repeat(v));return E.slice(0,w)}},{key:"paddingForLevels",value:function(g){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",_=m.getLongestLevel(g);return Object.keys(g).reduce(function(w,v){return w[v]=m.paddingForLevel(v,u,_),w},{})}}]),m}();return Qt.exports=function(m){return new b(m)},Qt.exports.Padder=Qt.exports.Format=b,Qt.exports}var Du;function Rg(){if(Du)return xr.exports;Du=1;function e(h,c){if(!(h instanceof c))throw new TypeError("Cannot call a class as a function")}function n(h,c){for(var b=0;b<c.length;b++){var m=c[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}function o(h,c,b){return c&&n(h.prototype,c),Object.defineProperty(h,"prototype",{writable:!1}),h}var i=Ko(),a=i.Colorizer,t=ch(),r=t.Padder,s=Ne(),d=s.configs,f=s.MESSAGE,l=function(){function h(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,h),c.levels||(c.levels=d.cli.levels),this.colorizer=new a(c),this.padder=new r(c),this.options=c}return o(h,[{key:"transform",value:function(b,m){return this.colorizer.transform(this.padder.transform(b,m),m),b[f]="".concat(b.level,":").concat(b.message),b}}]),h}();return xr.exports=function(h){return new l(h)},xr.exports.Format=l,xr.exports}var Ir={exports:{}},Mu;function Og(){if(Mu)return Ir.exports;Mu=1;var e=rt();function n(i){if(i.every(o))return function(a){for(var t=a,r=0;r<i.length;r++)if(t=i[r].transform(t,i[r].options),!t)return!1;return t}}function o(i){if(typeof i.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
|
|
85
|
+
`));return!0}return Ir.exports=function(){for(var i=arguments.length,a=new Array(i),t=0;t<i;t++)a[t]=arguments[t];var r=e(n(a)),s=r();return s.Format=r.Format,s},Ir.exports.cascade=n,Ir.exports}var xi,Fu;function Tg(){if(Fu)return xi;Fu=1;function e(t,r,s){return r in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,t}var n=rt(),o=Ne(),i=o.LEVEL,a=o.MESSAGE;return xi=n(function(t,r){var s=r.stack;if(t instanceof Error){var d,f=Object.assign({},t,(d={level:t.level},e(d,i,t[i]||t.level),e(d,"message",t.message),e(d,a,t[a]||t.message),d));return s&&(f.stack=t.stack),f}if(!(t.message instanceof Error))return t;var l=t.message;return Object.assign(t,l),t.message=l.message,t[a]=l.message,s&&(t.stack=l.stack),t}),xi}var Ar={exports:{}},Bu;function lr(){return Bu||(Bu=1,function(e,n){const{hasOwnProperty:o}=Object.prototype,i=w();i.configure=w,i.stringify=i,i.default=i,n.stringify=i,n.configure=w,e.exports=i;const a=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/,t=new RegExp(a,"g"),r=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000b","\\f","\\r","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\"];function s(v){if(v.length===2){const x=v.charCodeAt(1);return`${v[0]}\\u${x.toString(16)}`}const E=v.charCodeAt(0);return r.length>E?r[E]:`\\u${E.toString(16)}`}function d(v){if(v.length<5e3&&!a.test(v))return v;if(v.length>100)return v.replace(t,s);let E="",x=0;for(let O=0;O<v.length;O++){const C=v.charCodeAt(O);if(C===34||C===92||C<32)E+=`${v.slice(x,O)}${r[C]}`,x=O+1;else if(C>=55296&&C<=57343){if(C<=56319&&O+1<v.length){const D=v.charCodeAt(O+1);if(D>=56320&&D<=57343){O++;continue}}E+=`${v.slice(x,O)}\\u${C.toString(16)}`,x=O+1}}return E+=v.slice(x),E}function f(v){if(v.length>200)return v.sort();for(let E=1;E<v.length;E++){const x=v[E];let O=E;for(;O!==0&&v[O-1]>x;)v[O]=v[O-1],O--;v[O]=x}return v}const l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function h(v){return l.call(v)!==void 0&&v.length!==0}function c(v,E,x){v.length<x&&(x=v.length);const O=E===","?"":" ";let C=`"0":${O}${v[0]}`;for(let D=1;D<x;D++)C+=`${E}"${D}":${O}${v[D]}`;return C}function b(v){if(o.call(v,"circularValue")){const E=v.circularValue;if(typeof E=="string")return`"${E}"`;if(E==null)return E;if(E===Error||E===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function m(v,E){let x;if(o.call(v,E)&&(x=v[E],typeof x!="boolean"))throw new TypeError(`The "${E}" argument must be of type boolean`);return x===void 0?!0:x}function y(v,E){let x;if(o.call(v,E)){if(x=v[E],typeof x!="number")throw new TypeError(`The "${E}" argument must be of type number`);if(!Number.isInteger(x))throw new TypeError(`The "${E}" argument must be an integer`);if(x<1)throw new RangeError(`The "${E}" argument must be >= 1`)}return x===void 0?1/0:x}function g(v){return v===1?"1 item":`${v} items`}function u(v){const E=new Set;for(const x of v)(typeof x=="string"||typeof x=="number")&&E.add(String(x));return E}function _(v){if(o.call(v,"strict")){const E=v.strict;if(typeof E!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(E)return x=>{let O=`Object can not safely be stringified. Received type ${typeof x}`;throw typeof x!="function"&&(O+=` (${x.toString()})`),new Error(O)}}}function w(v){v={...v};const E=_(v);E&&(v.bigint===void 0&&(v.bigint=!1),"circularValue"in v||(v.circularValue=Error));const x=b(v),O=m(v,"bigint"),C=m(v,"deterministic"),D=y(v,"maximumDepth"),W=y(v,"maximumBreadth");function H(V,P,j,k,F,Y){let z=P[V];switch(typeof z=="object"&&z!==null&&typeof z.toJSON=="function"&&(z=z.toJSON(V)),z=k.call(P,V,z),typeof z){case"string":return`"${d(z)}"`;case"object":{if(z===null)return"null";if(j.indexOf(z)!==-1)return x;let B="",q=",";const M=Y;if(Array.isArray(z)){if(z.length===0)return"[]";if(D<j.length+1)return'"[Array]"';j.push(z),F!==""&&(Y+=F,B+=`
|
|
86
|
+
${Y}`,q=`,
|
|
87
|
+
${Y}`);const ve=Math.min(z.length,W);let me=0;for(;me<ve-1;me++){const Ce=H(me,z,j,k,F,Y);B+=Ce!==void 0?Ce:"null",B+=q}const we=H(me,z,j,k,F,Y);if(B+=we!==void 0?we:"null",z.length-1>W){const Ce=z.length-W-1;B+=`${q}"... ${g(Ce)} not stringified"`}return F!==""&&(B+=`
|
|
88
|
+
${M}`),j.pop(),`[${B}]`}let U=Object.keys(z);const X=U.length;if(X===0)return"{}";if(D<j.length+1)return'"[Object]"';let J="",ae="";F!==""&&(Y+=F,q=`,
|
|
89
|
+
${Y}`,J=" ");let ue=Math.min(X,W);h(z)&&(B+=c(z,q,W),U=U.slice(z.length),ue-=z.length,ae=q),C&&(U=f(U)),j.push(z);for(let ve=0;ve<ue;ve++){const me=U[ve],we=H(me,z,j,k,F,Y);we!==void 0&&(B+=`${ae}"${d(me)}":${J}${we}`,ae=q)}if(X>W){const ve=X-W;B+=`${ae}"...":${J}"${g(ve)} not stringified"`,ae=q}return F!==""&&ae.length>1&&(B=`
|
|
90
|
+
${Y}${B}
|
|
91
|
+
${M}`),j.pop(),`{${B}}`}case"number":return isFinite(z)?String(z):E?E(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(z);default:return E?E(z):void 0}}function S(V,P,j,k,F,Y){switch(typeof P=="object"&&P!==null&&typeof P.toJSON=="function"&&(P=P.toJSON(V)),typeof P){case"string":return`"${d(P)}"`;case"object":{if(P===null)return"null";if(j.indexOf(P)!==-1)return x;const z=Y;let B="",q=",";if(Array.isArray(P)){if(P.length===0)return"[]";if(D<j.length+1)return'"[Array]"';j.push(P),F!==""&&(Y+=F,B+=`
|
|
92
|
+
${Y}`,q=`,
|
|
93
|
+
${Y}`);const X=Math.min(P.length,W);let J=0;for(;J<X-1;J++){const ue=S(J,P[J],j,k,F,Y);B+=ue!==void 0?ue:"null",B+=q}const ae=S(J,P[J],j,k,F,Y);if(B+=ae!==void 0?ae:"null",P.length-1>W){const ue=P.length-W-1;B+=`${q}"... ${g(ue)} not stringified"`}return F!==""&&(B+=`
|
|
94
|
+
${z}`),j.pop(),`[${B}]`}j.push(P);let M="";F!==""&&(Y+=F,q=`,
|
|
95
|
+
${Y}`,M=" ");let U="";for(const X of k){const J=S(X,P[X],j,k,F,Y);J!==void 0&&(B+=`${U}"${d(X)}":${M}${J}`,U=q)}return F!==""&&U.length>1&&(B=`
|
|
96
|
+
${Y}${B}
|
|
97
|
+
${z}`),j.pop(),`{${B}}`}case"number":return isFinite(P)?String(P):E?E(P):"null";case"boolean":return P===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(P);default:return E?E(P):void 0}}function R(V,P,j,k,F){switch(typeof P){case"string":return`"${d(P)}"`;case"object":{if(P===null)return"null";if(typeof P.toJSON=="function"){if(P=P.toJSON(V),typeof P!="object")return R(V,P,j,k,F);if(P===null)return"null"}if(j.indexOf(P)!==-1)return x;const Y=F;if(Array.isArray(P)){if(P.length===0)return"[]";if(D<j.length+1)return'"[Array]"';j.push(P),F+=k;let J=`
|
|
98
|
+
${F}`;const ae=`,
|
|
99
|
+
${F}`,ue=Math.min(P.length,W);let ve=0;for(;ve<ue-1;ve++){const we=R(ve,P[ve],j,k,F);J+=we!==void 0?we:"null",J+=ae}const me=R(ve,P[ve],j,k,F);if(J+=me!==void 0?me:"null",P.length-1>W){const we=P.length-W-1;J+=`${ae}"... ${g(we)} not stringified"`}return J+=`
|
|
100
|
+
${Y}`,j.pop(),`[${J}]`}let z=Object.keys(P);const B=z.length;if(B===0)return"{}";if(D<j.length+1)return'"[Object]"';F+=k;const q=`,
|
|
101
|
+
${F}`;let M="",U="",X=Math.min(B,W);h(P)&&(M+=c(P,q,W),z=z.slice(P.length),X-=P.length,U=q),C&&(z=f(z)),j.push(P);for(let J=0;J<X;J++){const ae=z[J],ue=R(ae,P[ae],j,k,F);ue!==void 0&&(M+=`${U}"${d(ae)}": ${ue}`,U=q)}if(B>W){const J=B-W;M+=`${U}"...": "${g(J)} not stringified"`,U=q}return U!==""&&(M=`
|
|
102
|
+
${F}${M}
|
|
103
|
+
${Y}`),j.pop(),`{${M}}`}case"number":return isFinite(P)?String(P):E?E(P):"null";case"boolean":return P===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(P);default:return E?E(P):void 0}}function L(V,P,j){switch(typeof P){case"string":return`"${d(P)}"`;case"object":{if(P===null)return"null";if(typeof P.toJSON=="function"){if(P=P.toJSON(V),typeof P!="object")return L(V,P,j);if(P===null)return"null"}if(j.indexOf(P)!==-1)return x;let k="";if(Array.isArray(P)){if(P.length===0)return"[]";if(D<j.length+1)return'"[Array]"';j.push(P);const q=Math.min(P.length,W);let M=0;for(;M<q-1;M++){const X=L(M,P[M],j);k+=X!==void 0?X:"null",k+=","}const U=L(M,P[M],j);if(k+=U!==void 0?U:"null",P.length-1>W){const X=P.length-W-1;k+=`,"... ${g(X)} not stringified"`}return j.pop(),`[${k}]`}let F=Object.keys(P);const Y=F.length;if(Y===0)return"{}";if(D<j.length+1)return'"[Object]"';let z="",B=Math.min(Y,W);h(P)&&(k+=c(P,",",W),F=F.slice(P.length),B-=P.length,z=","),C&&(F=f(F)),j.push(P);for(let q=0;q<B;q++){const M=F[q],U=L(M,P[M],j);U!==void 0&&(k+=`${z}"${d(M)}":${U}`,z=",")}if(Y>W){const q=Y-W;k+=`${z}"...":"${g(q)} not stringified"`}return j.pop(),`{${k}}`}case"number":return isFinite(P)?String(P):E?E(P):"null";case"boolean":return P===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(P);default:return E?E(P):void 0}}function N(V,P,j){if(arguments.length>1){let k="";if(typeof j=="number"?k=" ".repeat(Math.min(j,10)):typeof j=="string"&&(k=j.slice(0,10)),P!=null){if(typeof P=="function")return H("",{"":V},[],P,k,"");if(Array.isArray(P))return S("",V,[],u(P),k,"")}if(k.length!==0)return R("",V,[],k,"")}return L("",V,[])}return N}}(Ar,Ar.exports)),Ar.exports}var Ii,Uu;function xg(){if(Uu)return Ii;Uu=1;var e=rt(),n=Ne(),o=n.MESSAGE,i=lr();function a(t,r){return typeof r=="bigint"?r.toString():r}return Ii=e(function(t,r){var s=i.configure(r);return t[o]=s(t,r.replacer||a,r.space),t}),Ii}var Ai,$u;function Ig(){if($u)return Ai;$u=1;var e=rt();return Ai=e(function(n,o){return o.message?(n.message="[".concat(o.label,"] ").concat(n.message),n):(n.label=o.label,n)}),Ai}var Ci,Vu;function Ag(){if(Vu)return Ci;Vu=1;var e=rt(),n=Ne(),o=n.MESSAGE,i=lr();return Ci=e(function(a){var t={};return a.message&&(t["@message"]=a.message,delete a.message),a.timestamp&&(t["@timestamp"]=a.timestamp,delete a.timestamp),t["@fields"]=a,a[o]=i(t),a}),Ci}var Pi,Gu;function Cg(){if(Gu)return Pi;Gu=1;function e(a,t,r){return t in a?Object.defineProperty(a,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[t]=r,a}var n=rt();function o(a,t,r){var s=t.reduce(function(f,l){return f[l]=a[l],delete a[l],f},{}),d=Object.keys(a).reduce(function(f,l){return f[l]=a[l],delete a[l],f},{});return Object.assign(a,s,e({},r,d)),a}function i(a,t,r){return a[r]=t.reduce(function(s,d){return s[d]=a[d],delete a[d],s},{}),a}return Pi=n(function(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r="metadata";t.key&&(r=t.key);var s=[];return!t.fillExcept&&!t.fillWith&&(s.push("level"),s.push("message")),t.fillExcept&&(s=t.fillExcept),s.length>0?o(a,s,r):t.fillWith?i(a,t.fillWith,r):a}),Pi}var ki,zu;function fh(){if(zu)return ki;zu=1;var e=1e3,n=e*60,o=n*60,i=o*24,a=i*7,t=i*365.25;ki=function(l,h){h=h||{};var c=typeof l;if(c==="string"&&l.length>0)return r(l);if(c==="number"&&isFinite(l))return h.long?d(l):s(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function r(l){if(l=String(l),!(l.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(h){var c=parseFloat(h[1]),b=(h[2]||"ms").toLowerCase();switch(b){case"years":case"year":case"yrs":case"yr":case"y":return c*t;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function s(l){var h=Math.abs(l);return h>=i?Math.round(l/i)+"d":h>=o?Math.round(l/o)+"h":h>=n?Math.round(l/n)+"m":h>=e?Math.round(l/e)+"s":l+"ms"}function d(l){var h=Math.abs(l);return h>=i?f(l,h,i,"day"):h>=o?f(l,h,o,"hour"):h>=n?f(l,h,n,"minute"):h>=e?f(l,h,e,"second"):l+" ms"}function f(l,h,c,b){var m=h>=c*1.5;return Math.round(l/c)+" "+b+(m?"s":"")}return ki}var ji,Hu;function Pg(){if(Hu)return ji;Hu=1;var e=void 0,n=rt(),o=fh();return ji=n(function(i){var a=+new Date;return e.diff=a-(e.prevTime||a),e.prevTime=a,i.ms="+".concat(o(e.diff)),i}),ji}var Li,Zu;function kg(){if(Zu)return Li;Zu=1;var e=He().inspect,n=rt(),o=Ne(),i=o.LEVEL,a=o.MESSAGE,t=o.SPLAT;return Li=n(function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=Object.assign({},r);return delete d[i],delete d[a],delete d[t],r[a]=e(d,!1,s.depth||null,s.colorize),r}),Li}var er={exports:{}},Yu;function jg(){if(Yu)return er.exports;Yu=1;function e(r,s){if(!(r instanceof s))throw new TypeError("Cannot call a class as a function")}function n(r,s){for(var d=0;d<s.length;d++){var f=s[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(r,f.key,f)}}function o(r,s,d){return s&&n(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r}var i=Ne(),a=i.MESSAGE,t=function(){function r(s){e(this,r),this.template=s}return o(r,[{key:"transform",value:function(d){return d[a]=this.template(d),d}}]),r}();return er.exports=function(r){return new t(r)},er.exports.Printf=er.exports.Format=t,er.exports}var qi,Wu;function Lg(){if(Wu)return qi;Wu=1;var e=rt(),n=Ne(),o=n.MESSAGE,i=lr();return qi=e(function(a){var t=i(Object.assign({},a,{level:void 0,message:void 0,splat:void 0})),r=a.padding&&a.padding[a.level]||"";return t!=="{}"?a[o]="".concat(a.level,":").concat(r," ").concat(a.message," ").concat(t):a[o]="".concat(a.level,":").concat(r," ").concat(a.message),a}),qi}var Ni,Ku;function qg(){if(Ku)return Ni;Ku=1;function e(y){return a(y)||i(y)||o(y)||n()}function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
104
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(y,g){if(y){if(typeof y=="string")return t(y,g);var u=Object.prototype.toString.call(y).slice(8,-1);if(u==="Object"&&y.constructor&&(u=y.constructor.name),u==="Map"||u==="Set")return Array.from(y);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return t(y,g)}}function i(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}function a(y){if(Array.isArray(y))return t(y)}function t(y,g){(g==null||g>y.length)&&(g=y.length);for(var u=0,_=new Array(g);u<g;u++)_[u]=y[u];return _}function r(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function s(y,g){for(var u=0;u<g.length;u++){var _=g[u];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}function d(y,g,u){return g&&s(y.prototype,g),Object.defineProperty(y,"prototype",{writable:!1}),y}var f=He(),l=Ne(),h=l.SPLAT,c=/%[scdjifoO%]/g,b=/%%/g,m=function(){function y(g){r(this,y),this.options=g}return d(y,[{key:"_splat",value:function(u,_){var w=u.message,v=u[h]||u.splat||[],E=w.match(b),x=E&&E.length||0,O=_.length-x,C=O-v.length,D=C<0?v.splice(C,-1*C):[],W=D.length;if(W)for(var H=0;H<W;H++)Object.assign(u,D[H]);return u.message=f.format.apply(f,[w].concat(e(v))),u}},{key:"transform",value:function(u){var _=u.message,w=u[h]||u.splat;if(!w||!w.length)return u;var v=_&&_.match&&_.match(c);if(!v&&(w||w.length)){var E=w.length>1?w.splice(0):w,x=E.length;if(x)for(var O=0;O<x;O++)Object.assign(u,E[O]);return u}return v?this._splat(u,v):u}}]),y}();return Ni=function(y){return new m(y)},Ni}var lh=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Et="\\d\\d?",wt="\\d\\d",Ng="\\d{3}",Dg="\\d{4}",rr="[^\\s]+",hh=/\[([^]*?)\]/gm;function dh(e,n){for(var o=[],i=0,a=e.length;i<a;i++)o.push(e[i].substr(0,n));return o}var Ju=function(e){return function(n,o){var i=o[e].map(function(t){return t.toLowerCase()}),a=i.indexOf(n.toLowerCase());return a>-1?a:null}};function Ot(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];for(var i=0,a=n;i<a.length;i++){var t=a[i];for(var r in t)e[r]=t[r]}return e}var ph=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],mh=["January","February","March","April","May","June","July","August","September","October","November","December"],Mg=dh(mh,3),Fg=dh(ph,3),Jo={dayNamesShort:Fg,dayNames:ph,monthNamesShort:Mg,monthNames:mh,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},rn=Ot({},Jo),gh=function(e){return rn=Ot(rn,e)},Xu=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Qe=function(e,n){for(n===void 0&&(n=2),e=String(e);e.length<n;)e="0"+e;return e},Bg={D:function(e){return String(e.getDate())},DD:function(e){return Qe(e.getDate())},Do:function(e,n){return n.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return Qe(e.getDay())},ddd:function(e,n){return n.dayNamesShort[e.getDay()]},dddd:function(e,n){return n.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return Qe(e.getMonth()+1)},MMM:function(e,n){return n.monthNamesShort[e.getMonth()]},MMMM:function(e,n){return n.monthNames[e.getMonth()]},YY:function(e){return Qe(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return Qe(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return Qe(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return Qe(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return Qe(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return Qe(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return Qe(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return Qe(e.getMilliseconds(),3)},a:function(e,n){return e.getHours()<12?n.amPm[0]:n.amPm[1]},A:function(e,n){return e.getHours()<12?n.amPm[0].toUpperCase():n.amPm[1].toUpperCase()},ZZ:function(e){var n=e.getTimezoneOffset();return(n>0?"-":"+")+Qe(Math.floor(Math.abs(n)/60)*100+Math.abs(n)%60,4)},Z:function(e){var n=e.getTimezoneOffset();return(n>0?"-":"+")+Qe(Math.floor(Math.abs(n)/60),2)+":"+Qe(Math.abs(n)%60,2)}},Qu=function(e){return+e-1},ec=[null,Et],tc=[null,rr],rc=["isPm",rr,function(e,n){var o=e.toLowerCase();return o===n.amPm[0]?0:o===n.amPm[1]?1:null}],nc=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var n=(e+"").match(/([+-]|\d\d)/gi);if(n){var o=+n[1]*60+parseInt(n[2],10);return n[0]==="+"?o:-o}return 0}],Ug={D:["day",Et],DD:["day",wt],Do:["day",Et+rr,function(e){return parseInt(e,10)}],M:["month",Et,Qu],MM:["month",wt,Qu],YY:["year",wt,function(e){var n=new Date,o=+(""+n.getFullYear()).substr(0,2);return+(""+(+e>68?o-1:o)+e)}],h:["hour",Et,void 0,"isPm"],hh:["hour",wt,void 0,"isPm"],H:["hour",Et],HH:["hour",wt],m:["minute",Et],mm:["minute",wt],s:["second",Et],ss:["second",wt],YYYY:["year",Dg],S:["millisecond","\\d",function(e){return+e*100}],SS:["millisecond",wt,function(e){return+e*10}],SSS:["millisecond",Ng],d:ec,dd:ec,ddd:tc,dddd:tc,MMM:["month",rr,Ju("monthNamesShort")],MMMM:["month",rr,Ju("monthNames")],a:rc,A:rc,ZZ:nc,Z:nc},nn={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},vh=function(e){return Ot(nn,e)},yh=function(e,n,o){if(n===void 0&&(n=nn.default),o===void 0&&(o={}),typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");n=nn[n]||n;var i=[];n=n.replace(hh,function(t,r){return i.push(r),"@@@"});var a=Ot(Ot({},rn),o);return n=n.replace(lh,function(t){return Bg[t](e,a)}),n.replace(/@@@/g,function(){return i.shift()})};function _h(e,n,o){if(o===void 0&&(o={}),typeof n!="string")throw new Error("Invalid format in fecha parse");if(n=nn[n]||n,e.length>1e3)return null;var i=new Date,a={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},t=[],r=[],s=n.replace(hh,function(v,E){return r.push(Xu(E)),"@@@"}),d={},f={};s=Xu(s).replace(lh,function(v){var E=Ug[v],x=E[0],O=E[1],C=E[3];if(d[x])throw new Error("Invalid format. "+x+" specified twice in format");return d[x]=!0,C&&(f[C]=!0),t.push(E),"("+O+")"}),Object.keys(f).forEach(function(v){if(!d[v])throw new Error("Invalid format. "+v+" is required in specified format")}),s=s.replace(/@@@/g,function(){return r.shift()});var l=e.match(new RegExp(s,"i"));if(!l)return null;for(var h=Ot(Ot({},rn),o),c=1;c<l.length;c++){var b=t[c-1],m=b[0],y=b[2],g=y?y(l[c],h):+l[c];if(g==null)return null;a[m]=g}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var u;if(a.timezoneOffset==null){u=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var _=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],c=0,w=_.length;c<w;c++)if(d[_[c][0]]&&a[_[c][0]]!==u[_[c][1]]())return null}else if(u=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return u}var $g={format:yh,parse:_h,defaultI18n:Jo,setGlobalDateI18n:gh,setGlobalDateMasks:vh};const Vg=Object.freeze(Object.defineProperty({__proto__:null,assign:Ot,default:$g,defaultI18n:Jo,format:yh,parse:_h,setGlobalDateI18n:gh,setGlobalDateMasks:vh},Symbol.toStringTag,{value:"Module"})),Gg=Vl(Vg);var Di,ic;function zg(){if(ic)return Di;ic=1;var e=Gg,n=rt();return Di=n(function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.format&&(o.timestamp=typeof i.format=="function"?i.format():e.format(new Date,i.format)),o.timestamp||(o.timestamp=new Date().toISOString()),i.alias&&(o[i.alias]=o.timestamp),o}),Di}var Mi,ac;function Hg(){if(ac)return Mi;ac=1;var e=uh(),n=rt(),o=Ne(),i=o.MESSAGE;return Mi=n(function(a,t){return t.level!==!1&&(a.level=e.strip(a.level)),t.message!==!1&&(a.message=e.strip(String(a.message))),t.raw!==!1&&a[i]&&(a[i]=e.strip(String(a[i]))),a}),Mi}var oc;function bh(){if(oc)return Sr;oc=1;var e=Sr.format=rt();return Sr.levels=Eg(),Object.defineProperty(e,"align",{value:Sg()}),Object.defineProperty(e,"cli",{value:Rg()}),Object.defineProperty(e,"colorize",{value:Ko()}),Object.defineProperty(e,"combine",{value:Og()}),Object.defineProperty(e,"errors",{value:Tg()}),Object.defineProperty(e,"json",{value:xg()}),Object.defineProperty(e,"label",{value:Ig()}),Object.defineProperty(e,"logstash",{value:Ag()}),Object.defineProperty(e,"metadata",{value:Cg()}),Object.defineProperty(e,"ms",{value:Pg()}),Object.defineProperty(e,"padLevels",{value:ch()}),Object.defineProperty(e,"prettyPrint",{value:kg()}),Object.defineProperty(e,"printf",{value:jg()}),Object.defineProperty(e,"simple",{value:Lg()}),Object.defineProperty(e,"splat",{value:qg()}),Object.defineProperty(e,"timestamp",{value:zg()}),Object.defineProperty(e,"uncolorize",{value:Hg()}),Sr}var Fi={},sc;function wh(){return sc||(sc=1,function(e){var n=He(),o=n.format;e.warn={deprecated:function(a){return function(){throw new Error(o("{ %s } was removed in winston@3.0.0.",a))}},useFormat:function(a){return function(){throw new Error([o("{ %s } was removed in winston@3.0.0.",a),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
105
|
+
`))}},forFunctions:function(a,t,r){r.forEach(function(s){a[s]=e.warn[t](s)})},moved:function(a,t,r){function s(){return function(){throw new Error([o("winston.%s was moved in winston@3.0.0.",r),o("Use a winston.%s instead.",t)].join(`
|
|
106
|
+
`))}}Object.defineProperty(a,r,{get:s,set:s})},forProperties:function(a,t,r){r.forEach(function(s){var d=e.warn[t](s);Object.defineProperty(a,s,{get:d,set:d})})}}}(Fi)),Fi}const Zg="3.8.2",Yg={version:Zg};var Bi={},Cr={exports:{}},Ui={exports:{}},uc;function Wg(){if(uc)return Ui.exports;uc=1;var e=He(),n=Ne(),o=n.LEVEL,i=Ft(),a=Ui.exports=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(i.call(this,r),!r.transport||typeof r.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=r.transport,this.level=this.level||r.transport.level,this.handleExceptions=this.handleExceptions||r.transport.handleExceptions,this._deprecated();function s(d){this.emit("error",d,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=s.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(a,i),a.prototype._write=function(r,s,d){if(this.silent||r.exception===!0&&!this.handleExceptions)return d(null);(!this.level||this.levels[this.level]>=this.levels[r[o]])&&this.transport.log(r[o],r.message,r,this._nop),d(null)},a.prototype._writev=function(r,s){for(var d=0;d<r.length;d++)this._accept(r[d])&&(this.transport.log(r[d].chunk[o],r[d].chunk.message,r[d].chunk,this._nop),r[d].callback());return s(null)},a.prototype._deprecated=function(){console.error([this.transport.name+" is a legacy winston transport. Consider upgrading: ","- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
107
|
+
`))},a.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},Ui.exports}var cc;function Ft(){if(cc)return Cr.exports;cc=1;var e=He(),n=Vp(),o=Ne(),i=o.LEVEL,a=Cr.exports=function(){var r=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.call(this,{objectMode:!0,highWaterMark:s.highWaterMark}),this.format=s.format,this.level=s.level,this.handleExceptions=s.handleExceptions,this.handleRejections=s.handleRejections,this.silent=s.silent,s.log&&(this.log=s.log),s.logv&&(this.logv=s.logv),s.close&&(this.close=s.close),this.once("pipe",function(d){r.levels=d.levels,r.parent=d}),this.once("unpipe",function(d){d===r.parent&&(r.parent=null,r.close&&r.close())})};return e.inherits(a,n),a.prototype._write=function(r,s,d){if(this.silent||r.exception===!0&&!this.handleExceptions)return d(null);var f=this.level||this.parent&&this.parent.level;if(!f||this.levels[f]>=this.levels[r[i]]){if(r&&!this.format)return this.log(r,d);var l=void 0,h=void 0;try{h=this.format.transform(Object.assign({},r),this.format.options)}catch(c){l=c}if(l||!h){if(d(),l)throw l;return}return this.log(h,d)}return this._writableState.sync=!1,d(null)},a.prototype._writev=function(r,s){if(this.logv){var d=r.filter(this._accept,this);return d.length?this.logv(d,s):s(null)}for(var f=0;f<r.length;f++)if(this._accept(r[f])){if(r[f].chunk&&!this.format){this.log(r[f].chunk,r[f].callback);continue}var l=void 0,h=void 0;try{h=this.format.transform(Object.assign({},r[f].chunk),this.format.options)}catch(c){l=c}if(l||!h){if(r[f].callback(),l)throw s(null),l}else this.log(h,r[f].callback)}return s(null)},a.prototype._accept=function(r){var s=r.chunk;if(this.silent)return!1;var d=this.level||this.parent&&this.parent.level;return!!((s.exception===!0||!d||this.levels[d]>=this.levels[s[i]])&&(this.handleExceptions||s.exception!==!0))},a.prototype._nop=function(){},Cr.exports.LegacyTransportStream=Wg(),Cr.exports}var $i,fc;function Kg(){if(fc)return $i;fc=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(g)}function n(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function o(g,u){for(var _=0;_<u.length;_++){var w=u[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}function i(g,u,_){return u&&o(g.prototype,u),Object.defineProperty(g,"prototype",{writable:!1}),g}function a(g,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(u&&u.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),u&&t(g,u)}function t(g,u){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,v){return w.__proto__=v,w},t(g,u)}function r(g){var u=f();return function(){var w=l(g),v;if(u){var E=l(this).constructor;v=Reflect.construct(w,arguments,E)}else v=w.apply(this,arguments);return s(this,v)}}function s(g,u){if(u&&(e(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(g)}function d(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(g){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},l(g)}var h=Mt(),c=Ne(),b=c.LEVEL,m=c.MESSAGE,y=Ft();return $i=function(g){a(_,g);var u=r(_);function _(){var w,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n(this,_),w=u.call(this,v),w.name=v.name||"console",w.stderrLevels=w._stringArrayToSet(v.stderrLevels),w.consoleWarnLevels=w._stringArrayToSet(v.consoleWarnLevels),w.eol=typeof v.eol=="string"?v.eol:h.EOL,w.setMaxListeners(30),w}return i(_,[{key:"log",value:function(v,E){var x=this;if(setImmediate(function(){return x.emit("logged",v)}),this.stderrLevels[v[b]]){console._stderr?console._stderr.write("".concat(v[m]).concat(this.eol)):console.error(v[m]),E&&E();return}else if(this.consoleWarnLevels[v[b]]){console._stderr?console._stderr.write("".concat(v[m]).concat(this.eol)):console.warn(v[m]),E&&E();return}console._stdout?console._stdout.write("".concat(v[m]).concat(this.eol)):console.log(v[m]),E&&E()}},{key:"_stringArrayToSet",value:function(v,E){if(!v)return{};if(E=E||"Cannot make set from type other than Array of string elements",!Array.isArray(v))throw new Error(E);return v.reduce(function(x,O){if(typeof O!="string")throw new Error(E);return x[O]=!0,x},{})}}]),_}(y),$i}var Vi,lc;function Eh(){if(lc)return Vi;lc=1;function e(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function n(a,t){for(var r="",s=0,d=-1,f=0,l,h=0;h<=a.length;++h){if(h<a.length)l=a.charCodeAt(h);else{if(l===47)break;l=47}if(l===47){if(!(d===h-1||f===1))if(d!==h-1&&f===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){c===-1?(r="",s=0):(r=r.slice(0,c),s=r.length-1-r.lastIndexOf("/")),d=h,f=0;continue}}else if(r.length===2||r.length===1){r="",s=0,d=h,f=0;continue}}t&&(r.length>0?r+="/..":r="..",s=2)}else r.length>0?r+="/"+a.slice(d+1,h):r=a.slice(d+1,h),s=h-d-1;d=h,f=0}else l===46&&f!==-1?++f:f=-1}return r}function o(a,t){var r=t.dir||t.root,s=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+s:r+a+s:s}var i={resolve:function(){for(var t="",r=!1,s,d=arguments.length-1;d>=-1&&!r;d--){var f;d>=0?f=arguments[d]:(s===void 0&&(s=ye.cwd()),f=s),e(f),f.length!==0&&(t=f+"/"+t,r=f.charCodeAt(0)===47)}return t=n(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(e(t),t.length===0)return".";var r=t.charCodeAt(0)===47,s=t.charCodeAt(t.length-1)===47;return t=n(t,!r),t.length===0&&!r&&(t="."),t.length>0&&s&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,r=0;r<arguments.length;++r){var s=arguments[r];e(s),s.length>0&&(t===void 0?t=s:t+="/"+s)}return t===void 0?".":i.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r||(t=i.resolve(t),r=i.resolve(r),t===r))return"";for(var s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var d=t.length,f=d-s,l=1;l<r.length&&r.charCodeAt(l)===47;++l);for(var h=r.length,c=h-l,b=f<c?f:c,m=-1,y=0;y<=b;++y){if(y===b){if(c>b){if(r.charCodeAt(l+y)===47)return r.slice(l+y+1);if(y===0)return r.slice(l+y)}else f>b&&(t.charCodeAt(s+y)===47?m=y:y===0&&(m=0));break}var g=t.charCodeAt(s+y),u=r.charCodeAt(l+y);if(g!==u)break;g===47&&(m=y)}var _="";for(y=s+m+1;y<=d;++y)(y===d||t.charCodeAt(y)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+r.slice(l+m):(l+=m,r.charCodeAt(l)===47&&++l,r.slice(l))},_makeLong:function(t){return t},dirname:function(t){if(e(t),t.length===0)return".";for(var r=t.charCodeAt(0),s=r===47,d=-1,f=!0,l=t.length-1;l>=1;--l)if(r=t.charCodeAt(l),r===47){if(!f){d=l;break}}else f=!1;return d===-1?s?"/":".":s&&d===1?"//":t.slice(0,d)},basename:function(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');e(t);var s=0,d=-1,f=!0,l;if(r!==void 0&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var h=r.length-1,c=-1;for(l=t.length-1;l>=0;--l){var b=t.charCodeAt(l);if(b===47){if(!f){s=l+1;break}}else c===-1&&(f=!1,c=l+1),h>=0&&(b===r.charCodeAt(h)?--h===-1&&(d=l):(h=-1,d=c))}return s===d?d=c:d===-1&&(d=t.length),t.slice(s,d)}else{for(l=t.length-1;l>=0;--l)if(t.charCodeAt(l)===47){if(!f){s=l+1;break}}else d===-1&&(f=!1,d=l+1);return d===-1?"":t.slice(s,d)}},extname:function(t){e(t);for(var r=-1,s=0,d=-1,f=!0,l=0,h=t.length-1;h>=0;--h){var c=t.charCodeAt(h);if(c===47){if(!f){s=h+1;break}continue}d===-1&&(f=!1,d=h+1),c===46?r===-1?r=h:l!==1&&(l=1):r!==-1&&(l=-1)}return r===-1||d===-1||l===0||l===1&&r===d-1&&r===s+1?"":t.slice(r,d)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return o("/",t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var s=t.charCodeAt(0),d=s===47,f;d?(r.root="/",f=1):f=0;for(var l=-1,h=0,c=-1,b=!0,m=t.length-1,y=0;m>=f;--m){if(s=t.charCodeAt(m),s===47){if(!b){h=m+1;break}continue}c===-1&&(b=!1,c=m+1),s===46?l===-1?l=m:y!==1&&(y=1):l!==-1&&(y=-1)}return l===-1||c===-1||y===0||y===1&&l===c-1&&l===h+1?c!==-1&&(h===0&&d?r.base=r.name=t.slice(1,c):r.base=r.name=t.slice(h,c)):(h===0&&d?(r.name=t.slice(1,l),r.base=t.slice(1,c)):(r.name=t.slice(h,l),r.base=t.slice(h,c)),r.ext=t.slice(l,c)),h>0?r.dir=t.slice(0,h-1):d&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,Vi=i,Vi}var Pr={exports:{}},kr={exports:{}},jr={exports:{}},hc;function Xo(){return hc||(hc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){return i&&typeof i.length=="number"&&i.length>=0&&i.length%1===0}e.exports=n.default}(jr,jr.exports)),jr.exports}var dt={},Lr={exports:{}},qr={exports:{}},dc;function Jg(){return dc||(dc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(o){return function(...i){var a=i.pop();return o.call(this,i,a)}},e.exports=n.default}(qr,qr.exports)),qr.exports}var yt={},pc;function Xg(){if(pc)return yt;pc=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.fallback=i,yt.wrap=a;var e=yt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,n=yt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,o=yt.hasNextTick=typeof ye=="object"&&typeof ye.nextTick=="function";function i(r){setTimeout(r,0)}function a(r){return(s,...d)=>r(()=>s(...d))}var t;return e?t=queueMicrotask:n?t=setImmediate:o?t=ye.nextTick:t=i,yt.default=a(t),yt}var mc;function Qg(){return mc||(mc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=d;var o=Jg(),i=s(o),a=Xg(),t=s(a),r=Ht();function s(h){return h&&h.__esModule?h:{default:h}}function d(h){return(0,r.isAsync)(h)?function(...c){const b=c.pop(),m=h.apply(this,c);return f(m,b)}:(0,i.default)(function(c,b){var m;try{m=h.apply(this,c)}catch(y){return b(y)}if(m&&typeof m.then=="function")return f(m,b);b(null,m)})}function f(h,c){return h.then(b=>{l(c,null,b)},b=>{l(c,b&&b.message?b:new Error(b))})}function l(h,c,b){try{h(c,b)}catch(m){(0,t.default)(y=>{throw y},m)}}e.exports=n.default}(Lr,Lr.exports)),Lr.exports}var gc;function Ht(){if(gc)return dt;gc=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.isAsyncIterable=dt.isAsyncGenerator=dt.isAsync=void 0;var e=Qg(),n=o(e);function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return s[Symbol.toStringTag]==="AsyncFunction"}function a(s){return s[Symbol.toStringTag]==="AsyncGenerator"}function t(s){return typeof s[Symbol.asyncIterator]=="function"}function r(s){if(typeof s!="function")throw new Error("expected a function");return i(s)?(0,n.default)(s):s}return dt.default=r,dt.isAsync=i,dt.isAsyncGenerator=a,dt.isAsyncIterable=t,dt}var Nr={exports:{}},vc;function hr(){return vc||(vc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i,a=i.length){if(!a)throw new Error("arity is undefined");function t(...r){return typeof r[a-1]=="function"?i.apply(this,r):new Promise((s,d)=>{r[a-1]=(f,...l)=>{if(f)return d(f);s(l.length>1?l:l[0])},i.apply(this,r)})}return t}e.exports=n.default}(Nr,Nr.exports)),Nr.exports}var yc;function ev(){return yc||(yc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=Xo(),i=d(o),a=Ht(),t=d(a),r=hr(),s=d(r);function d(f){return f&&f.__esModule?f:{default:f}}n.default=(0,s.default)((f,l,h)=>{var c=(0,i.default)(l)?[]:{};f(l,(b,m,y)=>{(0,t.default)(b)((g,...u)=>{u.length<2&&([u]=u),c[m]=u,y(g)})},b=>h(b,c))},3),e.exports=n.default}(kr,kr.exports)),kr.exports}var Dr={exports:{}},Mr={exports:{}},Fr={exports:{}},Br={exports:{}},_c;function Sh(){return _c||(_c=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){function a(...t){if(i!==null){var r=i;i=null,r.apply(this,t)}}return Object.assign(a,i),a}e.exports=n.default}(Br,Br.exports)),Br.exports}var Ur={exports:{}},$r={exports:{}},bc;function tv(){return bc||(bc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(o){return o[Symbol.iterator]&&o[Symbol.iterator]()},e.exports=n.default}($r,$r.exports)),$r.exports}var wc;function rv(){return wc||(wc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=l;var o=Xo(),i=r(o),a=tv(),t=r(a);function r(h){return h&&h.__esModule?h:{default:h}}function s(h){var c=-1,b=h.length;return function(){return++c<b?{value:h[c],key:c}:null}}function d(h){var c=-1;return function(){var m=h.next();return m.done?null:(c++,{value:m.value,key:c})}}function f(h){var c=h?Object.keys(h):[],b=-1,m=c.length;return function y(){var g=c[++b];return g==="__proto__"?y():b<m?{value:h[g],key:g}:null}}function l(h){if((0,i.default)(h))return s(h);var c=(0,t.default)(h);return c?d(c):f(h)}e.exports=n.default}(Ur,Ur.exports)),Ur.exports}var Vr={exports:{}},Ec;function Rh(){return Ec||(Ec=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){return function(...a){if(i===null)throw new Error("Callback was already called.");var t=i;i=null,t.apply(this,a)}}e.exports=n.default}(Vr,Vr.exports)),Vr.exports}var Gr={exports:{}},zr={exports:{}},Sc;function Qo(){return Sc||(Sc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});const o={};n.default=o,e.exports=n.default}(zr,zr.exports)),zr.exports}var Rc;function nv(){return Rc||(Rc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=t;var o=Qo(),i=a(o);function a(r){return r&&r.__esModule?r:{default:r}}function t(r,s,d,f){let l=!1,h=!1,c=!1,b=0,m=0;function y(){b>=s||c||l||(c=!0,r.next().then(({value:_,done:w})=>{if(!(h||l)){if(c=!1,w){l=!0,b<=0&&f(null);return}b++,d(_,m,g),m++,y()}}).catch(u))}function g(_,w){if(b-=1,!h){if(_)return u(_);if(_===!1){l=!0,h=!0;return}if(w===i.default||l&&b<=0)return l=!0,f(null);y()}}function u(_){h||(c=!1,l=!0,f(_))}y()}e.exports=n.default}(Gr,Gr.exports)),Gr.exports}var Oc;function iv(){return Oc||(Oc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=Sh(),i=b(o),a=rv(),t=b(a),r=Rh(),s=b(r),d=Ht(),f=nv(),l=b(f),h=Qo(),c=b(h);function b(m){return m&&m.__esModule?m:{default:m}}n.default=m=>(y,g,u)=>{if(u=(0,i.default)(u),m<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!y)return u(null);if((0,d.isAsyncGenerator)(y))return(0,l.default)(y,m,g,u);if((0,d.isAsyncIterable)(y))return(0,l.default)(y[Symbol.asyncIterator](),m,g,u);var _=(0,t.default)(y),w=!1,v=!1,E=0,x=!1;function O(D,W){if(!v)if(E-=1,D)w=!0,u(D);else if(D===!1)w=!0,v=!0;else{if(W===c.default||w&&E<=0)return w=!0,u(null);x||C()}}function C(){for(x=!0;E<m&&!w;){var D=_();if(D===null){w=!0,E<=0&&u(null);return}E+=1,g(D.value,D.key,(0,s.default)(O))}x=!1}C()},e.exports=n.default}(Fr,Fr.exports)),Fr.exports}var Tc;function Oh(){return Tc||(Tc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=iv(),i=d(o),a=Ht(),t=d(a),r=hr(),s=d(r);function d(l){return l&&l.__esModule?l:{default:l}}function f(l,h,c,b){return(0,i.default)(h)(l,(0,t.default)(c),b)}n.default=(0,s.default)(f,4),e.exports=n.default}(Mr,Mr.exports)),Mr.exports}var xc;function av(){return xc||(xc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=Oh(),i=r(o),a=hr(),t=r(a);function r(d){return d&&d.__esModule?d:{default:d}}function s(d,f,l){return(0,i.default)(d,1,f,l)}n.default=(0,t.default)(s,3),e.exports=n.default}(Dr,Dr.exports)),Dr.exports}var Ic;function ov(){return Ic||(Ic=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var o=ev(),i=r(o),a=av(),t=r(a);function r(d){return d&&d.__esModule?d:{default:d}}function s(d,f){return(0,i.default)(t.default,d,f)}e.exports=n.default}(Pr,Pr.exports)),Pr.exports}var Gi={},zi={},Ac;function sv(){return Ac||(Ac=1,function(e){var n=ir(),o=Jp(),i=Kp(),a=em(),t=tm();for(var r in t)e[r]=t[r];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;var s=31,d=139;function f(l){if(typeof l!="number"||l<e.DEFLATE||l>e.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=l,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}f.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,n(this.init_done,"close before init"),n(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?i.deflateEnd(this.strm):(this.mode===e.INFLATE||this.mode===e.GUNZIP||this.mode===e.INFLATERAW||this.mode===e.UNZIP)&&a.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},f.prototype.write=function(l,h,c,b,m,y,g){return this._write(!0,l,h,c,b,m,y,g)},f.prototype.writeSync=function(l,h,c,b,m,y,g){return this._write(!1,l,h,c,b,m,y,g)},f.prototype._write=function(l,h,c,b,m,y,g,u){if(n.equal(arguments.length,8),n(this.init_done,"write before init"),n(this.mode!==e.NONE,"already finalized"),n.equal(!1,this.write_in_progress,"write already in progress"),n.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,n.equal(!1,h===void 0,"must provide flush value"),this.write_in_progress=!0,h!==e.Z_NO_FLUSH&&h!==e.Z_PARTIAL_FLUSH&&h!==e.Z_SYNC_FLUSH&&h!==e.Z_FULL_FLUSH&&h!==e.Z_FINISH&&h!==e.Z_BLOCK)throw new Error("Invalid flush value");if(c==null&&(c=et.alloc(0),m=0,b=0),this.strm.avail_in=m,this.strm.input=c,this.strm.next_in=b,this.strm.avail_out=u,this.strm.output=y,this.strm.next_out=g,this.flush=h,!l)return this._process(),this._checkError()?this._afterSync():void 0;var _=this;return ye.nextTick(function(){_._process(),_._after()}),this},f.prototype._afterSync=function(){var l=this.strm.avail_out,h=this.strm.avail_in;return this.write_in_progress=!1,[h,l]},f.prototype._process=function(){var l=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(l=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(l===null)break;if(this.strm.input[l]===s){if(this.gzip_id_bytes_read=1,l++,this.strm.avail_in===1)break}else{this.mode=e.INFLATE;break}case 1:if(l===null)break;this.strm.input[l]===d?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var l=this.strm.avail_out,h=this.strm.avail_in;this.write_in_progress=!1,this.callback(h,l),this.pending_close&&this.close()}},f.prototype._error=function(l){this.strm.msg&&(l=this.strm.msg),this.onerror(l,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(l,h,c,b,m){n(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),n(l>=8&&l<=15,"invalid windowBits"),n(h>=-1&&h<=9,"invalid compression level"),n(c>=1&&c<=9,"invalid memlevel"),n(b===e.Z_FILTERED||b===e.Z_HUFFMAN_ONLY||b===e.Z_RLE||b===e.Z_FIXED||b===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(h,l,c,b,m),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(l,h,c,b,m){switch(this.level=l,this.windowBits=h,this.memLevel=c,this.strategy=b,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,(this.mode===e.GZIP||this.mode===e.GUNZIP)&&(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),(this.mode===e.DEFLATERAW||this.mode===e.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=m,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=i.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=i.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=a.inflateReset(this.strm);break}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=f}(zi)),zi}var Cc;function uv(){return Cc||(Cc=1,function(e){var n=nr().Buffer,o=hn().Transform,i=sv(),a=He(),t=ir().ok,r=nr().kMaxLength,s="Cannot create final Buffer. It would be larger than 0x"+r.toString(16)+" bytes";i.Z_MIN_WINDOWBITS=8,i.Z_MAX_WINDOWBITS=15,i.Z_DEFAULT_WINDOWBITS=15,i.Z_MIN_CHUNK=64,i.Z_MAX_CHUNK=1/0,i.Z_DEFAULT_CHUNK=16*1024,i.Z_MIN_MEMLEVEL=1,i.Z_MAX_MEMLEVEL=9,i.Z_DEFAULT_MEMLEVEL=8,i.Z_MIN_LEVEL=-1,i.Z_MAX_LEVEL=9,i.Z_DEFAULT_LEVEL=i.Z_DEFAULT_COMPRESSION;for(var d=Object.keys(i),f=0;f<d.length;f++){var l=d[f];l.match(/^Z/)&&Object.defineProperty(e,l,{enumerable:!0,value:i[l],writable:!1})}for(var h={Z_OK:i.Z_OK,Z_STREAM_END:i.Z_STREAM_END,Z_NEED_DICT:i.Z_NEED_DICT,Z_ERRNO:i.Z_ERRNO,Z_STREAM_ERROR:i.Z_STREAM_ERROR,Z_DATA_ERROR:i.Z_DATA_ERROR,Z_MEM_ERROR:i.Z_MEM_ERROR,Z_BUF_ERROR:i.Z_BUF_ERROR,Z_VERSION_ERROR:i.Z_VERSION_ERROR},c=Object.keys(h),b=0;b<c.length;b++){var m=c[b];h[h[m]]=m}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),e.Deflate=u,e.Inflate=_,e.Gzip=w,e.Gunzip=v,e.DeflateRaw=E,e.InflateRaw=x,e.Unzip=O,e.createDeflate=function(S){return new u(S)},e.createInflate=function(S){return new _(S)},e.createDeflateRaw=function(S){return new E(S)},e.createInflateRaw=function(S){return new x(S)},e.createGzip=function(S){return new w(S)},e.createGunzip=function(S){return new v(S)},e.createUnzip=function(S){return new O(S)},e.deflate=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new u(R),S,L)},e.deflateSync=function(S,R){return g(new u(R),S)},e.gzip=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new w(R),S,L)},e.gzipSync=function(S,R){return g(new w(R),S)},e.deflateRaw=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new E(R),S,L)},e.deflateRawSync=function(S,R){return g(new E(R),S)},e.unzip=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new O(R),S,L)},e.unzipSync=function(S,R){return g(new O(R),S)},e.inflate=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new _(R),S,L)},e.inflateSync=function(S,R){return g(new _(R),S)},e.gunzip=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new v(R),S,L)},e.gunzipSync=function(S,R){return g(new v(R),S)},e.inflateRaw=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new x(R),S,L)},e.inflateRawSync=function(S,R){return g(new x(R),S)};function y(S,R,L){var N=[],V=0;S.on("error",j),S.on("end",k),S.end(R),P();function P(){for(var F;(F=S.read())!==null;)N.push(F),V+=F.length;S.once("readable",P)}function j(F){S.removeListener("end",k),S.removeListener("readable",P),L(F)}function k(){var F,Y=null;V>=r?Y=new RangeError(s):F=n.concat(N,V),N=[],S.close(),L(Y,F)}}function g(S,R){if(typeof R=="string"&&(R=n.from(R)),!n.isBuffer(R))throw new TypeError("Not a string or buffer");var L=S._finishFlushFlag;return S._processChunk(R,L)}function u(S){if(!(this instanceof u))return new u(S);D.call(this,S,i.DEFLATE)}function _(S){if(!(this instanceof _))return new _(S);D.call(this,S,i.INFLATE)}function w(S){if(!(this instanceof w))return new w(S);D.call(this,S,i.GZIP)}function v(S){if(!(this instanceof v))return new v(S);D.call(this,S,i.GUNZIP)}function E(S){if(!(this instanceof E))return new E(S);D.call(this,S,i.DEFLATERAW)}function x(S){if(!(this instanceof x))return new x(S);D.call(this,S,i.INFLATERAW)}function O(S){if(!(this instanceof O))return new O(S);D.call(this,S,i.UNZIP)}function C(S){return S===i.Z_NO_FLUSH||S===i.Z_PARTIAL_FLUSH||S===i.Z_SYNC_FLUSH||S===i.Z_FULL_FLUSH||S===i.Z_FINISH||S===i.Z_BLOCK}function D(S,R){var L=this;if(this._opts=S=S||{},this._chunkSize=S.chunkSize||e.Z_DEFAULT_CHUNK,o.call(this,S),S.flush&&!C(S.flush))throw new Error("Invalid flush flag: "+S.flush);if(S.finishFlush&&!C(S.finishFlush))throw new Error("Invalid flush flag: "+S.finishFlush);if(this._flushFlag=S.flush||i.Z_NO_FLUSH,this._finishFlushFlag=typeof S.finishFlush<"u"?S.finishFlush:i.Z_FINISH,S.chunkSize&&(S.chunkSize<e.Z_MIN_CHUNK||S.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+S.chunkSize);if(S.windowBits&&(S.windowBits<e.Z_MIN_WINDOWBITS||S.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+S.windowBits);if(S.level&&(S.level<e.Z_MIN_LEVEL||S.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+S.level);if(S.memLevel&&(S.memLevel<e.Z_MIN_MEMLEVEL||S.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+S.memLevel);if(S.strategy&&S.strategy!=e.Z_FILTERED&&S.strategy!=e.Z_HUFFMAN_ONLY&&S.strategy!=e.Z_RLE&&S.strategy!=e.Z_FIXED&&S.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+S.strategy);if(S.dictionary&&!n.isBuffer(S.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new i.Zlib(R);var N=this;this._hadError=!1,this._handle.onerror=function(j,k){W(N),N._hadError=!0;var F=new Error(j);F.errno=k,F.code=e.codes[k],N.emit("error",F)};var V=e.Z_DEFAULT_COMPRESSION;typeof S.level=="number"&&(V=S.level);var P=e.Z_DEFAULT_STRATEGY;typeof S.strategy=="number"&&(P=S.strategy),this._handle.init(S.windowBits||e.Z_DEFAULT_WINDOWBITS,V,S.memLevel||e.Z_DEFAULT_MEMLEVEL,P,S.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=V,this._strategy=P,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!L._handle},configurable:!0,enumerable:!0})}a.inherits(D,o),D.prototype.params=function(S,R,L){if(S<e.Z_MIN_LEVEL||S>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+S);if(R!=e.Z_FILTERED&&R!=e.Z_HUFFMAN_ONLY&&R!=e.Z_RLE&&R!=e.Z_FIXED&&R!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+R);if(this._level!==S||this._strategy!==R){var N=this;this.flush(i.Z_SYNC_FLUSH,function(){t(N._handle,"zlib binding closed"),N._handle.params(S,R),N._hadError||(N._level=S,N._strategy=R,L&&L())})}else ye.nextTick(L)},D.prototype.reset=function(){return t(this._handle,"zlib binding closed"),this._handle.reset()},D.prototype._flush=function(S){this._transform(n.alloc(0),"",S)},D.prototype.flush=function(S,R){var L=this,N=this._writableState;(typeof S=="function"||S===void 0&&!R)&&(R=S,S=i.Z_FULL_FLUSH),N.ended?R&&ye.nextTick(R):N.ending?R&&this.once("end",R):N.needDrain?R&&this.once("drain",function(){return L.flush(S,R)}):(this._flushFlag=S,this.write(n.alloc(0),"",R))},D.prototype.close=function(S){W(this,S),ye.nextTick(H,this)};function W(S,R){R&&ye.nextTick(R),S._handle&&(S._handle.close(),S._handle=null)}function H(S){S.emit("close")}D.prototype._transform=function(S,R,L){var N,V=this._writableState,P=V.ending||V.ended,j=P&&(!S||V.length===S.length);if(S!==null&&!n.isBuffer(S))return L(new Error("invalid input"));if(!this._handle)return L(new Error("zlib binding closed"));j?N=this._finishFlushFlag:(N=this._flushFlag,S.length>=V.length&&(this._flushFlag=this._opts.flush||i.Z_NO_FLUSH)),this._processChunk(S,N,L)},D.prototype._processChunk=function(S,R,L){var N=S&&S.length,V=this._chunkSize-this._offset,P=0,j=this,k=typeof L=="function";if(!k){var F=[],Y=0,z;this.on("error",function(X){z=X}),t(this._handle,"zlib binding closed");do var B=this._handle.writeSync(R,S,P,N,this._buffer,this._offset,V);while(!this._hadError&&U(B[0],B[1]));if(this._hadError)throw z;if(Y>=r)throw W(this),new RangeError(s);var q=n.concat(F,Y);return W(this),q}t(this._handle,"zlib binding closed");var M=this._handle.write(R,S,P,N,this._buffer,this._offset,V);M.buffer=S,M.callback=U;function U(X,J){if(this&&(this.buffer=null,this.callback=null),!j._hadError){var ae=V-J;if(t(ae>=0,"have should not go down"),ae>0){var ue=j._buffer.slice(j._offset,j._offset+ae);j._offset+=ae,k?j.push(ue):(F.push(ue),Y+=ue.length)}if((J===0||j._offset>=j._chunkSize)&&(V=j._chunkSize,j._offset=0,j._buffer=n.allocUnsafe(j._chunkSize)),J===0){if(P+=N-X,N=X,!k)return!0;var ve=j._handle.write(R,S,P,N,j._buffer,j._offset,j._chunkSize);ve.callback=U,ve.buffer=S;return}if(!k)return!1;L()}}},a.inherits(u,D),a.inherits(_,D),a.inherits(w,D),a.inherits(v,D),a.inherits(E,D),a.inherits(x,D),a.inherits(O,D)}(Gi)),Gi}var Hi={exports:{}},Zi,Pc;function cv(){if(Pc)return Zi;Pc=1;var e=[],n=[],o=function(){};function i(c){return~e.indexOf(c)?!1:(e.push(c),!0)}function a(c){o=c}function t(c){for(var b=[],m=0;m<e.length;m++){if(e[m].async){b.push(e[m]);continue}if(e[m](c))return!0}return b.length?new Promise(function(g){Promise.all(b.map(function(_){return _(c)})).then(function(_){g(_.some(Boolean))})}):!1}function r(c){return~n.indexOf(c)?!1:(n.push(c),!0)}function s(){o.apply(o,arguments)}function d(c){for(var b=0;b<n.length;b++)c=n[b].apply(n[b],arguments);return c}function f(c,b){var m=Object.prototype.hasOwnProperty;for(var y in b)m.call(b,y)&&(c[y]=b[y]);return c}function l(c){return c.enabled=!1,c.modify=r,c.set=a,c.use=i,f(function(){return!1},c)}function h(c){function b(){var m=Array.prototype.slice.call(arguments,0);return s.call(s,c,d(m,c)),!0}return c.enabled=!0,c.modify=r,c.set=a,c.use=i,f(b,c)}return Zi=function(b){return b.introduce=f,b.enabled=t,b.process=d,b.modify=r,b.write=s,b.nope=l,b.yep=h,b.set=a,b.use=i,b},Zi}var Yi,kc;function fv(){if(kc)return Yi;kc=1;var e=cv(),n=e(function o(i,a){return a=a||{},a.namespace=i,a.prod=!0,a.dev=!1,a.force||o.force?o.yep(a):o.nope(a)});return Yi=n,Yi}var jc;function mn(){return jc||(jc=1,Hi.exports=fv()),Hi.exports}var Wi,Lc;function lv(){if(Lc)return Wi;Lc=1;var e=Zo(),n=Gp(),o=n.StringDecoder,i=cr(),a=i.Stream;function t(){}return Wi=function(r,s){var d=et.alloc(65536),f=new o("utf8"),l=new a,h="",c=0,b=0;return r.start===-1&&delete r.start,l.readable=!0,l.destroy=function(){l.destroyed=!0,l.emit("end"),l.emit("close")},e.open(r.file,"a+","0644",function(m,y){if(m){s?s(m):l.emit("error",m),l.destroy();return}(function g(){if(l.destroyed){e.close(y,t);return}return e.read(y,d,0,d.length,c,function(u,_){if(u){s?s(u):l.emit("error",u),l.destroy();return}if(!_)return h&&((r.start==null||b>r.start)&&(s?s(null,h):l.emit("line",h)),b++,h=""),setTimeout(g,1e3);var w=f.write(d.slice(0,_));s||l.emit("data",w),w=(h+w).split(/\n+/);for(var v=w.length-1,E=0;E<v;E++)(r.start==null||b>r.start)&&(s?s(null,w[E]):l.emit("line",w[E])),b++;return h=w[v],c+=_,g()})})()}),s?l.destroy:l},Wi}var Ki,qc;function hv(){if(qc)return Ki;qc=1;function e(C){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},e(C)}function n(C,D){if(!(C instanceof D))throw new TypeError("Cannot call a class as a function")}function o(C,D){for(var W=0;W<D.length;W++){var H=D[W];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(C,H.key,H)}}function i(C,D,W){return D&&o(C.prototype,D),Object.defineProperty(C,"prototype",{writable:!1}),C}function a(C,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(D&&D.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),D&&t(C,D)}function t(C,D){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,S){return H.__proto__=S,H},t(C,D)}function r(C){var D=f();return function(){var H=l(C),S;if(D){var R=l(this).constructor;S=Reflect.construct(H,arguments,R)}else S=H.apply(this,arguments);return s(this,S)}}function s(C,D){if(D&&(e(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(C)}function d(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(C){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)},l(C)}var h=Zo(),c=Eh(),b=ov(),m=uv(),y=Ne(),g=y.MESSAGE,u=cr(),_=u.Stream,w=u.PassThrough,v=Ft(),E=mn()("winston:file"),x=Mt(),O=lv();return Ki=function(C){a(W,C);var D=r(W);function W(){var H,S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,W),H=D.call(this,S),H.name=S.name||"file";function R(L){for(var N=arguments.length,V=new Array(N>1?N-1:0),P=1;P<N;P++)V[P-1]=arguments[P];V.slice(1).forEach(function(j){if(S[j])throw new Error("Cannot set ".concat(j," and ").concat(L," together"))})}if(H._stream=new w,H._stream.setMaxListeners(30),H._onError=H._onError.bind(d(H)),S.filename||S.dirname)R("filename or dirname","stream"),H._basename=H.filename=S.filename?c.basename(S.filename):"winston.log",H.dirname=S.dirname||c.dirname(S.filename),H.options=S.options||{flags:"a"};else if(S.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),R("stream","filename","maxsize"),H._dest=H._stream.pipe(H._setupStream(S.stream)),H.dirname=c.dirname(H._dest.path);else throw new Error("Cannot log to file without filename or stream.");return H.maxsize=S.maxsize||null,H.rotationFormat=S.rotationFormat||!1,H.zippedArchive=S.zippedArchive||!1,H.maxFiles=S.maxFiles||null,H.eol=typeof S.eol=="string"?S.eol:x.EOL,H.tailable=S.tailable||!1,H._size=0,H._pendingSize=0,H._created=0,H._drain=!1,H._opening=!1,H._ending=!1,H.dirname&&H._createLogDirIfNotExist(H.dirname),H.open(),H}return i(W,[{key:"finishIfEnding",value:function(){var S=this;this._ending&&(this._opening?this.once("open",function(){S._stream.once("finish",function(){return S.emit("finish")}),setImmediate(function(){return S._stream.end()})}):(this._stream.once("finish",function(){return S.emit("finish")}),setImmediate(function(){return S._stream.end()})))}},{key:"log",value:function(S){var R=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return L(),!0;if(this._drain){this._stream.once("drain",function(){R._drain=!1,R.log(S,L)});return}if(this._rotate){this._stream.once("rotate",function(){R._rotate=!1,R.log(S,L)});return}var N="".concat(S[g]).concat(this.eol),V=et.byteLength(N);function P(){var k=this;this._size+=V,this._pendingSize-=V,E("logged %s %s",this._size,N),this.emit("logged",S),!this._opening&&this._needsNewFile()&&(this._rotate=!0,this._endStream(function(){return k._rotateFile()}))}this._pendingSize+=V,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var j=this._stream.write(N,P.bind(this));return j?L():(this._drain=!0,this._stream.once("drain",function(){R._drain=!1,L()})),E("written",j,this._drain),this.finishIfEnding(),j}},{key:"query",value:function(S,R){typeof S=="function"&&(R=S,S={}),S=z(S);var L=c.join(this.dirname,this.filename),N="",V=[],P=0,j=h.createReadStream(L,{encoding:"utf8"});j.on("error",function(B){if(j.readable&&j.destroy(),!!R)return B.code!=="ENOENT"?R(B):R(null,V)}),j.on("data",function(B){B=(N+B).split(/\n+/);for(var q=B.length-1,M=0;M<q;M++)(!S.start||P>=S.start)&&k(B[M]),P++;N=B[q]}),j.on("close",function(){N&&k(N,!0),S.order==="desc"&&(V=V.reverse()),R&&R(null,V)});function k(B,q){try{var M=JSON.parse(B);Y(M)&&F(M)}catch(U){q||j.emit("error",U)}}function F(B){if(S.rows&&V.length>=S.rows&&S.order!=="desc"){j.readable&&j.destroy();return}S.fields&&(B=S.fields.reduce(function(q,M){return q[M]=B[M],q},{})),S.order==="desc"&&V.length>=S.rows&&V.shift(),V.push(B)}function Y(B){if(B&&e(B)==="object"){var q=new Date(B.timestamp);if(!(S.from&&q<S.from||S.until&&q>S.until||S.level&&S.level!==B.level))return!0}}function z(B){return B=B||{},B.rows=B.rows||B.limit||10,B.start=B.start||0,B.until=B.until||new Date,e(B.until)!=="object"&&(B.until=new Date(B.until)),B.from=B.from||B.until-24*60*60*1e3,e(B.from)!=="object"&&(B.from=new Date(B.from)),B.order=B.order||"desc",B}}},{key:"stream",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=c.join(this.dirname,this.filename),L=new _,N={file:R,start:S.start};return L.destroy=O(N,function(V,P){if(V)return L.emit("error",V);try{L.emit("data",P),P=JSON.parse(P),L.emit("log",P)}catch(j){L.emit("error",j)}}),L}},{key:"open",value:function(){var S=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(R,L){if(R)return S.emit("error",R);E("stat done: %s { size: %s }",S.filename,L),S._size=L,S._dest=S._createStream(S._stream),S._opening=!1,S.once("open",function(){S._stream.eventNames().includes("rotate")?S._stream.emit("rotate"):S._rotate=!1})})))}},{key:"stat",value:function(S){var R=this,L=this._getFile(),N=c.join(this.dirname,L);h.stat(N,function(V,P){if(V&&V.code==="ENOENT")return E("ENOENT ok",N),R.filename=L,S(null,0);if(V)return E("err ".concat(V.code," ").concat(N)),S(V);if(!P||R._needsNewFile(P.size))return R._incFile(function(){return R.stat(S)});R.filename=L,S(null,P.size)})}},{key:"close",value:function(S){var R=this;this._stream&&this._stream.end(function(){S&&S(),R.emit("flush"),R.emit("closed")})}},{key:"_needsNewFile",value:function(S){return S=S||this._size,this.maxsize&&S>=this.maxsize}},{key:"_onError",value:function(S){this.emit("error",S)}},{key:"_setupStream",value:function(S){return S.on("error",this._onError),S}},{key:"_cleanupStream",value:function(S){return S.removeListener("error",this._onError),S}},{key:"_rotateFile",value:function(){var S=this;this._incFile(function(){return S.open()})}},{key:"_endStream",value:function(){var S=this,R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){S._cleanupStream(S._dest),R()})):R()}},{key:"_createStream",value:function(S){var R=this,L=c.join(this.dirname,this.filename);E("create stream start",L,this.options);var N=h.createWriteStream(L,this.options).on("error",function(P){return E(P)}).on("close",function(){return E("close",N.path,N.bytesWritten)}).on("open",function(){E("file open ok",L),R.emit("open",L),S.pipe(N),R.rotatedWhileOpening&&(R._stream=new w,R._stream.setMaxListeners(30),R._rotateFile(),R.rotatedWhileOpening=!1,R._cleanupStream(N),S.end())});if(E("create stream ok",L),this.zippedArchive){var V=m.createGzip();return V.pipe(N),V}return N}},{key:"_incFile",value:function(S){E("_incFile",this.filename);var R=c.extname(this._basename),L=c.basename(this._basename,R);this.tailable?this._checkMaxFilesTailable(R,L,S):(this._created+=1,this._checkMaxFilesIncrementing(R,L,S))}},{key:"_getFile",value:function(){var S=c.extname(this._basename),R=c.basename(this._basename,S),L=this.rotationFormat?this.rotationFormat():this._created,N=!this.tailable&&this._created?"".concat(R).concat(L).concat(S):"".concat(R).concat(S);return this.zippedArchive&&!this.tailable?"".concat(N,".gz"):N}},{key:"_checkMaxFilesIncrementing",value:function(S,R,L){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(L);var N=this._created-this.maxFiles,V=N!==0?N:"",P=this.zippedArchive?".gz":"",j="".concat(R).concat(V).concat(S).concat(P),k=c.join(this.dirname,j);h.unlink(k,L)}},{key:"_checkMaxFilesTailable",value:function(S,R,L){var N=this,V=[];if(this.maxFiles){for(var P=this.zippedArchive?".gz":"",j=this.maxFiles-1;j>1;j--)V.push((function(k,F){var Y=this,z="".concat(R).concat(k-1).concat(S).concat(P),B=c.join(this.dirname,z);h.exists(B,function(q){if(!q)return F(null);z="".concat(R).concat(k).concat(S).concat(P),h.rename(B,c.join(Y.dirname,z),F)})}).bind(this,j));b(V,function(){h.rename(c.join(N.dirname,"".concat(R).concat(S)),c.join(N.dirname,"".concat(R,"1").concat(S).concat(P)),L)})}}},{key:"_createLogDirIfNotExist",value:function(S){h.existsSync(S)||h.mkdirSync(S,{recursive:!0})}}]),W}(v),Ki}var Ji,Nc;function dv(){if(Nc)return Ji;Nc=1;function e(v){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},e(v)}function n(v,E){var x=Object.keys(v);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(v);E&&(O=O.filter(function(C){return Object.getOwnPropertyDescriptor(v,C).enumerable})),x.push.apply(x,O)}return x}function o(v){for(var E=1;E<arguments.length;E++){var x=arguments[E]!=null?arguments[E]:{};E%2?n(Object(x),!0).forEach(function(O){i(v,O,x[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(x)):n(Object(x)).forEach(function(O){Object.defineProperty(v,O,Object.getOwnPropertyDescriptor(x,O))})}return v}function i(v,E,x){return E in v?Object.defineProperty(v,E,{value:x,enumerable:!0,configurable:!0,writable:!0}):v[E]=x,v}function a(v,E){if(!(v instanceof E))throw new TypeError("Cannot call a class as a function")}function t(v,E){for(var x=0;x<E.length;x++){var O=E[x];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(v,O.key,O)}}function r(v,E,x){return E&&t(v.prototype,E),Object.defineProperty(v,"prototype",{writable:!1}),v}function s(v,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(E&&E.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),E&&d(v,E)}function d(v,E){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,C){return O.__proto__=C,O},d(v,E)}function f(v){var E=c();return function(){var O=b(v),C;if(E){var D=b(this).constructor;C=Reflect.construct(O,arguments,D)}else C=O.apply(this,arguments);return l(this,C)}}function l(v,E){if(E&&(e(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(v)}function h(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(v){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},b(v)}var m=Hp(),y=Zp(),g=cr(),u=g.Stream,_=Ft(),w=lr();return Ji=function(v){s(x,v);var E=f(x);function x(){var O,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a(this,x),O=E.call(this,C),O.options=C,O.name=C.name||"http",O.ssl=!!C.ssl,O.host=C.host||"localhost",O.port=C.port,O.auth=C.auth,O.path=C.path||"",O.agent=C.agent,O.headers=C.headers||{},O.headers["content-type"]="application/json",O.batch=C.batch||!1,O.batchInterval=C.batchInterval||5e3,O.batchCount=C.batchCount||10,O.batchOptions=[],O.batchTimeoutID=-1,O.batchCallback={},O.port||(O.port=O.ssl?443:80),O}return r(x,[{key:"log",value:function(C,D){var W=this;this._request(C,function(H,S){S&&S.statusCode!==200&&(H=new Error("Invalid HTTP Status Code: ".concat(S.statusCode))),H?W.emit("warn",H):W.emit("logged",C)}),D&&setImmediate(D)}},{key:"query",value:function(C,D){typeof C=="function"&&(D=C,C={}),C={method:"query",params:this.normalizeQuery(C)},C.params.path&&(C.path=C.params.path,delete C.params.path),C.params.auth&&(C.auth=C.params.auth,delete C.params.auth),this._request(C,function(W,H,S){if(H&&H.statusCode!==200&&(W=new Error("Invalid HTTP Status Code: ".concat(H.statusCode))),W)return D(W);if(typeof S=="string")try{S=JSON.parse(S)}catch(R){return D(R)}D(null,S)})}},{key:"stream",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=new u;C={method:"stream",params:C},C.params.path&&(C.path=C.params.path,delete C.params.path),C.params.auth&&(C.auth=C.params.auth,delete C.params.auth);var W="",H=this._request(C);return D.destroy=function(){return H.destroy()},H.on("data",function(S){S=(W+S).split(/\n+/);for(var R=S.length-1,L=0;L<R;L++)try{D.emit("log",JSON.parse(S[L]))}catch(N){D.emit("error",N)}W=S[R]}),H.on("error",function(S){return D.emit("error",S)}),D}},{key:"_request",value:function(C,D){C=C||{};var W=C.auth||this.auth,H=C.path||this.path||"";delete C.auth,delete C.path,this.batch?this._doBatch(C,D,W,H):this._doRequest(C,D,W,H)}},{key:"_doBatch",value:function(C,D,W,H){if(this.batchOptions.push(C),this.batchOptions.length===1){var S=this;this.batchCallback=D,this.batchTimeoutID=setTimeout(function(){S.batchTimeoutID=-1,S._doBatchRequest(S.batchCallback,W,H)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,W,H)}},{key:"_doBatchRequest",value:function(C,D,W){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var H=this.batchOptions.slice();this.batchOptions=[],this._doRequest(H,C,D,W)}},{key:"_doRequest",value:function(C,D,W,H){var S=Object.assign({},this.headers);W&&W.bearer&&(S.Authorization="Bearer ".concat(W.bearer));var R=(this.ssl?y:m).request(o(o({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(H.replace(/^\//,"")),headers:S,auth:W&&W.username&&W.password?"".concat(W.username,":").concat(W.password):"",agent:this.agent}));R.on("error",D),R.on("response",function(L){return L.on("end",function(){return D(null,L)}).resume()}),R.end(et.from(w(C,this.options.replacer),"utf8"))}}]),x}(_),Ji}var Xi,Dc;function Th(){if(Dc)return Xi;Dc=1;const e=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";return e.writable=n=>e(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",e.readable=n=>e(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",e.duplex=n=>e.writable(n)&&e.readable(n),e.transform=n=>e.duplex(n)&&typeof n._transform=="function",Xi=e,Xi}var Qi,Mc;function pv(){if(Mc)return Qi;Mc=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(g)}function n(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function o(g,u){for(var _=0;_<u.length;_++){var w=u[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}function i(g,u,_){return u&&o(g.prototype,u),Object.defineProperty(g,"prototype",{writable:!1}),g}function a(g,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(u&&u.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),u&&t(g,u)}function t(g,u){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,v){return w.__proto__=v,w},t(g,u)}function r(g){var u=f();return function(){var w=l(g),v;if(u){var E=l(this).constructor;v=Reflect.construct(w,arguments,E)}else v=w.apply(this,arguments);return s(this,v)}}function s(g,u){if(u&&(e(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(g)}function d(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(g){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},l(g)}var h=Th(),c=Ne(),b=c.MESSAGE,m=Mt(),y=Ft();return Qi=function(g){a(_,g);var u=r(_);function _(){var w,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(n(this,_),w=u.call(this,v),!v.stream||!h(v.stream))throw new Error("options.stream is required.");return w._stream=v.stream,w._stream.setMaxListeners(1/0),w.isObjectMode=v.stream._writableState.objectMode,w.eol=typeof v.eol=="string"?v.eol:m.EOL,w}return i(_,[{key:"log",value:function(v,E){var x=this;if(setImmediate(function(){return x.emit("logged",v)}),this.isObjectMode){this._stream.write(v),E&&E();return}this._stream.write("".concat(v[b]).concat(this.eol)),E&&E()}}]),_}(y),Qi}var Fc;function mv(){return Fc||(Fc=1,function(e){Object.defineProperty(e,"Console",{configurable:!0,enumerable:!0,get:function(){return Kg()}}),Object.defineProperty(e,"File",{configurable:!0,enumerable:!0,get:function(){return hv()}}),Object.defineProperty(e,"Http",{configurable:!0,enumerable:!0,get:function(){return dv()}}),Object.defineProperty(e,"Stream",{configurable:!0,enumerable:!0,get:function(){return pv()}})}(Bi)),Bi}var Ut={},Bc;function es(){if(Bc)return Ut;Bc=1;var e=bh(),n=Ne(),o=n.configs;return Ut.cli=e.levels(o.cli),Ut.npm=e.levels(o.npm),Ut.syslog=e.levels(o.syslog),Ut.addColors=e.levels,Ut}var Hr={exports:{}},Zr={exports:{}},Uc;function gv(){return Uc||(Uc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=Xo(),i=g(o),a=Qo(),t=g(a),r=Oh(),s=g(r),d=Sh(),f=g(d),l=Rh(),h=g(l),c=Ht(),b=g(c),m=hr(),y=g(m);function g(v){return v&&v.__esModule?v:{default:v}}function u(v,E,x){x=(0,f.default)(x);var O=0,C=0,{length:D}=v,W=!1;D===0&&x(null);function H(S,R){S===!1&&(W=!0),W!==!0&&(S?x(S):(++C===D||R===t.default)&&x(null))}for(;O<D;O++)E(v[O],O,(0,h.default)(H))}function _(v,E,x){return(0,s.default)(v,1/0,E,x)}function w(v,E,x){var O=(0,i.default)(v)?u:_;return O(v,(0,b.default)(E),x)}n.default=(0,y.default)(w,3),e.exports=n.default}(Zr,Zr.exports)),Zr.exports}var Yr={exports:{}},$c;function vv(){return $c||($c=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){return(a,t,r)=>i(a,r)}e.exports=n.default}(Yr,Yr.exports)),Yr.exports}var Vc;function ts(){return Vc||(Vc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=gv(),i=l(o),a=vv(),t=l(a),r=Ht(),s=l(r),d=hr(),f=l(d);function l(c){return c&&c.__esModule?c:{default:c}}function h(c,b,m){return(0,i.default)(c,(0,t.default)((0,s.default)(b)),m)}n.default=(0,f.default)(h,3),e.exports=n.default}(Hr,Hr.exports)),Hr.exports}var ea,Gc;function yv(){if(Gc)return ea;Gc=1;var e=Object.prototype.toString;return ea=function(o){if(typeof o.displayName=="string"&&o.constructor.name)return o.displayName;if(typeof o.name=="string"&&o.name)return o.name;if(typeof o=="object"&&o.constructor&&typeof o.constructor.name=="string")return o.constructor.name;var i=o.toString(),a=e.call(o).slice(8,-1);return a==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=a,i||"anonymous"},ea}var ta,zc;function xh(){if(zc)return ta;zc=1;var e=yv();return ta=function(o){var i=0,a;function t(){return i||(i=1,a=o.apply(this,arguments),o=null),a}return t.displayName=e(o),t},ta}var ra={},Hc;function Ih(){return Hc||(Hc=1,function(e){e.get=function(a){var t=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},s=Error.prepareStackTrace;Error.prepareStackTrace=function(f,l){return l},Error.captureStackTrace(r,a||e.get);var d=r.stack;return Error.prepareStackTrace=s,Error.stackTraceLimit=t,d},e.parse=function(a){if(!a.stack)return[];var t=this,r=a.stack.split(`
|
|
108
|
+
`).slice(1);return r.map(function(s){if(s.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:s,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var d=s.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(d){var f=null,l=null,h=null,c=null,b=null,m=d[5]==="native";if(d[1]){h=d[1];var y=h.lastIndexOf(".");if(h[y-1]=="."&&y--,y>0){f=h.substr(0,y),l=h.substr(y+1);var g=f.indexOf(".Module");g>0&&(h=h.substr(g+1),f=f.substr(0,g))}c=null}l&&(c=f,b=l),l==="<anonymous>"&&(b=null,h=null);var u={fileName:d[2]||null,lineNumber:parseInt(d[3],10)||null,functionName:h,typeName:c,methodName:b,columnNumber:parseInt(d[4],10)||null,native:m};return t._createParsedCallSite(u)}}).filter(function(s){return!!s})};function n(a){for(var t in a)this[t]=a[t]}var o=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],i=["topLevel","eval","native","constructor"];o.forEach(function(a){n.prototype[a]=null,n.prototype["get"+a[0].toUpperCase()+a.substr(1)]=function(){return this[a]}}),i.forEach(function(a){n.prototype[a]=!1,n.prototype["is"+a[0].toUpperCase()+a.substr(1)]=function(){return this[a]}}),e._createParsedCallSite=function(a){return new n(a)}}(ra)),ra}var na,Zc;function Ah(){if(Zc)return na;Zc=1;function e(b){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},e(b)}function n(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function o(b,m){for(var y=0;y<m.length;y++){var g=m[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(b,g.key,g)}}function i(b,m,y){return m&&o(b.prototype,m),Object.defineProperty(b,"prototype",{writable:!1}),b}function a(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),m&&t(b,m)}function t(b,m){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,u){return g.__proto__=u,g},t(b,m)}function r(b){var m=f();return function(){var g=l(b),u;if(m){var _=l(this).constructor;u=Reflect.construct(g,arguments,_)}else u=g.apply(this,arguments);return s(this,u)}}function s(b,m){if(m&&(e(m)==="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(b)}function d(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(b){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},l(b)}var h=cr(),c=h.Writable;return na=function(b){a(y,b);var m=r(y);function y(g){var u;if(n(this,y),u=m.call(this,{objectMode:!0}),!g)throw new Error("ExceptionStream requires a TransportStream instance.");return u.handleExceptions=!0,u.transport=g,u}return i(y,[{key:"_write",value:function(u,_,w){return u.exception?this.transport.log(u,w):(w(),!0)}}]),y}(c),na}var ia,Yc;function Ch(){if(Yc)return ia;Yc=1;function e(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function n(f,l){for(var h=0;h<l.length;h++){var c=l[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(f,c.key,c)}}function o(f,l,h){return l&&n(f.prototype,l),Object.defineProperty(f,"prototype",{writable:!1}),f}var i=Mt(),a=ts(),t=mn()("winston:exception"),r=xh(),s=Ih(),d=Ah();return ia=function(){function f(l){if(e(this,f),!l)throw new Error("Logger is required to handle exceptions");this.logger=l,this.handlers=new Map}return o(f,[{key:"handle",value:function(){for(var h=this,c=arguments.length,b=new Array(c),m=0;m<c;m++)b[m]=arguments[m];b.forEach(function(y){if(Array.isArray(y))return y.forEach(function(g){return h._addHandler(g)});h._addHandler(y)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),ye.on("uncaughtException",this.catcher))}},{key:"unhandle",value:function(){var h=this;this.catcher&&(ye.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(c){return h.logger.unpipe(c)}))}},{key:"getAllInfo",value:function(h){var c=h.message;return!c&&typeof h=="string"&&(c=h),{error:h,level:"error",message:["uncaughtException: ".concat(c||"(no error message)"),h.stack||" No stack trace"].join(`
|
|
109
|
+
`),stack:h.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(h)}}},{key:"getProcessInfo",value:function(){return{pid:ye.pid,uid:ye.getuid?ye.getuid():null,gid:ye.getgid?ye.getgid():null,cwd:ye.cwd(),execPath:ye.execPath,version:ye.version,argv:ye.argv,memoryUsage:ye.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:i.loadavg(),uptime:i.uptime()}}},{key:"getTrace",value:function(h){var c=h?s.parse(h):s.get();return c.map(function(b){return{column:b.getColumnNumber(),file:b.getFileName(),function:b.getFunctionName(),line:b.getLineNumber(),method:b.getMethodName(),native:b.isNative()}})}},{key:"_addHandler",value:function(h){if(!this.handlers.has(h)){h.handleExceptions=!0;var c=new d(h);this.handlers.set(h,c),this.logger.pipe(c)}}},{key:"_uncaughtException",value:function(h){var c=this.getAllInfo(h),b=this._getExceptionHandlers(),m=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(h):this.logger.exitOnError,y;!b.length&&m&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),m=!1);function g(){t("doExit",m),t("process._exiting",ye._exiting),m&&!ye._exiting&&(y&&clearTimeout(y),ye.exit(1))}if(!b||b.length===0)return ye.nextTick(g);a(b,function(u,_){var w=r(_),v=u.transport||u;function E(x){return function(){t(x),w()}}v._ending=!0,v.once("finish",E("finished")),v.once("error",E("error"))},function(){return m&&g()}),this.logger.log(c),m&&(y=setTimeout(g,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter(function(h){var c=h.transport||h;return c.handleExceptions})}}]),f}(),ia}var aa,Wc;function Ph(){if(Wc)return aa;Wc=1;function e(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function n(f,l){for(var h=0;h<l.length;h++){var c=l[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(f,c.key,c)}}function o(f,l,h){return l&&n(f.prototype,l),Object.defineProperty(f,"prototype",{writable:!1}),f}var i=Mt(),a=ts(),t=mn()("winston:rejection"),r=xh(),s=Ih(),d=Ah();return aa=function(){function f(l){if(e(this,f),!l)throw new Error("Logger is required to handle rejections");this.logger=l,this.handlers=new Map}return o(f,[{key:"handle",value:function(){for(var h=this,c=arguments.length,b=new Array(c),m=0;m<c;m++)b[m]=arguments[m];b.forEach(function(y){if(Array.isArray(y))return y.forEach(function(g){return h._addHandler(g)});h._addHandler(y)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),ye.on("unhandledRejection",this.catcher))}},{key:"unhandle",value:function(){var h=this;this.catcher&&(ye.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(c){return h.logger.unpipe(c)}))}},{key:"getAllInfo",value:function(h){var c=null;return h&&(c=typeof h=="string"?h:h.message),{error:h,level:"error",message:["unhandledRejection: ".concat(c||"(no error message)"),h&&h.stack||" No stack trace"].join(`
|
|
110
|
+
`),stack:h&&h.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(h)}}},{key:"getProcessInfo",value:function(){return{pid:ye.pid,uid:ye.getuid?ye.getuid():null,gid:ye.getgid?ye.getgid():null,cwd:ye.cwd(),execPath:ye.execPath,version:ye.version,argv:ye.argv,memoryUsage:ye.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:i.loadavg(),uptime:i.uptime()}}},{key:"getTrace",value:function(h){var c=h?s.parse(h):s.get();return c.map(function(b){return{column:b.getColumnNumber(),file:b.getFileName(),function:b.getFunctionName(),line:b.getLineNumber(),method:b.getMethodName(),native:b.isNative()}})}},{key:"_addHandler",value:function(h){if(!this.handlers.has(h)){h.handleRejections=!0;var c=new d(h);this.handlers.set(h,c),this.logger.pipe(c)}}},{key:"_unhandledRejection",value:function(h){var c=this.getAllInfo(h),b=this._getRejectionHandlers(),m=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(h):this.logger.exitOnError,y;!b.length&&m&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),m=!1);function g(){t("doExit",m),t("process._exiting",ye._exiting),m&&!ye._exiting&&(y&&clearTimeout(y),ye.exit(1))}if(!b||b.length===0)return ye.nextTick(g);a(b,function(u,_){var w=r(_),v=u.transport||u;function E(x){return function(){t(x),w()}}v._ending=!0,v.once("finish",E("finished")),v.once("error",E("error"))},function(){return m&&g()}),this.logger.log(c),m&&(y=setTimeout(g,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter(function(h){var c=h.transport||h;return c.handleRejections})}}]),f}(),aa}var oa={exports:{}},Kc;function _v(){if(Kc)return oa.exports;Kc=1;const e=He(),{LEVEL:n}=Ne(),o=Ft(),i=oa.exports=function(t={}){if(o.call(this,t),!t.transport||typeof t.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=t.transport,this.level=this.level||t.transport.level,this.handleExceptions=this.handleExceptions||t.transport.handleExceptions,this._deprecated();function r(s){this.emit("error",s,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=r.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(i,o),i.prototype._write=function(t,r,s){if(this.silent||t.exception===!0&&!this.handleExceptions)return s(null);(!this.level||this.levels[this.level]>=this.levels[t[n]])&&this.transport.log(t[n],t.message,t,this._nop),s(null)},i.prototype._writev=function(t,r){for(let s=0;s<t.length;s++)this._accept(t[s])&&(this.transport.log(t[s].chunk[n],t[s].chunk.message,t[s].chunk,this._nop),t[s].callback());return r(null)},i.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
111
|
+
`))},i.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},oa.exports}var sa,Jc;function bv(){if(Jc)return sa;Jc=1;function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(a)}function n(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function o(a,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function i(a,t,r){return t&&o(a.prototype,t),Object.defineProperty(a,"prototype",{writable:!1}),a}return sa=function(){function a(t){if(n(this,a),!t)throw new Error("Logger is required for profiling.");this.logger=t,this.start=Date.now()}return i(a,[{key:"done",value:function(){for(var r=arguments.length,s=new Array(r),d=0;d<r;d++)s[d]=arguments[d];typeof s[s.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),s.pop());var f=e(s[s.length-1])==="object"?s.pop():{};return f.level=f.level||"info",f.durationMs=Date.now()-this.start,this.logger.write(f)}}]),a}(),sa}var ua,Xc;function wv(){if(Xc)return ua;Xc=1;class e extends Error{constructor(o){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
112
|
+
Found: ${o.toString().split(`
|
|
113
|
+
`)[0]}
|
|
114
|
+
`),Error.captureStackTrace(this,e)}}return ua=n=>{if(n.length>2)throw new e(n);function o(a={}){this.options=a}o.prototype.transform=n;function i(a){return new o(a)}return i.Format=o,i},ua}var ca,Qc;function Ev(){if(Qc)return ca;Qc=1;const e=wv(),{MESSAGE:n}=Ne(),o=lr();function i(a,t){return typeof t=="bigint"?t.toString():t}return ca=e((a,t)=>{const r=o.configure(t);return a[n]=r(a,t.replacer||i,t.space),a}),ca}var fa,ef;function Sv(){if(ef)return fa;ef=1;function e(L,N,V){return N in L?Object.defineProperty(L,N,{value:V,enumerable:!0,configurable:!0,writable:!0}):L[N]=V,L}function n(L){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},n(L)}function o(L,N){if(!(L instanceof N))throw new TypeError("Cannot call a class as a function")}function i(L,N){for(var V=0;V<N.length;V++){var P=N[V];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,P.key,P)}}function a(L,N,V){return N&&i(L.prototype,N),Object.defineProperty(L,"prototype",{writable:!1}),L}function t(L,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(N&&N.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),N&&r(L,N)}function r(L,N){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,j){return P.__proto__=j,P},r(L,N)}function s(L){var N=l();return function(){var P=h(L),j;if(N){var k=h(this).constructor;j=Reflect.construct(P,arguments,k)}else j=P.apply(this,arguments);return d(this,j)}}function d(L,N){if(N&&(n(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(L)}function f(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(L){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},h(L)}var c=cr(),b=c.Stream,m=c.Transform,y=ts(),g=Ne(),u=g.LEVEL,_=g.SPLAT,w=Th(),v=Ch(),E=Ph(),x=_v(),O=bv(),C=wh(),D=C.warn,W=es(),H=/%[scdjifoO%]/g,S=function(L){t(V,L);var N=s(V);function V(P){var j;return o(this,V),j=N.call(this,{objectMode:!0}),j.configure(P),j}return a(V,[{key:"child",value:function(j){var k=this;return Object.create(k,{write:{value:function(Y){var z=Object.assign({},j,Y);Y instanceof Error&&(z.stack=Y.stack,z.message=Y.message),k.write(z)}}})}},{key:"configure",value:function(){var j=this,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=k.silent,Y=k.format,z=k.defaultMeta,B=k.levels,q=k.level,M=q===void 0?"info":q,U=k.exitOnError,X=U===void 0?!0:U,J=k.transports,ae=k.colors,ue=k.emitErrs,ve=k.formatters,me=k.padLevels,we=k.rewriters,Ce=k.stripColors,ke=k.exceptionHandlers,je=k.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=F,this.format=Y||this.format||Ev()(),this.defaultMeta=z||null,this.levels=B||this.levels||W.npm.levels,this.level=M,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new v(this),this.rejections=new E(this),this.profilers={},this.exitOnError=X,J&&(J=Array.isArray(J)?J:[J],J.forEach(function(Ie){return j.add(Ie)})),ae||ue||ve||me||we||Ce)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
115
|
+
`));ke&&this.exceptions.handle(ke),je&&this.rejections.handle(je)}},{key:"isLevelEnabled",value:function(j){var k=this,F=R(this.levels,j);if(F===null)return!1;var Y=R(this.levels,this.level);if(Y===null)return!1;if(!this.transports||this.transports.length===0)return Y>=F;var z=this.transports.findIndex(function(B){var q=R(k.levels,B.level);return q===null&&(q=Y),q>=F});return z!==-1}},{key:"log",value:function(j,k){for(var F,Y=arguments.length,z=new Array(Y>2?Y-2:0),B=2;B<Y;B++)z[B-2]=arguments[B];if(arguments.length===1)return j[u]=j.level,this._addDefaultMeta(j),this.write(j),this;if(arguments.length===2){var q;return k&&n(k)==="object"?(k[u]=k.level=j,this._addDefaultMeta(k),this.write(k),this):(k=(q={},e(q,u,j),e(q,"level",j),e(q,"message",k),q),this._addDefaultMeta(k),this.write(k),this)}var M=z[0];if(n(M)==="object"&&M!==null){var U=k&&k.match&&k.match(H);if(!U){var X,J=Object.assign({},this.defaultMeta,M,(X={},e(X,u,j),e(X,_,z),e(X,"level",j),e(X,"message",k),X));return M.message&&(J.message="".concat(J.message," ").concat(M.message)),M.stack&&(J.stack=M.stack),this.write(J),this}}return this.write(Object.assign({},this.defaultMeta,(F={},e(F,u,j),e(F,_,z),e(F,"level",j),e(F,"message",k),F))),this}},{key:"_transform",value:function(j,k,F){if(this.silent)return F();j[u]||(j[u]=j.level),!this.levels[j[u]]&&this.levels[j[u]]!==0&&console.error("[winston] Unknown logger level: %s",j[u]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",j);try{this.push(this.format.transform(j,this.format.options))}finally{this._writableState.sync=!1,F()}}},{key:"_final",value:function(j){var k=this.transports.slice();y(k,function(F,Y){if(!F||F.finished)return setImmediate(Y);F.once("finish",Y),F.end()},j)}},{key:"add",value:function(j){var k=!w(j)||j.log.length>2?new x({transport:j}):j;if(!k._writableState||!k._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",k),this._onEvent("warn",k),this.pipe(k),j.handleExceptions&&this.exceptions.handle(),j.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(j){if(!j)return this;var k=j;return(!w(j)||j.log.length>2)&&(k=this.transports.filter(function(F){return F.transport===j})[0]),k&&this.unpipe(k),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){D.deprecated("setLevels")}},{key:"query",value:function(j,k){typeof j=="function"&&(k=j,j={}),j=j||{};var F={},Y=Object.assign({},j.query||{});function z(q,M){j.query&&typeof q.formatQuery=="function"&&(j.query=q.formatQuery(Y)),q.query(j,function(U,X){if(U)return M(U);typeof q.formatResults=="function"&&(X=q.formatResults(X,j.format)),M(null,X)})}function B(q,M){z(q,function(U,X){M&&(X=U||X,X&&(F[q.name]=X),M()),M=null})}y(this.transports.filter(function(q){return!!q.query}),B,function(){return k(null,F)})}},{key:"stream",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=new b,F=[];return k._streams=F,k.destroy=function(){for(var Y=F.length;Y--;)F[Y].destroy()},this.transports.filter(function(Y){return!!Y.stream}).forEach(function(Y){var z=Y.stream(j);z&&(F.push(z),z.on("log",function(B){B.transport=B.transport||[],B.transport.push(Y.name),k.emit("log",B)}),z.on("error",function(B){B.transport=B.transport||[],B.transport.push(Y.name),k.emit("error",B)}))}),k}},{key:"startTimer",value:function(){return new O(this)}},{key:"profile",value:function(j){var k=Date.now();if(this.profilers[j]){var F=this.profilers[j];delete this.profilers[j];for(var Y=arguments.length,z=new Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];typeof z[z.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),z.pop());var q=n(z[z.length-1])==="object"?z.pop():{};return q.level=q.level||"info",q.durationMs=k-F,q.message=q.message||j,this.write(q)}return this.profilers[j]=k,this}},{key:"handleExceptions",value:function(){var j;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(j=this.exceptions).handle.apply(j,arguments)}},{key:"unhandleExceptions",value:function(){var j;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(j=this.exceptions).unhandle.apply(j,arguments)}},{key:"cli",value:function(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
116
|
+
`))}},{key:"_onEvent",value:function(j,k){function F(Y){j==="error"&&!this.transports.includes(k)&&this.add(k),this.emit(j,Y,k)}k["__winston"+j]||(k["__winston"+j]=F.bind(this),k.on(j,k["__winston"+j]))}},{key:"_addDefaultMeta",value:function(j){this.defaultMeta&&Object.assign(j,this.defaultMeta)}}]),V}(m);function R(L,N){var V=L[N];return!V&&V!==0?null:V}return Object.defineProperty(S.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var N=this._readableState.pipes;return Array.isArray(N)?N:[N].filter(Boolean)}}),fa=S,fa}var la,tf;function kh(){if(tf)return la;tf=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(g)}function n(g,u,_){return Object.defineProperty(g,"prototype",{writable:!1}),g}function o(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function i(g,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(u&&u.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),u&&a(g,u)}function a(g,u){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,v){return w.__proto__=v,w},a(g,u)}function t(g){var u=d();return function(){var w=f(g),v;if(u){var E=f(this).constructor;v=Reflect.construct(w,arguments,E)}else v=w.apply(this,arguments);return r(this,v)}}function r(g,u){if(u&&(e(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(g)}function s(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(g){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},f(g)}var l=Ne(),h=l.LEVEL,c=es(),b=Sv(),m=mn()("winston:create-logger");function y(g){return"is"+g.charAt(0).toUpperCase()+g.slice(1)+"Enabled"}return la=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};g.levels=g.levels||c.npm.levels;var u=function(w){i(E,w);var v=t(E);function E(x){return o(this,E),v.call(this,x)}return n(E)}(b),_=new u(g);return Object.keys(g.levels).forEach(function(w){if(m('Define prototype method for "%s"',w),w==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}u.prototype[w]=function(){for(var v=this||_,E=arguments.length,x=new Array(E),O=0;O<E;O++)x[O]=arguments[O];if(x.length===1){var C=x[0],D=C&&C.message&&C||{message:C};return D.level=D[h]=w,v._addDefaultMeta(D),v.write(D),this||_}return x.length===0?(v.log(w,""),v):v.log.apply(v,[w].concat(x))},u.prototype[y(w)]=function(){return(this||_).isLevelEnabled(w)}}),_},la}var ha,rf;function Rv(){if(rf)return ha;rf=1;function e(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function n(a,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function o(a,t,r){return t&&n(a.prototype,t),Object.defineProperty(a,"prototype",{writable:!1}),a}var i=kh();return ha=function(){function a(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,a),this.loggers=new Map,this.options=t}return o(a,[{key:"add",value:function(r,s){var d=this;if(!this.loggers.has(r)){s=Object.assign({},s||this.options);var f=s.transports||this.options.transports;s.transports=f?f.slice():[];var l=i(s);l.on("close",function(){return d._delete(r)}),this.loggers.set(r,l)}return this.loggers.get(r)}},{key:"get",value:function(r,s){return this.add(r,s)}},{key:"has",value:function(r){return!!this.loggers.has(r)}},{key:"close",value:function(r){var s=this;if(r)return this._removeLogger(r);this.loggers.forEach(function(d,f){return s._removeLogger(f)})}},{key:"_removeLogger",value:function(r){if(this.loggers.has(r)){var s=this.loggers.get(r);s.close(),this._delete(r)}}},{key:"_delete",value:function(r){this.loggers.delete(r)}}]),a}(),ha}var nf;function Ov(){return nf||(nf=1,function(e){var n=bh(),o=wh(),i=o.warn;e.version=Yg.version,e.transports=mv(),e.config=es(),e.addColors=n.levels,e.format=n.format,e.createLogger=kh(),e.ExceptionHandler=Ch(),e.RejectionHandler=Ph(),e.Container=Rv(),e.Transport=Ft(),e.loggers=new e.Container;var a=e.createLogger();Object.keys(e.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(t){return e[t]=function(){return a[t].apply(a,arguments)}}),Object.defineProperty(e,"level",{get:function(){return a.level},set:function(r){a.level=r}}),Object.defineProperty(e,"exceptions",{get:function(){return a.exceptions}}),["exitOnError"].forEach(function(t){Object.defineProperty(e,t,{get:function(){return a[t]},set:function(s){a[t]=s}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:a.exceptionHandlers,rejectionHandlers:a.rejectionHandlers,transports:a.transports}}}),i.deprecated(e,"setLevels"),i.forFunctions(e,"useFormat",["cli"]),i.forProperties(e,"useFormat",["padLevels","stripColors"]),i.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(e,"deprecated",["emitErrs","levelLength"]),i.moved(e,"createLogger","Logger")}(fi)),fi}var da={exports:{}},pa,af;function gn(){if(af)return pa;af=1;var e=function(n,o){Error.call(this,n),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=n,o&&(this.inner=o)};return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,pa=e,pa}var ma,of;function jh(){if(of)return ma;of=1;var e=gn(),n=function(o,i){e.call(this,o),this.name="NotBeforeError",this.date=i};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ma=n,ma}var ga,sf;function Lh(){if(sf)return ga;sf=1;var e=gn(),n=function(o,i){e.call(this,o),this.name="TokenExpiredError",this.expiredAt=i};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ga=n,ga}var _t={},va,uf;function qh(){if(uf)return va;uf=1;var e=ur().Buffer,n=hn(),o=He();function i(a){if(this.buffer=null,this.writable=!0,this.readable=!0,!a)return this.buffer=e.alloc(0),this;if(typeof a.pipe=="function")return this.buffer=e.alloc(0),a.pipe(this),this;if(a.length||typeof a=="object")return this.buffer=a,this.writable=!1,ye.nextTick((function(){this.emit("end",a),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof a+")")}return o.inherits(i,n),i.prototype.write=function(t){this.buffer=e.concat([this.buffer,e.from(t)]),this.emit("data",t)},i.prototype.end=function(t){t&&this.write(t),this.emit("end",t),this.emit("close"),this.writable=!1,this.readable=!1},va=i,va}var ya,cf;function Tv(){if(cf)return ya;cf=1;function e(i){var a=(i/8|0)+(i%8===0?0:1);return a}var n={ES256:e(256),ES384:e(384),ES512:e(521)};function o(i){var a=n[i];if(a)return a;throw new Error('Unknown algorithm "'+i+'"')}return ya=o,ya}var _a,ff;function xv(){if(ff)return _a;ff=1;var e=ur().Buffer,n=Tv(),o=128,i=0,a=32,t=16,r=2,s=t|a|i<<6,d=r|i<<6;function f(m){return m.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function l(m){if(e.isBuffer(m))return m;if(typeof m=="string")return e.from(m,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function h(m,y){m=l(m);var g=n(y),u=g+1,_=m.length,w=0;if(m[w++]!==s)throw new Error('Could not find expected "seq"');var v=m[w++];if(v===(o|1)&&(v=m[w++]),_-w<v)throw new Error('"seq" specified length of "'+v+'", only "'+(_-w)+'" remaining');if(m[w++]!==d)throw new Error('Could not find expected "int" for "r"');var E=m[w++];if(_-w-2<E)throw new Error('"r" specified length of "'+E+'", only "'+(_-w-2)+'" available');if(u<E)throw new Error('"r" specified length of "'+E+'", max of "'+u+'" is acceptable');var x=w;if(w+=E,m[w++]!==d)throw new Error('Could not find expected "int" for "s"');var O=m[w++];if(_-w!==O)throw new Error('"s" specified length of "'+O+'", expected "'+(_-w)+'"');if(u<O)throw new Error('"s" specified length of "'+O+'", max of "'+u+'" is acceptable');var C=w;if(w+=O,w!==_)throw new Error('Expected to consume entire buffer, but "'+(_-w)+'" bytes remain');var D=g-E,W=g-O,H=e.allocUnsafe(D+E+W+O);for(w=0;w<D;++w)H[w]=0;m.copy(H,w,x+Math.max(-D,0),x+E),w=g;for(var S=w;w<S+W;++w)H[w]=0;return m.copy(H,w,C+Math.max(-W,0),C+O),H=H.toString("base64"),H=f(H),H}function c(m,y,g){for(var u=0;y+u<g&&m[y+u]===0;)++u;var _=m[y+u]>=o;return _&&--u,u}function b(m,y){m=l(m);var g=n(y),u=m.length;if(u!==g*2)throw new TypeError('"'+y+'" signatures must be "'+g*2+'" bytes, saw "'+u+'"');var _=c(m,0,g),w=c(m,g,m.length),v=g-_,E=g-w,x=2+v+1+1+E,O=x<o,C=e.allocUnsafe((O?2:3)+x),D=0;return C[D++]=s,O?C[D++]=x:(C[D++]=o|1,C[D++]=x&255),C[D++]=d,C[D++]=v,_<0?(C[D++]=0,D+=m.copy(C,D,0,g)):D+=m.copy(C,D,_,g),C[D++]=d,C[D++]=E,w<0?(C[D++]=0,m.copy(C,D,g)):m.copy(C,D,g+w),C}return _a={derToJose:h,joseToDer:b},_a}var ba,lf;function Iv(){if(lf)return ba;lf=1;var e=nr().Buffer,n=nr().SlowBuffer;ba=o;function o(t,r){if(!e.isBuffer(t)||!e.isBuffer(r)||t.length!==r.length)return!1;for(var s=0,d=0;d<t.length;d++)s|=t[d]^r[d];return s===0}o.install=function(){e.prototype.equal=n.prototype.equal=function(r){return o(this,r)}};var i=e.prototype.equal,a=n.prototype.equal;return o.restore=function(){e.prototype.equal=i,n.prototype.equal=a},ba}var wa,hf;function Nh(){if(hf)return wa;hf=1;var e=ur().Buffer,n=zt(),o=xv(),i=He(),a=`"%s" is not a valid algorithm.
|
|
117
|
+
Supported algorithms are:
|
|
118
|
+
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,t="secret must be a string or buffer",r="key must be a string or a buffer",s="key must be a string, a buffer or an object",d=typeof n.createPublicKey=="function";d&&(r+=" or a KeyObject",t+="or a KeyObject");function f(R){if(!e.isBuffer(R)&&typeof R!="string"&&(!d||typeof R!="object"||typeof R.type!="string"||typeof R.asymmetricKeyType!="string"||typeof R.export!="function"))throw m(r)}function l(R){if(!e.isBuffer(R)&&typeof R!="string"&&typeof R!="object")throw m(s)}function h(R){if(!e.isBuffer(R)){if(typeof R=="string")return R;if(!d||typeof R!="object"||R.type!=="secret"||typeof R.export!="function")throw m(t)}}function c(R){return R.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function b(R){R=R.toString();var L=4-R.length%4;if(L!==4)for(var N=0;N<L;++N)R+="=";return R.replace(/\-/g,"+").replace(/_/g,"/")}function m(R){var L=[].slice.call(arguments,1),N=i.format.bind(i,R).apply(null,L);return new TypeError(N)}function y(R){return e.isBuffer(R)||typeof R=="string"}function g(R){return y(R)||(R=JSON.stringify(R)),R}function u(R){return function(N,V){h(V),N=g(N);var P=n.createHmac("sha"+R,V),j=(P.update(N),P.digest("base64"));return c(j)}}var _,w="timingSafeEqual"in n?function(L,N){return L.byteLength!==N.byteLength?!1:n.timingSafeEqual(L,N)}:function(L,N){return _||(_=Iv()),_(L,N)};function v(R){return function(N,V,P){var j=u(R)(N,P);return w(e.from(V),e.from(j))}}function E(R){return function(N,V){l(V),N=g(N);var P=n.createSign("RSA-SHA"+R),j=(P.update(N),P.sign(V,"base64"));return c(j)}}function x(R){return function(N,V,P){f(P),N=g(N),V=b(V);var j=n.createVerify("RSA-SHA"+R);return j.update(N),j.verify(P,V,"base64")}}function O(R){return function(N,V){l(V),N=g(N);var P=n.createSign("RSA-SHA"+R),j=(P.update(N),P.sign({key:V,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return c(j)}}function C(R){return function(N,V,P){f(P),N=g(N),V=b(V);var j=n.createVerify("RSA-SHA"+R);return j.update(N),j.verify({key:P,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},V,"base64")}}function D(R){var L=E(R);return function(){var V=L.apply(null,arguments);return V=o.derToJose(V,"ES"+R),V}}function W(R){var L=x(R);return function(V,P,j){P=o.joseToDer(P,"ES"+R).toString("base64");var k=L(V,P,j);return k}}function H(){return function(){return""}}function S(){return function(L,N){return N===""}}return wa=function(L){var N={hs:u,rs:E,ps:O,es:D,none:H},V={hs:v,rs:x,ps:C,es:W,none:S},P=L.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!P)throw m(a,L);var j=(P[1]||P[3]).toLowerCase(),k=P[2];return{sign:N[j](k),verify:V[j](k)}},wa}var Ea,df;function Dh(){if(df)return Ea;df=1;var e=nr().Buffer;return Ea=function(o){return typeof o=="string"?o:typeof o=="number"||e.isBuffer(o)?o.toString():JSON.stringify(o)},Ea}var Sa,pf;function Av(){if(pf)return Sa;pf=1;var e=ur().Buffer,n=qh(),o=Nh(),i=hn(),a=Dh(),t=He();function r(l,h){return e.from(l,h).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function s(l,h,c){c=c||"utf8";var b=r(a(l),"binary"),m=r(a(h),c);return t.format("%s.%s",b,m)}function d(l){var h=l.header,c=l.payload,b=l.secret||l.privateKey,m=l.encoding,y=o(h.alg),g=s(h,c,m),u=y.sign(g,b);return t.format("%s.%s",g,u)}function f(l){var h=l.secret;if(h=h??l.privateKey,h=h??l.key,/^hs/i.test(l.header.alg)===!0&&h==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var c=new n(h);this.readable=!0,this.header=l.header,this.encoding=l.encoding,this.secret=this.privateKey=this.key=c,this.payload=new n(l.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}return t.inherits(f,i),f.prototype.sign=function(){try{var h=d({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",h),this.emit("data",h),this.emit("end"),this.readable=!1,h}catch(c){this.readable=!1,this.emit("error",c),this.emit("close")}},f.sign=d,Sa=f,Sa}var Ra,mf;function Cv(){if(mf)return Ra;mf=1;var e=ur().Buffer,n=qh(),o=Nh(),i=hn(),a=Dh(),t=He(),r=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function s(u){return Object.prototype.toString.call(u)==="[object Object]"}function d(u){if(s(u))return u;try{return JSON.parse(u)}catch{return}}function f(u){var _=u.split(".",1)[0];return d(e.from(_,"base64").toString("binary"))}function l(u){return u.split(".",2).join(".")}function h(u){return u.split(".")[2]}function c(u,_){_=_||"utf8";var w=u.split(".")[1];return e.from(w,"base64").toString(_)}function b(u){return r.test(u)&&!!f(u)}function m(u,_,w){if(!_){var v=new Error("Missing algorithm parameter for jws.verify");throw v.code="MISSING_ALGORITHM",v}u=a(u);var E=h(u),x=l(u),O=o(_);return O.verify(x,E,w)}function y(u,_){if(_=_||{},u=a(u),!b(u))return null;var w=f(u);if(!w)return null;var v=c(u);return(w.typ==="JWT"||_.json)&&(v=JSON.parse(v,_.encoding)),{header:w,payload:v,signature:h(u)}}function g(u){u=u||{};var _=u.secret;if(_=_??u.publicKey,_=_??u.key,/^hs/i.test(u.algorithm)===!0&&_==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var w=new n(_);this.readable=!0,this.algorithm=u.algorithm,this.encoding=u.encoding,this.secret=this.publicKey=this.key=w,this.signature=new n(u.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}return t.inherits(g,i),g.prototype.verify=function(){try{var _=m(this.signature.buffer,this.algorithm,this.key.buffer),w=y(this.signature.buffer,this.encoding);return this.emit("done",_,w),this.emit("data",_),this.emit("end"),this.readable=!1,_}catch(v){this.readable=!1,this.emit("error",v),this.emit("close")}},g.decode=y,g.isValid=b,g.verify=m,Ra=g,Ra}var gf;function rs(){if(gf)return _t;gf=1;var e=Av(),n=Cv(),o=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];return _t.ALGORITHMS=o,_t.sign=e.sign,_t.verify=n.verify,_t.decode=n.decode,_t.isValid=n.isValid,_t.createSign=function(a){return new e(a)},_t.createVerify=function(a){return new n(a)},_t}var Oa,vf;function Mh(){if(vf)return Oa;vf=1;var e=rs();return Oa=function(n,o){o=o||{};var i=e.decode(n,o);if(!i)return null;var a=i.payload;if(typeof a=="string")try{var t=JSON.parse(a);t!==null&&typeof t=="object"&&(a=t)}catch{}return o.complete===!0?{header:i.header,payload:a,signature:i.signature}:a},Oa}var Ta,yf;function Fh(){if(yf)return Ta;yf=1;var e=fh();return Ta=function(n,o){var i=o||Math.floor(Date.now()/1e3);if(typeof n=="string"){var a=e(n);return typeof a>"u"?void 0:Math.floor(i+a/1e3)}else return typeof n=="number"?i+n:void 0},Ta}var Wr={exports:{}},xa,_f;function vn(){if(_f)return xa;_f=1;const e="2.0.0",n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991;return xa={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:o,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},xa}var Ia,bf;function yn(){if(bf)return Ia;bf=1;var e={};return Ia=typeof ye=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...o)=>console.error("SEMVER",...o):()=>{},Ia}var wf;function dr(){return wf||(wf=1,function(e,n){const{MAX_SAFE_COMPONENT_LENGTH:o}=vn(),i=yn();n=e.exports={};const a=n.re=[],t=n.safeRe=[],r=n.src=[],s=n.t={};let d=0;const f=(l,h,c)=>{const b=h.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),m=d++;i(l,m,h),s[l]=m,r[m]=h,a[m]=new RegExp(h,c?"g":void 0),t[m]=new RegExp(b,c?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","[0-9]+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),f("MAINVERSION",`(${r[s.NUMERICIDENTIFIER]})\\.(${r[s.NUMERICIDENTIFIER]})\\.(${r[s.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${r[s.NUMERICIDENTIFIERLOOSE]})\\.(${r[s.NUMERICIDENTIFIERLOOSE]})\\.(${r[s.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${r[s.NUMERICIDENTIFIER]}|${r[s.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${r[s.NUMERICIDENTIFIERLOOSE]}|${r[s.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${r[s.PRERELEASEIDENTIFIER]}(?:\\.${r[s.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${r[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${r[s.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER","[0-9A-Za-z-]+"),f("BUILD",`(?:\\+(${r[s.BUILDIDENTIFIER]}(?:\\.${r[s.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${r[s.MAINVERSION]}${r[s.PRERELEASE]}?${r[s.BUILD]}?`),f("FULL",`^${r[s.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${r[s.MAINVERSIONLOOSE]}${r[s.PRERELEASELOOSE]}?${r[s.BUILD]}?`),f("LOOSE",`^${r[s.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${r[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${r[s.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${r[s.XRANGEIDENTIFIER]})(?:\\.(${r[s.XRANGEIDENTIFIER]})(?:\\.(${r[s.XRANGEIDENTIFIER]})(?:${r[s.PRERELEASE]})?${r[s.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${r[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[s.XRANGEIDENTIFIERLOOSE]})(?:${r[s.PRERELEASELOOSE]})?${r[s.BUILD]}?)?)?`),f("XRANGE",`^${r[s.GTLT]}\\s*${r[s.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${r[s.GTLT]}\\s*${r[s.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?(?:$|[^\\d])`),f("COERCERTL",r[s.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${r[s.LONETILDE]}\\s+`,!0),n.tildeTrimReplace="$1~",f("TILDE",`^${r[s.LONETILDE]}${r[s.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${r[s.LONETILDE]}${r[s.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${r[s.LONECARET]}\\s+`,!0),n.caretTrimReplace="$1^",f("CARET",`^${r[s.LONECARET]}${r[s.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${r[s.LONECARET]}${r[s.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${r[s.GTLT]}\\s*(${r[s.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${r[s.GTLT]}\\s*(${r[s.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${r[s.GTLT]}\\s*(${r[s.LOOSEPLAIN]}|${r[s.XRANGEPLAIN]})`,!0),n.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${r[s.XRANGEPLAIN]})\\s+-\\s+(${r[s.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${r[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${r[s.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Wr,Wr.exports)),Wr.exports}var Aa,Ef;function ns(){if(Ef)return Aa;Ef=1;const e=Object.freeze({loose:!0}),n=Object.freeze({});return Aa=i=>i?typeof i!="object"?e:i:n,Aa}var Ca,Sf;function Bh(){if(Sf)return Ca;Sf=1;const e=/^[0-9]+$/,n=(i,a)=>{const t=e.test(i),r=e.test(a);return t&&r&&(i=+i,a=+a),i===a?0:t&&!r?-1:r&&!t?1:i<a?-1:1};return Ca={compareIdentifiers:n,rcompareIdentifiers:(i,a)=>n(a,i)},Ca}var Pa,Rf;function Je(){if(Rf)return Pa;Rf=1;const e=yn(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:o}=vn(),{safeRe:i,t:a}=dr(),t=ns(),{compareIdentifiers:r}=Bh();class s{constructor(f,l){if(l=t(l),f instanceof s){if(f.loose===!!l.loose&&f.includePrerelease===!!l.includePrerelease)return f;f=f.version}else if(typeof f!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof f}".`);if(f.length>n)throw new TypeError(`version is longer than ${n} characters`);e("SemVer",f,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const h=f.trim().match(l.loose?i[a.LOOSE]:i[a.FULL]);if(!h)throw new TypeError(`Invalid Version: ${f}`);if(this.raw=f,this.major=+h[1],this.minor=+h[2],this.patch=+h[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");h[4]?this.prerelease=h[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){const b=+c;if(b>=0&&b<o)return b}return c}):this.prerelease=[],this.build=h[5]?h[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(f){if(e("SemVer.compare",this.version,this.options,f),!(f instanceof s)){if(typeof f=="string"&&f===this.version)return 0;f=new s(f,this.options)}return f.version===this.version?0:this.compareMain(f)||this.comparePre(f)}compareMain(f){return f instanceof s||(f=new s(f,this.options)),r(this.major,f.major)||r(this.minor,f.minor)||r(this.patch,f.patch)}comparePre(f){if(f instanceof s||(f=new s(f,this.options)),this.prerelease.length&&!f.prerelease.length)return-1;if(!this.prerelease.length&&f.prerelease.length)return 1;if(!this.prerelease.length&&!f.prerelease.length)return 0;let l=0;do{const h=this.prerelease[l],c=f.prerelease[l];if(e("prerelease compare",l,h,c),h===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(h===void 0)return-1;if(h===c)continue;return r(h,c)}while(++l)}compareBuild(f){f instanceof s||(f=new s(f,this.options));let l=0;do{const h=this.build[l],c=f.build[l];if(e("prerelease compare",l,h,c),h===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(h===void 0)return-1;if(h===c)continue;return r(h,c)}while(++l)}inc(f,l,h){switch(f){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",l,h);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",l,h);break;case"prepatch":this.prerelease.length=0,this.inc("patch",l,h),this.inc("pre",l,h);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",l,h),this.inc("pre",l,h);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const c=Number(h)?1:0;if(!l&&h===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[c];else{let b=this.prerelease.length;for(;--b>=0;)typeof this.prerelease[b]=="number"&&(this.prerelease[b]++,b=-2);if(b===-1){if(l===this.prerelease.join(".")&&h===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(l){let b=[l,c];h===!1&&(b=[l]),r(this.prerelease[0],l)===0?isNaN(this.prerelease[1])&&(this.prerelease=b):this.prerelease=b}break}default:throw new Error(`invalid increment argument: ${f}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Pa=s,Pa}var ka,Of;function Zt(){if(Of)return ka;Of=1;const e=Je();return ka=(o,i,a=!1)=>{if(o instanceof e)return o;try{return new e(o,i)}catch(t){if(!a)return null;throw t}},ka}var ja,Tf;function Pv(){if(Tf)return ja;Tf=1;const e=Zt();return ja=(o,i)=>{const a=e(o,i);return a?a.version:null},ja}var La,xf;function kv(){if(xf)return La;xf=1;const e=Zt();return La=(o,i)=>{const a=e(o.trim().replace(/^[=v]+/,""),i);return a?a.version:null},La}var qa,If;function jv(){if(If)return qa;If=1;const e=Je();return qa=(o,i,a,t,r)=>{typeof a=="string"&&(r=t,t=a,a=void 0);try{return new e(o instanceof e?o.version:o,a).inc(i,t,r).version}catch{return null}},qa}var Na,Af;function Lv(){if(Af)return Na;Af=1;const e=Zt();return Na=(o,i)=>{const a=e(o,null,!0),t=e(i,null,!0),r=a.compare(t);if(r===0)return null;const s=r>0,d=s?a:t,f=s?t:a,l=!!d.prerelease.length;if(!!f.prerelease.length&&!l)return!f.patch&&!f.minor?"major":d.patch?"patch":d.minor?"minor":"major";const c=l?"pre":"";return a.major!==t.major?c+"major":a.minor!==t.minor?c+"minor":a.patch!==t.patch?c+"patch":"prerelease"},Na}var Da,Cf;function qv(){if(Cf)return Da;Cf=1;const e=Je();return Da=(o,i)=>new e(o,i).major,Da}var Ma,Pf;function Nv(){if(Pf)return Ma;Pf=1;const e=Je();return Ma=(o,i)=>new e(o,i).minor,Ma}var Fa,kf;function Dv(){if(kf)return Fa;kf=1;const e=Je();return Fa=(o,i)=>new e(o,i).patch,Fa}var Ba,jf;function Mv(){if(jf)return Ba;jf=1;const e=Zt();return Ba=(o,i)=>{const a=e(o,i);return a&&a.prerelease.length?a.prerelease:null},Ba}var Ua,Lf;function ft(){if(Lf)return Ua;Lf=1;const e=Je();return Ua=(o,i,a)=>new e(o,a).compare(new e(i,a)),Ua}var $a,qf;function Fv(){if(qf)return $a;qf=1;const e=ft();return $a=(o,i,a)=>e(i,o,a),$a}var Va,Nf;function Bv(){if(Nf)return Va;Nf=1;const e=ft();return Va=(o,i)=>e(o,i,!0),Va}var Ga,Df;function is(){if(Df)return Ga;Df=1;const e=Je();return Ga=(o,i,a)=>{const t=new e(o,a),r=new e(i,a);return t.compare(r)||t.compareBuild(r)},Ga}var za,Mf;function Uv(){if(Mf)return za;Mf=1;const e=is();return za=(o,i)=>o.sort((a,t)=>e(a,t,i)),za}var Ha,Ff;function $v(){if(Ff)return Ha;Ff=1;const e=is();return Ha=(o,i)=>o.sort((a,t)=>e(t,a,i)),Ha}var Za,Bf;function _n(){if(Bf)return Za;Bf=1;const e=ft();return Za=(o,i,a)=>e(o,i,a)>0,Za}var Ya,Uf;function as(){if(Uf)return Ya;Uf=1;const e=ft();return Ya=(o,i,a)=>e(o,i,a)<0,Ya}var Wa,$f;function Uh(){if($f)return Wa;$f=1;const e=ft();return Wa=(o,i,a)=>e(o,i,a)===0,Wa}var Ka,Vf;function $h(){if(Vf)return Ka;Vf=1;const e=ft();return Ka=(o,i,a)=>e(o,i,a)!==0,Ka}var Ja,Gf;function os(){if(Gf)return Ja;Gf=1;const e=ft();return Ja=(o,i,a)=>e(o,i,a)>=0,Ja}var Xa,zf;function ss(){if(zf)return Xa;zf=1;const e=ft();return Xa=(o,i,a)=>e(o,i,a)<=0,Xa}var Qa,Hf;function Vh(){if(Hf)return Qa;Hf=1;const e=Uh(),n=$h(),o=_n(),i=os(),a=as(),t=ss();return Qa=(s,d,f,l)=>{switch(d){case"===":return typeof s=="object"&&(s=s.version),typeof f=="object"&&(f=f.version),s===f;case"!==":return typeof s=="object"&&(s=s.version),typeof f=="object"&&(f=f.version),s!==f;case"":case"=":case"==":return e(s,f,l);case"!=":return n(s,f,l);case">":return o(s,f,l);case">=":return i(s,f,l);case"<":return a(s,f,l);case"<=":return t(s,f,l);default:throw new TypeError(`Invalid operator: ${d}`)}},Qa}var eo,Zf;function Vv(){if(Zf)return eo;Zf=1;const e=Je(),n=Zt(),{safeRe:o,t:i}=dr();return eo=(t,r)=>{if(t instanceof e)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;r=r||{};let s=null;if(!r.rtl)s=t.match(o[i.COERCE]);else{let d;for(;(d=o[i.COERCERTL].exec(t))&&(!s||s.index+s[0].length!==t.length);)(!s||d.index+d[0].length!==s.index+s[0].length)&&(s=d),o[i.COERCERTL].lastIndex=d.index+d[1].length+d[2].length;o[i.COERCERTL].lastIndex=-1}return s===null?null:n(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)},eo}var to,Yf;function Gv(){return Yf||(Yf=1,to=function(e){e.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}),to}var ro,Wf;function zv(){if(Wf)return ro;Wf=1,ro=e,e.Node=a,e.create=e;function e(t){var r=this;if(r instanceof e||(r=new e),r.tail=null,r.head=null,r.length=0,t&&typeof t.forEach=="function")t.forEach(function(f){r.push(f)});else if(arguments.length>0)for(var s=0,d=arguments.length;s<d;s++)r.push(arguments[s]);return r}e.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var r=t.next,s=t.prev;return r&&(r.prev=s),s&&(s.next=r),t===this.head&&(this.head=r),t===this.tail&&(this.tail=s),t.list.length--,t.next=null,t.prev=null,t.list=null,r},e.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var r=this.head;t.list=this,t.next=r,r&&(r.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},e.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var r=this.tail;t.list=this,t.prev=r,r&&(r.next=t),this.tail=t,this.head||(this.head=t),this.length++}},e.prototype.push=function(){for(var t=0,r=arguments.length;t<r;t++)o(this,arguments[t]);return this.length},e.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++)i(this,arguments[t]);return this.length},e.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},e.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},e.prototype.forEach=function(t,r){r=r||this;for(var s=this.head,d=0;s!==null;d++)t.call(r,s.value,d,this),s=s.next},e.prototype.forEachReverse=function(t,r){r=r||this;for(var s=this.tail,d=this.length-1;s!==null;d--)t.call(r,s.value,d,this),s=s.prev},e.prototype.get=function(t){for(var r=0,s=this.head;s!==null&&r<t;r++)s=s.next;if(r===t&&s!==null)return s.value},e.prototype.getReverse=function(t){for(var r=0,s=this.tail;s!==null&&r<t;r++)s=s.prev;if(r===t&&s!==null)return s.value},e.prototype.map=function(t,r){r=r||this;for(var s=new e,d=this.head;d!==null;)s.push(t.call(r,d.value,this)),d=d.next;return s},e.prototype.mapReverse=function(t,r){r=r||this;for(var s=new e,d=this.tail;d!==null;)s.push(t.call(r,d.value,this)),d=d.prev;return s},e.prototype.reduce=function(t,r){var s,d=this.head;if(arguments.length>1)s=r;else if(this.head)d=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=0;d!==null;f++)s=t(s,d.value,f),d=d.next;return s},e.prototype.reduceReverse=function(t,r){var s,d=this.tail;if(arguments.length>1)s=r;else if(this.tail)d=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=this.length-1;d!==null;f--)s=t(s,d.value,f),d=d.prev;return s},e.prototype.toArray=function(){for(var t=new Array(this.length),r=0,s=this.head;s!==null;r++)t[r]=s.value,s=s.next;return t},e.prototype.toArrayReverse=function(){for(var t=new Array(this.length),r=0,s=this.tail;s!==null;r++)t[r]=s.value,s=s.prev;return t},e.prototype.slice=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var s=new e;if(r<t||r<0)return s;t<0&&(t=0),r>this.length&&(r=this.length);for(var d=0,f=this.head;f!==null&&d<t;d++)f=f.next;for(;f!==null&&d<r;d++,f=f.next)s.push(f.value);return s},e.prototype.sliceReverse=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var s=new e;if(r<t||r<0)return s;t<0&&(t=0),r>this.length&&(r=this.length);for(var d=this.length,f=this.tail;f!==null&&d>r;d--)f=f.prev;for(;f!==null&&d>t;d--,f=f.prev)s.push(f.value);return s},e.prototype.splice=function(t,r,...s){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var d=0,f=this.head;f!==null&&d<t;d++)f=f.next;for(var l=[],d=0;f&&d<r;d++)l.push(f.value),f=this.removeNode(f);f===null&&(f=this.tail),f!==this.head&&f!==this.tail&&(f=f.prev);for(var d=0;d<s.length;d++)f=n(this,f,s[d]);return l},e.prototype.reverse=function(){for(var t=this.head,r=this.tail,s=t;s!==null;s=s.prev){var d=s.prev;s.prev=s.next,s.next=d}return this.head=r,this.tail=t,this};function n(t,r,s){var d=r===t.head?new a(s,null,r,t):new a(s,r,r.next,t);return d.next===null&&(t.tail=d),d.prev===null&&(t.head=d),t.length++,d}function o(t,r){t.tail=new a(r,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function i(t,r){t.head=new a(r,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function a(t,r,s,d){if(!(this instanceof a))return new a(t,r,s,d);this.list=d,this.value=t,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{Gv()(e)}catch{}return ro}var no,Kf;function Hv(){if(Kf)return no;Kf=1;const e=zv(),n=Symbol("max"),o=Symbol("length"),i=Symbol("lengthCalculator"),a=Symbol("allowStale"),t=Symbol("maxAge"),r=Symbol("dispose"),s=Symbol("noDisposeOnSet"),d=Symbol("lruList"),f=Symbol("cache"),l=Symbol("updateAgeOnGet"),h=()=>1;class c{constructor(v){if(typeof v=="number"&&(v={max:v}),v||(v={}),v.max&&(typeof v.max!="number"||v.max<0))throw new TypeError("max must be a non-negative number");this[n]=v.max||1/0;const E=v.length||h;if(this[i]=typeof E!="function"?h:E,this[a]=v.stale||!1,v.maxAge&&typeof v.maxAge!="number")throw new TypeError("maxAge must be a number");this[t]=v.maxAge||0,this[r]=v.dispose,this[s]=v.noDisposeOnSet||!1,this[l]=v.updateAgeOnGet||!1,this.reset()}set max(v){if(typeof v!="number"||v<0)throw new TypeError("max must be a non-negative number");this[n]=v||1/0,y(this)}get max(){return this[n]}set allowStale(v){this[a]=!!v}get allowStale(){return this[a]}set maxAge(v){if(typeof v!="number")throw new TypeError("maxAge must be a non-negative number");this[t]=v,y(this)}get maxAge(){return this[t]}set lengthCalculator(v){typeof v!="function"&&(v=h),v!==this[i]&&(this[i]=v,this[o]=0,this[d].forEach(E=>{E.length=this[i](E.value,E.key),this[o]+=E.length})),y(this)}get lengthCalculator(){return this[i]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(v,E){E=E||this;for(let x=this[d].tail;x!==null;){const O=x.prev;_(this,v,x,E),x=O}}forEach(v,E){E=E||this;for(let x=this[d].head;x!==null;){const O=x.next;_(this,v,x,E),x=O}}keys(){return this[d].toArray().map(v=>v.key)}values(){return this[d].toArray().map(v=>v.value)}reset(){this[r]&&this[d]&&this[d].length&&this[d].forEach(v=>this[r](v.key,v.value)),this[f]=new Map,this[d]=new e,this[o]=0}dump(){return this[d].map(v=>m(this,v)?!1:{k:v.key,v:v.value,e:v.now+(v.maxAge||0)}).toArray().filter(v=>v)}dumpLru(){return this[d]}set(v,E,x){if(x=x||this[t],x&&typeof x!="number")throw new TypeError("maxAge must be a number");const O=x?Date.now():0,C=this[i](E,v);if(this[f].has(v)){if(C>this[n])return g(this,this[f].get(v)),!1;const H=this[f].get(v).value;return this[r]&&(this[s]||this[r](v,H.value)),H.now=O,H.maxAge=x,H.value=E,this[o]+=C-H.length,H.length=C,this.get(v),y(this),!0}const D=new u(v,E,C,O,x);return D.length>this[n]?(this[r]&&this[r](v,E),!1):(this[o]+=D.length,this[d].unshift(D),this[f].set(v,this[d].head),y(this),!0)}has(v){if(!this[f].has(v))return!1;const E=this[f].get(v).value;return!m(this,E)}get(v){return b(this,v,!0)}peek(v){return b(this,v,!1)}pop(){const v=this[d].tail;return v?(g(this,v),v.value):null}del(v){g(this,this[f].get(v))}load(v){this.reset();const E=Date.now();for(let x=v.length-1;x>=0;x--){const O=v[x],C=O.e||0;if(C===0)this.set(O.k,O.v);else{const D=C-E;D>0&&this.set(O.k,O.v,D)}}}prune(){this[f].forEach((v,E)=>b(this,E,!1))}}const b=(w,v,E)=>{const x=w[f].get(v);if(x){const O=x.value;if(m(w,O)){if(g(w,x),!w[a])return}else E&&(w[l]&&(x.value.now=Date.now()),w[d].unshiftNode(x));return O.value}},m=(w,v)=>{if(!v||!v.maxAge&&!w[t])return!1;const E=Date.now()-v.now;return v.maxAge?E>v.maxAge:w[t]&&E>w[t]},y=w=>{if(w[o]>w[n])for(let v=w[d].tail;w[o]>w[n]&&v!==null;){const E=v.prev;g(w,v),v=E}},g=(w,v)=>{if(v){const E=v.value;w[r]&&w[r](E.key,E.value),w[o]-=E.length,w[f].delete(E.key),w[d].removeNode(v)}};class u{constructor(v,E,x,O,C){this.key=v,this.value=E,this.length=x,this.now=O,this.maxAge=C||0}}const _=(w,v,E,x)=>{let O=E.value;m(w,O)&&(g(w,E),w[a]||(O=void 0)),O&&v.call(x,O.value,O.key,w)};return no=c,no}var io,Jf;function lt(){if(Jf)return io;Jf=1;class e{constructor(L,N){if(N=i(N),L instanceof e)return L.loose===!!N.loose&&L.includePrerelease===!!N.includePrerelease?L:new e(L.raw,N);if(L instanceof a)return this.raw=L.value,this.set=[[L]],this.format(),this;if(this.options=N,this.loose=!!N.loose,this.includePrerelease=!!N.includePrerelease,this.raw=L.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(V=>this.parseRange(V)).filter(V=>V.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const V=this.set[0];if(this.set=this.set.filter(P=>!m(P[0])),this.set.length===0)this.set=[V];else if(this.set.length>1){for(const P of this.set)if(P.length===1&&y(P[0])){this.set=[P];break}}}this.format()}format(){return this.range=this.set.map(L=>L.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(L){const V=((this.options.includePrerelease&&c)|(this.options.loose&&b))+":"+L,P=o.get(V);if(P)return P;const j=this.options.loose,k=j?s[d.HYPHENRANGELOOSE]:s[d.HYPHENRANGE];L=L.replace(k,H(this.options.includePrerelease)),t("hyphen replace",L),L=L.replace(s[d.COMPARATORTRIM],f),t("comparator trim",L),L=L.replace(s[d.TILDETRIM],l),L=L.replace(s[d.CARETTRIM],h);let F=L.split(" ").map(q=>u(q,this.options)).join(" ").split(/\s+/).map(q=>W(q,this.options));j&&(F=F.filter(q=>(t("loose invalid filter",q,this.options),!!q.match(s[d.COMPARATORLOOSE])))),t("range list",F);const Y=new Map,z=F.map(q=>new a(q,this.options));for(const q of z){if(m(q))return[q];Y.set(q.value,q)}Y.size>1&&Y.has("")&&Y.delete("");const B=[...Y.values()];return o.set(V,B),B}intersects(L,N){if(!(L instanceof e))throw new TypeError("a Range is required");return this.set.some(V=>g(V,N)&&L.set.some(P=>g(P,N)&&V.every(j=>P.every(k=>j.intersects(k,N)))))}test(L){if(!L)return!1;if(typeof L=="string")try{L=new r(L,this.options)}catch{return!1}for(let N=0;N<this.set.length;N++)if(S(this.set[N],L,this.options))return!0;return!1}}io=e;const n=Hv(),o=new n({max:1e3}),i=ns(),a=bn(),t=yn(),r=Je(),{safeRe:s,t:d,comparatorTrimReplace:f,tildeTrimReplace:l,caretTrimReplace:h}=dr(),{FLAG_INCLUDE_PRERELEASE:c,FLAG_LOOSE:b}=vn(),m=R=>R.value==="<0.0.0-0",y=R=>R.value==="",g=(R,L)=>{let N=!0;const V=R.slice();let P=V.pop();for(;N&&V.length;)N=V.every(j=>P.intersects(j,L)),P=V.pop();return N},u=(R,L)=>(t("comp",R,L),R=E(R,L),t("caret",R),R=w(R,L),t("tildes",R),R=O(R,L),t("xrange",R),R=D(R,L),t("stars",R),R),_=R=>!R||R.toLowerCase()==="x"||R==="*",w=(R,L)=>R.trim().split(/\s+/).map(N=>v(N,L)).join(" "),v=(R,L)=>{const N=L.loose?s[d.TILDELOOSE]:s[d.TILDE];return R.replace(N,(V,P,j,k,F)=>{t("tilde",R,V,P,j,k,F);let Y;return _(P)?Y="":_(j)?Y=`>=${P}.0.0 <${+P+1}.0.0-0`:_(k)?Y=`>=${P}.${j}.0 <${P}.${+j+1}.0-0`:F?(t("replaceTilde pr",F),Y=`>=${P}.${j}.${k}-${F} <${P}.${+j+1}.0-0`):Y=`>=${P}.${j}.${k} <${P}.${+j+1}.0-0`,t("tilde return",Y),Y})},E=(R,L)=>R.trim().split(/\s+/).map(N=>x(N,L)).join(" "),x=(R,L)=>{t("caret",R,L);const N=L.loose?s[d.CARETLOOSE]:s[d.CARET],V=L.includePrerelease?"-0":"";return R.replace(N,(P,j,k,F,Y)=>{t("caret",R,P,j,k,F,Y);let z;return _(j)?z="":_(k)?z=`>=${j}.0.0${V} <${+j+1}.0.0-0`:_(F)?j==="0"?z=`>=${j}.${k}.0${V} <${j}.${+k+1}.0-0`:z=`>=${j}.${k}.0${V} <${+j+1}.0.0-0`:Y?(t("replaceCaret pr",Y),j==="0"?k==="0"?z=`>=${j}.${k}.${F}-${Y} <${j}.${k}.${+F+1}-0`:z=`>=${j}.${k}.${F}-${Y} <${j}.${+k+1}.0-0`:z=`>=${j}.${k}.${F}-${Y} <${+j+1}.0.0-0`):(t("no pr"),j==="0"?k==="0"?z=`>=${j}.${k}.${F}${V} <${j}.${k}.${+F+1}-0`:z=`>=${j}.${k}.${F}${V} <${j}.${+k+1}.0-0`:z=`>=${j}.${k}.${F} <${+j+1}.0.0-0`),t("caret return",z),z})},O=(R,L)=>(t("replaceXRanges",R,L),R.split(/\s+/).map(N=>C(N,L)).join(" ")),C=(R,L)=>{R=R.trim();const N=L.loose?s[d.XRANGELOOSE]:s[d.XRANGE];return R.replace(N,(V,P,j,k,F,Y)=>{t("xRange",R,V,P,j,k,F,Y);const z=_(j),B=z||_(k),q=B||_(F),M=q;return P==="="&&M&&(P=""),Y=L.includePrerelease?"-0":"",z?P===">"||P==="<"?V="<0.0.0-0":V="*":P&&M?(B&&(k=0),F=0,P===">"?(P=">=",B?(j=+j+1,k=0,F=0):(k=+k+1,F=0)):P==="<="&&(P="<",B?j=+j+1:k=+k+1),P==="<"&&(Y="-0"),V=`${P+j}.${k}.${F}${Y}`):B?V=`>=${j}.0.0${Y} <${+j+1}.0.0-0`:q&&(V=`>=${j}.${k}.0${Y} <${j}.${+k+1}.0-0`),t("xRange return",V),V})},D=(R,L)=>(t("replaceStars",R,L),R.trim().replace(s[d.STAR],"")),W=(R,L)=>(t("replaceGTE0",R,L),R.trim().replace(s[L.includePrerelease?d.GTE0PRE:d.GTE0],"")),H=R=>(L,N,V,P,j,k,F,Y,z,B,q,M,U)=>(_(V)?N="":_(P)?N=`>=${V}.0.0${R?"-0":""}`:_(j)?N=`>=${V}.${P}.0${R?"-0":""}`:k?N=`>=${N}`:N=`>=${N}${R?"-0":""}`,_(z)?Y="":_(B)?Y=`<${+z+1}.0.0-0`:_(q)?Y=`<${z}.${+B+1}.0-0`:M?Y=`<=${z}.${B}.${q}-${M}`:R?Y=`<${z}.${B}.${+q+1}-0`:Y=`<=${Y}`,`${N} ${Y}`.trim()),S=(R,L,N)=>{for(let V=0;V<R.length;V++)if(!R[V].test(L))return!1;if(L.prerelease.length&&!N.includePrerelease){for(let V=0;V<R.length;V++)if(t(R[V].semver),R[V].semver!==a.ANY&&R[V].semver.prerelease.length>0){const P=R[V].semver;if(P.major===L.major&&P.minor===L.minor&&P.patch===L.patch)return!0}return!1}return!0};return io}var ao,Xf;function bn(){if(Xf)return ao;Xf=1;const e=Symbol("SemVer ANY");class n{static get ANY(){return e}constructor(l,h){if(h=o(h),l instanceof n){if(l.loose===!!h.loose)return l;l=l.value}l=l.trim().split(/\s+/).join(" "),r("comparator",l,h),this.options=h,this.loose=!!h.loose,this.parse(l),this.semver===e?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}parse(l){const h=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],c=l.match(h);if(!c)throw new TypeError(`Invalid comparator: ${l}`);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new s(c[2],this.options.loose):this.semver=e}toString(){return this.value}test(l){if(r("Comparator.test",l,this.options.loose),this.semver===e||l===e)return!0;if(typeof l=="string")try{l=new s(l,this.options)}catch{return!1}return t(l,this.operator,this.semver,this.options)}intersects(l,h){if(!(l instanceof n))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new d(l.value,h).test(this.value):l.operator===""?l.value===""?!0:new d(this.value,h).test(l.semver):(h=o(h),h.includePrerelease&&(this.value==="<0.0.0-0"||l.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||l.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&l.operator.startsWith(">")||this.operator.startsWith("<")&&l.operator.startsWith("<")||this.semver.version===l.semver.version&&this.operator.includes("=")&&l.operator.includes("=")||t(this.semver,"<",l.semver,h)&&this.operator.startsWith(">")&&l.operator.startsWith("<")||t(this.semver,">",l.semver,h)&&this.operator.startsWith("<")&&l.operator.startsWith(">")))}}ao=n;const o=ns(),{safeRe:i,t:a}=dr(),t=Vh(),r=yn(),s=Je(),d=lt();return ao}var oo,Qf;function wn(){if(Qf)return oo;Qf=1;const e=lt();return oo=(o,i,a)=>{try{i=new e(i,a)}catch{return!1}return i.test(o)},oo}var so,el;function Zv(){if(el)return so;el=1;const e=lt();return so=(o,i)=>new e(o,i).set.map(a=>a.map(t=>t.value).join(" ").trim().split(" ")),so}var uo,tl;function Yv(){if(tl)return uo;tl=1;const e=Je(),n=lt();return uo=(i,a,t)=>{let r=null,s=null,d=null;try{d=new n(a,t)}catch{return null}return i.forEach(f=>{d.test(f)&&(!r||s.compare(f)===-1)&&(r=f,s=new e(r,t))}),r},uo}var co,rl;function Wv(){if(rl)return co;rl=1;const e=Je(),n=lt();return co=(i,a,t)=>{let r=null,s=null,d=null;try{d=new n(a,t)}catch{return null}return i.forEach(f=>{d.test(f)&&(!r||s.compare(f)===1)&&(r=f,s=new e(r,t))}),r},co}var fo,nl;function Kv(){if(nl)return fo;nl=1;const e=Je(),n=lt(),o=_n();return fo=(a,t)=>{a=new n(a,t);let r=new e("0.0.0");if(a.test(r)||(r=new e("0.0.0-0"),a.test(r)))return r;r=null;for(let s=0;s<a.set.length;++s){const d=a.set[s];let f=null;d.forEach(l=>{const h=new e(l.semver.version);switch(l.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!f||o(h,f))&&(f=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),f&&(!r||o(r,f))&&(r=f)}return r&&a.test(r)?r:null},fo}var lo,il;function Jv(){if(il)return lo;il=1;const e=lt();return lo=(o,i)=>{try{return new e(o,i).range||"*"}catch{return null}},lo}var ho,al;function us(){if(al)return ho;al=1;const e=Je(),n=bn(),{ANY:o}=n,i=lt(),a=wn(),t=_n(),r=as(),s=ss(),d=os();return ho=(l,h,c,b)=>{l=new e(l,b),h=new i(h,b);let m,y,g,u,_;switch(c){case">":m=t,y=s,g=r,u=">",_=">=";break;case"<":m=r,y=d,g=t,u="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(l,h,b))return!1;for(let w=0;w<h.set.length;++w){const v=h.set[w];let E=null,x=null;if(v.forEach(O=>{O.semver===o&&(O=new n(">=0.0.0")),E=E||O,x=x||O,m(O.semver,E.semver,b)?E=O:g(O.semver,x.semver,b)&&(x=O)}),E.operator===u||E.operator===_||(!x.operator||x.operator===u)&&y(l,x.semver))return!1;if(x.operator===_&&g(l,x.semver))return!1}return!0},ho}var po,ol;function Xv(){if(ol)return po;ol=1;const e=us();return po=(o,i,a)=>e(o,i,">",a),po}var mo,sl;function Qv(){if(sl)return mo;sl=1;const e=us();return mo=(o,i,a)=>e(o,i,"<",a),mo}var go,ul;function ey(){if(ul)return go;ul=1;const e=lt();return go=(o,i,a)=>(o=new e(o,a),i=new e(i,a),o.intersects(i,a)),go}var vo,cl;function ty(){if(cl)return vo;cl=1;const e=wn(),n=ft();return vo=(o,i,a)=>{const t=[];let r=null,s=null;const d=o.sort((c,b)=>n(c,b,a));for(const c of d)e(c,i,a)?(s=c,r||(r=c)):(s&&t.push([r,s]),s=null,r=null);r&&t.push([r,null]);const f=[];for(const[c,b]of t)c===b?f.push(c):!b&&c===d[0]?f.push("*"):b?c===d[0]?f.push(`<=${b}`):f.push(`${c} - ${b}`):f.push(`>=${c}`);const l=f.join(" || "),h=typeof i.raw=="string"?i.raw:String(i);return l.length<h.length?l:i},vo}var yo,fl;function ry(){if(fl)return yo;fl=1;const e=lt(),n=bn(),{ANY:o}=n,i=wn(),a=ft(),t=(h,c,b={})=>{if(h===c)return!0;h=new e(h,b),c=new e(c,b);let m=!1;e:for(const y of h.set){for(const g of c.set){const u=d(y,g,b);if(m=m||u!==null,u)continue e}if(m)return!1}return!0},r=[new n(">=0.0.0-0")],s=[new n(">=0.0.0")],d=(h,c,b)=>{if(h===c)return!0;if(h.length===1&&h[0].semver===o){if(c.length===1&&c[0].semver===o)return!0;b.includePrerelease?h=r:h=s}if(c.length===1&&c[0].semver===o){if(b.includePrerelease)return!0;c=s}const m=new Set;let y,g;for(const C of h)C.operator===">"||C.operator===">="?y=f(y,C,b):C.operator==="<"||C.operator==="<="?g=l(g,C,b):m.add(C.semver);if(m.size>1)return null;let u;if(y&&g){if(u=a(y.semver,g.semver,b),u>0)return null;if(u===0&&(y.operator!==">="||g.operator!=="<="))return null}for(const C of m){if(y&&!i(C,String(y),b)||g&&!i(C,String(g),b))return null;for(const D of c)if(!i(C,String(D),b))return!1;return!0}let _,w,v,E,x=g&&!b.includePrerelease&&g.semver.prerelease.length?g.semver:!1,O=y&&!b.includePrerelease&&y.semver.prerelease.length?y.semver:!1;x&&x.prerelease.length===1&&g.operator==="<"&&x.prerelease[0]===0&&(x=!1);for(const C of c){if(E=E||C.operator===">"||C.operator===">=",v=v||C.operator==="<"||C.operator==="<=",y){if(O&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===O.major&&C.semver.minor===O.minor&&C.semver.patch===O.patch&&(O=!1),C.operator===">"||C.operator===">="){if(_=f(y,C,b),_===C&&_!==y)return!1}else if(y.operator===">="&&!i(y.semver,String(C),b))return!1}if(g){if(x&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===x.major&&C.semver.minor===x.minor&&C.semver.patch===x.patch&&(x=!1),C.operator==="<"||C.operator==="<="){if(w=l(g,C,b),w===C&&w!==g)return!1}else if(g.operator==="<="&&!i(g.semver,String(C),b))return!1}if(!C.operator&&(g||y)&&u!==0)return!1}return!(y&&v&&!g&&u!==0||g&&E&&!y&&u!==0||O||x)},f=(h,c,b)=>{if(!h)return c;const m=a(h.semver,c.semver,b);return m>0?h:m<0||c.operator===">"&&h.operator===">="?c:h},l=(h,c,b)=>{if(!h)return c;const m=a(h.semver,c.semver,b);return m<0?h:m>0||c.operator==="<"&&h.operator==="<="?c:h};return yo=t,yo}var _o,ll;function cs(){if(ll)return _o;ll=1;const e=dr(),n=vn(),o=Je(),i=Bh(),a=Zt(),t=Pv(),r=kv(),s=jv(),d=Lv(),f=qv(),l=Nv(),h=Dv(),c=Mv(),b=ft(),m=Fv(),y=Bv(),g=is(),u=Uv(),_=$v(),w=_n(),v=as(),E=Uh(),x=$h(),O=os(),C=ss(),D=Vh(),W=Vv(),H=bn(),S=lt(),R=wn(),L=Zv(),N=Yv(),V=Wv(),P=Kv(),j=Jv(),k=us(),F=Xv(),Y=Qv(),z=ey(),B=ty(),q=ry();return _o={parse:a,valid:t,clean:r,inc:s,diff:d,major:f,minor:l,patch:h,prerelease:c,compare:b,rcompare:m,compareLoose:y,compareBuild:g,sort:u,rsort:_,gt:w,lt:v,eq:E,neq:x,gte:O,lte:C,cmp:D,coerce:W,Comparator:H,Range:S,satisfies:R,toComparators:L,maxSatisfying:N,minSatisfying:V,minVersion:P,validRange:j,outside:k,gtr:F,ltr:Y,intersects:z,simplifyRange:B,subset:q,SemVer:o,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers},_o}var bo,hl;function ny(){return hl||(hl=1,bo=cs().satisfies(ye.version,">=15.7.0")),bo}var wo,dl;function iy(){return dl||(dl=1,wo=cs().satisfies(ye.version,">=16.9.0")),wo}var Eo,pl;function Gh(){if(pl)return Eo;pl=1;const e=ny(),n=iy(),o={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},i={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};return Eo=function(a,t){if(!a||!t)return;const r=t.asymmetricKeyType;if(!r)return;const s=o[r];if(!s)throw new Error(`Unknown key type "${r}".`);if(!s.includes(a))throw new Error(`"alg" parameter for "${r}" key type must be one of: ${s.join(", ")}.`);if(e)switch(r){case"ec":const d=t.asymmetricKeyDetails.namedCurve,f=i[a];if(d!==f)throw new Error(`"alg" parameter "${a}" requires curve "${f}".`);break;case"rsa-pss":if(n){const l=parseInt(a.slice(-3),10),{hashAlgorithm:h,mgf1HashAlgorithm:c,saltLength:b}=t.asymmetricKeyDetails;if(h!==`sha${l}`||c!==h)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${a}.`);if(b!==void 0&&b>l>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${a}.`)}break}},Eo}var So,ml;function zh(){if(ml)return So;ml=1;var e=cs();return So=e.satisfies(ye.version,"^6.12.0 || >=8.0.0"),So}var Ro,gl;function ay(){if(gl)return Ro;gl=1;const e=gn(),n=jh(),o=Lh(),i=Mh(),a=Fh(),t=Gh(),r=zh(),s=rs(),{KeyObject:d,createSecretKey:f,createPublicKey:l}=zt(),h=["RS256","RS384","RS512"],c=["ES256","ES384","ES512"],b=["RS256","RS384","RS512"],m=["HS256","HS384","HS512"];return r&&(h.splice(h.length,0,"PS256","PS384","PS512"),b.splice(b.length,0,"PS256","PS384","PS512")),Ro=function(y,g,u,_){typeof u=="function"&&!_&&(_=u,u={}),u||(u={}),u=Object.assign({},u);let w;if(_?w=_:w=function(D,W){if(D)throw D;return W},u.clockTimestamp&&typeof u.clockTimestamp!="number")return w(new e("clockTimestamp must be a number"));if(u.nonce!==void 0&&(typeof u.nonce!="string"||u.nonce.trim()===""))return w(new e("nonce must be a non-empty string"));if(u.allowInvalidAsymmetricKeyTypes!==void 0&&typeof u.allowInvalidAsymmetricKeyTypes!="boolean")return w(new e("allowInvalidAsymmetricKeyTypes must be a boolean"));const v=u.clockTimestamp||Math.floor(Date.now()/1e3);if(!y)return w(new e("jwt must be provided"));if(typeof y!="string")return w(new e("jwt must be a string"));const E=y.split(".");if(E.length!==3)return w(new e("jwt malformed"));let x;try{x=i(y,{complete:!0})}catch(D){return w(D)}if(!x)return w(new e("invalid token"));const O=x.header;let C;if(typeof g=="function"){if(!_)return w(new e("verify must be called asynchronous if secret or public key is provided as a callback"));C=g}else C=function(D,W){return W(null,g)};return C(O,function(D,W){if(D)return w(new e("error in secret or public key callback: "+D.message));const H=E[2].trim()!=="";if(!H&&W)return w(new e("jwt signature is required"));if(H&&!W)return w(new e("secret or public key must be provided"));if(!H&&!u.algorithms)return w(new e('please specify "none" in "algorithms" to verify unsigned tokens'));if(W!=null&&!(W instanceof d))try{W=l(W)}catch{try{W=f(typeof W=="string"?et.from(W):W)}catch{return w(new e("secretOrPublicKey is not valid key material"))}}if(u.algorithms||(W.type==="secret"?u.algorithms=m:["rsa","rsa-pss"].includes(W.asymmetricKeyType)?u.algorithms=b:W.asymmetricKeyType==="ec"?u.algorithms=c:u.algorithms=h),u.algorithms.indexOf(x.header.alg)===-1)return w(new e("invalid algorithm"));if(O.alg.startsWith("HS")&&W.type!=="secret")return w(new e(`secretOrPublicKey must be a symmetric key when using ${O.alg}`));if(/^(?:RS|PS|ES)/.test(O.alg)&&W.type!=="public")return w(new e(`secretOrPublicKey must be an asymmetric key when using ${O.alg}`));if(!u.allowInvalidAsymmetricKeyTypes)try{t(O.alg,W)}catch(L){return w(L)}let S;try{S=s.verify(y,x.header.alg,W)}catch(L){return w(L)}if(!S)return w(new e("invalid signature"));const R=x.payload;if(typeof R.nbf<"u"&&!u.ignoreNotBefore){if(typeof R.nbf!="number")return w(new e("invalid nbf value"));if(R.nbf>v+(u.clockTolerance||0))return w(new n("jwt not active",new Date(R.nbf*1e3)))}if(typeof R.exp<"u"&&!u.ignoreExpiration){if(typeof R.exp!="number")return w(new e("invalid exp value"));if(v>=R.exp+(u.clockTolerance||0))return w(new o("jwt expired",new Date(R.exp*1e3)))}if(u.audience){const L=Array.isArray(u.audience)?u.audience:[u.audience];if(!(Array.isArray(R.aud)?R.aud:[R.aud]).some(function(P){return L.some(function(j){return j instanceof RegExp?j.test(P):j===P})}))return w(new e("jwt audience invalid. expected: "+L.join(" or ")))}if(u.issuer&&(typeof u.issuer=="string"&&R.iss!==u.issuer||Array.isArray(u.issuer)&&u.issuer.indexOf(R.iss)===-1))return w(new e("jwt issuer invalid. expected: "+u.issuer));if(u.subject&&R.sub!==u.subject)return w(new e("jwt subject invalid. expected: "+u.subject));if(u.jwtid&&R.jti!==u.jwtid)return w(new e("jwt jwtid invalid. expected: "+u.jwtid));if(u.nonce&&R.nonce!==u.nonce)return w(new e("jwt nonce invalid. expected: "+u.nonce));if(u.maxAge){if(typeof R.iat!="number")return w(new e("iat required when maxAge is specified"));const L=a(u.maxAge,R.iat);if(typeof L>"u")return w(new e('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(v>=L+(u.clockTolerance||0))return w(new o("maxAge exceeded",new Date(L*1e3)))}if(u.complete===!0){const L=x.signature;return w(null,{header:O,payload:R,signature:L})}return w(null,R)})},Ro}const oy=Vl(zp);var Oo,vl;function sy(){if(vl)return Oo;vl=1;const e=Fh(),n=zh(),o=Gh(),i=rs(),{includes:a,isBoolean:t,isInteger:r,isNumber:s,isPlainObject:d,isString:f,once:l}=oy,{KeyObject:h,createSecretKey:c,createPrivateKey:b}=zt(),m=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];n&&m.splice(3,0,"PS256","PS384","PS512");const y={expiresIn:{isValid:function(x){return r(x)||f(x)&&x},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(x){return r(x)||f(x)&&x},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(x){return f(x)||Array.isArray(x)},message:'"audience" must be a string or array'},algorithm:{isValid:a.bind(null,m),message:'"algorithm" must be a valid string enum value'},header:{isValid:d,message:'"header" must be an object'},encoding:{isValid:f,message:'"encoding" must be a string'},issuer:{isValid:f,message:'"issuer" must be a string'},subject:{isValid:f,message:'"subject" must be a string'},jwtid:{isValid:f,message:'"jwtid" must be a string'},noTimestamp:{isValid:t,message:'"noTimestamp" must be a boolean'},keyid:{isValid:f,message:'"keyid" must be a string'},mutatePayload:{isValid:t,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:t,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:t,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},g={iat:{isValid:s,message:'"iat" should be a number of seconds'},exp:{isValid:s,message:'"exp" should be a number of seconds'},nbf:{isValid:s,message:'"nbf" should be a number of seconds'}};function u(x,O,C,D){if(!d(C))throw new Error('Expected "'+D+'" to be a plain object.');Object.keys(C).forEach(function(W){const H=x[W];if(!H){if(!O)throw new Error('"'+W+'" is not allowed in "'+D+'"');return}if(!H.isValid(C[W]))throw new Error(H.message)})}function _(x){return u(y,!1,x,"options")}function w(x){return u(g,!0,x,"payload")}const v={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},E=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];return Oo=function(x,O,C,D){typeof C=="function"?(D=C,C={}):C=C||{};const W=typeof x=="object"&&!et.isBuffer(x),H=Object.assign({alg:C.algorithm||"HS256",typ:W?"JWT":void 0,kid:C.keyid},C.header);function S(N){if(D)return D(N);throw N}if(!O&&C.algorithm!=="none")return S(new Error("secretOrPrivateKey must have a value"));if(O!=null&&!(O instanceof h))try{O=b(O)}catch{try{O=c(typeof O=="string"?et.from(O):O)}catch{return S(new Error("secretOrPrivateKey is not valid key material"))}}if(H.alg.startsWith("HS")&&O.type!=="secret")return S(new Error(`secretOrPrivateKey must be a symmetric key when using ${H.alg}`));if(/^(?:RS|PS|ES)/.test(H.alg)){if(O.type!=="private")return S(new Error(`secretOrPrivateKey must be an asymmetric key when using ${H.alg}`));if(!C.allowInsecureKeySizes&&!H.alg.startsWith("ES")&&O.asymmetricKeyDetails!==void 0&&O.asymmetricKeyDetails.modulusLength<2048)return S(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${H.alg}`))}if(typeof x>"u")return S(new Error("payload is required"));if(W){try{w(x)}catch(N){return S(N)}C.mutatePayload||(x=Object.assign({},x))}else{const N=E.filter(function(V){return typeof C[V]<"u"});if(N.length>0)return S(new Error("invalid "+N.join(",")+" option for "+typeof x+" payload"))}if(typeof x.exp<"u"&&typeof C.expiresIn<"u")return S(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof x.nbf<"u"&&typeof C.notBefore<"u")return S(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{_(C)}catch(N){return S(N)}if(!C.allowInvalidAsymmetricKeyTypes)try{o(H.alg,O)}catch(N){return S(N)}const R=x.iat||Math.floor(Date.now()/1e3);if(C.noTimestamp?delete x.iat:W&&(x.iat=R),typeof C.notBefore<"u"){try{x.nbf=e(C.notBefore,R)}catch(N){return S(N)}if(typeof x.nbf>"u")return S(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof C.expiresIn<"u"&&typeof x=="object"){try{x.exp=e(C.expiresIn,R)}catch(N){return S(N)}if(typeof x.exp>"u")return S(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(v).forEach(function(N){const V=v[N];if(typeof C[N]<"u"){if(typeof x[V]<"u")return S(new Error('Bad "options.'+N+'" option. The payload already has an "'+V+'" property.'));x[V]=C[N]}});const L=C.encoding||"utf8";if(typeof D=="function")D=D&&l(D),i.createSign({header:H,privateKey:O,payload:x,encoding:L}).once("error",D).once("done",function(N){if(!C.allowInsecureKeySizes&&/^(?:RS|PS)/.test(H.alg)&&N.length<256)return D(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${H.alg}`));D(null,N)});else{let N=i.sign({header:H,payload:x,secret:O,encoding:L});if(!C.allowInsecureKeySizes&&/^(?:RS|PS)/.test(H.alg)&&N.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${H.alg}`);return N}},Oo}var yl;function uy(){return yl||(yl=1,function(e){e.exports={verify:ay(),sign:sy(),JsonWebTokenError:gn(),NotBeforeError:jh(),TokenExpiredError:Lh()},Object.defineProperty(e.exports,"decode",{enumerable:!1,value:Mh()})}(da)),da.exports}var To,_l;function cy(){if(_l)return To;_l=1;function e(n){this.token=n.token||"",this.response=n.response||"",this.body=n.responseText||"",this.json=null,this.intuit_tid=n.intuit_tid||""}return e.prototype.processResponse=function(o){this.response=o||"",this.body=o&&o.body||"",this.json=this.body&&this.isJson()?JSON.parse(this.body):null,this.intuit_tid=o&&o.headers&&o.headers.intuit_tid||""},e.prototype.getToken=function(){return this.token.getToken()},e.prototype.text=function(){return this.body},e.prototype.status=function(){return this.response.status},e.prototype.headers=function(){return this.response.headers},e.prototype.valid=function(){return this.response&&Number(this.response.status)>=200&&Number(this.response.status)<300},e.prototype.getJson=function(){if(!this.isJson())throw new Error("AuthResponse is not JSON");return this.json||(this.json=this.body?JSON.parse(this.body):null),this.json},e.prototype.get_intuit_tid=function(){return this.intuit_tid},e.prototype.isContentType=function(o){return this.getContentType().indexOf(o)>-1},e.prototype.getContentType=function(){return this.response.get(e._contentType)||""},e.prototype.isJson=function(){return this.isContentType("application/json")},e._contentType="Content-Type",e._jsonContentType="application/json",e._urlencodedContentType="application/x-www-form-urlencoded",To=e,To}const fy="0.0.4",ly={version:fy};var xo,bl;function hy(){if(bl)return xo;bl=1;function e(n){n=n||{},this.realmId=n.realmId||"",this.token_type=n.token_type||"",this.access_token=n.access_token||"",this.refresh_token=n.refresh_token||"",this.expires_in=n.expires_in||0,this.x_refresh_token_expires_in=n.x_refresh_token_expires_in||0,this.id_token=n.id_token||"",this.latency=n.latency||60*1e3,this.createdAt=n.createdAt||Date.now()}return e.prototype.accessToken=function(){return this.getToken().access_token},e.prototype.refreshToken=function(){return this.getToken().refresh_token},e.prototype.tokenType=function(){return this.getToken().token_type},e.prototype.getToken=function(){return{token_type:this.token_type,access_token:this.access_token,expires_in:this.expires_in,refresh_token:this.refresh_token,x_refresh_token_expires_in:this.x_refresh_token_expires_in,realmId:this.realmId,id_token:this.id_token,createdAt:this.createdAt}},e.prototype.setToken=function(o){return this.access_token=o.access_token,this.refresh_token=o.refresh_token,this.token_type=o.token_type,this.expires_in=o.expires_in,this.x_refresh_token_expires_in=o.x_refresh_token_expires_in,this.id_token=o.id_token||"",this.createdAt=o.createdAt||Date.now(),this},e.prototype.clearToken=function(){return this.access_token="",this.refresh_token="",this.token_type="",this.expires_in=0,this.x_refresh_token_expires_in=0,this.id_token="",this.createdAt=0,this},e.prototype._checkExpiry=function(o){return this.createdAt+o*1e3-this.latency>Date.now()},e.prototype.isAccessTokenValid=function(){return this._checkExpiry(this.expires_in)},e.prototype.isRefreshTokenValid=function(){return this._checkExpiry(this.x_refresh_token_expires_in)},xo=e,xo}var Io,wl;function dy(){if(wl)return Io;wl=1,Io=e;function e(a,t){var r=et.from(a,"base64"),s=et.from(t,"base64"),d=r.toString("hex"),f=s.toString("hex");d=n(d),f=n(f);var l=d.length/2,h=f.length/2,c=i(l),b=i(h),m="30"+i(l+h+c.length/2+b.length/2+2)+"02"+c+d+"02"+b+f,y=et.from(m,"hex").toString("base64"),g=`-----BEGIN RSA PUBLIC KEY-----
|
|
119
|
+
`+y.match(/.{1,64}/g).join(`
|
|
120
|
+
`)+`
|
|
121
|
+
-----END RSA PUBLIC KEY-----
|
|
122
|
+
`;return g}function n(a){var t=a[0];return t<"0"||t>"7"?"00"+a:a}function o(a){var t=a.toString(16);return t.length%2?"0"+t:t}function i(a){if(a<=127)return o(a);var t=o(a),r=128+t.length/2;return o(r)+t}return Io}var Ao,El;function py(){if(El)return Ao;El=1;const e=Nm(),n=Jm(),o=rg(),i=sg(),a=Mt(),t=Ov(),r=Eh(),s=Zo(),d=uy(),f=cy(),l=ly,h=hy();function c(b){if(this.environment=b.environment,this.clientId=b.clientId,this.clientSecret=b.clientSecret,this.redirectUri=b.redirectUri,this.token=new h(b.token),this.logging=!!(Object.prototype.hasOwnProperty.call(b,"logging")&&b.logging===!0),this.logger=null,this.state=new n,this.logging){const m="./logs";s.existsSync(m)||s.mkdirSync(m),this.logger=t.createLogger({level:"info",format:t.format.combine(t.format.timestamp(),t.format.printf(y=>`${y.timestamp} ${y.level}: ${y.message}`)),transports:[new t.transports.File({filename:r.join(m,"oAuthClient-log.log")})]})}}return c.cacheId="cacheID",c.authorizeEndpoint="https://appcenter.intuit.com/connect/oauth2",c.tokenEndpoint="https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer",c.revokeEndpoint="https://developer.api.intuit.com/v2/oauth2/tokens/revoke",c.userinfo_endpoint_production="https://accounts.platform.intuit.com/v1/openid_connect/userinfo",c.userinfo_endpoint_sandbox="https://sandbox-accounts.platform.intuit.com/v1/openid_connect/userinfo",c.migrate_sandbox="https://developer-sandbox.api.intuit.com/v2/oauth2/tokens/migrate",c.migrate_production="https://developer.api.intuit.com/v2/oauth2/tokens/migrate",c.environment={sandbox:"https://sandbox-quickbooks.api.intuit.com/",production:"https://quickbooks.api.intuit.com/"},c.jwks_uri="https://oauth.platform.intuit.com/op/v1/jwks",c.scopes={Accounting:"com.intuit.quickbooks.accounting",Payment:"com.intuit.quickbooks.payment",Payroll:"com.intuit.quickbooks.payroll",TimeTracking:"com.intuit.quickbooks.payroll.timetracking",Benefits:"com.intuit.quickbooks.payroll.benefits",Profile:"profile",Email:"email",Phone:"phone",Address:"address",OpenId:"openid",Intuit_name:"intuit_name"},c.user_agent=`Intuit-OAuthClient-JS_${l.version}_${a.type()}_${a.release()}_${a.platform()}`,c.prototype.setAuthorizeURLs=function(m){if(!m)throw new Error("Provide the custom authorize URL's");return c.authorizeEndpoint=m.authorizeEndpoint,c.tokenEndpoint=m.tokenEndpoint,c.revokeEndpoint=m.revokeEndpoint,this.environment==="sandbox"?c.userinfo_endpoint_sandbox=m.userInfoEndpoint:c.userinfo_endpoint_production=m.userInfoEndpoint,this},c.prototype.authorizeUri=function(m){if(m=m||{},!m.scope)throw new Error("Provide the scopes");const y=`${c.authorizeEndpoint}?${o.stringify({response_type:"code",redirect_uri:this.redirectUri,client_id:this.clientId,scope:Array.isArray(m.scope)?m.scope.join(" "):m.scope,state:m.state||this.state.create(this.state.secretSync())})}`;return this.log("info","The Authorize Uri is :",y),y},c.prototype.createToken=function(m){return new Promise(y=>{if(!m)throw new Error("Provide the Uri");const g=o.parse(m.split("?").reverse()[0]);this.getToken().realmId=g.realmId?g.realmId:"","state"in g&&(this.getToken().state=g.state);const u={};g.code&&(u.grant_type="authorization_code",u.code=g.code,u.redirect_uri=g.redirectUri||this.redirectUri);const _={url:c.tokenEndpoint,body:u,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":f._urlencodedContentType,Accept:f._jsonContentType,"User-Agent":c.user_agent}};y(this.getTokenRequest(_))}).then(y=>{const g=y.json?y:null,u=g&&g.getJson()||y;return this.token.setToken(u),this.log("info","Create Token response is : ",JSON.stringify(g,null,2)),g}).catch(y=>{throw this.log("error","Create Token () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.refresh=function(){return new Promise(m=>{this.validateToken();const y={};y.grant_type="refresh_token",y.refresh_token=this.getToken().refresh_token;const g={url:c.tokenEndpoint,body:y,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":f._urlencodedContentType,Accept:f._jsonContentType,"User-Agent":c.user_agent}};m(this.getTokenRequest(g))}).then(m=>{const y=m.json?m:null,g=y&&y.getJson()||m;return this.token.setToken(g),this.log("info","Refresh Token () response is : ",JSON.stringify(y,null,2)),y}).catch(m=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.refreshUsingToken=function(m){return new Promise(y=>{if(!m)throw new Error("The Refresh token is missing");const g={};g.grant_type="refresh_token",g.refresh_token=m;const u={url:c.tokenEndpoint,body:g,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":f._urlencodedContentType,Accept:f._jsonContentType,"User-Agent":c.user_agent}};y(this.getTokenRequest(u))}).then(y=>{const g=y.json?y:null,u=g&&g.getJson()||y;return this.token.setToken(u),this.log("info","Refresh usingToken () response is : ",JSON.stringify(g,null,2)),g}).catch(y=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.revoke=function(m){return new Promise(y=>{m=m||{};const g={};g.token=m.access_token||m.refresh_token||(this.getToken().isAccessTokenValid()?this.getToken().access_token:this.getToken().refresh_token);const u={url:c.revokeEndpoint,body:g,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,Accept:f._jsonContentType,"Content-Type":f._jsonContentType,"User-Agent":c.user_agent}};y(this.getTokenRequest(u))}).then(y=>(this.token.clearToken(),this.log("info","Revoke Token () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","Revoke Token () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.getUserInfo=function(){return new Promise(m=>{const y={url:this.environment==="sandbox"?c.userinfo_endpoint_sandbox:c.userinfo_endpoint_production,method:"GET",headers:{Authorization:`Bearer ${this.token.access_token}`,Accept:f._jsonContentType,"User-Agent":c.user_agent}};m(this.getTokenRequest(y))}).then(m=>{const y=m.json?m:null;return this.log("info","The Get User Info () response is : ",JSON.stringify(y,null,2)),y}).catch(m=>{throw this.log("error","Get User Info () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.makeApiCall=function(m){return new Promise(y=>{m=m||{};const g=m.transport?m.transport:i.createTransport({type:"text"}),u=m.headers&&typeof m.headers=="object"?Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:f._jsonContentType,"User-Agent":c.user_agent},m.headers):Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:f._jsonContentType,"User-Agent":c.user_agent}),_={url:m.url,method:m.method||"GET",headers:u,transport:g};m.body&&(_.body=m.body),y(this.getTokenRequest(_))}).then(y=>(this.log("info","The makeAPICall () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","Get makeAPICall () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.validateIdToken=function(m={}){return new Promise(y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||m.id_token,u=g.split("."),_=JSON.parse(e(u[0])),w=JSON.parse(e(u[1]));if(w.iss!=="https://oauth.platform.intuit.com/op/v1"||!w.aud.find(E=>E===this.clientId)||w.exp<Date.now()/1e3)return!1;const v={url:c.jwks_uri,method:"GET",headers:{Accept:f._jsonContentType,"User-Agent":c.user_agent}};return y(this.getKeyFromJWKsURI(g,_.kid,v))}).then(y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),!!y)).catch(y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.getValidatedIdToken=function(m={}){return new Promise(y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||m.id_token,u=g.split("."),_=JSON.parse(e(u[0])),w=JSON.parse(e(u[1]));if(w.iss!=="https://oauth.platform.intuit.com/op/v1"||!w.aud.find(E=>E===this.clientId)||w.exp<Date.now()/1e3)return!1;const v={url:c.jwks_uri,method:"GET",headers:{Accept:f._jsonContentType,"User-Agent":c.user_agent}};return y(this.getKeyFromJWKsURI(g,_.kid,v))}).then(y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.getIdTokenComponents=async function(b={}){if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const y=(this.getToken().id_token||b.id_token).split("."),g=JSON.parse(e(y[0])),u=JSON.parse(e(y[1]));if(u.iss!=="https://oauth.platform.intuit.com/op/v1")throw new Error('The issuer is not as mentioned in "issuer"');if(!u.aud.find(_=>_===this.clientId))throw new Error("The aud field in idToken does not contain application's clientId");if(u.exp<Date.now()/1e3)throw new Error("The timestamp has elapsed");return{id_token_header:g,id_token_payload:u}},c.prototype.getKeyFromJWKsURI=function(m,y,g){return new Promise(u=>{u(this.loadResponse(g))}).then(u=>{if(Number(u.status)!==200)throw new Error("Could not reach JWK endpoint");const w=JSON.parse(u.body).keys.find(E=>E.kid===y),v=this.getPublicKey(w.n,w.e);return d.verify(m,v)}).catch(u=>{throw u=this.createError(u),this.log("error","The getKeyFromJWKsURI () threw an exception : ",JSON.stringify(u,null,2)),u})},c.prototype.getPublicKey=function(m,y){return dy()(m,y)},c.prototype.getTokenRequest=function(m){const y=new f({token:this.token});return new Promise(g=>{g(this.loadResponse(m))}).then(g=>{if(y.processResponse(g),!y.valid())throw new Error("Response has an Error");return y}).catch(g=>{throw g.authResponse||(g=this.createError(g,y)),g})},c.prototype.validateToken=function(){if(!this.token.refreshToken())throw new Error("The Refresh token is missing");if(!this.token.isRefreshTokenValid())throw new Error("The Refresh token is invalid, please Authorize again.")},c.prototype.loadResponse=function(m){return i.get(m).then(y=>y)},c.prototype.loadResponseFromJWKsURI=function(m){return i.get(m).then(y=>y)},c.prototype.createError=function(m,y){return!y||y.body===""?(m.error=y&&y.response.statusText||m.message||"",m.authResponse=y||"",m.intuit_tid=y&&y.headers()&&y.headers().intuit_tid||"",m.originalMessage=m.message||"",m.error_description=y&&y.response.statusText||"",m):(m.authResponse=y,m.originalMessage=m.message,m.error="","error"in y.getJson()?m.error=y.getJson().error:y.response.statusText?m.error=y.response.statusText:m.message&&(m.error=m.message),m.error_description="","error_description"in y.getJson()?m.error_description=y.getJson().error_description:y.response.statusText&&(m.error_description=y.response.statusText),m.intuit_tid=y.headers().intuit_tid,m)},c.prototype.isAccessTokenValid=function(){return this.token.isAccessTokenValid()},c.prototype.getToken=function(){return this.token},c.prototype.setToken=function(m){return this.token=new h(m),this.token},c.prototype.authHeader=function(){const m=`${this.clientId}:${this.clientSecret}`;return typeof btoa=="function"?btoa(m):et.from(m).toString("base64")},c.prototype.log=function(m,y,g){this.logging&&this.logger.log(m,y+g)},Ao=c,Ao}var my=py();const mt=up(my),Kr=(()=>{let e,n,o="";return{initiatedCompanyID:o,init:(t,r)=>{n=new mt({clientId:un.quickbooksKey,clientSecret:"",environment:zl,redirectUri:window.location.origin+t}),e=n.authorizeUri({state:r,scope:[mt.scopes.Accounting,mt.scopes.OpenId,mt.scopes.Email,mt.scopes.Profile]}),o=r},handleClick:()=>{window.open(e,"_self","noopener")}}})();function fs(e){const o=Bo(e,!0).query,i=o.code,a=o.realmId,t=o.state,r=i!=null?decodeURIComponent(i):"",s=a!=null?decodeURIComponent(a):"",d=t!=null?decodeURIComponent(t):"";return{code:r,realmId:s,state:d}}const gy=(e,n,o,i,a)=>e!==""&&n!==""&&o!==""&&i!==null&&i!==""&&a!==null&&a!=="",vy=({code:e,realmId:n,state:o,connectionId:i,signedInuserId:a,tenantId:t,companyId:r,onboardingViewFetchState:s,saveConnectionFetchState:d})=>gy(e,n,o,i,a)===!0&&d!=="In-Progress"&&s==="Completed"&&t!=null&&r!=null,yy=()=>{const e=zo(),{code:n,realmId:o,state:i}=fs(e.search),a=We.getSignedInUser()?.userId??"",t=i==="create-qbo-subscription";if(_y(n,o,i,a))if(t){const r=`/onboarding/${i}?code=${n}&realmId=${o}&state=${i}`;return $.jsx(tr,{to:r})}else{const r=`/onboarding/edit/${i}?code=${n}&realmId=${o}&state=auth_flow`;return $.jsx(tr,{to:r})}return $.jsx(tr,{to:"../../"})},_y=(e,n,o,i)=>e!==""&&n!==""&&o!==""&&i!==null&&i!=="",by=tt.div`
|
|
123
|
+
display: flex;
|
|
124
|
+
height: 100vh;
|
|
125
|
+
width: 100%;
|
|
126
|
+
flex: 1 1 auto;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
align-items: center;
|
|
129
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
130
|
+
box-shadow: ${e=>`0px 2px 4px ${e.theme.colors.dropShadowNormal}`};
|
|
131
|
+
`;function wy(e,n){const{address:o,showNavbarWithClose:i,sectionStyles:a,navbarStyles:t}=n;return{showNavbarWithClose:i,addressToEdit:o?.addressToCreate,loadingState:o?.status.fetchState,googleAPIKey:un.googleMapsAPIKey,sectionStyles:a,navbarStyles:t}}function Ey(e,n){return{onSubmitHandler:o=>{const i=Oy(o);e(md({addressType:"company_address",addressToCreate:i})),n.closeDrawerHandler?.()},onCancel:()=>{n.closeDrawerHandler?.()}}}const Sy=Ge(wy,Ey)(bp);function Ry({closeDrawerHandler:e}){const n=$t(),o=Ve(),i=zo(),{addressType:a}=ct(),t=sn(),r=We.getSignedInUser(),s=Oe(f=>pd("company_address",f));if(r==null)throw Error("Can't access address page without signing in...");const d=f=>f.trackPageLoaded(s?.newAddressId!=null?Lo.Event.editAddress:Lo.Event.addAddress);return a!=null&&!a.match(/(company_address)$/g)?$.jsx(Yo,{}):$.jsxs($.Fragment,{children:[$.jsx(Hl,{analytics:$e,onLoad:d}),$.jsx(by,{windowSize:t,children:$.jsx(Sy,{location:i,navigate:o,address:s,closeDrawerHandler:e,showNavbarWithClose:!0,navbarStyles:{backgroundColor:n.colors.grey5},sectionStyles:{backgroundColor:n.colors.grey5}})})]})}const Oy=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),Ty={drawerLeftMargin:new ut(0,0,240)},xy=({isAddressDrawerOpen:e,closeDrawerHandler:n})=>{const o=$t(),i=sn(),a=Ty.drawerLeftMargin.valuePx(i),t=()=>{n?.()};return $.jsx(ln,{anchor:"right",open:e,PaperProps:{style:{width:`calc(100% - ${a})`}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.8,cursor:"pointer"}}},onClick:()=>t(),children:$.jsx(Iy,{onClick:r=>r.stopPropagation(),children:$.jsx(Ry,{closeDrawerHandler:n})})})},Iy=tt(Gt)`
|
|
132
|
+
display: flex;
|
|
133
|
+
min-height: 100%;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
`,Ay=tt.div`
|
|
136
|
+
display: flex;
|
|
137
|
+
width: 100%;
|
|
138
|
+
height: calc(100vh - 110px);
|
|
139
|
+
flex-direction: row;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
align-items: center;
|
|
142
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
143
|
+
`,Cy=({companyId:e,isOnboardingCustomerDrawerOpen:n,closeDrawerHandler:o})=>{const i=Ve(),a=$t(),t=Ke(),{useFeatureGate:r}=Rt(),[s,d]=le.useState(!1),[f,l]=le.useState(!1),[h,c]=le.useState(!1),[b,m]=le.useState(!1),{isFeatureEnabled:y}=r(fn.isDebitCardFeatureEnabled),g=sr.getLocalizedStrings(),{code:u,realmId:_,state:w}=fs(location.search),v={onOkClick:()=>{d(!1),Y()},onCancelClick:()=>{d(!1)}},E=Oe(X=>gd(X)),{newOnboardedCustomerId:x}=E,O=E.companyView?.company.companyInfo.tenantId,C=E.newOnboardingCustomerLocalData.selectedProducts??[],D=C.includes("zeni_checking")&&!C.includes("bookkeeping"),W=Oe(X=>jl(X)),H=Oe(X=>vd(X)),S=Oe(X=>X.userState),R=E.companyView?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed===!0,L=E.externalConnections?.accounting[0],N=L?.connectionType,V=L?.connectionName,P=L?.connectionId??"",j=E.customerLocalStoreInitState!=="Completed"||E.onboardingCompletedCompanies.fetchState!=="Completed"||H.fetchState==="In-Progress",k=We.getSignedInUser();if(k==null)throw Error("Can't access onboarding customer page without signing in...");const F=le.useCallback(()=>{m(!0),t(ms(!1,!0))},[]),Y=()=>{t(St({selectedStep:""})),t(En()),o()},z=X=>{t(ms(X)),t(St({selectedStep:""}))},B=X=>{X!=null&&i(X==="management"?"../../management":"../")},q=X=>{t(Ed(X))},M=X=>{const J=Py(X,E);t(wd(J)),l(!0)},U=()=>{document.cookie="pre_board_questionnaire_id= ;path=/;",window.open("/pre-onboard")};return le.useEffect(()=>{W.fetchState==="Completed"&&t(yd(y,e))},[e,W.fetchState,S.userByUserId]),le.useEffect(()=>{O!=null&&R!==!0&&!D&&t(_d(k.userId,O))},[O,R]),le.useEffect(()=>{e!=null&&Kr.initiatedCompanyID!==e&&R!==!0&&Kr.init("/cockpit/onboarding/auth",e)},[e]),le.useEffect(()=>{E.sendInviteFetchState.fetchState==="Completed"&&(t(En()),o())},[E.sendInviteFetchState.fetchState]),le.useEffect(()=>{E.customerLocalStoreInitState==="Error"&&i("../../onboarding")},[E.customerLocalStoreInitState]),le.useEffect(()=>{vy({code:u,realmId:_,state:w,connectionId:P,signedInuserId:k.userId,tenantId:O,companyId:e,onboardingViewFetchState:W.fetchState,saveConnectionFetchState:E.externalConnections?.saveConnectionState})&&O!=null&&(t(bd(O,{connection_type:N??"accounting",connection_name:V??"quickbooks_online",authorization_code:u,realm_id:_,connection_id:P,user_id:k.userId},Bo(window.location.origin+"/cockpit/onboarding/auth"),e,k.userId)),i(`/onboarding/edit/${e}`))},[N,V,u,_,w,P,k.userId,E.externalConnections?.saveConnectionState,location.pathname,W.fetchState,O,e]),le.useEffect(()=>{E.fetchState==="Completed"&&(b===!0?e==null&&x!=null?i(`../../onboarding/edit/${x}`):e!=null&&x==null&&Kr.handleClick():(t(En()),o()))},[E.fetchState,e,b]),le.useEffect(()=>{E.externalConnections?.fetchState==="Completed"&&b===!0&&x!=null&&Kr.handleClick()},[E.externalConnections?.fetchState,b,x]),$.jsx(ln,{anchor:"right",open:n,PaperProps:{style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:()=>{f===!0?d(!0):Y()},children:$.jsxs(ky,{children:[s===!0?$.jsx(wp,{titleComponent:$.jsx(jy,{children:g.cockpit.onboarding.discardTitle}),descriptionComponent:$.jsx(Ly,{children:g.cockpit.onboarding.discardDescription}),primaryButtonText:g.cockpit.onboarding.delete,secondaryButtonText:g.cockpit.onboarding.cancel,action:v}):null,j?$.jsx(Ay,{children:$.jsx(cn,{size:"Large",start:!0})}):$.jsxs($.Fragment,{children:[$.jsx(Ep,{localData:E,analytics:$e,onCloseClick:Y,onCompanyDomainBlurred:q,onSaveClick:z,onViewClick:B,onOnboardingCustomerDataUpdated:M,onNavigateToPreOnboarding:U,screenType:e!=null?"edit":"create",onQBOConnectClick:F,qboConnectClicked:b}),h===!0?$.jsx(xy,{isAddressDrawerOpen:h,closeDrawerHandler:()=>{c(!1)}}):null]})]})})},Py=(e,n)=>{const o={},{companySection:i,customerSection:a,groupSection:t,qboConnectionSection:r}=e,{newOnboardingCustomerLocalData:s}=n;return s.companyId==null&&(o.companyEmailDomain=i.companyDomain),s.isEmailGroupCreated!==!0&&(o.groupId=t.groupEmail,o.groupName=t.groupName,o.groupDescription=t.groupDescription),o.email=a.email,o.customerName={firstName:a.customerName.firstName,lastName:a.customerName.lastName},o.name=a.name,o.chargebeeId=a.chargebeeId,o.qboRealmId=a.realmId,o.hubSpotId=a.hubSpotId,o.selectedProducts=a.products.selectedOptions.map(d=>Sd(d)).filter(d=>d!=null),a.entityType.selectedOption!=null?a.entityType.selectedOption?.value==="Subsidiary"?(o.isSubsidiary=!0,a.company.selectedOption!=null&&(o.parentCompanyId=a.company.selectedOption.value)):o.isSubsidiary=!1:o.isSubsidiary=void 0,r.accountingConnectionCreationMode!=null&&(o.accountingConnectionCreationMode=r.accountingConnectionCreationMode),o},ky=tt(Gt)`
|
|
144
|
+
display: flex;
|
|
145
|
+
min-height: 100%;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
`,jy=tt(Zl.H6Regular)`
|
|
148
|
+
margin-top: ${kt.sp7};
|
|
149
|
+
padding-left: ${kt.sp8};
|
|
150
|
+
padding-right: ${kt.sp8};
|
|
151
|
+
color: ${e=>e.theme.colors.primary};
|
|
152
|
+
word-break: break-word;
|
|
153
|
+
`,Ly=tt(Zl.LargeRegularSp)`
|
|
154
|
+
color: ${e=>e.theme.colors.hero};
|
|
155
|
+
padding-left: ${kt.sp8};
|
|
156
|
+
padding-right: ${kt.sp8};
|
|
157
|
+
margin-bottom: 30px;
|
|
158
|
+
margin-top: ${kt.sp4};
|
|
159
|
+
white-space: pre-line;
|
|
160
|
+
`,Sl=(()=>{let e="",n;return{init:(a,t="create-qbo-subscription")=>{n=new mt({clientId:un.quickbooksKey,clientSecret:"",environment:zl,redirectUri:`${window.location.origin}${a}`}),e=n.authorizeUri({state:t,scope:[mt.scopes.Accounting,mt.scopes.OpenId,mt.scopes.Email,mt.scopes.Profile]})},handleClick:()=>{window.open(e,"_self","noopener")}}})(),qy=(e,n,o,i)=>e!==""&&n!==""&&o!==""&&i!=null&&i!=="",Ny=({code:e,realmId:n,state:o,signedInuserId:i})=>qy(e,n,o,i)===!0;function Dy(e,n){return{headerActions:{onTabChange:o=>{const i=Nt(o),a=Vt(o);$e.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(St({filterText:i}))}}},onboardingPageActions:{onOnboardingStepClicked:(o,i)=>{e(St({selectedStep:i})),n.navigate(`../edit/${o}`)},onCancelClicked:()=>{e(St({showGoLivePopUp:!1}))},onGoLiveClicked:o=>{e(Pd(o.companyId,o))},onUpdateCustomerCreationStatus:()=>{e(Cd())},onSendInviteClick:o=>{e(Ad(o))},onColumnSortConfigChanged:(o,i)=>{e(St({sortKey:o,sortOrder:i}))},redirectToDashboardOnboarding:o=>{window.open(`/${o}/onboarding`)},onRetryBankAccountConnection:o=>{e(Id({companyId:o}))},onFilterTextChanged:(o,i)=>{e(St({filterText:i}))},onCockpitReloadData:o=>{o==="onboarding"&&(e(Ll()),e(ql()))},onQBOConnectClick:()=>{Sl.init("/cockpit/onboarding/auth","create-qbo-subscription"),Sl.handleClick()},onScroll:o=>{}}}}function My(e,n){return{headerData:{selectedTabOption:xt("onboarding")},onboardingPageData:{onboardingView:n.onboardingView,loggedInUser:n.signedInUser,qboConnectionPoolFlag:n.qboConnectionPoolFlag}}}const Fy=Ge(My,Dy)(Sp);function Jr({isOnboardingCustomerDrawerOpen:e}){const n=Ve(),o=Ke(),i=Dt(),{onboardingCustomerCompanyId:a}=ct(),[t,r]=le.useState(!1),{useDynamicConfig:s}=Rt(),{configValue:d}=s(Lt.qboConnectionPoolEnablement),{code:f,realmId:l,state:h}=fs(location.search),c=Oe(g=>jl(g)),b=We.getSignedInUser();if(b==null)throw Error("Can't access onboarding customer page without signing in...");le.useEffect(()=>{e!=null&&e===!0?r(!0):r(!1)},[e]);const m=Oe(g=>g.companyViewState.zeniUsers.fetchState);le.useEffect(()=>{c.fetchState==="Completed"?o(qt(!1)):(c.fetchState==="Not-Started"||c.fetchState==="Error")&&(o(Ll()),(m==="Not-Started"||m==="Error")&&o(Tt()),c.qboConnectionPool.fetchState==="Not-Started"&&o(ql()))},[c.fetchState]),le.useEffect(()=>{c.updateStatus.fetchState==="Completed"&&(o(on(!0)),o(Uo(!0)),o($o(!0)),o(Rd()),c.uiState.showGoLivePopUp&&o(St({showGoLivePopUp:!1})),setTimeout(()=>{o(Od())},5e3))},[c.updateStatus.fetchState]),le.useEffect(()=>{Ny({code:f,realmId:l,state:h,signedInuserId:b.userId})&&h==="create-qbo-subscription"&&(o(Td({connection_type:"accounting",connection_name:"quickbooks_online",connection_id:"",authorization_code:f,realm_id:l,user_id:b.userId},Bo(window.location.origin+"/cockpit/onboarding/auth"),b.userId)),n("/onboarding"))},[f,l,h,b.userId,location.pathname]);const y=()=>{r(!1),o(xd()),n("../")};return $.jsxs($.Fragment,{children:[t===!0?$.jsx(Cy,{isOnboardingCustomerDrawerOpen:t,closeDrawerHandler:y,companyId:a}):null,$.jsx(Fy,{initialOpenThreadRequest:i??void 0,onboardingView:c,qboConnectionPoolFlag:Array.isArray(d.userEmailAccessForQBOConnectionPool)&&d.userEmailAccessForQBOConnectionPool.includes(b.userEmail),navigate:n,signedInUser:b})]})}function By(){return $.jsxs(bt,{children:[$.jsx(Te,{path:"/",element:$.jsx(Pe,{element:$.jsx(Jr,{})})}),$.jsx(Te,{path:"/new",element:$.jsx(Pe,{element:$.jsx(Jr,{isOnboardingCustomerDrawerOpen:!0})})}),$.jsx(Te,{path:"/edit/:onboardingCustomerCompanyId",element:$.jsx(Pe,{element:$.jsx(Jr,{isOnboardingCustomerDrawerOpen:!0})})}),$.jsx(Te,{path:"/auth",element:$.jsx(Pe,{element:$.jsx(yy,{})})}),$.jsx(Te,{path:"/*",element:$.jsx(Pe,{element:$.jsx(Jr,{})})})]})}function Uy(e,n){return{headerActions:{onTabChange:o=>{const i=Nt(o),a=Vt(o);$e.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(Yt({filterText:i}))},onFiltersChange:(o,i)=>{e(Yt({filters:i}))}}},portfolioPageActions:{onColumnSortConfigChanged:(o,i)=>{e(Yt({sortKey:o,sortOrder:i}))},onScroll:o=>{e(Yt({scrollYOffset:o}))},onCompanyNameClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onFiltersChange:(o,i)=>{e(Yt({filters:i}))},onCockpitReloadData:o=>{o==="portfolio"&&e(Uo())}}}}function $y(e,n){return{headerData:{selectedTabOption:xt("portfolio")},portfolioPageData:{portfolioView:n.portfolioView}}}const Vy=Ge($y,Uy)(Rp);function Rl(){const e=Ve(),n=Ke(),o=Dt(),i=Oe(t=>kd(t)),a=Oe(t=>t.companyViewState.zeniUsers.fetchState);return le.useEffect(()=>{i.fetchState==="Completed"?n(qt(!1)):(i.fetchState==="Not-Started"||i.fetchState==="Error")&&(n(Uo()),(a==="Not-Started"||a==="Error")&&n(Tt()))},[i.fetchState]),$.jsx(Vy,{initialOpenThreadRequest:o??void 0,portfolioView:i,navigate:e})}function Gy(){return $.jsxs(bt,{children:[$.jsx(Te,{path:"/",element:$.jsx(Pe,{element:$.jsx(Rl,{})})}),$.jsx(Te,{path:"/*",element:$.jsx(Pe,{element:$.jsx(Rl,{})})})]})}function zy(e,n){const{merchantId:o}=n,i=Vo(e);return{tenantMerchant:o!=null?Ld(e,o):void 0,globalMerchantView:i,analytics:$e}}function Hy(e,n){const{merchantId:o,navigate:i}=n;return{updateCreateGlobalMerchantLocalData:(a,t,r)=>{e(Dl(a,t,r!=null?Nd(r):void 0))},fetchRecommendation:()=>{e(Nl("global"))},onSaveClick:()=>{e(qd(o,"vendor_global_review"))},onBackClick:()=>{i("../vendors")}}}const Zy=Ge(zy,Hy)(Op);function Yy(){const e=Ve(),n=Ke(),{merchantId:o}=ct(),i=Oe(a=>Vo(a).newGlobalMerchantData?.status.fetchState);return le.useEffect(()=>{i==="Completed"&&(n(jd()),e("../vendors"))},[i]),$.jsx(Zy,{merchantId:o,navigate:e})}function Wy(e){const n=Dd(e);return{vendorGlobalReviewView:Md(e),globalMerchantAutoCompleteView:n,analytics:$e}}function Ky(e,n){const{navigate:o}=n;return{onApproveGlobalReview:i=>{e(Gd(i))},onRejectGlobalReview:i=>{e(Vd(i))},onCreateGlobalMerchant:(i,a,t)=>{a!=null&&(e(Dl(a,null,t)),e(Nl("global"))),i!=null?o(`./create/${i}`):o("./create")},onFetchGlobalReviewList:(i,a,t)=>{e(Ml(i,a,t))},onUpdateGlobalReviewUIState:i=>{e($d(i))},onFetchGlobalMerchantAutoCompleteResults:i=>{e(Ud({searchString:i,globalMerchantType:"vendor"}))},onUpdateSelectedGlobalMerchant:(i,a,t)=>{const r=Xy(a);e(Bd({merchantId:i,currentSelection:r,customMerchantId:t}))},onClearGlobalMerchantAutoCompleteResults:()=>{e(Fd())},onBackClick:()=>{o("../../management")}}}const Jy=Ge(Wy,Ky)(Tp);function Co(){const e=Ve(),n=Ke(),o=qo("/reconciliation/vendors/create/*")!=null,i=Oe(t=>Vo(t));le.useEffect(()=>{o&&i.fetchState==="Not-Started"&&e("../vendors"),n(Ml(void 0,!1))},[]);const a=t=>t.trackPageLoaded(Lo.Event.vendorGlobalReviewListPage);return $.jsxs($.Fragment,{children:[$.jsx(Hl,{analytics:$e,onLoad:a}),$.jsx(fr,{isOpen:o,drawerLeftMargin:new ut(0,0,300,450),onClose:()=>{i.newGlobalMerchantData!=null&&$e.trackVendorReviewNewVendorCanceled({reviewSource:"global_review",newRequestedVendorName:i.newGlobalMerchantData.globalMerchantName,tenantName:null,recommendedVendorName:i.recommendedGlobalMerchants[0]?.globalMerchantName??null,recommendedVendorReason:i.recommendedGlobalMerchants[0]?.reason??null}),e("../vendors")},children:$.jsx(Qy,{onClick:t=>t.stopPropagation(),children:$.jsx(Yy,{})})}),$.jsx(Jy,{navigate:e})]})}const Xy=e=>e.originalVendor===!0?"originalVendor":e.recommendedFirst===!0?"recommendedFirst":e.recommendedSecond===!0?"recommendedSecond":e.requested===!0?"requested":null,Qy=tt(Gt)`
|
|
161
|
+
display: flex;
|
|
162
|
+
min-height: 100%;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
`;function e_(){return $.jsxs(bt,{children:[$.jsx(Te,{path:"/vendors",element:$.jsx(Pe,{element:$.jsx(Co,{})})}),$.jsx(Te,{path:"/vendors/create",element:$.jsx(Pe,{element:$.jsx(Co,{})})}),$.jsx(Te,{path:"/vendors/create/:merchantId",element:$.jsx(Pe,{element:$.jsx(Co,{})})})]})}const t_=tt.div`
|
|
165
|
+
display: flex;
|
|
166
|
+
width: 100%;
|
|
167
|
+
height: calc(100vh - 110px);
|
|
168
|
+
flex-direction: row;
|
|
169
|
+
justify-content: center;
|
|
170
|
+
align-items: center;
|
|
171
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
172
|
+
`;function r_(e,n){const{companyId:o,reviewView:i}=n;return{allUsers:i.zeniUsers,companyView:i.companies.find(a=>a.companyId===o)}}function n_(e,n){const{companyId:o}=n;return{onRetryBankAccountConnection:()=>{o!=null&&e(Fl({companyId:o}))},onCloseClick:()=>{n.navigate("../")}}}const i_=Ge(r_,n_)(xp);function a_(){const e=Ve(),{companyId:n}=ct(),o=Oe(i=>or(i));return $.jsx($.Fragment,{children:o.fetchState==="In-Progress"?$.jsx(t_,{children:$.jsx(cn,{size:"Large",start:!0})}):$.jsx(i_,{companyId:n,reviewView:o,navigate:e})})}function o_(e,n){const{expenseAutomationEnabledCompanies:o,navigate:i}=n;return{headerActions:{onTabChange:a=>{const t=Nt(a),r=Vt(a);$e.trackCockpitTabClicked(r),i(`../../${t}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,t)=>{e(Sn({filterText:t}))}}},reviewPageActions:{onColumnSortConfigChanged:(a,t)=>{e(Sn({sortKey:a,sortOrder:t}))},onTransactionTagClicked:(a,t,r)=>{const s=o.includes(a.companyId);t==="expense"&&s?window.open(`/${a.primaryEmailDomain}/month_end_close_checks/review`):window.open(`/${a.primaryEmailDomain}/transactions/${r}-${t}`)},onReviewVendorTagClicked:a=>window.open(`/${a.primaryEmailDomain}/vendors/review`),onCompanyNameClicked:a=>window.open(`/${a.primaryEmailDomain}/dashboard`),onRetryBankAccountConnection:a=>{e(Fl({companyId:a}))},onUncategorizedAccountsErrorClick:a=>{window.open(`/${a}/accounts/mapping`)},onClickAuditScore:a=>{if(a!=null){const t=`./report/${encodeURIComponent(a)}`;i(t)}},onClickWarningsCount:a=>{if(a!=null){const t=`./warnings/${encodeURIComponent(a)}`;i(t)}},onFilterTextChanged:(a,t)=>{e(Sn({filterText:t}))},onCockpitReloadData:a=>{a==="audit"&&e(jt())},onScroll:a=>{}}}}function s_(e,n){return{headerData:{selectedTabOption:xt("audit")},reviewPageData:{reviewView:n.reviewView,zeniUserFetchState:n.zeniUserFetchState,allUsers:n.reviewView.zeniUsers,isReviewVendorColumnVisible:n.isReviewVendorColumnVisible},analytics:$e}}const u_=Ge(s_,o_)(Ip);function Po(){const e=Ve(),n=Ke(),o=Dt(),i=qo("/audit/report/*")!=null,a=qo("/audit/warnings/*")!=null,{useFeatureGate:t}=Rt(),{isFeatureEnabled:r}=t(fn.isReviewTabVendorColumnEnabled),{useDynamicConfig:s}=Rt(),{configValue:d}=s(Lt.expenseAutomationEnablement),f=Oe(c=>or(c)),l=Oe(c=>an(c)),h=Oe(c=>c.companyViewState.zeniUsers.fetchState);return le.useEffect(()=>{f.fetchState==="Completed"?n(qt(!1)):(f.fetchState==="Not-Started"||f.fetchState==="Error")&&(n(jt()),(h==="Not-Started"||h==="Error")&&n(Tt()))},[f.fetchState]),le.useEffect(()=>{f.fetchState==="Completed"&&l.fetchState==="Not-Started"&&n(Mo())},[f.fetchState]),$.jsxs($.Fragment,{children:[$.jsx(fr,{isOpen:i||a,drawerLeftMargin:i?new ut(0,0,0,0):a?new ut(0,0,300,650):new ut(0,0,300,650),onClose:()=>{i&&n(jt()),e("../")},children:$.jsx(c_,{onClick:c=>c.stopPropagation(),children:i?$.jsx(Xl,{}):a?$.jsx(a_,{}):null})}),$.jsx(u_,{initialOpenThreadRequest:o??void 0,reviewView:f,navigate:e,isReviewVendorColumnVisible:r,zeniUserFetchState:h,expenseAutomationEnabledCompanies:d.expenseAutomationEnabledCompanies!=null&&Array.isArray(d.expenseAutomationEnabledCompanies)?d.expenseAutomationEnabledCompanies:[]})]})}const c_=tt(Gt)`
|
|
173
|
+
display: flex;
|
|
174
|
+
min-height: 100%;
|
|
175
|
+
flex-direction: column;
|
|
176
|
+
`;function f_(){return $.jsxs(bt,{children:[$.jsx(Te,{path:"/report/:companyId",element:$.jsx(Pe,{element:$.jsx(Po,{})})}),$.jsx(Te,{path:"/warnings/:companyId",element:$.jsx(Pe,{element:$.jsx(Po,{})})}),$.jsx(Te,{path:"/*",element:$.jsx(Pe,{element:$.jsx(Po,{})})})]})}function l_(e,n){const o=Bl(e,n.tenantId),i=o.estimateStatus?.fetchState!=="In-Progress"?void 0:"readonly";return{localData:o,isDisabled:i}}function h_(e,n){const{tenantId:o,companyId:i,location:a,navigate:t}=n;return{onSubscriptionDetailsChanged:r=>{const{addPlan:s,invoiceOption:d}=r,{subscriptionPlan:f,recurringAddOns:l,coupon:h}=s,c={subscriptionPlanId:f.selectedOption??"",subscriptionAddOnIds:l.filter(b=>b.selectedOption!=null).map(b=>b.selectedOption),subscriptionCouponIds:h.selectedOption!=null?[h.selectedOption]:[],invoiceImmediately:d.invoicingOption!=null};s.planStartDate!=null&&(c.startDate=Xr(s.planStartDate.toString())),e(Ul({tenantId:o,subscriptionData:c}))},onEstimateSuccess:()=>{const r=Jl(a.state?.pathnameStackToGoBack,a.pathname);t(`../tenants/${o}/companies/${i}/summary`,{state:{pathnameStackToGoBack:r}})},onReviewClick:()=>{e(zd(o))},onBackClick:()=>{t(`../tenants/${o}/companies/${i}`)},onResetClick:()=>{e(Go(o))}}}const d_=Ge(l_,h_)(Ap),p_=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e;return $.jsx(d_,{tenantId:n,companyId:o,location:i,navigate:a})};function m_(e,n){const{companyId:o,tenantId:i}=n,a=Zd(e,o,i),t=a.fetchState!=="In-Progress";return{subscriptionDetailView:a,canUpdate:t}}function g_(e,n){const{tenantId:o,location:i,navigate:a}=n;return{onUpdateOrAddPlanClick:t=>{e(Go(o,t)),e(Yd()),e(Wd()),e(Kd()),t!=null?a(`${i.pathname}/update`):a(`${i.pathname}/add`)},onCloseClick:()=>{a("../")}}}const v_=Ge(m_,g_)(Cp),y_=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e,t=Ke(),[r,s]=le.useState(!1),d=Oe(f=>f.subscriptionViewState.subscriptionDetailsByCompanyId[o]?.fetchStatus);return le.useEffect(()=>{!r&&(d==null||d?.fetchState==="Not-Started")&&(s(!0),t(Hd(o)))},[r,d,o,t]),le.useEffect(()=>{r&&d!=null&&d?.fetchState==="Error"&&a("../subscription")},[r,d]),$.jsx(v_,{tenantId:n,companyId:o,location:i,navigate:a})};function __(e,n){return{subscriptionEstimateData:Jd(e,n.tenantId)}}function b_(e,n){const{tenantId:o,companyId:i,location:a,navigate:t}=n,r=()=>{const s=om(a.state?.pathnameStackToGoBack),d=s.poppedPathname??sm(1);t(d,{state:{pathnameStackToGoBack:s.newStack}})};return{onBackClick:()=>{r()},onCancelClick:()=>{r()},onConfirmClick:()=>{e(Xd(o))},onConfirmSuccess:()=>{t(`../tenants/${o}/companies/${i}`)}}}const w_=Ge(__,b_)(Pp),E_=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e;return $.jsx(w_,{companyId:o,tenantId:n,location:i,navigate:a})};function S_(e,n){const o=Bl(e,n.tenantId),i=o.estimateStatus.fetchState!=="In-Progress"?void 0:"readonly";return{localData:o,isDisabled:i}}function R_(e,n){const{tenantId:o,companyId:i,location:a,navigate:t}=n;return{onSubscriptionDetailsChanged:r=>{const{updatePlan:s,applyChanges:d}=r,{subscriptionPlan:f,recurringAddOns:l,coupon:h}=s,c={subscriptionPlanId:f.selectedOption??"",subscriptionAddOnIds:l.filter(b=>b.selectedOption!=null).map(b=>b.selectedOption),subscriptionCouponIds:h.selectedOption!=null?[h.selectedOption]:[],invoiceImmediately:!0,applyEndOfTerm:d.changeType==="applyEndOfTerm",shouldProrate:d.shouldProrate};e(Ul({tenantId:o,subscriptionData:c}))},onEstimateSuccess:()=>{const r=Jl(a.state?.pathnameStackToGoBack,a.pathname);t(`../tenants/${o}/companies/${i}/summary`,{state:{pathnameStackToGoBack:r}})},onReviewClick:()=>{e(Qd(o))},onBackClick:()=>{t(`../tenants/${o}/companies/${i}`)},onResetClick:r=>{e(Go(o,r.subscription.subscription.subscriptionId))}}}const O_=Ge(S_,R_)(kp),T_=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e;return $.jsx(O_,{tenantId:n,companyId:o,location:i,navigate:a})},Hh=["add","update","summary"],x_=e=>tp(e,Hh),I_=e=>ep(e,Hh),A_=()=>{const[e,n]=le.useState(!0),{tenantId:o,companyId:i,updatePageType:a}=ct(),t=Ve(),r=Oe(d=>o!=null?d.subscriptionViewState.subscriptionUpdateViewDataByTenantId[o]:null);if(We.getSignedInUser()==null)throw Error("Can't access subscription details drawer without signing in...");return le.useEffect(()=>{(r==null&&a!=null||I_(a??"")==null)&&t(`../tenants/${o}/companies/${i}`)},[r]),$.jsx(fr,{isOpen:e,onClose:()=>{n(!1),t("../subscription")},children:$.jsx(P_,{children:$.jsx(C_,{tenantId:o,companyId:i,updatePageType:a!=null?x_(a):void 0})})})},C_=({tenantId:e,companyId:n,updatePageType:o})=>{const i=Ve(),a=zo(),t={tenantId:e,companyId:n,navigate:i,location:a};if(o==null)return $.jsx(y_,{...t});switch(o){case"update":return $.jsx(T_,{...t});case"add":return $.jsx(p_,{...t});case"summary":return $.jsx(E_,{...t});default:return console.error("Subscription Update Page - Invalid Url"),$.jsx(tr,{to:"/",replace:!0})}},P_=tt(Gt)`
|
|
177
|
+
display: flex;
|
|
178
|
+
min-height: 100%;
|
|
179
|
+
`;function k_(e,n){return{headerActions:{onTabChange:o=>{const i=Nt(o),a=Vt(o);$e.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(Bt({filterText:i}))},onFiltersChange:(o,i)=>{e(Bt({filters:i}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(o,i)=>{e(Bt({sortKey:o,sortOrder:i}))},onCollapseToggled:(o,i)=>{e(Bt({isRowCollapseToggled:{companyId:o,isCollapsed:i}}))},onScroll:o=>{e(Bt({scrollYOffset:o}))},changeHandlers:(o,i)=>{const a=q_(i);Object.keys(a).length>0&&e(Fo(o,a))},onCompanyNameClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(o,i)=>{e(np({tenantId:i})),n.navigate(`../tenants/${i}/companies/${o}`)},onFiltersChange:(o,i)=>{e(Bt({filters:i}))},onCockpitReloadData:o=>{o==="subscription"&&e($o())}}}}function j_(e,n){return{headerData:{selectedTabOption:xt("subscription")},subscriptionPageData:{loggedInUser:n.signedInUser,subscriptionView:n.subscriptionView}}}const L_=Ge(j_,k_)(jp);function ko({isDrawerOpen:e}){const n=Ve(),o=Ke(),i=Dt(),a=Oe(s=>rp(s)),t=Oe(s=>s.companyViewState.zeniUsers.fetchState);le.useEffect(()=>{a.fetchState==="Completed"?o(qt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&(o($o()),(t==="Not-Started"||t==="Error")&&o(Tt()))},[a.fetchState]);const r=We.getSignedInUser();return $.jsxs($.Fragment,{children:[e===!0?$.jsx(A_,{}):null,$.jsx(L_,{initialOpenThreadRequest:i??void 0,signedInUser:r,subscriptionView:a,navigate:n})]})}const q_=e=>{const{users:n}=e;return n?{users:n}:{}};function N_(){return $.jsxs(bt,{children:[$.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId",element:$.jsx(Pe,{element:$.jsx(ko,{isDrawerOpen:!0})})}),$.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId/:updatePageType",element:$.jsx(Pe,{element:$.jsx(ko,{isDrawerOpen:!0})})}),$.jsx(Te,{path:"/*",element:$.jsx(Pe,{element:$.jsx(ko,{})})})]})}function D_(e,n){const{navigate:o}=n;return{headerActions:{onTabChange:i=>{const a=Nt(i);o(`../../${a}`,{replace:!0})}},taskManagerPageActions:{onRowClick:(i,a)=>{window.open(`/${i}/tasks/${a}`)},onCockpitReloadData:i=>{i==="taskManager"&&e(jo(null,"dueDate","descending",!1))},onFetchTaskManagerView:(i,a,t,r,s)=>{e(jo(i,a,t,r,s))}}}}function M_(e,n){return{headerData:{selectedTabOption:xt("taskManager")},isBirdsEyeViewEnabled:n.isBirdsEyeViewEnabled,taskManagerPageData:{companyTaskManagerView:n.companyTaskManagerView}}}const F_=Ge(M_,D_)(Lp);function Ol(){const e=Ve(),n=Ke(),o=Dt(),{useFeatureGate:i}=Rt(),{isFeatureEnabled:a}=i(fn.isBirdsEyeViewEnabled),t=Oe(f=>ip(f)),r=Oe(f=>ap(f)),s=Oe(f=>f.companyViewState.zeniUsers.fetchState);if(le.useEffect(()=>{t.fetchState==="Completed"?n(qt(!1)):(t.fetchState==="Not-Started"||t.fetchState==="Error")&&(n(jo(null,"dueDate","descending",!1)),(s==="Not-Started"||s==="Error")&&n(Tt()))},[t.fetchState]),le.useEffect(()=>{a&&(t.metricsFetchState==="Not-Started"||t.metricsFetchState==="Error")&&n(op())},[a,t.metricsFetchState]),We.getSignedInUser()==null)throw Error("Can't access task manager page without signing in...");return $.jsx(F_,{companyTaskManagerView:t,isBirdsEyeViewEnabled:a,initialOpenThreadRequest:o,navigate:e,reviewCount:r})}function B_(){return $.jsxs(bt,{children:[$.jsx(Te,{path:"/",element:$.jsx(Pe,{element:$.jsx(Ol,{})})}),$.jsx(Te,{path:"/*",element:$.jsx(Pe,{element:$.jsx(Ol,{})})})]})}let Tl=!1;const U_=qp(()=>sp(()=>Promise.resolve().then(()=>Im),void 0));function ib(){const e=We.getSignedInUser(),n=$t().mode;return le.useEffect(()=>{We.isSignedIn()&&!Tl&&e!=null&&(Np(e,n),Tl=!0)},[e]),$.jsxs(bt,{children:[$.jsx(Te,{path:"/management/*",element:$.jsx(qm,{})}),$.jsx(Te,{path:"/subscription/*",element:$.jsx(N_,{})}),$.jsx(Te,{path:"/onboarding/*",element:$.jsx(By,{})}),$.jsx(Te,{path:"/portfolio/*",element:$.jsx(Gy,{})}),$.jsx(Te,{path:"/audit/*",element:$.jsx(f_,{})}),$.jsx(Te,{path:"/reconciliation/*",element:$.jsx(e_,{})}),$.jsx(Te,{path:"/health-monitor/*",element:$.jsx(um,{})}),$.jsx(Te,{path:"/task-manager/*",element:$.jsx(B_,{})}),$.jsx(Te,{path:"/*",element:$.jsx(U_,{})})]})}export{ib as default};
|