@zeniai/web-cockpit-ui 2.2.15-qa → 2.2.16-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.
Files changed (40) hide show
  1. package/dist/assets/{CreditAgentRoutes-Zg1odt5E.js → CreditAgentRoutes-DeCvXHj2.js} +1 -1
  2. package/dist/assets/{Preview-ihmx96DR.js → Preview-BBAG_kxH.js} +1 -1
  3. package/dist/assets/{ScreenRoutes-DRCn077l.js → ScreenRoutes-DwpWcWOe.js} +42 -42
  4. package/dist/assets/{SignInScreen-BeCjiDTq.js → SignInScreen-1-bc7aBf.js} +1 -1
  5. package/dist/assets/analytics-C3CbLUFs.js +68 -0
  6. package/dist/assets/{analyticsHelper-B6Buziaw.js → analyticsHelper-CVo0BXU_.js} +1 -1
  7. package/dist/assets/{core--sq_KOYY.js → core-zE-4Urs9.js} +1 -1
  8. package/dist/assets/{dash.all.min-B7GMmL-L.js → dash.all.min-CHdql9IC.js} +1 -1
  9. package/dist/assets/{empty-By4ex-GK.js → empty-BAzk1u38.js} +1 -1
  10. package/dist/assets/{empty-BETASsbf.js → empty-cBKhQyao.js} +1 -1
  11. package/dist/assets/{epic-C36KHu6w.js → epic-Cfcjgd4g.js} +1 -1
  12. package/dist/assets/{index-Dmu3xKK_.js → index-BbcO_I5e.js} +2 -2
  13. package/dist/assets/{index-BGMjRbAa.js → index-BgNHA7pd.js} +1 -1
  14. package/dist/assets/{index-NXSIkJTk.js → index-CHTLriEc.js} +1 -1
  15. package/dist/assets/{index-Chwxpeec.js → index-DVDhe6Ox.js} +1 -1
  16. package/dist/assets/{index-BzzVu0Vq.js → index-D_HX1PXt.js} +1 -1
  17. package/dist/assets/{index-aHFloNPS.js → index-DpeFF2UP.js} +3207 -3207
  18. package/dist/assets/{index--6bcBS5v.js → index-mV-K9vOp.js} +1 -1
  19. package/dist/assets/{lexical-BjoDWCKn.js → lexical-Cp5ytbbV.js} +1 -1
  20. package/dist/assets/{liveblocks-Dq-3G9Ov.js → liveblocks-zl-P6B9w.js} +1 -1
  21. package/dist/assets/{lottie-BwIAhUUa.js → lottie-CvTGUdeN.js} +1 -1
  22. package/dist/assets/{mui-CMZ_7prp.js → mui-52aep8im.js} +1 -1
  23. package/dist/assets/{react-CwoSad1v.js → react-BVF4dJr-.js} +1 -1
  24. package/dist/assets/{react-DNNkMVNG.js → react-BagS0TOW.js} +1 -1
  25. package/dist/assets/{react-Dc8vQ9ZE.js → react-BuH4YK3q.js} +2 -2
  26. package/dist/assets/{react--plkVsQQ.js → react-CSm_iOyR.js} +1 -1
  27. package/dist/assets/{react-BUd-XUek.js → react-CUhWvJii.js} +1 -1
  28. package/dist/assets/{react-CAbDFArY.js → react-Co08tM_8.js} +1 -1
  29. package/dist/assets/{react-zTNx69No.js → react-DQS-GOGA.js} +1 -1
  30. package/dist/assets/{react-9VygPJCw.js → react-ZZwVyzS9.js} +1 -1
  31. package/dist/assets/{recharts-BXOpQ8pX.js → recharts-CR9pSNwN.js} +1 -1
  32. package/dist/assets/{sentry-DJq-9uF3.js → sentry-C57tYRao.js} +1 -1
  33. package/dist/assets/{url-B0fuLM3O.js → url-C_g5zgZt.js} +1 -1
  34. package/dist/assets/url-DRTu5sBB.js +6 -0
  35. package/dist/assets/{utils-ezsICnxl.js → utils-k9ogT3EH.js} +2 -2
  36. package/dist/assets/{zeni-epic-state-BD4IbcS7.js → zeni-epic-state-B21jt7ya.js} +3 -3
  37. package/dist/index.html +1 -1
  38. package/package.json +3 -3
  39. package/dist/assets/analytics-B-AAvktw.js +0 -68
  40. package/dist/assets/url-DvJdynft.js +0 -6
@@ -0,0 +1,68 @@
1
+ import"./sentry-C57tYRao.js";import{H as ct}from"./zeni-epic-state-B21jt7ya.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="986a37ee-db13-4207-ac6a-b9c402196529",e._sentryDebugIdIdentifier="sentry-dbid-986a37ee-db13-4207-ac6a-b9c402196529")}catch{}})();var Tn={},_r={},Pt={},$o;function pc(){if($o)return Pt;$o=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.EVENTS_WITHOUT_SUPER_PROPERTIES=Pt.Event=void 0;var e;return(function(t){t.dashboard="Dashboard",t.cashBalance="Cash Balance",t.cardBalance="Card Balance",t.cashPosition="Cash Position",t.revenues="Revenues",t.operatingExpenses="Operating Expenses",t.topExpenses="Top Expenses",t.burnRate="Burn Rate",t.cashInCashOut="Cash In, Cash Out",t.howItWorks="How It Works",t.insights="Insights",t.brexAd="Brex Ad",t.companyPassport="Company Passport",t.addAddress="Add Address",t.editAddress="Edit Address",t.saveAddressClicked="Save Address Clicked",t.reports="Reports",t.profitAndLoss="Profit & Loss",t.balanceSheet="Balance Sheet",t.cashFlow="Cash Flow",t.profitAndLossWithForecast="Profit & Loss with Forecast",t.balanceSheetWithForecast="Balance Sheet with Forecast",t.cashFlowWithForecast="Cash Flow with Forecast",t.sidePanelClicked="Side Panel Clicked",t.transactionList="Transaction List",t.transactionDetails="Transaction Details",t.transactionDetailsSave="Transaction Details Save",t.transactionTypeUpdateTriggered="Transaction Type Update Triggered",t.transactionDetailReceiptOpened="Transaction Details Receipt Opened",t.transactionDetailReceiptDeleted="Attachment Deleted",t.transactionDetailReceiptAdded="Transaction Details Receipt Added",t.compareMode="Compare Mode",t.compareFilterChange="Compare Filter Change",t.compareFilterTimeframe="Compare Filter Timeframe",t.dateRangeFilter="Date Range Filter",t.timeframeSwitch="Timeframe Switch",t.graphBar="Graph Bar",t.cardStatementCloseDateClicked="Card Statement Close Date Clicked",t.cardStatementCloseDateSaved="Card Statement Close Date Saved",t.forecast="Forecast",t.forecastSwitch="Forecast Switch",t.forecastVsActualMode="Forecast vs Actual Mode",t.members="Members",t.inviteSent="Invite Sent",t.roleChanged="Role Changed",t.removeUserAccess="Remove User Access",t.resendInvite="Resend Invite",t.companySwitch="Company Switch",t.download="Download",t.sort="Sort",t.incomeTrend="Income Trend",t.spendTrend="Spend Trend",t.search="Search",t.login="Login",t.loginButton="Login Button",t.signInClick="Sign In click",t.signInViaGoogleMicrosoft="Sign In Via Google Microsoft",t.signInViaEmail="Sign In Via Email",t.signInLinkSent="Sign In Link Sent",t.loginSuccess="Login Success",t.loginFailure="Login Fail",t.logoutButton="Logout Button",t.logoutSuccess="Logout Success",t.logoutFailure="Logout Fail",t.sessionTimeoutPopupShown="Session Timeout Popup Shown",t.sessionTimeoutClicked="Session Timeout Clicked",t.sessionTimeoutAutoLogout="Session Timeout Auto Logout",t.reportGenerated="Report Generated",t.aiCFOPage="AI CFO Page",t.aiCFOChatScreenStateChanged="AI CFO Chat Screen State Changed",t.aiCFOChatSessionChanged="AI CFO Chat Session Changed",t.aiCFOChatSubmitted="AI CFO Chat Submitted",t.aiCFOChatFeedbackGiven="AI CFO Chat Feedback Given",t.aiCFOChatResponseGenerated="AI CFO Chat Response Generated",t.aiCFOChatAnswerGenerated="AI CFO Chat Answer Generated",t.aiCFOOnboardingScreenStateChanged="AI CFO Onboarding Screen State Changed",t.onboardingLinkClicked="Onboarding Invite Link Click",t.onboardingNeedHelp="Onboarding Need Help",t.onboardingInterimNeedHelp="Onboarding Interim Page Need Help",t.onboardingLandingNeedHelp="Onboarding Landing Page Need Help",t.onboardingPage="Onboarding Page",t.onboardingInterimPage="Onboarding Interim Page",t.onboardingLandingPage="Onboarding Landing Page",t.onboardingQBOConnect="Onboarding QBO Connect Clicked",t.onboardingSaveQBOConnection="Onboarding Save QBO Connection",t.onboardingClickUpdatePaymentDetails="Onboarding Landing Page Update Payment Details",t.onboardingSkipAndSave="Onboarding skip (save details if any) and activate dashboard",t.onboardingCompanyOfficerSave="Onboarding Company Officer Save",t.onboardingCompanyDetailsSave="Onboarding Company Details Save",t.onboardingBusinessVerificationCompleted="Onboarding Business Verification Completed",t.onboardingDashboardActivation="Onboarding Dashboard Activation",t.onboardingAiFinanceTeamAcknowledged="Onboarding AI Finance Team Acknowledged",t.onboardingAiFinanceTeamViewed="Onboarding AI Finance Team Viewed",t.onboardingQBOConnectionSuccess="Onboarding QBO Connection Success",t.onboardingQBOConnectionFailed="Onboarding QBO Connection Failed",t.onboardingAddressClicked="Onboarding Address Clicked",t.onboardingDocumentUploaded="Onboarding Document Uploaded",t.onboardingPhoneVerified="Onboarding Phone Verified",t.onboardingStepSkipped="Onboarding Step Skipped",t.onboardingFlowExited="Onboarding Flow Exited",t.onboardingButtonClicked="Onboarding Button Clicked",t.onboardingConnectBank="Onboarding Connect Bank",t.onboardingConnectBankSuccess="Onboarding Connect Bank Success",t.onboardingConnectBankFailure="Onboarding Connect Bank Failure",t.onboardingConnectBankLink="Onboarding Connect Bank Link",t.onboardingConnectBankGetBalance="Onboarding Connect Bank Get Balance",t.onboardingBankConnectAbandoned="Onboarding Bank Connect Abandoned",t.onboardingNewCustomerStarted="Onboarding New Customer Started",t.onboardingNewCustomerGroupCreationCheck="Onboarding New Customer Group Creation Check",t.onboardingZeniManagedQBOConnectionSelected="Onboarding Zeni Managed QBO Connection Selected",t.onboardingCustomerManagedQBOConnectionSelected="Onboarding Customer Managed Connection QBO Selected",t.onboardingZeniManagedQBOConnectionSuccess="Onboarding Zeni Managed QBO Connection Successful",t.onboardingZeniManagedQBOConnectionUnsuccess="Onboarding Zeni Managed QBO Connection Unsuccessful",t.onboardingSendInvite="Onboarding Send Invite",t.onboardingResendInvite="Onboarding Resend Invite",t.onboardingSave="Onboarding Save",t.onboardingBillingAddress="Onboarding Billing Address Clicked",t.onboardingBillingAddressSave="Onboarding Billing Address Save",t.onboardingNext="Onboarding Next",t.onboardingBack="Onboarding Back",t.onboardingActiveStep="Onboarding Active Step",t.onboardingLinkBankAccount="Onboarding Link A Bank Account",t.onboardingLinkBankAccountSuccess="Onboarding Link A Bank Account Success",t.onboardingLinkBankAccountFailure="Onboarding Link A Bank Account Failure",t.onboardingLinkANewBankAccount="Onboarding Link A New Bank Account",t.onboardingLinkANewBankAccountSuccess="Onboarding Link A New Bank Account Success",t.onboardingLinkANewBankAccountFailure="Onboarding Link A New Bank Account Failure",t.onboardingLinkCreditCard="Onboarding Link Credit Card",t.onboardingLinkCreditCardSuccess="Onboarding Link Credit Card Success",t.onboardingLinkCreditCardFailure="Onboarding Link Credit Card Failure",t.onboardingLinkNewCard="Onboarding Link a New Credit Card",t.onboardingLinkNewCardSuccess="Onboarding Link a New Credit Card Success",t.onboardingLinkNewCardFailure="Onboarding Link a New Credit Card Failure",t.onboardingBankAccountPendingVerification="Onboarding Bank Account Pending Verification",t.onboardingBankAccountVerified="Onboarding Bank Account Verified",t.onboardingSwitchToBankAccount="Onboarding Switch To Bank Account",t.onboardingSwitchToBankAccountSuccess="Onboarding Switch To Bank Account Success",t.onboardingSwitchToBankAccountFailure="Onboarding Switch To Bank Account Failure",t.onboardingSwitchToCreditCard="Onboarding Switch To Credit Card",t.onboardingSwitchToCreditCardSuccess="Onboarding Switch To Credit Card Success",t.onboardingSwitchToCreditCardFailure="Onboarding Switch To Credit Card Failure",t.onboardingInterimCardClick="Onboarding Interim Page Card Click",t.onboardingLandingPageCardClick="Onboarding Landing Page Card Click",t.billingLinkNewBankAccount="Billing Link a New Bank Account",t.billingLinkNewBankAccountSuccess="Billing Link a New Bank Account Success",t.billingLinkNewBankAccountFailure="Billing Link a New Bank Account Failure",t.billingSwitchToCreditCard="Billing Switch To Credit Card",t.billingSwitchToCreditCardSuccess="Billing Switch To Credit Card Success",t.billingSwitchToCreditCardFailure="Billing Switch To Credit Card Failure",t.billingSwitchToBankAccount="Billing Switch To Bank Account",t.billingSwitchToBankAccountSuccess="Billing Switch To Bank Account Success",t.billingSwitchToBankAccountFailure="Billing Switch To Bank Account Failure",t.billingLinkNewCard="Billing Link a New Card",t.billingLinkNewCardSuccess="Billing Link a New Card Success",t.billingLinkNewCardFailure="Billing Link a New Card Failure",t.billPayHome="Bill Pay Home",t.billPaySetup="Bill Pay Setup",t.billPayPromoPage="Bill Pay Promo",t.billPayNeedHelp="Bill Pay Need Help",t.billPayBusinessVerification="Bill Pay Business Verification",t.billPayBusinessVerificationSave="Bill Pay Business Verification Save",t.billPayBusinessVerificationSend="Bill Pay Business Verification Send",t.billPayBusinessVerificationAddOfficer="Bill Pay Business Verification Add Officer",t.billPayConnectBank="Bill Pay Connect Bank",t.billPayConnectBankSuccess="Bill Pay Connect Bank Success",t.billPayConnectBankFailure="Bill Pay Connect Bank Failure",t.billPayConnectBankLink="Bill Pay Connect Bank Link",t.billPayConnectBankGetBalance="Bill Pay Connect Bank Get Balance",t.enableBillPay="Enable Bill Pay",t.billPayDrafts="Bill Pay Drafts",t.billPayDraftsOverdue="Bill Pay Drafts Overdue",t.billPayApprovals="Bill Pay Approvals",t.billPayApprovalsAwaitingApproval="Bill Pay Approvals Awaiting Approval",t.billPayApprovalsAwaitingMyApproval="Bill Pay Approvals Awaiting My Approval",t.billPayApprovalsOverdue="Bill Pay Approvals Overdue",t.billPayApprovalsRejected="Bill Pay Approvals Rejected",t.billPayApprovalsDeleted="Bill Pay Approvals Deleted",t.billPayScheduled="Bill Pay Scheduled",t.billPayScheduledFailed="Bill Pay Scheduled Failed",t.billPayScheduledCancelled="Bill Pay Scheduled Cancelled",t.billPayScheduledDeleted="Bill Pay Scheduled Deleted",t.billPayPaid="Bill Pay Paid",t.billPayPaidACH="Bill Pay Paid ACH",t.billPayPaidWire="Bill Pay Paid Wire",t.billPayPaidDeleted="Bill Pay Paid Deleted",t.billPayPaidOffline="Bill Pay Paid Offline",t.billPayNewBill="Bill Pay New Bill",t.billPayInvoiceUpload="Bill Pay Invoice Upload",t.billPaySkipAutofill="Bill Pay Skip Autofill",t.billPayInvoiceActionClick="Bill Pay Invoice Action Click",t.billPayBillDetails="Bill Pay Bill Details",t.billPayEditBill="Bill Pay Edit Bill",t.billPayDeleteBill="Bill Pay Delete Bill",t.billPayCancelBill="Bill Pay Cancel Bill",t.billPayCancelAndDeleteBill="Bill Pay Cancel And Delete Bill",t.billPayReviewBill="Bill Pay Review Bill",t.billPaySendForApproval="Bill Pay Send For Approval",t.billPayMagicLinkPreviewEmail="Bill Pay MagicLink Preview Email",t.billPayMagicLinkPageLoad="Bill Pay MagicLink Page Load",t.billPayMagicLinkSubmitBankAccountDetails="Bill Pay MagicLink Submit Bank Account Details",t.billPayFilterClick="Bill Pay Filter Click",t.billPayFilterChange="Bill Pay Filter Change",t.billPayDownloadClick="Bill Pay Download Click",t.billPayNewVendor="Bill Pay New Vendor",t.billPayEditVendor="Bill Pay Edit Vendor",t.billPayExpandVendor="Bill Pay Expand Vendor",t.billPayChooseNewVendor="Bill Pay Choose New Vendor",t.billPayCreateNewVendorFromDropdown="Bill Pay Create New Vendor From Dropdown",t.billPayAutoDateChange="Book Close - Auto Date Change",t.billPayPrivacyPolicy="Bill Pay Privacy Policy",t.billPayAgreement="Bill Pay Agreement",t.billPayPromoSchedule="Bill Pay Schedule Demo",t.billPayPromoVideo="Bill Pay Promo Video",t.billPayTaskCard="Bill Pay Task Card",t.billPayCard="Bill Pay Card",t.enableIntlWire="Enable International Wire",t.submitIntlWire="International Wire Submit",t.intlWirePaymentMethod="International Wire Payment Method",t.zeniAssistClick="Zeni Assist Click",t.retryClick="Retry Click",t.retryConfirmClick="Retry Confirm Click",t.refundClick="Refund Click",t.refundConfirmClick="Refund Confirm Click",t.billPayBulkSelectAll="Bill Pay Bulk Select All",t.billPayBulkDeleted="Bill Pay Bulk Deleted",t.billPayBulkSubmit="Bill Pay Bulk Submit",t.billPayBulkSelection="Bill Pay Bulk Selection",t.billPayBulkPopupConfirm="Bill Pay Bulk Popup Confirm",t.billPayMarkAsPaid="Mark As Paid",t.billPayMarkAsPaidSubmit="Mark As Paid Submit",t.lowBalanceAccountSelected="Low Balance Account Selected",t.lowBalanceAccountSentForApproval="Low Balance Account Sent for Approval",t.lowBalanceAccountApprove="Low Balance Account Approve",t.lowBalanceAccountReject="Low Balance Account Reject",t.lowBalanceAccountChange="Low Balance Account Change",t.lowBalanceAccountSchedule="Low Balance Account Schedule",t.cockpitTabClicked="Cockpit Tab Clicked",t.cockpitHealthMonitorRowClicked="Cockpit Health Monitor Row Clicked",t.cockpitHealthMonitorChurnFormClicked="Cockpit Health Monitor Churn Form Click",t.cockpitHealthMonitorNotificationAlertClicked="Cockpit Health Monitor Notification Alert Clicked",t.reimbursementHome="Reimbursement Home",t.reimbursementSetup="Reimbursement Setup",t.reimbursementPromoPage="Reimbursement Promo",t.reimbursementTaskCard="Reimbursement Task Card",t.reimbursementFilterClick="Reimbursement Filter Click",t.reimbursementFilterChange="Reimbursement Filter Change",t.reimbursementDownloadClick="Reimbursement Download Click",t.reimbursementBulkSelectAll="Reimbursement Bulk Select All",t.reimbursementBulkDeleted="Reimbursement Bulk Deleted",t.reimbursementBulkSubmit="Reimbursement Bulk Submit",t.reimbursementBulkSelection="Reimbursement Bulk Selection",t.reimbursementBulkPopupConfirm="Reimbursement Bulk Popup Confirm",t.accountsListPageViewed="Accounts List Page Viewed",t.zeniAccountsSetup="Zeni Accounts Setup",t.accountsPromoPageViewed="Accounts Promo Page Viewed",t.zeniAccountsPromoCardClick="Zeni Accounts Promo Card Click",t.zeniAccountsCashBalancePromoClicked="Zeni Accounts Cash Balance Promo Clicked",t.zeniAccountsNeedHelp="Zeni Accounts Need Help",t.zeniAccountsBusinessVerification="Zeni Accounts Business Verification",t.zeniAccountsBusinessVerificationSave="Zeni Accounts Business Verification Save",t.zeniAccountsBusinessVerificationSend="Zeni Accounts Business Verification Send",t.plgPromoActionTaken="Promo Action Taken",t.cardsPromoPage="Cards Promo Page Viewed",t.cardsPromoPageClick="Cards Promo Page Clicked",t.cardsListPage="Cards List Page Viewed",t.cardsListPageClick="Cards List Page Clicked",t.cardsIssueNewCardFormClick="Issue New Card Form Clicked",t.cardsListRowClick="Cards List Row Clicked",t.cardsDetailPage="Cards Detail Page Viewed",t.cardsDetailPageClick="Cards Detail Page Clicked",t.cardsVerifyPopUpClick="Cards Verify Pop-Up Clicked",t.cardsSetupVisited="Cards Setup Page Visited",t.cardsPromoView="Cards Promo View",t.cardsSetupCardsClick="Cards Set Up Cards Click",t.cardsEnableCardsClick="Cards Enable Cards Click",t.cardsScheduleDemoClick="Cards Schedule Demo Click",t.cardsCardListView="Cards Card List View",t.cardsCardListSearchClick="Cards Card List Search Click",t.cardsCardListMoreMenuClick="Cards Card List More Menu Click",t.cardsSettingsClick="Cards Settings Click",t.cardsCardSetupView="Cards Card Setup View",t.cardsVerifyIdentityCompanyDetailsClick="Cards Verify Identity & Company Details Click",t.cardsPaymentAccountChangeClick="Cards Payment Account Change Click",t.cardsZeniCashAccountChangeClick="Cards Zeni Cash Account Change Click",t.cardsStatementsClick="Cards Statements Click",t.cardsCreditCardStatementsView="Cards Credit Card Statements View",t.cardsDownloadClick="Cards Download Click",t.cardsNewCardClick="Cards New Card Click",t.cardsCashbackOverviewClick="Cards Cashback Overview Click",t.cardsCardListRowClick="Cards Card List Row Click",t.cardsCopyIconClick="Cards Copy Icon Click",t.cardsCardListSortClick="Cards Card List Sort Click",t.cardsCardDetailView="Cards Card Detail View",t.cardsUpdateSpendLimitInitiated="Cards Update Spend Limit Initiated",t.cardsUpdateSpendLimitClick="Cards Update Spend Limit Click",t.cardsAddToWalletClick="Cards Add to Wallet Click",t.cardsNeedHelp="Cards Need Help",t.cardsBusinessVerification="Cards Business Verification",t.cardsBusinessVerificationSave="Cards Business Verification Save",t.cardsBusinessVerificationSend="Cards Business Verification Send",t.cardsConnectBank="Cards Connect Bank",t.cardsConnectBankSuccess="Cards Connect Bank Success",t.cardsConnectBankFailure="Cards Connect Bank Failure",t.cardsConnectBankGetBalance="Cards Connect Bank Get Balance",t.cardsConnectBankLink="Cards Connect Bank Link",t.zeniCardsPromoCardClicked="Zeni Cards Promo Card Click",t.cardsPayEarlyClick="Cards Pay Early Click",t.cardsPayEarlyFormView="Cards Pay Early Form View",t.cardsPayEarlyFormClick="Cards Pay Early Form Click",t.cardsPayEarlyPayNowClick="Cards Pay Early Pay Now Click",t.accountsListPageClicked="Accounts List Page Clicked",t.zeniAccountsTransferFormViewed="Transfer Between Accounts Form Viewed",t.zeniAccountsTransferFormClicked="Transfer Between Accounts Form Clicked",t.accountsDepositCheckFormViewed="Accounts Deposit Check Form Viewed",t.accountsDepositCheckFormClicked="Accounts Deposit Check Form Clicked",t.accountsPromoPageClicked="Accounts Promo Page Clicked",t.zeniAccountsSettingPageVisited="Zeni Accounts Setting Page Visited",t.zeniAccountsConnectBank="Zeni Accounts Connect Bank",t.zeniAccountsConnectBankSuccess="Zeni Accounts Connect Bank Success",t.zeniAccountsConnectBankFailure="Zeni Accounts Connect Bank Failure",t.zeniAccountsConnectBankGetBalance="Zeni Accounts Connect Bank Get Balance",t.zeniAccountsConnectBankLink="Zeni Accounts Connect Bank Link",t.enableZeniAccounts="Enable Zeni Accounts",t.reimbursementNeedHelp="Reimbursement Need Help",t.reimbursementBusinessVerification="Reimbursement Business Verification",t.reimbursementBusinessVerificationSave="Reimbursement Business Verification Save",t.reimbursementBusinessVerificationSend="Reimbursement Business Verification Send",t.reimbursementBusinessVerificationAddOfficer="Reimbursement Business Verification Add Officer",t.reimbursementConnectBank="Reimbursement Connect Bank",t.reimbursementConnectBankSuccess="Reimbursement Connect Bank Success",t.reimbursementConnectBankFailure="Reimbursement Connect Bank Failure",t.reimbursementConnectBankLink="Reimbursement Connect Bank Link",t.reimbursementConnectBankGetBalance="Reimbursement Connect Bank Get Balance",t.enableReimbursement="Enable Reimbursement",t.reimbursementMileageRateSave="Reimbursement Mileage Rate Save",t.reimbursementMileageRateEdit="Reimbursement Mileage Rate Edit",t.reimbursementPrivacyPolicy="Reimbursement Privacy Policy",t.reimbursementAgreement="Reimbursement Agreement",t.reimbursementPromoSchedule="Reimbursement Schedule Demo",t.reimbursementPromoVideo="Reimbursement Promo Video",t.reimbursementCard="Reimbursement Card",t.reimbursementDrafts="Reimbursement Drafts",t.reimbursementMyDrafts="Reimbursement My Drafts",t.reimbursementApprovals="Reimbursement Approvals",t.reimbursementApprovalsAwaitingApproval="Reimbursement Approvals Awaiting Approval",t.reimbursementApprovalsAwaitingAllApproval="Reimbursement Approvals Awaiting All Approval",t.reimbursementApprovalsAwaitingMyApproval="Reimbursement Approvals Awaiting My Approval",t.reimbursementApprovalsRejected="Reimbursement Approvals Rejected",t.reimbursementApprovalsDeleted="Reimbursement Approvals Deleted",t.reimbursementScheduled="Reimbursement Scheduled",t.reimbursementScheduledFailed="Reimbursement Scheduled Failed",t.reimbursementScheduledCancelled="Reimbursement Scheduled Cancelled",t.reimbursementScheduledDeleted="Reimbursement Scheduled Deleted",t.reimbursementPaid="Reimbursement Paid",t.reimbursementPaidACH="Reimbursement Paid ACH",t.reimbursementPaidDeleted="Reimbursement Paid Deleted",t.reimbursementListSort="Reimbursement List Sort",t.reimbursementNewReimbursement="Reimbursement New Reimbursement",t.reimbursementInvoiceUpload="Reimbursement Invoice Upload",t.reimbursementSkipAutofill="Reimbursement Skip Autofill",t.reimbursementSubmitReimbursement="Reimbursement Submit Reimbursement",t.reimbursementReimbursementDetails="Reimbursement Reimbursement Details",t.reimbursementEditReimbursement="Reimbursement Edit Reimbursement",t.reimbursementDeleteReimbursement="Reimbursement Delete Reimbursement",t.reimbursementCancelReimbursement="Reimbursement Cancel Reimbursement",t.reimbursementCancelAndDeleteReimbursement="Reimbursement Cancel And Delete Reimbursement",t.reimbursementSubmitAnywayDuplicateReimbursement="Reimbursement Submit Anyway Duplicate Reimbursement",t.reimbursementReviewDuplicateReportReimbursement="Reimbursement Review Duplicate Report Reimbursement",t.reimbursementDeleteReimbursementLine="Reimbursement Delete Reimbursement Line",t.reimbursementViewDuplicateExpense="Reimbursement View Duplicate Expense",t.groupBySwitch="Group By Switch",t.burnRateCalculatorSettings="Burn Rate Calculator Settings",t.vendorList="Vendor List",t.vendorListSort="Vendor List Sort",t.vendorListSpendTrendSelection="Vendor List Spend Trend Selection",t.vendorListSearch="Vendor List Search",t.vendorDetails="Vendor Details",t.vendorDetailsSave="Vendor Details Save",t.vendorDetailsCancel="Vendor Details Cancel",t.vendorDetailsSpendTrendHotlinkClicked="Vendor Details Spend Trend Hotlink Clicked",t.vendorOperatingExpenses="Operating Expenses By Vendor",t.vendorOperatingExpensesPageLoaded="Operating Expenses By Vendor Page Loaded",t.agingReport="Aging Report",t.agingReportDateChange="Aging Report Date Change",t.apAgingDetail="AP Aging Detail",t.arAgingDetail="AR Aging Detail",t.vendorTenantReviewListPage="Vendor Dedupe Tenant Review List Page",t.vendorGlobalReviewListPage="Vendor Dedupe Global Review List Page",t.vendorReviewList="Vendor Dedupe Review List Loaded",t.vendorReviewTenantSave="Vendor Dedupe First Review",t.vendorReviewTenantMergeInQBORedirect="Vendor Dedupe Merge in QBO Redirected",t.vendorReviewTenantMergeInQBOCancel="Vendor Dedupe Merge in QBO Canceled",t.vendorReviewTenantRecommendationUpdateContinue="Vendor Dedupe Recommendation Update Continued",t.vendorReviewTenantRecommendationUpdateCancel="Vendor Dedupe Recommendation Update Canceled",t.vendorReviewTenantUpdateCancel="Vendor Dedupe Update Canceled",t.vendorReviewTenantWebsiteOpened="Vendor Dedupe Website Opened",t.vendorReviewGlobalApproveRequest="Vendor Dedupe Approve Requested",t.vendorReviewGlobalNewVendorRequest="Vendor Dedupe New Vendor Requested",t.vendorReviewGlobalNewVendorSave="Vendor Dedupe New Vendor Saved",t.vendorReviewGlobalNewVendorCancel="Vendor Dedupe New Vendor Canceled",t.vendor1099ListPage="Vendors 1099",t.vendor1099TabSettingsSave="1099 Settings Save",t.vendor1099AccountingSettingsSave="Settings Accounting 1099 Save",t.vendor1099W9DocumentUpload="1099 Vendor W9 Upload",t.vendor1099DetailsSave="1099 Vendor Save",t.vendor1099ReportDownload="1099 Download",t.scheduleReviewList="Schedule Review List Loaded",t.scheduleReviewListDownload="Schedule Review List Download",t.scheduleDetailsPage="Schedule Details Loaded",t.scheduleDetailsNewRequested="Schedule Details New Requested",t.scheduleDetailsPreview="Schedule Details Previewed",t.scheduleDetailsSave="Schedule Details Saved",t.scheduleDetailsCancel="Schedule Details Canceled",t.scheduleDetailsLinkJournalEntry="Schedule Details Link Journal Entry",t.scheduleDetailsViewJournalEntry="Schedule Details View Journal Entry",t.scheduleDetailsJournalEntryViewLinkedExpense="Schedule Details Journal Entry View Linked Expense",t.scheduleDetailsJournalEntryLinkedSaved="Schedule Details Journal Entry Linked Saved",t.scheduleDetailsJournalEntryQBOFetched="Schedule Details Journal Entry QBO Fetched",t.scheduleDetailsJournalEntryLinkCancel="Schedule Details Journal Entry Link Canceled",t.scheduleDetailsEntryCanceled="Schedule Details Entry Canceled",t.scheduleDetailsJournalEntryLinkExpense="Schedule Details Journal Entry Link Expense",t.scheduleDetailsJournalEntryLinkExpenseLoaded="Schedule Details Journal Entry Link Expense Loaded",t.scheduleDetailsJournalEntryLinkExpenseCanceled="Schedule Details Journal Entry Link Expense Canceled",t.scheduleDetailsJounralEntryLinkExpenseSaved="Schedule Details Journal Entry Linked Expense Saved",t.scheduleDetailsDelete="Schedule Details Deleted",t.scheduleDetailsMarkComplete="Schedule Details Marked As Complete",t.taskListPage="Task List Page",t.taskDetailPage="Task Detail Page",t.cockpitTaskCardClicked="Cockpit Task Card Clicked",t.taskEdited="Task Edited",t.newTaskRequested="New Task Requested",t.healthMonitorFilterApplied="Health Monitor Filter Applied",t.error="Error",t.rewardsPageViewed="Rewards Page Viewed",t.rewardsPageClicked="Rewards Page Clicked",t.dashboardCardClicked="Dashboard Card Clicked",t.inviteEmailViewed="Rewards Invite Email Viewed",t.inviteEmailClicked="Rewards Invite Email Clicked",t.getAuditScore="Get Score",t.auditScorePercentage="Score %",t.auditIssueType="Issue Type",t.auditIssuesClicked="Issue Clicked",t.commentAdded="Comment Added",t.commentActivity="Comment Activity",t.monthCloseClicked="Month Close Clicked",t.monthCloseAuditPage="Month Close: Audit Page",t.transactionsReview="Transactions: Review",t.transactionsAutoCategorised="Transactions: Autocategorised",t.monthCloseScheduleList="Month Close: Schedule List",t.fluxAnalysis="Flux Analysis",t.fluxAnalysisReviewed="Flux Analysis: Reviewed",t.missingReceipts="Missing Receipts",t.receiptsAttached="Receipt Attached",t.insightsEmail="Insights Email",t.monthEndEmailSentFromCockpit="Month End Email Sent From Cockpit",t.sendMoneyClick="Send Money Click",t.expressPayNextClick="Express Pay Next Click",t.expressPayScheduleClick="Express Pay Schedule Click",t.aiCFOPrivacyPolicy="AI CFO Privacy Policy",t.aiCFOAgreement="AI CFO Agreement",t.treasuryNavPromoClick="Treasury Nav Promo Click",t.treasuryPromoView="Treasury Promo View",t.treasurySetupActionClick="Treasury Setup Action Click",t.treasuryProspectusClick="Treasury Prospectus Click",t.treasuryCalculatorClick="Treasury Calculator Click",t.treasuryAgreementView="Treasury Agreement View",t.treasuryAllocationAction="Treasury Allocation Action",t.treasuryRiskAction="Treasury Risk Action",t.treasuryVerificationNavigation="Treasury Verification Navigation",t.treasuryTransferAction="Treasury Transfer Action",t.treasuryDashboardInteraction="Treasury Dashboard Interaction",t.treasuryPortfolioConfirm="Treasury Portfolio Confirm",t.treasuryPromoCards="Treasury Promo Cards",t.treasuryPromoVideo="Treasury Promo Video",t.transactionCotView="Transaction Cot View",t.transactionCotDropdownView="Transaction Cot Dropdown View",t.transactionCotViewAlternative="Transaction Cot View Alternative",t.transactionCotViewRecommended="Transaction Cot View Recommended",t.recommendationAccepted="Recommendation Accepted",t.recommendationFeedbackSubmitted="Recommendation Feedback Submitted",t.recommendationFeedbackSkipped="Recommendation Feedback Skipped",t.recommendationFeedbackRetracted="Recommendation Feedback Retracted",t.aiPerfHome="AI Perf Home",t.aiPerfRefresh="AI Perf Refresh",t.aiPerfTimePeriodSelect="AI Perf Time Period Select",t.otherConnectionConnectBank="Other Connection Connect Bank",t.otherConnectionConnectBankSuccess="Other Connections Connect Bank Success",t.otherConnectionConnectBankFailure="Other Connections Connect Bank Failure",t.otherConnectionsConnectBankLink="Other Connections Connect Bank Link",t.otherConnectionConnectBankGetBalance="Other Connection Connect Bank Get Balance",t.autoTransferRuleIconClick="Auto Transfer Rule Icon Click",t.autoTransferRuleClick="Auto Transfer Rule Click",t.autoTransferRuleReviewClick="Auto Transfer Rule Review Click",t.autoTransferRuleCreateClick="Auto Transfer Rule Create Click",t.autoTransferRuleMoreClick="Auto Transfer Rule More Click",t.autoTransferRuleActionClick="Auto Transfer Rule Action Click",t.autoTransferRuleActionConfirm="Auto Transfer Rule Action Confirm",t.autoTransferRuleActionCancel="Auto Transfer Rule Action Cancel",t.integrationsNotifyMeClicked="Integrations Notify Me Clicked",t.invoicingOverviewPage="Invoicing Overview Page",t.invoicingInvoicesListPage="Invoicing Invoices List Page",t.invoicingCreateInvoicePage="Invoicing Create Invoice Page",t.invoicingInvoiceDetailPage="Invoicing Invoice Detail Page",t.invoicingCustomersListPage="Invoicing Customers List Page",t.invoicingCustomerFormPage="Invoicing Customer Form Page",t.invoicingCustomerDetailPage="Invoicing Customer Detail Page",t.invoicingSubscriptionsListPage="Invoicing Subscriptions List Page",t.invoicingSubscriptionFormPage="Invoicing Subscription Form Page",t.invoicingSubscriptionDetailPage="Invoicing Subscription Detail Page",t.invoicingPaymentsListPage="Invoicing Payments List Page",t.invoicingRecordPaymentPage="Invoicing Record Payment Page",t.invoicingTransactionDetailPage="Invoicing Transaction Detail Page",t.invoicingCreditsListPage="Invoicing Credits List Page",t.invoicingCreditDetailPage="Invoicing Credit Detail Page",t.invoicingDiscountsListPage="Invoicing Discounts List Page",t.invoicingCouponFormPage="Invoicing Coupon Form Page",t.invoicingDiscountDetailPage="Invoicing Discount Detail Page",t.invoicingDunningListPage="Invoicing Dunning List Page",t.invoicingDunningDetailPage="Invoicing Dunning Detail Page",t.invoicingCatalogPage="Invoicing Catalog Page",t.invoicingCatalogItemFormPage="Invoicing Catalog Item Form Page",t.invoicingCatalogItemDetailPage="Invoicing Catalog Item Detail Page",t.invoicingSettingsPage="Invoicing Settings Page",t.invoicingAuditLogPage="Invoicing Audit Log Page",t.invoicingApprovalsPage="Invoicing Approvals Page",t.invoicingDataImportHubPage="Invoicing Data Import Hub Page",t.invoicingDataImportMigratePage="Invoicing Data Import Migrate Page",t.invoicingViewInvoicesClicked="Invoicing View Invoices Clicked",t.invoicingViewPaymentsClicked="Invoicing View Payments Clicked",t.invoicingSubscriptionTileClicked="Invoicing Subscription Tile Clicked",t.invoicingCreateInvoiceClicked="Invoicing Create Invoice Clicked",t.invoicingInvoiceRowClicked="Invoicing Invoice Row Clicked",t.invoicingImportCsvClicked="Invoicing Import CSV Clicked",t.invoicingInvoiceCreated="Invoicing Invoice Created",t.invoicingCreateInvoiceCancelled="Invoicing Create Invoice Cancelled",t.invoicingInvoiceEdited="Invoicing Invoice Edited",t.invoicingInvoicePdfDownloaded="Invoicing Invoice PDF Downloaded",t.invoicingInvoiceReminderSent="Invoicing Invoice Reminder Sent",t.invoicingRecordPaymentClicked="Invoicing Record Payment Clicked",t.invoicingCreditNoteIssued="Invoicing Credit Note Issued",t.invoicingInvoiceVoided="Invoicing Invoice Voided",t.invoicingInvoiceRegenerated="Invoicing Invoice Regenerated",t.invoicingAddCustomerClicked="Invoicing Add Customer Clicked",t.invoicingCustomerRowClicked="Invoicing Customer Row Clicked",t.invoicingCustomerSaved="Invoicing Customer Saved",t.invoicingCustomerFormCancelled="Invoicing Customer Form Cancelled",t.invoicingCustomerEdited="Invoicing Customer Edited",t.invoicingAddSubscriptionClicked="Invoicing Add Subscription Clicked",t.invoicingSubscriptionRowClicked="Invoicing Subscription Row Clicked",t.invoicingSubscriptionLifecycleAction="Invoicing Subscription Lifecycle Action",t.invoicingSubscriptionSaved="Invoicing Subscription Saved",t.invoicingSubscriptionFormCancelled="Invoicing Subscription Form Cancelled",t.invoicingSubscriptionEdited="Invoicing Subscription Edited",t.invoicingPaymentRowClicked="Invoicing Payment Row Clicked",t.invoicingPaymentRecorded="Invoicing Payment Recorded",t.invoicingRecordPaymentCancelled="Invoicing Record Payment Cancelled",t.invoicingTransactionCaptured="Invoicing Transaction Captured",t.invoicingCreditNoteRowClicked="Invoicing Credit Note Row Clicked",t.invoicingCreateCouponClicked="Invoicing Create Coupon Clicked",t.invoicingDiscountRowClicked="Invoicing Discount Row Clicked",t.invoicingCouponSaved="Invoicing Coupon Saved",t.invoicingCouponFormCancelled="Invoicing Coupon Form Cancelled",t.invoicingCouponEdited="Invoicing Coupon Edited",t.invoicingDunningCaseRowClicked="Invoicing Dunning Case Row Clicked",t.invoicingDunningAction="Invoicing Dunning Action",t.invoicingAddCatalogItemClicked="Invoicing Add Catalog Item Clicked",t.invoicingCatalogItemRowClicked="Invoicing Catalog Item Row Clicked",t.invoicingCatalogItemSaved="Invoicing Catalog Item Saved",t.invoicingCatalogItemFormCancelled="Invoicing Catalog Item Form Cancelled",t.invoicingCatalogItemEdited="Invoicing Catalog Item Edited",t.invoicingSettingsSaved="Invoicing Settings Saved",t.invoicingBankAccountConnectClicked="Invoicing Bank Account Connect Clicked",t.invoicingLogoUploaded="Invoicing Logo Uploaded",t.invoicingApprovalAction="Invoicing Approval Action",t.invoicingNewImportClicked="Invoicing New Import Clicked",t.invoicingImportSessionAction="Invoicing Import Session Action",t.invoicingChargebeeConnectClicked="Invoicing Chargebee Connect Clicked",t.invoicingImportTemplatesDownloaded="Invoicing Import Templates Downloaded",t.invoicingImportFileUploaded="Invoicing Import File Uploaded",t.invoicingImportStarted="Invoicing Import Started",t.invoicingImportSavedForLater="Invoicing Import Saved For Later",t.invoicingEntityLinkClicked="Invoicing Entity Link Clicked",t.invoicingPromoSchedule="Invoicing Schedule Demo",t.integrationConnectClicked="Integration Connect Clicked",t.integrationCredentialsSubmitted="Integration Credentials Submitted",t.integrationConnected="Integration Connected",t.integrationConnectFailed="Integration Connect Failed",t.integrationConnectDismissed="Integration Connect Dismissed",t.integrationDisconnected="Integration Disconnected",t.aiCloseTransactionSearch="AI Close Transaction Search"})(e||(Pt.Event=e={})),Pt.EVENTS_WITHOUT_SUPER_PROPERTIES=new Set([e.signInClick,e.signInViaGoogleMicrosoft,e.signInViaEmail,e.signInLinkSent]),Pt}var Uo;function rd(){if(Uo)return _r;Uo=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.Analytics=void 0;const e=pc(),t=o=>{if(o==null)return null;if(!o.includes(":"))return o;const n=o.split(":")[1];return n!==""?n:null},a=(o,n)=>{const s=t(o);return{transaction_id:s,line_item_id:n,transaction_id_and_line_item_id:s!=null&&n!=null?`${s}:${n}`:null}},r=({recommendationFor:o,recommendation:n,recommendationSource:s,recommendationConfidencePercentage:c,alternativeRecommendation:u,alternativeRecommendationSource:l,alternativeRecommendationConfidencePercentage:d,selectedValue:f,numberOfRecommendations:p,transactionId:_,lineId:g})=>({recommendation_for:o,recommendation:n,recommendation_source:s,recommendation_confidence_percentage:c,alternative_recommendation:u,alternative_recommendation_source:l,alternative_recommendation_confidence_percentage:d,selected_value:f,number_of_recommendations:p,...a(_,g)});class i{constructor(n){this.provider=n,this.superProperties={},this.userProperties={},this.userAndSuperProperties={}}static splitUserAndSuperProperties(n){const s={$distinct_id:n.$distinct_id??"",user_id:n.user_id??"",role_at_company:n.role_at_company??"",$email:n.$email??"",user_email_domain:n.user_email_domain??"",$first_name:n.$first_name??"",$last_name:n.$last_name??"",company_ids:n.company_ids??[],company_names:n.company_names??[],user_roles:n.user_roles??[],app_type:n.app_type??"web",app_version:n.app_version??"",app_short_version:n.app_short_version??"",profile_type:n.profile_type??void 0,chargebee_customer_id:n.chargebee_customer_id??"",is_zeni:n.is_zeni??void 0},c={appearance:n.appearance??void 0,company_id:n.company_id??"",company_name:n.company_name??"",user_role:n.user_role??[],tenant_id:n.tenant_id??"",tenant_email_domain:n.tenant_email_domain??""};return{userProperties:s,superProperties:c}}identify(n,s){const c=s??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,c,{$distinct_id:n,profile_type:"user"});const u=i.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=u.userProperties,this.superProperties=u.superProperties,this.provider.identify(n,this.userProperties)}identifyUserAndCompany(n,s,c,u,l){const d=u??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,d,{$distinct_id:n==="company"?c:s,user_id:s,company_id:c,profile_type:n});const f=i.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=f.userProperties,this.superProperties=f.superProperties,this.provider.identifyUserAndCompany(n,s,c,this.userProperties,l)}resetUserIdentity(){console.warn("Resetting user identity"),this.superProperties={},this.userProperties={},this.userAndSuperProperties={},this.provider.reset()}track(n){this.fireTrack(n)}trackLogin(n,s,c){this.fireTrack(n,{login_type:s,customer_type:c})}trackSignInClick(n){const c={login_type:n.charAt(0).toUpperCase()+n.slice(1)};this.fireTrack(e.Event.signInClick,c)}trackSignInViaGoogleMicrosoft(){this.fireTrack(e.Event.signInViaGoogleMicrosoft)}trackSignInViaEmail(){this.fireTrack(e.Event.signInViaEmail)}trackSignInLinkSent(){this.fireTrack(e.Event.signInLinkSent)}trackError(n,s,c,u){this.fireTrack(n,{error_referrer:s,error_description:c,error_code:u})}trackSidePanelClicked(n,s){this.fireTrack(e.Event.sidePanelClicked,{sidepanel_click_type:n,sidepanel_click_group_type:s})}trackLogout(n){this.fireTrack(n)}trackSessionTimeoutPopupShown(n){const s={seconds_remaining:n};this.fireTrack(e.Event.sessionTimeoutPopupShown,s)}trackSessionTimeoutClicked(n,s){const c={click_type:n,seconds_remaining:s};this.fireTrack(e.Event.sessionTimeoutClicked,c)}trackSessionTimeoutAutoLogout(){this.fireTrack(e.Event.sessionTimeoutAutoLogout)}trackPageLoaded(n,s,c){this.fireTrack(n,{referrer_card:s,customer_type:c})}trackTransactionList(n,s,c,u,l,d){this.fireTrack(e.Event.transactionList,{account_id:n,account_name:s,referrer_card:c,referrer_account:u,referrer_account_group:l,load_more:d})}trackTransactionDetails(n,s,c,u,l,d,f,p,_,g,m,v,y,b,C){this.fireTrack(e.Event.transactionDetails,{account_id:n,account_name:s,transaction_id:c,transaction_name:u,category:l,class:d,transaction_type:f,transaction_amount:p,transaction_memo:_,line_item_count:g,receipt_file_names:m,referrer_card:v,search_term:y,result_position:b,results_count:C})}trackCompareMode(n,s,c){this.fireTrack(e.Event.compareMode,{is_turned_on:n,referrer_card:s,graph_filter:c})}trackCompareFilterChange(n,s,c,u){this.fireTrack(e.Event.compareFilterChange,{value:n,referrer_card:s,graph_filter:c,clicked_on:u})}trackCompareFilterTimeFrame(n,s,c,u){this.fireTrack(e.Event.compareFilterTimeframe,{referrer_card:n,graph_filter:s,clicked_on:c,value:u})}trackDateRangeFilterChange(n,s,c,u,l){this.fireTrack(e.Event.dateRangeFilter,{parent_card:n,clicked_on:s,compare_mode:c,value:u,bar_name:l})}trackTimeframeSwitch(n,s,c){this.fireTrack(e.Event.timeframeSwitch,{value:n,parent_card:s,referrer_card:c})}trackGraphBar(n,s,c,u){this.fireTrack(e.Event.graphBar,{referrer_card:n,graph_filter:s,compare_mode:c,bar_name:u})}trackInviteSent(n,s,c){this.fireTrack(e.Event.inviteSent,{role:n,count:s,emails:c})}trackRoleChanged(n,s,c){this.fireTrack(e.Event.roleChanged,{old_role:n,new_role:s,member_email:c})}trackRemoveUserAccess(n,s){this.fireTrack(e.Event.removeUserAccess,{role:n,member_email:s})}trackResendInvite(n,s){this.fireTrack(e.Event.resendInvite,{role:n,member_email:s})}trackCompanySwitch(n,s,c){this.fireTrack(e.Event.companySwitch,{new_company_id:n,new_company_name:s,new_user_role:c})}trackDownload(n,s,c,u){this.fireTrack(e.Event.download,{referrer_card:n,graph_filter:s,file_type:c,compare_mode:u})}trackSpendIncomeTrendForTransaction(n,s,c,u,l,d,f,p,_,g){this.fireTrack(n,{referrer_card:s,transaction_id:c,transaction_type:u,transaction_name:l,account_ids:d,account_names:f,class_ids:p,class_names:_,bar_name:g})}trackSpendIncomeTrend(n,s,c,u,l){this.fireTrack(n,{referrer_card:s,bar_name:l,entity_name:u,entity_type:c})}trackSearch(n,s,c,u,l){this.fireTrack(n,{referrer_card:s,entity_type:c,entity_name:u,search_term:l})}trackTransactionDetailReceipt(n,s,c,u,l,d,f){this.fireTrack(n,{attachment_id:s,transaction_id:c,transaction_name:u,transaction_type:l,account_ids:d,account_names:f})}trackTransactionDetailReceiptUpload(n,s,c,u,l,d,f,p){this.fireTrack(e.Event.transactionDetailReceiptAdded,{account_id:n,account_name:s,transaction_id:c,transaction_name:u,transaction_type:l,transaction_memo:d,file_name:f,file_type:p})}trackCardStatementCloseDate(n,s,c,u,l){this.fireTrack(n,{referrer_card:u,account_id:s,account_name:c,value:l})}trackReportGenerated(n,s,c,u,l,d,f,p){const _={report_id:n,file_type:s,time_taken_rest_api:c,time_taken_data_transform:u,time_taken_rendering:l,time_taken_total:d};Object.assign(_,f!=null?{time_taken_pdf_merge:f}:{}),Object.assign(_,p!=null?{time_taken_sub_report_total_max:p}:{}),this.fireTrack(e.Event.reportGenerated,_)}trackInsightsNavigation(n,s){this.fireTrack(n,{referrer_view:s})}trackForecast(){this.fireTrack(e.Event.forecast)}trackForecastSwitch(n,s){this.fireTrack(e.Event.forecastSwitch,{parent_card:n,forecast_name:s})}trackForecastVsActualMode(n,s,c){this.fireTrack(e.Event.forecastVsActualMode,{parent_card:n,forecast_name:s,is_turned_on:c})}trackSpendManagmentFilterClick(n){switch(n){case"bill_pay":{this.fireTrack(e.Event.billPayFilterClick);break}case"reimbursement":{this.fireTrack(e.Event.reimbursementFilterClick);break}}}trackSpendManagmentFilterChange(n,s){switch(n){case"bill_pay":{this.fireTrack(e.Event.billPayFilterChange,{filter_categories:s});break}case"reimbursement":{this.fireTrack(e.Event.reimbursementFilterChange,{filter_categories:s});break}}}trackSpendManagementDownloadClick(n){switch(n){case"bill_pay":{this.fireTrack(e.Event.billPayDownloadClick);break}case"reimbursement":{this.fireTrack(e.Event.reimbursementDownloadClick);break}}}trackBillPayPrivacyPolicy(){this.fireTrack(e.Event.billPayPrivacyPolicy)}trackBillPayAgreement(){this.fireTrack(e.Event.billPayAgreement)}trackReimbursementPrivacyPolicy(){this.fireTrack(e.Event.reimbursementPrivacyPolicy)}trackReimbursementAgreement(){this.fireTrack(e.Event.reimbursementAgreement)}trackReimbursementMileageRateSave(n){const s={mileage_unit_amount:n};this.fireTrack(e.Event.reimbursementMileageRateSave,s)}trackReimbursementMileageRateEdit(){this.fireTrack(e.Event.reimbursementMileageRateEdit)}trackReimbursementPromoScheduleDemo(){this.fireTrack(e.Event.reimbursementPromoSchedule)}trackReimbursementPromoVideo(){this.fireTrack(e.Event.reimbursementPromoVideo)}trackBillPayPromoScheduleDemo(){this.fireTrack(e.Event.billPayPromoSchedule)}trackInvoicingPromoScheduleDemo(){this.fireTrack(e.Event.invoicingPromoSchedule)}trackBillPayPromoVideo(){this.fireTrack(e.Event.billPayPromoVideo)}trackBillPayTaskCard(n){const s={count:n};this.fireTrack(e.Event.billPayTaskCard,s)}trackBillPayCard(n,s){const c={transaction_amount:s,bill_pay_tab_subtab:n};this.fireTrack(e.Event.billPayCard,c)}trackReimbursementCard(n,s){const c={transaction_amount:s,reimbursement_tab_subtab:n};this.fireTrack(e.Event.reimbursementCard,c)}trackReimbursementTaskCard(n){const s={count:n};this.fireTrack(e.Event.reimbursementTaskCard,s)}trackOnboardingConnectQBO(n=!1){const s={is_reconnect:n};this.fireTrack(e.Event.onboardingQBOConnect,s)}trackIntegrationsNotifyMeClicked(n,s){const c={referrer_card:n,connector:s};this.fireTrack(e.Event.integrationsNotifyMeClicked,c)}trackOnboardingSaveQBOConnection(n,s){const c={qbo_realm_id:n,qbo_connection_id:s};this.fireTrack(e.Event.onboardingSaveQBOConnection,c)}trackOnboardingQBOConnectionSuccess(n,s){const c={qbo_realm_id:n,qbo_connection_id:s};this.fireTrack(e.Event.onboardingQBOConnectionSuccess,c)}trackOnboardingQBOConnectionFailed(n,s,c){const u={qbo_realm_id:n,qbo_connection_id:s,qbo_connection_response_message:c};this.fireTrack(e.Event.onboardingQBOConnectionFailed,u)}trackOnboardingAiFinanceTeamViewed(){this.fireTrack(e.Event.onboardingAiFinanceTeamViewed)}trackOnboardingAddressClicked(n){const s={address_type:n};this.fireTrack(e.Event.onboardingAddressClicked,s)}trackOnboardingDocumentUploaded(n,s){const c={document_kind:n,document_type:s};this.fireTrack(e.Event.onboardingDocumentUploaded,c)}trackOnboardingPhoneVerified(){this.fireTrack(e.Event.onboardingPhoneVerified)}trackOnboardingStepSkipped(n){const s={skipped_step:n};this.fireTrack(e.Event.onboardingStepSkipped,s)}trackOnboardingFlowExited(n){const s={exit_destination:n};this.fireTrack(e.Event.onboardingFlowExited,s)}trackOnboardingButtonClicked(n,s,c,u){const l={onboarding_button:n,onboarding_current_step:s,triggered_action:c,action_name:u};this.fireTrack(e.Event.onboardingButtonClicked,l)}buildIntegrationConnectionProps(n,s,c,u=null){return{referrer_card:s,connector:n,connection_type:c,error_message:u}}trackIntegrationConnectClicked(n,s,c){this.fireTrack(e.Event.integrationConnectClicked,this.buildIntegrationConnectionProps(n,s,c))}trackIntegrationCredentialsSubmitted(n,s,c){this.fireTrack(e.Event.integrationCredentialsSubmitted,this.buildIntegrationConnectionProps(n,s,c))}trackIntegrationConnected(n,s,c){this.fireTrack(e.Event.integrationConnected,this.buildIntegrationConnectionProps(n,s,c))}trackIntegrationConnectFailed(n,s,c,u){this.fireTrack(e.Event.integrationConnectFailed,this.buildIntegrationConnectionProps(n,s,c,u))}trackIntegrationDisconnected(n,s,c){this.fireTrack(e.Event.integrationDisconnected,this.buildIntegrationConnectionProps(n,s,c))}trackIntegrationConnectDismissed(n,s,c){this.fireTrack(e.Event.integrationConnectDismissed,this.buildIntegrationConnectionProps(n,s,c))}trackConnectBankAbandoned(n,s){n==="onboarding"&&this.fireTrack(e.Event.onboardingBankConnectAbandoned,{referrer_card:s})}trackOnboardingClickUpdatePaymentDetails(n,s){const c={payment_method:n,customer_type:s};this.fireTrack(e.Event.onboardingClickUpdatePaymentDetails,c)}trackOnboardingCurrentStep(n,s){const c={onboarding_current_step:n,onboarding_previous_step:s};this.fireTrack(e.Event.onboardingActiveStep,c)}trackOnboardingBankAccountPendingVerification(n,s){const c={verification_type:n,plaid_session_id:s};this.fireTrack(e.Event.onboardingBankAccountPendingVerification,c)}trackOnboardingBankAccountVerified(n){const s={verification_type:n};this.fireTrack(e.Event.onboardingBankAccountVerified,s)}trackOnboardingBusinessVerificationCompleted(n,s){const c={document_kind:n,verification_type:s};this.fireTrack(e.Event.onboardingBusinessVerificationCompleted,c)}trackOnboardingBillingAddress(n){const s={billing_address_field:n};this.fireTrack(e.Event.onboardingBillingAddress,s)}trackOnboardingBillingAddressSave(n){const s={address:{street:n.street,suite:n.suite,city:n.city,state:n.state,country:n.country,postal_code:n.postalCode,secondary_info:n.secondaryInfo}};this.fireTrack(e.Event.onboardingBillingAddressSave,s)}trackOnboardingBack(n,s){const c={onboarding_current_step:n,onboarding_previous_step:s};this.fireTrack(e.Event.onboardingBack,c)}trackOnboardingNext(n,s){const c={onboarding_current_step:s,onboarding_previous_step:n};this.fireTrack(e.Event.onboardingNext,c)}trackSaveAddressClicked(n,s){const c={address:{street:s?.street??"",suite:s?.suite??"",city:s?.city??"",state:s?.state??"",country:s?.country??"",postal_code:s?.postalCode??"",secondary_info:s?.secondaryInfo??""}};this.fireTrack(n,c)}trackOnboardingCompanyOfficerSave(n,s,c){const u={company_officer_email:n.email,company_officer_birthday:n.birthday,company_officer_ownership:n.companyOwnership,company_officer_first_name:n.firstName,company_officer_last_name:n.lastName,company_officer_role:n.companyRole,company_officer_document_type_for_verification:n.documentTypeForVerification,company_officer_phone:n.phone,company_officer_address:n.formattedAddress,company_legal_name:s.legalName,completed_fields:c?.completedFields??[],completed_fields_status:c?.status??"not_started"};this.fireTrack(e.Event.onboardingCompanyOfficerSave,u)}trackOnboardingCompanyDetailsSave(n,s,c){const u={company_description:n.companyDescription,company_legal_name:n.legalName,company_industry:n.industry,company_phone:n.phone,company_website:n.website,company_address:n.formattedAddress,inc_date:n.incDate,primary_contact_first_name:c.firstName,primary_contact_last_name:c.lastName,primary_contact_email:c.email,completed_fields:s.completedFields,completed_fields_status:s.status};this.fireTrack(e.Event.onboardingCompanyDetailsSave,u)}trackOnboardingDashboardActivation(n){const s={time_since_quote_sign:n.timeSinceQuoteSign,time_since_quote_sign_in_minutes:n.timeSinceQuoteSignInMinutes,is_kyc_done:n.isKycDone,is_kyb_done:n.isKybDone,payment_type:n.paymentType,payment_source:n.paymentSource,qbo_connection_source:n.qboConnectionSource};this.fireTrack(e.Event.onboardingDashboardActivation,s)}trackOnboardingNewCustomerStarted(){this.fireTrack(e.Event.onboardingNewCustomerStarted)}trackOnboardingAiFinanceTeamAcknowledged(){this.fireTrack(e.Event.onboardingAiFinanceTeamAcknowledged)}trackOnboardingNewCustomerGroupCreationCheck(n,s){const c={company_email_domain:n.companyEmailDomain,primary_contact_email:n.primaryContactEmail,group_name:s.groupName,group_email:s.groupEmail,group_description:s.groupDescription,is_company_email_domain_available:s.isCompanyEmailDomainAvailable};this.fireTrack(e.Event.onboardingNewCustomerGroupCreationCheck,c)}trackOnboardingQBOConnectionSelected(n){const s={first_name:n.firstName,last_name:n.lastName,customer_email:n.customerEmail};n.isZeniOrCustomer==="customer"?this.fireTrack(e.Event.onboardingCustomerManagedQBOConnectionSelected,s):this.fireTrack(e.Event.onboardingZeniManagedQBOConnectionSelected,s)}trackOnboardingZeniManagedQBOConnection(n){const s={first_name:n.firstName,last_name:n.lastName,customer_email:n.customerEmail,qbo_connection_response_message:n.qboConnectionResponseMessage};n.isSuccess?this.fireTrack(e.Event.onboardingZeniManagedQBOConnectionSuccess,s):this.fireTrack(e.Event.onboardingZeniManagedQBOConnectionUnsuccess,s)}trackOnboardingSaveOrSendInvite(n,s,c,u){const l={company_domain:n.companyDomain,primary_contact_email:n.primaryContactEmail,group_name:s.groupName,group_email:s.groupEmail,group_description:s.groupDescription,first_name:c.firstName,last_name:c.lastName,customer_email:c.customerEmail,company_name:c.companyName,entitty_type:c.entittyType,qbo_realm_id:c.qboRealmId,hubspot_id:c.hubSpotId,chargebee_id:c.chargebeeId,products:c.products,is_zeni_managed_qbo_connection_selected:u.isZeniManagedQboConnectionSelected,is_customer_managed_qbo_connection_selected:u.isCustomerManagedQboConnectionSelected,qbo_connection_status:u.qboConnectionStatus,referrer_card:"Cockpit - Onboarding"};u.isSendInvite?u.isInviteAlreadySent?this.fireTrack(e.Event.onboardingResendInvite,l):this.fireTrack(e.Event.onboardingSendInvite,l):this.fireTrack(e.Event.onboardingSave,l)}trackOnboardingSendInvite(n,s,c){const u={company_id:n,company_name:c.companyName,company_domain:c.companyEmailDomain,customer_email:c.customerEmail,referrer_card:"Cockpit - Onboarding List"};this.fireTrack(s?e.Event.onboardingResendInvite:e.Event.onboardingSendInvite,u)}trackOnboardingInterimCard(n){const s={card_click:n};this.fireTrack(e.Event.onboardingInterimCardClick,s)}trackOnboardingLandingPageCardClick(n){const s={card_click:n};this.fireTrack(e.Event.onboardingLandingPageCardClick,s)}trackBusinessVerificationSave(n,s,c,u,l){const d={company_officer_email:n.email,company_officer_birthday:n.birthday,company_officer_ownership:n.companyOwnership,company_officer_first_name:n.firstName,company_officer_last_name:n.lastName,company_officer_role:n.companyRole,company_officer_document_type_for_verification:n.documentTypeForVerification,company_officer_phone:n.phone,company_officer_address:n.formattedAddress,company_description:s.companyDescription,company_legal_name:s.legalName,company_industry:s.industry,company_phone:s.phone,company_website:s.website,company_address:s.formattedAddress,inc_date:s.incDate,primary_contact_first_name:c.firstName,primary_contact_last_name:c.lastName,primary_contact_email:c.email,referrer_card:l};switch(u){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsBusinessVerificationSave,d);break;case"reimbursement":this.fireTrack(e.Event.reimbursementBusinessVerificationSave,d);break;case"onboarding":this.fireTrack(e.Event.onboardingSkipAndSave,d);break;case"charge_cards":this.fireTrack(e.Event.cardsBusinessVerification,d);break;default:this.fireTrack(e.Event.billPayBusinessVerificationSave,d);break}}trackBusinessVerificationSend(n,s,c,u,l){const d={company_officer_email:n.email,company_officer_birthday:n.birthday,company_officer_ownership:n.companyOwnership,company_officer_first_name:n.firstName,company_officer_last_name:n.lastName,company_officer_role:n.companyRole,company_officer_document_type_for_verification:n.documentTypeForVerification,company_officer_phone:n.phone,company_officer_address:n.formattedAddress,company_description:s.companyDescription,company_legal_name:s.legalName,company_industry:s.industry,company_phone:s.phone,company_website:s.website,company_address:s.formattedAddress,inc_date:s.incDate,primary_contact_first_name:c.firstName,primary_contact_last_name:c.lastName,primary_contact_email:c.email,referrer_card:l};switch(u){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsBusinessVerificationSend,d);break;case"reimbursement":this.fireTrack(e.Event.reimbursementBusinessVerificationSend,d);break;case"charge_cards":this.fireTrack(e.Event.cardsBusinessVerificationSend,d);break;default:this.fireTrack(e.Event.billPayBusinessVerificationSend,d);break}}onboardingConnectBankEventsByEventSource(n,s){if(s!=null&&n!=null)switch(s){case"link_bank_account":this.fireTrack(e.Event.onboardingLinkBankAccount,{referrer_card:n});break;case"switch_to_bank_account":this.fireTrack(e.Event.onboardingSwitchToBankAccount,{referrer_card:n});break;case"link_new_bank_account":this.fireTrack(e.Event.onboardingLinkANewBankAccount,{referrer_card:n});break}}onboardingConnectBankEventsByEventSourceSuccess(n,s,c,u,l,d){if(d!=null&&l!=null)switch(d){case"link_bank_account":this.fireTrack(e.Event.onboardingLinkBankAccountSuccess,{referrer_card:l,plaid_session_id:n,plaid_account_id:s,is_micro_deposit_verification_done:c??!1,plaid_institution_name:u});break;case"switch_to_bank_account":this.fireTrack(e.Event.onboardingSwitchToBankAccountSuccess,{referrer_card:l,plaid_session_id:n,plaid_account_id:s,is_micro_deposit_verification_done:c??!1,plaid_institution_name:u});break;case"link_new_bank_account":this.fireTrack(e.Event.onboardingLinkANewBankAccountSuccess,{referrer_card:l,plaid_session_id:n,plaid_account_id:s,is_micro_deposit_verification_done:c??!1,plaid_institution_name:u});break}}onboardingConnectBankEventsByEventSourceFailure(n,s,c,u,l,d,f){if(f!=null&&d!=null)switch(f){case"link_bank_account":this.fireTrack(e.Event.onboardingLinkBankAccountFailure,{referrer_card:d,error_description:n,error_code:l,plaid_session_id:s,plaid_request_id:c,plaid_institution_name:u});break;case"switch_to_bank_account":this.fireTrack(e.Event.onboardingSwitchToBankAccountFailure,{referrer_card:d,error_description:n,error_code:l,plaid_session_id:s,plaid_request_id:c,plaid_institution_name:u});break;case"link_new_bank_account":this.fireTrack(e.Event.onboardingLinkANewBankAccountFailure,{referrer_card:d,error_description:n,error_code:l,plaid_session_id:s,plaid_request_id:c,plaid_institution_name:u});break}}onboardingCreditCardEventsConnectByEventSource(n,s){if(s!=null&&n!=null)switch(s){case"switch_to_credit_card":this.fireTrack(e.Event.onboardingSwitchToCreditCard,{referrer_card:n});break;case"link_new_credit_card":this.fireTrack(e.Event.onboardingLinkNewCard,{referrer_card:n});break;case"link_credit_card":this.fireTrack(e.Event.onboardingLinkCreditCard,{referrer_card:n});break}}onboardingCreditCardConnectEventsByEventSourceSuccess(n,s){if(s!=null&&n!=null)switch(s){case"switch_to_credit_card":this.fireTrack(e.Event.onboardingSwitchToCreditCardSuccess,{referrer_card:n});break;case"link_new_credit_card":this.fireTrack(e.Event.onboardingLinkNewCardSuccess,{referrer_card:n});break;case"link_credit_card":this.fireTrack(e.Event.onboardingLinkCreditCardSuccess,{referrer_card:n});break}}onboardingCreditCardConnectEventsByEventSourceFailure(n,s,c,u){if(u!=null&&c!=null)switch(u){case"switch_to_credit_card":this.fireTrack(e.Event.onboardingSwitchToCreditCardFailure,{referrer_card:c,error_description:n,error_code:s});break;case"link_new_credit_card":this.fireTrack(e.Event.onboardingLinkNewCardFailure,{referrer_card:c,error_description:n,error_code:s});break;case"link_credit_card":this.fireTrack(e.Event.onboardingLinkCreditCardFailure,{referrer_card:c,error_description:n,error_code:s});break}}billingConnectBankEventsByEventSource(n,s){if(s!=null&&n!=null)switch(s){case"link_new_bank_account":this.fireTrack(e.Event.billingLinkNewBankAccount,{referrer_card:n});break;case"switch_to_bank_account":this.fireTrack(e.Event.billingSwitchToBankAccount,{referrer_card:n});break}}billingConnectBankEventsByEventSourceSuccess(n,s){if(s!=null&&n!=null)switch(s){case"link_new_bank_account":this.fireTrack(e.Event.billingLinkNewBankAccountSuccess,{referrer_card:n});break;case"switch_to_bank_account":this.fireTrack(e.Event.billingSwitchToBankAccountSuccess,{referrer_card:n});break}}billingConnectBankEventsByEventSourceFailure(n,s,c,u){if(u!=null&&c!=null)switch(u){case"link_new_bank_account":this.fireTrack(e.Event.billingLinkNewBankAccountFailure,{referrer_card:c,error_description:n,error_code:s});break;case"switch_to_bank_account":this.fireTrack(e.Event.billingSwitchToBankAccountFailure,{referrer_card:c,error_description:n,error_code:s});break}}billingConnectCreditCardEventsByEventSource(n,s){if(s!=null&&n!=null)switch(s){case"switch_to_credit_card":this.fireTrack(e.Event.billingSwitchToCreditCard,{referrer_card:n});break;case"link_new_credit_card":this.fireTrack(e.Event.billingLinkNewCard,{referrer_card:n});break}}billingConnectCreditCardEventsByEventSourceSuccess(n,s){if(s!=null&&n!=null)switch(s){case"switch_to_credit_card":this.fireTrack(e.Event.billingSwitchToCreditCardSuccess,{referrer_card:n});break;case"link_new_credit_card":this.fireTrack(e.Event.billingLinkNewCardSuccess,{referrer_card:n});break}}billingConnectCreditCardEventsByEventSourceFailure(n,s,c,u){if(u!=null&&c!=null)switch(u){case"switch_to_credit_card":this.fireTrack(e.Event.billingSwitchToCreditCardFailure,{referrer_card:c,error_description:n,error_code:s});break;case"link_new_credit_card":this.fireTrack(e.Event.billingLinkNewCardFailure,{referrer_card:c,error_description:n,error_code:s});break}}trackConnectBank(n,s,c){switch(n){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsConnectBank,{referrer_card:s});break;case"charge_cards":this.fireTrack(e.Event.cardsConnectBank,{referrer_card:s});break;case"reimbursement":this.fireTrack(e.Event.reimbursementConnectBank,{referrer_card:s});break;case"onboarding":this.onboardingConnectBankEventsByEventSource(s,c);break;case"billing":this.billingConnectBankEventsByEventSource(s,c);break;case"bill_pay":this.fireTrack(e.Event.billPayConnectBank,{referrer_card:s});break;default:this.fireTrack(e.Event.otherConnectionConnectBank,{referrer_card:s});break}}trackConnectBankSuccess(n,s,c,u,l,d,f){switch(n){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsConnectBankSuccess,{referrer_card:s});break;case"charge_cards":this.fireTrack(e.Event.cardsConnectBankSuccess,{referrer_card:s});break;case"reimbursement":this.fireTrack(e.Event.reimbursementConnectBankSuccess,{referrer_card:s});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceSuccess(u??null,l??null,d??null,f??null,s,c);break;case"billing":this.billingConnectBankEventsByEventSourceSuccess(s,c);break;case"bill_pay":this.fireTrack(e.Event.billPayConnectBankSuccess,{referrer_card:s});break;default:this.fireTrack(e.Event.otherConnectionConnectBankSuccess,{referrer_card:s});break}}trackConnectBankFailure(n,s,c,u,l,d,f,p){switch(n){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsConnectBankFailure,{error_code:l,error_description:s,referrer_card:c});break;case"charge_cards":this.fireTrack(e.Event.cardsConnectBankFailure,{error_code:l,error_description:s,referrer_card:c});break;case"reimbursement":this.fireTrack(e.Event.reimbursementConnectBankFailure,{error_code:l,error_description:s,referrer_card:c});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceFailure(s,d??null,f??null,p??null,l,c,u);break;case"billing":this.billingConnectBankEventsByEventSourceFailure(s,l,c,u);break;case"bill_pay":this.fireTrack(e.Event.billPayConnectBankFailure,{error_code:l,error_description:s,referrer_card:c});break;default:this.fireTrack(e.Event.otherConnectionConnectBankFailure,{error_code:l,error_description:s,referrer_card:c});break}}trackCreditCardConnect(n,s,c){if(c!=null&&s!=null)switch(n){case"onboarding":this.onboardingCreditCardEventsConnectByEventSource(c,s);break;case"billing":this.billingConnectCreditCardEventsByEventSource(c,s);break}}trackCreditCardConnectSuccess(n,s,c){if(s!=null&&c!=null)switch(n){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceSuccess(s,c);break;case"billing":this.billingConnectCreditCardEventsByEventSourceSuccess(s,c);break}}trackCreditCardConnectFailure(n,s,c,u,l){if(c!=null&&u!=null)switch(n){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceFailure(s,l,c,u);break;case"billing":this.billingConnectCreditCardEventsByEventSourceFailure(s,l,c,u);break}}trackConnectBankLink(n,s,c,u){switch(c){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsConnectBankLink,{account_name:s,account_id:n,referrer_card:u});break;case"charge_cards":this.fireTrack(e.Event.cardsConnectBankLink,{account_name:s,account_id:n,referrer_card:u});break;case"reimbursement":this.fireTrack(e.Event.reimbursementConnectBankLink,{account_name:s,account_id:n,referrer_card:u});break;case"onboarding":this.fireTrack(e.Event.onboardingConnectBankLink,{account_name:s,account_id:n,referrer_card:u});break;case"bill_pay":this.fireTrack(e.Event.billPayConnectBankLink,{account_name:s,account_id:n,referrer_card:u});break;default:this.fireTrack(e.Event.otherConnectionsConnectBankLink,{account_name:s,account_id:n,referrer_card:u});break}}trackConnectBankGetBalance(n,s){switch(n){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsConnectBankGetBalance,{referrer_card:s});break;case"charge_cards":this.fireTrack(e.Event.cardsConnectBankGetBalance,{referrer_card:s});break;case"reimbursement":this.fireTrack(e.Event.reimbursementConnectBankGetBalance,{referrer_card:s});break;case"onboarding":this.fireTrack(e.Event.onboardingConnectBankGetBalance,{referrer_card:s});break;case"bill_pay":this.fireTrack(e.Event.billPayConnectBankGetBalance,{referrer_card:s});break;default:this.fireTrack(e.Event.otherConnectionConnectBankGetBalance,{referrer_card:s});break}}trackNeedHelp(n){switch(n){case"onboarding":this.fireTrack(e.Event.onboardingNeedHelp,{});break;case"onboarding_interim":this.fireTrack(e.Event.onboardingInterimNeedHelp,{});break;case"onboarding_landing":this.fireTrack(e.Event.onboardingLandingNeedHelp,{});break;case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsNeedHelp,{});break;case"charge_cards":this.fireTrack(e.Event.cardsNeedHelp,{});break;case"reimbursement":this.fireTrack(e.Event.reimbursementNeedHelp,{});break;default:this.fireTrack(e.Event.billPayNeedHelp,{});break}}trackAccountsListPageViewed(n,s,c,u,l){this.fireTrack(e.Event.accountsListPageViewed,{zeni_accounts_count:n,external_accounts_count:s,zeni_accounts_available_balance:c,total_yield_earned:u,current_average_yield:l})}trackAccountsListPageClicked(n,s,c){this.fireTrack(e.Event.accountsListPageClicked,{click_type:n,account_name:s,account_status:c})}trackAccountsPromoPageClicked(n){this.fireTrack(e.Event.accountsPromoPageClicked,{click_type:n})}trackTransferBetweenAccountsFormClicked(n,s,c,u,l,d,f,p){this.fireTrack(e.Event.zeniAccountsTransferFormClicked,{click_type:n,current_screen:s,transfer_from_bank_name:c,transfer_to_bank_name:u,amount:l,is_split_transfer:d,split_days_count:f,APY_slider_moved:p})}trackAccountsDepositCheckFormClicked(n,s,c,u,l,d){this.fireTrack(e.Event.accountsDepositCheckFormClicked,{click_type:n,amount:s,source_of_deposit:c,deposited_to:u,front_photo:l,back_photo:d})}trackAccountsDepositCheckFormViewed(){this.fireTrack(e.Event.accountsDepositCheckFormViewed)}trackZeniTransferBetweenAccountsFormViewed(){this.fireTrack(e.Event.zeniAccountsTransferFormViewed)}trackEnableZeniAccounts(){this.fireTrack(e.Event.enableZeniAccounts)}trackZeniAccountsPromoCardClick(n,s){this.fireTrack(e.Event.zeniAccountsPromoCardClick,{card_position:n,click_type:s})}trackZeniAccountsCashBalancePromoClicked(n){this.fireTrack(e.Event.zeniAccountsCashBalancePromoClicked,{click_type:n})}trackPlgPromoClicked(n,s){this.fireTrack(e.Event.plgPromoActionTaken,{page_name:n,clicked_on:s})}getBaseCardProperties(n,s,c,u){return{controller_emails:n,is_credit_card_offered:s.isCreditCardOffered,is_debit_card_offered:s.isDebitCardOffered,is_debit_card_enabled:s.isDebitCardEnabled,is_credit_card_enabled:s.isCreditCardEnabled,credit_account_id:c?.creditAccountId,credit_account_limit:c?.creditAccountLimit,credit_account_available_amount:c?.creditAccountAvailableAmount,credit_account_spent_amount:c?.creditAccountSpentAmount,credit_account_status:c?.creditAccountStatus,credit_account_outstanding_balance:c?.outstandingBalance,deposit_account_id:u?.debitAccountId,deposit_account_name:u?.debitAccountName,deposit_account_balance:u?.debitAccountBalance,debit_cards_spend:u?.debitCardsSpend,deposit_account_status:u?.debitAccountStatus}}getBaseCardPropertiesWithCashback(n,s,c,u,l){return{...this.getBaseCardProperties(n,s,u,l),credit_card_cashback_offer:c?.creditCardCashbackOffer,debit_card_cashback_offer:c?.debitCardCashbackOffer,total_earned_cashback:c?.totalEarnedCashback,redeemed_cashback:c?.redeemedCashback,available_cashback:c?.availableCashback,credit_card_cashback_redemption_mode:c?.creditCardCashbackRedemptionMode,debit_card_cashback_redemption_mode:c?.debitCardCashbackRedemptionMode}}getPaymentSourceProperties(n){return{is_zeni_checking_enabled:n.isZeniCheckingEnabled,is_zeni_checking_payment_source:n.isZeniCheckingPaymentSource,credit_card_payment_source_account_name:n.creditCardPaymentSourceAccountName,credit_card_payment_source_account_type:n.creditCardPaymentSourceAccountType,credit_card_payment_source_last_four_digits:n.creditCardPaymentSourceLastFourDigits,credit_card_payment_source_balance:n.creditCardPaymentSourceBalance}}getCardPaymentProperties(n){return{payment_amount:n.paymentAmount,payment_account_name:n.paymentAccountName,payment_account_type:n.paymentAccountType,payment_account_last_four_digits:n.paymentAccountLastFourDigits,payment_complete_eta:n.paymentCompleteEta,payment_initiated_date:n.paymentInitiatedDate}}trackCardsPromoPageClicked(n){this.fireTrack(e.Event.cardsPromoPageClick,{cards_click_type:n})}trackCardsListPageClicked(n){this.fireTrack(e.Event.cardsListPageClick,{cards_click_type:n})}trackCardsNewCardFormClicked(n,s,c,u,l){this.fireTrack(e.Event.cardsIssueNewCardFormClick,{cards_click_type:l,card_owner:n,card_name:s,amount:u,frequency:c})}trackCardsListRowClicked(n,s,c,u,l,d,f){this.fireTrack(e.Event.cardsListRowClick,{card_owner:n,card_name:s,department:c,utilisation:u,limit:l,frequency:d,is_self_card:f})}trackCardsDetailPageViewed(n,s,c,u,l,d,f,p){this.fireTrack(e.Event.cardsDetailPage,{card_id:n,is_self_card:p,card_owner:s,card_name:c,utilisation:u,limit:l,frequency:d,card_color:f})}trackCardsVerifyPopUpClick(n,s,c,u,l,d,f,p,_){this.fireTrack(e.Event.cardsVerifyPopUpClick,{cards_click_type:f,is_self_card:p,card_owner:s,card_name:c,utilisation:u,limit:l,frequency:d,card_id:n,selected_color:_})}trackCardsDetailPageClicked(n,s,c,u,l,d,f,p,_){this.fireTrack(e.Event.cardsDetailPageClick,{cards_click_type:f,is_self_card:p,card_owner:s,card_name:c,utilisation:u,limit:l,frequency:d,card_id:n,selected_color:_})}trackZeniCardsPromoCardClicked(n,s,c,u,l){this.fireTrack(e.Event.zeniCardsPromoCardClicked,{card_position:c,click_type:s,is_cards_setup:n,user_name:u,credit_limit:l??"NA"})}trackCardsSetupCardsClick(n,s,c){this.fireTrack(e.Event.cardsSetupCardsClick,{controller_emails:n,is_credit_card_offered:s.isCreditCardOffered,is_debit_card_offered:s.isDebitCardOffered,is_debit_card_enabled:s.isDebitCardEnabled,is_credit_card_enabled:s.isCreditCardEnabled,page_name:c})}trackCardsPromoView(n,s,c,u,l){this.fireTrack(e.Event.cardsPromoView,{controller_emails:n,is_credit_card_offered:s.isCreditCardOffered,is_debit_card_offered:s.isDebitCardOffered,is_debit_card_enabled:s.isDebitCardEnabled,is_credit_card_enabled:s.isCreditCardEnabled,promo_format:c,promo_product:u,page_name:l})}trackCardsEnableCardsClick(n,s,c){this.fireTrack(e.Event.cardsEnableCardsClick,{controller_emails:n,is_credit_card_offered:s.isCreditCardOffered,is_debit_card_offered:s.isDebitCardOffered,is_debit_card_enabled:s.isDebitCardEnabled,is_credit_card_enabled:s.isCreditCardEnabled,page_name:c})}trackCardsScheduleDemoClick(n,s,c){this.fireTrack(e.Event.cardsScheduleDemoClick,{controller_emails:n,is_credit_card_offered:s.isCreditCardOffered,is_debit_card_offered:s.isDebitCardOffered,is_debit_card_enabled:s.isDebitCardEnabled,is_credit_card_enabled:s.isCreditCardEnabled,page_name:c})}trackCardsCardListView(n,s,c,u,l){this.fireTrack(e.Event.cardsCardListView,{...this.getBaseCardPropertiesWithCashback(n,s,c,u,l)})}trackCardsCardListSearchClick(n,s,c,u,l){this.fireTrack(e.Event.cardsCardListSearchClick,{...this.getBaseCardPropertiesWithCashback(n,s,c,u,l)})}trackCardsCardListMoreMenuClick(n,s,c,u,l){this.fireTrack(e.Event.cardsCardListMoreMenuClick,{...this.getBaseCardPropertiesWithCashback(n,s,c,u,l)})}trackCardsSettingsClick(n,s,c,u,l){this.fireTrack(e.Event.cardsSettingsClick,{...this.getBaseCardPropertiesWithCashback(n,s,c,u,l)})}trackCardsCardSetupView(n,s,c){this.fireTrack(e.Event.cardsCardSetupView,{controller_emails:n,is_credit_card_offered:s.isCreditCardOffered,is_debit_card_offered:s.isDebitCardOffered,is_debit_card_enabled:s.isDebitCardEnabled,is_credit_card_enabled:s.isCreditCardEnabled,source:c})}trackCardsVerifyIdentityCompanyDetailsClick(n,s,c){this.fireTrack(e.Event.cardsVerifyIdentityCompanyDetailsClick,{controller_emails:n,is_credit_card_offered:s.isCreditCardOffered,is_debit_card_offered:s.isDebitCardOffered,is_debit_card_enabled:s.isDebitCardEnabled,is_credit_card_enabled:s.isCreditCardEnabled,status:c})}trackCardsPaymentAccountChangeClick(n,s,c){this.fireTrack(e.Event.cardsPaymentAccountChangeClick,{controller_emails:n,is_credit_card_offered:s.isCreditCardOffered,is_debit_card_offered:s.isDebitCardOffered,is_debit_card_enabled:s.isDebitCardEnabled,is_credit_card_enabled:s.isCreditCardEnabled,old_payment_account_name:c.oldPaymentAccountName,old_payment_account_balance:c.oldPaymentAccountBalance,new_payment_account_name:c.newPaymentAccountName,new_payment_account_balance:c.newPaymentAccountBalance,is_old_payment_account_recommended:c.isOldPaymentAccountRecommended,is_new_payment_account_recommended:c.isNewPaymentAccountRecommended,old_payment_account_position:c.oldPaymentAccountPosition,new_payment_account_position:c.newPaymentAccountPosition,number_of_payment_accounts:c.numberOfPaymentAccounts})}trackCardsZeniCashAccountChangeClick(n,s,c){this.fireTrack(e.Event.cardsZeniCashAccountChangeClick,{controller_emails:n,is_credit_card_offered:s.isCreditCardOffered,is_debit_card_offered:s.isDebitCardOffered,is_debit_card_enabled:s.isDebitCardEnabled,is_credit_card_enabled:s.isCreditCardEnabled,old_zeni_cash_account:c.oldZeniCashAccount,new_zeni_cash_account:c.newZeniCashAccount,old_zeni_cash_account_position:c.oldZeniCashAccountPosition,new_zeni_cash_account_position:c.newZeniCashAccountPosition,number_of_cash_accounts:c.numberOfCashAccounts})}trackCardsStatementsClick(n,s,c,u,l){this.fireTrack(e.Event.cardsStatementsClick,{...this.getBaseCardPropertiesWithCashback(n,s,c,u,l)})}trackCardsCreditCardStatementsView(n,s,c,u,l){this.fireTrack(e.Event.cardsCreditCardStatementsView,{...this.getBaseCardProperties(n,s,u,l),number_of_statements:c.numberOfStatements,oldest_statement_month_year:c.oldestStatementMonthYear,latest_statement_month_year:c.latestStatementMonthYear})}trackCardsDownloadClick(n,s,c,u,l,d,f,p){this.fireTrack(e.Event.cardsDownloadClick,{...this.getBaseCardPropertiesWithCashback(n,s,c,f,p),page_name:l,position:d,file_category:u.fileCategory,file_type:u.fileType,file_name:u.fileName,file_month_year:u.fileMonthYear})}trackCardsNewCardClick(n,s,c,u,l,d,f,p){this.fireTrack(e.Event.cardsNewCardClick,{...this.getBaseCardPropertiesWithCashback(n,s,c,f,p),click_item:u,action:l,page_name:d})}trackCardsCashbackOverviewClick(n,s,c,u,l,d,f){this.fireTrack(e.Event.cardsCashbackOverviewClick,{...this.getBaseCardPropertiesWithCashback(n,s,c,d,f),click_item:u,action:l})}trackCardsCardListRowClick(n,s,c,u,l,d,f,p,_){this.fireTrack(e.Event.cardsCardListRowClick,{...this.getBaseCardPropertiesWithCashback(n,s,f,p,_),click_item:c,action:u,position:l,card_name:d.cardName,card_owner:d.cardOwner,card_type:d.cardType,card_status:d.cardStatus,card_utilization_amount:d.cardUtilizationAmount,card_utilization_percent:d.cardUtilizationPercent,card_limit:d.cardLimit})}trackCardsCopyIconClick(n,s,c,u,l,d,f,p,_,g){this.fireTrack(e.Event.cardsCopyIconClick,{...this.getBaseCardPropertiesWithCashback(n,s,p,_,g),click_item:u,action:l,action_field:d,action_details:f,page_name:c})}trackCardsCardListSortClick(n,s,c,u,l,d,f,p,_,g){this.fireTrack(e.Event.cardsCardListSortClick,{...this.getBaseCardPropertiesWithCashback(n,s,c,_,g),click_item:u,action:l,action_field:d,action_details:f,page_name:p})}trackCardsCardDetailView(n,s,c,u,l,d,f){this.fireTrack(e.Event.cardsCardDetailView,{...this.getBaseCardProperties(n,s,d,f),card_name:c.cardName,card_type:c.cardType,card_category:c.cardCategory,card_limit:c.cardLimit,card_last_four_digits:c.cardLastFourDigits,card_status:c.cardStatus,card_utilization_percent:c.cardUtilizationPercent,card_id:c.cardId,card_assigned_date:c.cardAssignedDate,card_issued_date:c.cardIssuedDate,card_activated_date:c.cardActivatedDate,card_limit_frequency:c.cardLimitFrequency,card_spent_amount:c.cardSpentAmount,card_available_limit:c.cardAvailableLimit,card_utilization_amount:c.cardUtilizationAmount,total_number_of_declined_transactions:c.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:c.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:c.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:c.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:c.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:c.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:c.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:c.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:c.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:c.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:u.cardIssuedByName,card_issued_by_email:u.cardIssuedByEmail,card_issued_by_user_id:u.cardIssuedByUserId,card_issued_by_role:u.cardIssuedByRole,card_issued_by_department:u.cardIssuedByDepartment,cardholder_name:l.cardholderName,cardholder_email:l.cardholderEmail,cardholder_role:l.cardholderRole,cardholder_user_id:l.cardholderUserId,cardholder_department:l.cardholderDepartment})}trackCardsUpdateSpendLimitInitiated(n,s,c,u,l,d,f,p,_,g){this.fireTrack(e.Event.cardsUpdateSpendLimitInitiated,{...this.getBaseCardProperties(n,s,_,g),card_name:c.cardName,card_type:c.cardType,card_category:c.cardCategory,card_limit:c.cardLimit,card_last_four_digits:c.cardLastFourDigits,card_status:c.cardStatus,card_utilization_amount:c.cardUtilizationAmount,card_utilization_percent:c.cardUtilizationPercent,card_id:c.cardId,card_assigned_date:c.cardAssignedDate,card_issued_date:c.cardIssuedDate,card_activated_date:c.cardActivatedDate,card_limit_frequency:c.cardLimitFrequency,card_spent_amount:c.cardSpentAmount,card_available_limit:c.cardAvailableLimit,total_number_of_declined_transactions:c.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:c.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:c.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:c.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:c.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:c.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:c.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:c.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:c.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:c.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:u.cardIssuedByName,card_issued_by_email:u.cardIssuedByEmail,card_issued_by_user_id:u.cardIssuedByUserId,card_issued_by_role:u.cardIssuedByRole,card_issued_by_department:u.cardIssuedByDepartment,cardholder_name:l.cardholderName,cardholder_email:l.cardholderEmail,cardholder_role:l.cardholderRole,cardholder_user_id:l.cardholderUserId,cardholder_department:l.cardholderDepartment,page_name:d,source:f,recommended_limits:p})}trackCardsUpdateSpendLimitClick(n,s,c,u,l,d,f,p,_,g,m,v,y){this.fireTrack(e.Event.cardsUpdateSpendLimitClick,{...this.getBaseCardProperties(n,s,v,y),card_name:c.cardName,card_type:c.cardType,card_category:c.cardCategory,card_limit:c.cardLimit,card_last_four_digits:c.cardLastFourDigits,card_status:c.cardStatus,card_utilization_amount:c.cardUtilizationAmount,card_utilization_percent:c.cardUtilizationPercent,card_id:c.cardId,card_assigned_date:c.cardAssignedDate,card_issued_date:c.cardIssuedDate,card_activated_date:c.cardActivatedDate,card_limit_frequency:c.cardLimitFrequency,card_spent_amount:c.cardSpentAmount,card_available_limit:c.cardAvailableLimit,total_number_of_declined_transactions:c.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:c.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:c.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:c.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:c.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:c.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:c.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:c.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:c.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:c.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:u.cardIssuedByName,card_issued_by_email:u.cardIssuedByEmail,card_issued_by_user_id:u.cardIssuedByUserId,card_issued_by_role:u.cardIssuedByRole,card_issued_by_department:u.cardIssuedByDepartment,cardholder_name:l.cardholderName,cardholder_email:l.cardholderEmail,cardholder_role:l.cardholderRole,cardholder_user_id:l.cardholderUserId,cardholder_department:l.cardholderDepartment,click_item:f,current_limit:p,new_limit:m,recommended_limits:_,was_recommended_limit_selected:g,card_limit_updated_by_name:d.cardLimitUpdatedByName,card_limit_updated_by_email:d.cardLimitUpdatedByEmail,card_limit_updated_by_role:d.cardLimitUpdatedByRole,card_limit_updated_by_user_id:d.cardLimitUpdatedByUserId})}trackCardsAddToWalletClick(n,s,c,u,l,d,f,p,_){this.fireTrack(e.Event.cardsAddToWalletClick,{...this.getBaseCardProperties(n,s,p,_),card_id:c.cardId,card_name:c.cardName,card_type:c.cardType,card_category:c.cardCategory,card_limit:c.cardLimit,card_last_four_digits:c.cardLastFourDigits,card_status:c.cardStatus,card_assigned_date:c.cardAssignedDate,card_issued_date:c.cardIssuedDate,card_limit_frequency:c.cardLimitFrequency,card_issued_by_name:u.cardIssuedByName,card_issued_by_email:u.cardIssuedByEmail,card_issued_by_user_id:u.cardIssuedByUserId,card_issued_by_role:u.cardIssuedByRole,card_issued_by_department:u.cardIssuedByDepartment,cardholder_name:l.cardholderName,cardholder_email:l.cardholderEmail,cardholder_role:l.cardholderRole,cardholder_user_id:l.cardholderUserId,cardholder_department:l.cardholderDepartment,page_name:d,click_item:f})}trackCardsPayEarlyClick(n,s,c,u,l,d,f,p,_){this.fireTrack(e.Event.cardsPayEarlyClick,{...this.getBaseCardPropertiesWithCashback(n,s,c,p,_),...this.getPaymentSourceProperties(f),click_item:d,page_name:u,source:l})}trackCardsPayEarlyFormView(n,s,c,u,l,d,f,p,_){this.fireTrack(e.Event.cardsPayEarlyFormView,{...this.getBaseCardPropertiesWithCashback(n,s,c,p,_),...this.getPaymentSourceProperties(f),is_autopay_selected:l,payment_amount:d,page_name:u})}trackCardsPayEarlyFormClick(n,s,c,u,l,d,f,p,_){this.fireTrack(e.Event.cardsPayEarlyFormClick,{...this.getBaseCardPropertiesWithCashback(n,s,c,p,_),...this.getPaymentSourceProperties(f),is_autopay_selected:l,...this.getCardPaymentProperties(d),click_item:u})}trackCardsPayEarlyPayNowClick(n,s,c,u,l,d,f,p){this.fireTrack(e.Event.cardsPayEarlyPayNowClick,{...this.getBaseCardPropertiesWithCashback(n,s,c,f,p),...this.getPaymentSourceProperties(d),is_autopay_selected:u,...this.getCardPaymentProperties(l)})}trackEnableBillPay(){this.fireTrack(e.Event.enableBillPay)}trackEnableReimbursement(){this.fireTrack(e.Event.enableReimbursement)}trackUploadInvoice(n,s,c){switch(s){case"w9":this.fireTrack(e.Event.vendor1099W9DocumentUpload,{invoice_upload_method:n,vendor_legal_name:c??""});break;case"reimbursement":this.fireTrack(e.Event.reimbursementInvoiceUpload,{invoice_upload_method:n});break;default:this.fireTrack(e.Event.billPayInvoiceUpload,{invoice_upload_method:n});break}}trackInvoiceActionClick(n,s,c,u){this.fireTrack(e.Event.billPayInvoiceActionClick,{bill_stage:n,action_clicked:s,user_name:c,override_data_click:u})}trackBillPaySkipAutofill(){this.fireTrack(e.Event.billPaySkipAutofill)}trackReimbursementSkipAutofill(){this.fireTrack(e.Event.reimbursementSkipAutofill)}trackBillPayNewBill(){this.fireTrack(e.Event.billPayNewBill)}trackReimbursementNewReimbursement(){this.fireTrack(e.Event.reimbursementNewReimbursement)}trackBillPayEditBill(n,s){this.fireTrack(e.Event.billPayEditBill,{bill_id:n,is_recurring_bill:s})}trackReimbursementEditReimbursement(n){this.fireTrack(e.Event.reimbursementEditReimbursement,{reimbursement_id:n})}trackBillPayBillDetails(n,s){this.fireTrack(e.Event.billPayBillDetails,{bill_id:n,is_recurring_bill:s})}trackReimbursementReimbursementDetails(n){this.fireTrack(e.Event.reimbursementReimbursementDetails,{reimbursement_id:n})}trackBillPayReviewBill(n,s,c,u,l,d,f,p,_,g,m,v,y,b){const C={final_vendor_name:d,zeni_rec_vendor_name:f,document_ai_rec_vendor_name:p,bill_id:_,invoice_number:g,invoice_date:s,bill_due_date:m,memo:v,currency:c,collect_from_vendor:u,international_transfer_fee_bearer_payment_method:y,is_recurring_bill:l,payment_method:n};l&&b!=null&&(C.recurring_bill_config={bill_value:b.totalAmount,start_date:b.startDate,end_date:b.endDate,frequency:b.frequency,total_payment_cycles:b.totalPaymentCycles,is_approval_required:b.isApprovalRequired}),this.fireTrack(e.Event.billPayReviewBill,C)}trackReimbursementSubmitReimbursement(n,s,c,u){this.fireTrack(e.Event.reimbursementSubmitReimbursement,{create_date:n,currency:s,total_amount:c,reimbursement_id:u})}trackBillPaySendForApproval(n,s,c,u,l,d,f){const p={bill_id:l,payment_method:n,scheduled_date:s,collect_from_vendor:c,international_transfer_fee_bearer_payment_method:d,is_recurring_bill:u};u&&f!=null&&(p.recurring_bill_config={bill_value:f.totalAmount,start_date:f.startDate,end_date:f.endDate,frequency:f.frequency,total_payment_cycles:f.totalPaymentCycles,is_approval_required:f.isApprovalRequired,is_update_current_bill:f.updateCurrentBill,is_update_future_bills:f.updateFutureRecurringBills}),this.fireTrack(e.Event.billPaySendForApproval,p)}trackBillPayDeleteBill(n,s){this.fireTrack(e.Event.billPayDeleteBill,{bill_id:n,is_recurring_bill:s})}trackBillPayCancelBill(n){this.fireTrack(e.Event.billPayCancelBill,{bill_id:n})}trackBillPayCancelAndDeleteBill(n,s){this.fireTrack(e.Event.billPayCancelAndDeleteBill,{bill_id:n,is_recurring_bill:s})}trackReimbursementListSort(n,s){this.fireTrack(e.Event.reimbursementListSort,{sort_key:n,sort_order:s})}trackReimbursementDeleteReimbursement(n){this.fireTrack(e.Event.reimbursementDeleteReimbursement,{reimbursement_id:n})}trackReimbursementCancelReimbursement(n){this.fireTrack(e.Event.reimbursementCancelReimbursement,{reimbursement_id:n})}trackReimbursementCancelAndDeleteReimbursement(n){this.fireTrack(e.Event.reimbursementCancelAndDeleteReimbursement,{reimbursement_id:n})}trackReimbursementDeleteReimbursementLine(n,s){this.fireTrack(e.Event.reimbursementDeleteReimbursementLine,{reimbursement_id:s,line_id:n})}trackReimbursementSubmitAnywayDuplicateReimbursement(n,s){this.fireTrack(e.Event.reimbursementSubmitAnywayDuplicateReimbursement,{reimbursement_id:s,number_of_duplicate_expenses:n})}trackReimbursementViewDuplicateExpense(n,s){this.fireTrack(e.Event.reimbursementViewDuplicateExpense,{reimbursement_id:s,is_duplicate_within_transaction:n})}trackReimbursementReviewDuplicateReportReimbursement(n,s){this.fireTrack(e.Event.reimbursementReviewDuplicateReportReimbursement,{reimbursement_id:s,number_of_duplicate_expenses:n})}trackReimbursementBulkSelectAll(n,s,c){this.fireTrack(e.Event.reimbursementBulkSelectAll,{report_stage:n,report_status:s,report_type:c})}trackReimbursementBulkDeleted(n,s,c,u){this.fireTrack(e.Event.reimbursementBulkDeleted,{total_reports_deleted:n,report_stage:s,report_status:c,report_type:u})}trackReimbursementBulkSubmit(n,s,c){this.fireTrack(e.Event.reimbursementBulkSubmit,{operation_type:n,report_stage:s,report_status:c})}trackReimbursementBulkSelection(n,s,c,u){this.fireTrack(e.Event.reimbursementBulkSelection,{total_reports_selected:n,report_stage:s,report_status:c,report_type:u})}trackReimbursementBulkPopupConfirm(n,s,c,u){this.fireTrack(e.Event.reimbursementBulkPopupConfirm,{operation_type:n,report_stage:s,report_status:c,report_type:u})}trackBillPayNewVendor(n,s,c,u,l,d,f){this.fireTrack(e.Event.billPayNewVendor,{vendor_name:n,vendor_category:s,vendor_class_name:c,vendor_type:u,vendor_contact_email:l,venfor_contact_name:d,vendor_contact_phone:f})}trackBillPayEditVendor(n){this.fireTrack(e.Event.billPayEditVendor,{vendor_id:n})}trackBillPayExpandVendor(n){this.fireTrack(e.Event.billPayExpandVendor,{vendor_id:n})}trackBillPayChooseNewVendor(){this.fireTrack(e.Event.billPayChooseNewVendor)}trackBillPayCreateNewVendorFromRecDropdown(n){this.fireTrack(e.Event.billPayCreateNewVendorFromDropdown,{vendor_name:n})}trackBillPayMagicLinkPreviewEmail(n){this.fireTrack(e.Event.billPayMagicLinkPreviewEmail,{on_page:n})}trackBillPayMagicLinkSubmitBankAccountDetails(n){this.fireTrack(e.Event.billPayMagicLinkSubmitBankAccountDetails,{bill_id:n})}trackBillPayMagicLinkPageLoad(n,s,c,u,l,d,f){this.fireTrack(e.Event.billPayMagicLinkPageLoad,{tenant_email_domain:n,vendor_id:s,company_name:c,bill_id:u,payment_method:l,currency:d,total_amount:f})}trackBillPayAutoDateChange(n){this.fireTrack(e.Event.billPayAutoDateChange,{bill_id:n})}trackBillPayBulkSelectAll(n,s,c){this.fireTrack(e.Event.billPayBulkSelectAll,{bill_stage:n,bill_status:s,bill_type:c})}trackBillPayBulkDeleted(n,s,c,u){this.fireTrack(e.Event.billPayBulkDeleted,{total_bills_deleted:n,bill_stage:s,bill_status:c,bill_type:u})}trackBillPayBulkSubmit(n,s,c){this.fireTrack(e.Event.billPayBulkSubmit,{operation_type:n,bill_stage:s,bill_status:c})}trackBillPayBulkSelection(n,s,c,u){this.fireTrack(e.Event.billPayBulkSelection,{total_bills_selected:n,bill_stage:s,bill_status:c,bill_type:u})}trackBillPayBulkPopupConfirm(n,s,c,u){this.fireTrack(e.Event.billPayBulkPopupConfirm,{operation_type:n,bill_stage:s,bill_status:c,bill_type:u})}trackBillPayMarkAsPaid(n,s){this.fireTrack(e.Event.billPayMarkAsPaid,{bill_stage:n,bill_status:s})}trackBillPayMarkAsPaidSubmit(n,s,c){this.fireTrack(e.Event.billPayMarkAsPaidSubmit,{payment_mode:n,bill_stage:s,bill_status:c})}trackGroupBySwitch(n,s){this.fireTrack(e.Event.groupBySwitch,{view:n,parent_card:s})}trackUpdateBurnRateCalculatorSettings(n,s,c){this.fireTrack(e.Event.burnRateCalculatorSettings,{accounting_method:n,time_span_id_for_avg_net_burn:s,number_of_months_for_average:c})}trackTransactionDetailsSave(n,s,c,u,l,d,f,p){this.fireTrack(e.Event.transactionDetailsSave,{account_id:n,account_name:s,transaction_id:c,transaction_name:u,transaction_type:l,changed_line_item_count:d,transaction_memo:f,receipt_file_names:p})}trackTransactionTypeUpdateTriggered({amount:n,creditAccountGroup:s,creditAccountId:c,creditAccountName:u,creditAccountType:l,currentTransactionType:d,debitAccountGroup:f,debitAccountId:p,debitAccountName:_,debitAccountType:g,previousTransactionMemo:m,previousTransactionType:v,transactionId:y,updatedTransactionMemo:b}){this.fireTrack(e.Event.transactionTypeUpdateTriggered,{previous_transaction_type:v,current_transaction_type:d,previous_transaction_memo:m,updated_transaction_memo:b,debit_account_name:_,debit_account_id:p,debit_account_type:g,debit_account_group:f,credit_account_name:u,credit_account_id:c,credit_account_type:l,credit_account_group:s,amount:n,transaction_id:y})}trackVendorList(n,s,c,u,l){this.fireTrack(e.Event.vendorList,{vendor_count:c,sort_key:u,spend_trend_key:l,current_tab:n,previous_tab:s})}trackVendorListSort(n,s,c){this.fireTrack(e.Event.vendorListSort,{vendor_count:n,sort_key:s,spend_trend_key:c})}trackVendorListSearch(n){this.fireTrack(e.Event.vendorListSearch,{search_term:n})}trackVendorListSpendTrendSelection(n,s,c){this.fireTrack(e.Event.vendorListSpendTrendSelection,{vendor_count:n,sort_key:s,spend_trend_key:c})}trackVendorDetails(n,s,c,u,l,d,f,p,_,g){this.fireTrack(e.Event.vendorDetails,{vendor_id:n,vendor_name:s,referrer_card:c,vendor_category:u,vendor_class_name:l,spend_trend_indicator_value:f,vendor_spend_last_30days:p,vendor_spend_last_90days:_,vendor_spend_ytd:g,vendor_owner:d})}trackVendorDetailsSave(n,s,c,u,l,d,f,p,_,g,m,v){this.fireTrack(e.Event.vendorDetailsSave,{vendor_id:n,vendor_name:s,vendor_category:c,vendor_class_name:u,vendor_owner:l,saved_vendor_category:d,saved_vendor_class:f,saved_vendor_owner:p,is_recommended_category_selected:_,is_recommended_class_selected:g,category_recommendation_used:m,class_recommendation_used:v})}trackVendorDetailsCancel(n,s,c,u,l){this.fireTrack(e.Event.vendorDetailsCancel,{vendor_id:n,vendor_name:s,vendor_category:c,vendor_class_name:u,vendor_owner:l})}trackVendorDetailsSpendTrendHotlinkClicked(n,s,c,u,l){this.fireTrack(e.Event.vendorDetailsSpendTrendHotlinkClicked,{vendor_id:n,vendor_name:s,vendor_category:c,vendor_class_name:u,vendor_owner:l})}trackAgingReportDownloadClick(n,s,c){this.fireTrack(e.Event.download,{referrer_card:n,sort_key:s,sort_order:c})}trackAgingReportDateChange(n,s,c,u){this.fireTrack(e.Event.agingReportDateChange,{referrer_card:n,current_report_date:s,new_report_date:c,new_report_date_selection:u})}trackAgingReportSortChange(n,s,c){this.fireTrack(e.Event.sort,{referrer_card:n,sort_key:s,sort_order:c})}trackApAgingDetail(n,s,c,u){this.fireTrack(e.Event.apAgingDetail,{referrer_card:n,vendor_id:c,vendor_name:u,current_report_date:s})}trackArAgingDetail(n,s,c,u){this.fireTrack(e.Event.arAgingDetail,{referrer_card:n,customer_id:c,customer_name:u,current_report_date:s})}trackApAgingDetailReportSortChange(n,s,c,u,l){this.fireTrack(e.Event.sort,{referrer_card:"AP Aging Detail",sort_key:n,sort_order:s,vendor_id:u,vendor_name:l,current_report_date:c})}trackArAgingDetailReportSortChange(n,s,c,u,l){this.fireTrack(e.Event.sort,{referrer_card:"AR Aging Detail",sort_key:n,sort_order:s,customer_id:u,customer_name:l,current_report_date:c})}trackApAgingDetailReportDownload(n,s,c,u,l){this.fireTrack(e.Event.download,{referrer_card:"AP Aging Detail",sort_key:n,sort_order:s,vendor_id:u,vendor_name:l,current_report_date:c})}trackArAgingDetailReportDownload(n,s,c,u,l){this.fireTrack(e.Event.download,{referrer_card:"AR Aging Detail",sort_key:n,sort_order:s,customer_id:u,customer_name:l,current_report_date:c})}trackVendorReviewPage(n,s){this.fireTrack(e.Event.vendorReviewList,{vendor_review_source:n,vendor_review_count_total:s})}trackVendorReviewApproveRequested({reviewSource:n,tenantName:s,requestedVendorName:c,originalVendorName:u,approveVendorName:l,approveVendorNameSelectionSource:d,approveVendorReason:f,isGlobalVendorRequested:p,isNewCreatedVendorRequested:_,isVendorNameRecommendationSelected:g,isVendorNameChangedAndSelected:m,wasRecommendationAvailable:v,recommendedVendorName:y,recommendedVendorReason:b}){this.fireTrack(e.Event.vendorReviewGlobalApproveRequest,{vendor_review_source:n,vendor_review_tenant_name:s,old_vendor_name_requested:c,old_vendor_name_original:u,approve_vendor_name_requested:l,approve_vendor_name_recommendation_reason:f,approve_vendor_name_selection_source:d,vendor_name_recommendation:y,vendor_name_recommendation_reason:b,is_vendor_recommended:v,is_recommended_vendor_name_selected:g,is_vendor_renamed:m,is_global_vendor_selected:p,is_vendor_name_new_created_and_selected:_})}trackVendorReviewNewVendorRequested({reviewSource:n,tenantName:s,newRequestedVendorName:c,newRequestedVendorNameSource:u,isVendorNameRecommendationSelected:l,recommendedVendorName:d,recommendedVendorReason:f}){this.fireTrack(e.Event.vendorReviewGlobalNewVendorRequest,{vendor_review_source:n,vendor_review_tenant_name:s,new_vendor_name_requested:c,new_vendor_name_selection_source:u,new_vendor_recommendation_vendor_name:d,new_vendor_recommendation_vendor_name_reason:f,is_recommended_vendor_name_selected:l})}trackVendorReviewNewVendorSaved({reviewSource:n,saveRequestedVendorName:s,saveRequestedVendorSource:c,isVendorNameRecommendationSelected:u,tenantName:l,recommendedVendorName:d,recommendedVendorReason:f}){this.fireTrack(e.Event.vendorReviewGlobalNewVendorSave,{vendor_review_source:n,vendor_review_tenant_name:l,saved_vendor_name:s,saved_vendor_name_selection_source:c,new_vendor_recommendation_vendor_name:d,new_vendor_recommendation_vendor_name_reason:f,is_recommended_vendor_name_selected:u})}trackVendorReviewNewVendorCanceled({reviewSource:n,newRequestedVendorName:s,tenantName:c,recommendedVendorName:u,recommendedVendorReason:l}){this.fireTrack(e.Event.vendorReviewGlobalNewVendorCancel,{vendor_review_source:n,vendor_review_tenant_name:c,new_vendor_name_requested:s,new_vendor_recommendation_vendor_name:u,new_vendor_recommendation_vendor_name_reason:l})}trackVendorReviewSaveVendorRequested({reviewSource:n,vendorName:s,vendorReviewStatus:c,saveRequestedVendorName:u,saveRequestedVendorReason:l,saveRequestedVendorSource:d,isGlobalVendorRequested:f,isVendorNameRetainSelected:p,isVendorNameRecommendationSelected:_,isVendorNameChangedAndSelected:g,wasRecommendationAvailable:m,isVendorNameMarkedAsEmployee:v,isVendorNameMarkedAsLocalContractor:y,recommendedVendorName:b,recommendedVendorReason:C}){this.fireTrack(e.Event.vendorReviewTenantSave,{vendor_review_source:n,old_vendor_name:s,review_status:c,saved_vendor_name:u,save_vendor_name_recommendation_reason:l,saved_vendor_name_source:d,vendor_name_recommendation:b,vendor_name_recommendation_reason:C,is_vendor_name_retain_selected:p,is_recommended_vendor_name_selected:_,is_global_vendor_selected:f,is_vendor_renamed:g,is_vendor_recommended:m,is_vendor_employee:v,is_vendor_contractor:y})}trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:n,event:s,vendorName:c,vendorReviewStatus:u,saveRequestedVendorName:l,saveRequestedVendorReason:d,saveRequestedVendorSource:f,isVendorNameRetainSelected:p,isVendorNameRecommendationSelected:_,isVendorNameChangedAndSelected:g,wasRecommendationAvailable:m,recommendedVendorName:v,recommendedVendorReason:y}){this.fireTrack(s,{vendor_review_source:n,old_vendor_name:c,review_status:u,saved_vendor_name:l,save_vendor_name_recommendation_reason:d,saved_vendor_name_source:f,vendor_name_recommendation:v,vendor_name_recommendation_reason:y,is_vendor_name_retain_selected:p,is_recommended_vendor_name_selected:_,is_vendor_renamed:g,is_vendor_recommended:m})}trackVendorReviewRecommendationUpdateContinuedOrCanceled({reviewSource:n,event:s,vendorName:c,vendorReviewStatus:u,saveRequestedVendorName:l,saveRequestedVendorReason:d,saveRequestedVendorSource:f,isVendorNameRetainSelected:p,isVendorNameRecommendationSelected:_,isVendorNameChangedAndSelected:g,wasRecommendationAvailable:m,updatedRecommendedVendorName:v,updatedRecommendedVendorReason:y,recommendedVendorName:b,recommendedVendorReason:C}){this.fireTrack(s,{vendor_review_source:n,old_vendor_name:c,review_status:u,saved_vendor_name:l,save_vendor_name_recommendation_reason:d,saved_vendor_name_source:f,updated_recommendation_vendor_name:v,updated_recommendation_vendor_name_reason:y,vendor_name_recommendation:b,vendor_name_recommendation_reason:C,is_vendor_name_retain_selected:p,is_recommended_vendor_name_selected:_,is_vendor_renamed:g,is_vendor_recommended:m})}trackVendorReviewUpdateVendorCanceled({reviewSource:n,vendorName:s,vendorReviewStatus:c,wasRecommendationAvailable:u,recommendedVendorName:l,recommendedVendorReason:d}){this.fireTrack(e.Event.vendorReviewTenantUpdateCancel,{vendor_review_source:n,old_vendor_name:s,review_status:c,vendor_name_recommendation:l,vendor_name_recommendation_reason:d,is_vendor_recommended:u})}trackVendorReviewWebsiteOpened({reviewSource:n,vendorName:s,wasRecommendationAvailable:c,recommendedVendorName:u,recommendedVendorReason:l,vendorWebsite:d}){this.fireTrack(e.Event.vendorReviewTenantWebsiteOpened,{vendor_review_source:n,old_vendor_name:s,vendor_name_recommendation:u,vendor_name_recommendation_reason:l,is_vendor_recommended:c,vendor_website:d})}trackCockpitTabClicked(n){const s={tab_name:n};this.fireTrack(e.Event.cockpitTabClicked,s)}trackCockpitHealthMonitorRowClicked(n,s,c,u,l,d){const f={company_id:n,company_name:s,churn_percent:d,controller_name:c,nps:u,csat:l};this.fireTrack(e.Event.cockpitHealthMonitorRowClicked,f)}trackHealthMonitorFiltersApplied({filterSelection:n}){this.fireTrack(e.Event.healthMonitorFilterApplied,{parameter:n.parameter,condition:n.condition,logic:n.logic})}trackCockpitHealthMonitorNotificationAlertClicked(n){const s={company_id:n.companyId,company_name:n.companyName,churn_percent:n.churnProbability};this.fireTrack(e.Event.cockpitHealthMonitorNotificationAlertClicked,s)}trackCockpitHealthMonitorChurnFormClicked(n,s){const c={click_type:n,company_id:s.companyId,company_name:s.companyName,zeni_products_and_services:s.zeniProductAndServicesCount,days_to_renewal:s.daysToRenewal,nps:s.netPromoterScore,csat:s.customerSatisfactionScore,external_services_exposure:s.externalServicesExposure,runway_months:s.runwayMonths,dashboard_last_seen:s.dashBoardLastSeen,last_report_sent:s.lastReportSent,churn_percent:s.churnProbability};this.fireTrack(e.Event.cockpitHealthMonitorChurnFormClicked,c)}trackScheduleReviewListLoaded({scheduleType:n,scheduleTab:s,currentTab:c,previousTab:u,scheduleCountTotal:l,categories:d,startMonth:f,endMonth:p,controllerEmails:_,controllerUserIds:g}){this.fireTrack(e.Event.scheduleReviewList,{schedule_type:n,schedule_list_tab:s,schedule_count_total:l,current_tab:c,previous_tab:u,schedule_account_categories_selected:d,schedule_period_start_month:f,schedule_period_end_month:p,controller_emails:_,controller_user_ids:g})}trackScheduleDetailsLoaded({scheduleType:n,transaction:s,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:l,fixedAssetsDetails:d,controllerEmails:f,controllerUserIds:p}){const{transactionDate:_,transactionAmount:g,scheduleCategory:m,scheduleClass:v,description:y}=s,{currentBalance:b,currentStatus:C,startMonth:w,endMonth:S,period:T}=u,{expenseCategory:R,expenseClass:P}=c;this.fireTrack(e.Event.scheduleDetailsPage,{schedule_type:n,vendor_name:l,transaction_date:_,transaction_amount:g,schedule_current_balance:b,schedule_category:m,schedule_class:v,schedule_description:y,schedule_current_status:C,schedule_start_month:w,schedule_end_month:S,schedule_number_of_months:T,expense_category:R,expense_class:P,accumulated_depreciation_category:d?.accumulatedDepreciationCategory??null,asset_id:d?.assetId??null,controller_emails:f,controller_user_ids:p})}trackScheduleDetailsSaved({scheduleType:n,transaction:s,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:l,fixedAssetsDetails:d,controllerEmails:f,controllerUserIds:p}){const{transactionDate:_,transactionAmount:g,scheduleCategory:m,scheduleClass:v,description:y}=s,{currentBalance:b,currentStatus:C,startMonth:w,endMonth:S,period:T}=u,{expenseCategory:R,expenseClass:P}=c;this.fireTrack(e.Event.scheduleDetailsSave,{schedule_type:n,vendor_name:l,transaction_date:_,transaction_amount:g,schedule_current_balance:b,schedule_category:m,schedule_class:v,schedule_description:y,schedule_current_status:C,schedule_start_month:w,schedule_end_month:S,schedule_number_of_months:T,expense_category:R,expense_class:P,accumulated_depreciation_category:d?.accumulatedDepreciationCategory??null,asset_id:d?.assetId??null,controller_emails:f,controller_user_ids:p})}trackScheduleDetailsCanceled({scheduleType:n,transaction:s,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:l,fixedAssetsDetails:d,controllerEmails:f,controllerUserIds:p}){const{transactionDate:_,transactionAmount:g,scheduleCategory:m,scheduleClass:v,description:y}=s,{currentBalance:b,currentStatus:C,startMonth:w,endMonth:S,period:T}=u,{expenseCategory:R,expenseClass:P}=c;this.fireTrack(e.Event.scheduleDetailsCancel,{schedule_type:n,vendor_name:l??"",transaction_date:_,transaction_amount:g,schedule_current_balance:b,schedule_category:m,schedule_class:v,schedule_description:y,schedule_current_status:C,schedule_start_month:w,schedule_end_month:S,schedule_number_of_months:T,expense_category:R,expense_class:P,accumulated_depreciation_category:d?.accumulatedDepreciationCategory??null,asset_id:d?.assetId??null,controller_emails:f,controller_user_ids:p})}trackScheduleDetailsLinkJournalEntry({scheduleType:n,transaction:s,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:l,fixedAssetsDetails:d,controllerEmails:f,controllerUserIds:p}){const{transactionDate:_,transactionAmount:g,scheduleCategory:m,scheduleClass:v}=s,{journalEntryMonth:y,journalEntryPostingDate:b,journalEntryTransactionAmount:C,journalEntryPostingStatus:w,journalEntryMemo:S}=u,{expenseCategory:T,expenseClass:R}=c;this.fireTrack(e.Event.scheduleDetailsLinkJournalEntry,{schedule_type:n,vendor_name:l,transaction_date:_,transaction_amount:g,schedule_category:m,schedule_class:v,journal_entry_month:y,journal_entry_posting_date:b,journal_entry_transaction_amount:C,journal_entry_posting_status:w,journal_entry_memo:S,expense_category:T,expense_class:R,accumulated_depreciation_category:d?.accumulatedDepreciationCategory??null,asset_id:d?.assetId??null,controller_emails:f,controller_user_ids:p})}trackScheduleDetailsViewJournalEntry({scheduleType:n,scheduleExpenseCategoryAndClass:s,journalEntryDetails:c,fixedAssetsDetails:u,controllerEmails:l,controllerUserIds:d}){const{journalEntryMonth:f,journalEntryPostingDate:p,journalEntryTransactionAmount:_,journalEntryPostingStatus:g,journalEntryMemo:m}=c,{expenseCategory:v,expenseClass:y}=s;this.fireTrack(e.Event.scheduleDetailsViewJournalEntry,{schedule_type:n,journal_entry_month:f,journal_entry_posting_date:p,journal_entry_transaction_amount:_,journal_entry_posting_status:g,journal_entry_memo:m,expense_category:v,expense_class:y,accumulated_depreciation_category:u?.accumulatedDepreciationCategory??null,asset_id:u?.assetId??null,controller_emails:l,controller_user_ids:d})}trackScheduleDetailsDeleted({scheduleType:n,transaction:s,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:l,fixedAssetsDetails:d,controllerEmails:f,controllerUserIds:p}){const{transactionDate:_,transactionAmount:g,scheduleCategory:m,scheduleClass:v,description:y}=s,{currentBalance:b,currentStatus:C,startMonth:w,endMonth:S,period:T}=u,{expenseCategory:R,expenseClass:P}=c;this.fireTrack(e.Event.scheduleDetailsDelete,{schedule_type:n,vendor_name:l,transaction_date:_,transaction_amount:g,schedule_current_balance:b,schedule_category:m,schedule_class:v,schedule_description:y,schedule_current_status:C,schedule_start_month:w,schedule_end_month:S,schedule_number_of_months:T,expense_category:R,expense_class:P,accumulated_depreciation_category:d?.accumulatedDepreciationCategory??null,asset_id:d?.assetId??null,controller_emails:f,controller_user_ids:p})}trackScheduleDetailsMarkedAsCompleted({scheduleType:n,transaction:s,scheduledTransaction:c,scheduleExpenseCategoryAndClass:u,vendorName:l,fixedAssetsDetails:d,controllerEmails:f,controllerUserIds:p}){const{transactionDate:_,transactionAmount:g,scheduleCategory:m,scheduleClass:v,description:y}=s,{currentBalance:b,currentStatus:C,startMonth:w,endMonth:S,period:T}=c,{expenseCategory:R,expenseClass:P}=u;this.fireTrack(e.Event.scheduleDetailsMarkComplete,{schedule_type:n,vendor_name:l,transaction_date:_,transaction_amount:g,schedule_current_balance:b,schedule_category:m,schedule_class:v,schedule_description:y,schedule_current_status:C,schedule_start_month:w,schedule_end_month:S,schedule_number_of_months:T,expense_category:R,expense_class:P,accumulated_depreciation_category:d?.accumulatedDepreciationCategory??null,asset_id:d?.assetId??null,controller_emails:f,controller_user_ids:p})}trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:n,transaction:s,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:l,fixedAssetsDetails:d,controllerEmails:f,controllerUserIds:p}){const{transactionDate:_,transactionAmount:g}=s,{journalEntryMonth:m,journalEntryPostingDate:v,journalEntryTransactionAmount:y,journalEntryPostingStatus:b,journalEntryMemo:C,journalEntryQBOLink:w,wasRecommendationAvailable:S,wasRecommendationSelected:T}=u,{expenseCategory:R,expenseClass:P}=c;this.fireTrack(e.Event.scheduleDetailsJournalEntryLinkedSaved,{schedule_type:n,vendor_name:l,transaction_date:_,transaction_amount:g,journal_entry_month:m,journal_entry_posting_date:v,journal_entry_transaction_amount:y,journal_entry_posting_status:b,journal_entry_qbo_link:w,journal_entry_memo:C,is_vendor_recommended:S,was_recommendation_selected:T,expense_category:R,expense_class:P,accumulated_depreciation_category:d?.accumulatedDepreciationCategory??null,asset_id:d?.assetId??null,controller_emails:f,controller_user_ids:p})}trackScheduleDetailsJournalEntryQBOFetched({scheduleType:n,transaction:s,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:l,fixedAssetsDetails:d,controllerEmails:f,controllerUserIds:p}){const{transactionDate:_,transactionAmount:g}=s,{journalEntryMonth:m,journalEntryPostingDate:v,journalEntryTransactionAmount:y,journalEntryPostingStatus:b,journalEntryMemo:C,wasRecommendationAvailable:w,wasRecommendationSelected:S,journalEntryQBOLink:T}=u,{expenseCategory:R,expenseClass:P}=c;this.fireTrack(e.Event.scheduleDetailsJournalEntryQBOFetched,{schedule_type:n,vendor_name:l,transaction_date:_,transaction_amount:g,journal_entry_month:m,journal_entry_posting_date:v,journal_entry_transaction_amount:y,journal_entry_posting_status:b,journal_entry_qbo_link:T,journal_entry_memo:C,is_vendor_recommended:w,was_recommendation_selected:S,expense_category:R,expense_class:P,accumulated_depreciation_category:d?.accumulatedDepreciationCategory??null,asset_id:d?.assetId??null,controller_emails:f,controller_user_ids:p})}trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:n,transaction:s,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:l,fixedAssetsDetails:d,controllerEmails:f,controllerUserIds:p}){const{transactionDate:_,transactionAmount:g}=s,{journalEntryMonth:m,journalEntryPostingDate:v,journalEntryTransactionAmount:y,journalEntryPostingStatus:b,journalEntryMemo:C,wasRecommendationAvailable:w,wasRecommendationSelected:S,journalEntryQBOLink:T}=u,{expenseCategory:R,expenseClass:P}=c;this.fireTrack(e.Event.scheduleDetailsJournalEntryLinkCancel,{schedule_type:n,vendor_name:l,transaction_date:_,transaction_amount:g,journal_entry_month:m,journal_entry_posting_date:v,journal_entry_transaction_amount:y,journal_entry_posting_status:b,journal_entry_qbo_link:T,journal_entry_memo:C,is_vendor_recommended:w,was_recommendation_selected:S,expense_category:R,expense_class:P,accumulated_depreciation_category:d?.accumulatedDepreciationCategory??null,asset_id:d?.assetId??null,controller_emails:f,controller_user_ids:p})}trackScheduleAccruedDetailsNewRequested({scheduleType:n}){this.fireTrack(e.Event.scheduleDetailsNewRequested,{schedule_type:n})}trackScheduleAccruedDetailsLoaded({scheduleType:n,scheduleExpenseCategoryAndClass:s,vendorName:c,controllerEmails:u,schedule:l,controllerUserIds:d}){const{startingBalance:f,scheduleAccountCategory:p,description:_,scheduleCreateDate:g,scheduleMonthlyAmount:m,runningBalance:v,currentStatus:y,startMonth:b,endMonth:C,period:w}=l,{expenseCategory:S,expenseClass:T}=s;this.fireTrack(e.Event.scheduleDetailsPage,{schedule_type:n,controller_emails:u,controller_user_ids:d,schedule_expense_category:S,schedule_expense_class:T,schedule_account_category:p,schedule_create_date:g,schedule_current_balance:v,schedule_current_status:y,schedule_description:_,schedule_end_month:C,schedule_monthly_amount:m,schedule_number_of_months:w,schedule_start_month:b,schedule_starting_balance:f,vendor_name:c})}trackScheduleAccruedDetailsSaved({scheduleType:n,scheduleExpenseCategoryAndClass:s,vendorName:c,controllerEmails:u,schedule:l,controllerUserIds:d}){const{startingBalance:f,scheduleAccountCategory:p,description:_,scheduleCreateDate:g,scheduleMonthlyAmount:m,runningBalance:v,currentStatus:y,startMonth:b,endMonth:C,period:w}=l,{expenseCategory:S,expenseClass:T}=s;this.fireTrack(e.Event.scheduleDetailsSave,{schedule_type:n,controller_emails:u,controller_user_ids:d,schedule_expense_category:S,schedule_expense_class:T,schedule_account_category:p,schedule_create_date:g,schedule_current_balance:v,schedule_current_status:y,schedule_description:_,schedule_end_month:C,schedule_monthly_amount:m,schedule_number_of_months:w,schedule_start_month:b,schedule_starting_balance:f,vendor_name:c})}trackScheduleAccruedDetailsCanceled({scheduleType:n,scheduleExpenseCategoryAndClass:s,vendorName:c,controllerEmails:u,schedule:l,controllerUserIds:d,lastPostedScheduleMonth:f}){const{startingBalance:p,scheduleAccountCategory:_,description:g,scheduleCreateDate:m,scheduleMonthlyAmount:v,runningBalance:y,currentStatus:b,startMonth:C,endMonth:w,period:S}=l,{expenseCategory:T,expenseClass:R}=s;this.fireTrack(e.Event.scheduleDetailsCancel,{schedule_type:n,controller_emails:u,controller_user_ids:d,schedule_expense_category:T,schedule_expense_class:R,schedule_account_category:_,schedule_create_date:m,schedule_current_balance:y,schedule_current_status:b,schedule_description:g,schedule_end_month:w,schedule_monthly_amount:v,schedule_number_of_months:S,schedule_start_month:C,schedule_starting_balance:p,vendor_name:c,schedule_last_month_with_posted_status:f})}trackScheduleAccruedDetailsDeleted({scheduleType:n,scheduleExpenseCategoryAndClass:s,vendorName:c,controllerEmails:u,schedule:l,controllerUserIds:d,scheduleNonPendingLastMonth:f,scheduleNonPendingLastMonthStatus:p}){const{startingBalance:_,scheduleAccountCategory:g,description:m,scheduleCreateDate:v,scheduleMonthlyAmount:y,runningBalance:b,currentStatus:C,startMonth:w,endMonth:S,period:T}=l,{expenseCategory:R,expenseClass:P}=s;this.fireTrack(e.Event.scheduleDetailsDelete,{schedule_type:n,controller_emails:u,controller_user_ids:d,schedule_expense_category:R,schedule_expense_class:P,schedule_account_category:g,schedule_create_date:v,schedule_current_balance:b,schedule_current_status:C,schedule_description:m,schedule_end_month:S,schedule_monthly_amount:y,schedule_number_of_months:T,schedule_start_month:w,schedule_starting_balance:_,vendor_name:c,schedule_non_pending_last_month:f,schedule_non_pending_last_month_status:p})}trackScheduleAccruedDetailsLinkJournalEntry({scheduleType:n,scheduleExpenseCategoryAndClass:s,schedule:c,vendorName:u,journalEntryDetails:l,controllerEmails:d,controllerUserIds:f}){const{journalEntryMonth:p,journalEntryAmount:_,journalEntryBalance:g,journalEntryPostingStatus:m}=l,{scheduleCreateDate:v,scheduleMonthlyAmount:y,currentStatus:b,description:C,endMonth:w,period:S,runningBalance:T,scheduleAccountCategory:R,startMonth:P,startingBalance:x}=c,{expenseCategory:O,expenseClass:D}=s;this.fireTrack(e.Event.scheduleDetailsJournalEntryLinkExpense,{schedule_type:n,schedule_create_date:v,vendor_name:u,schedule_monthly_amount:y,schedule_description:C,schedule_current_status:b,schedule_start_month:P,schedule_end_month:w,schedule_number_of_months:S,schedule_current_balance:T,schedule_starting_balance:x,schedule_account_category:R,schedule_entry_expense_link_amount:_,schedule_entry_expense_link_balance:g,schedule_entry_expense_link_month:p,schedule_entry_current_status:m,schedule_expense_category:O,schedule_expense_class:D,controller_emails:d,controller_user_ids:f})}trackScheduleAccruedDetailsViewJournalEntry({scheduleType:n,scheduleJournalEntryType:s,scheduleExpenseCategoryAndClass:c,schedule:u,vendorName:l,journalEntryDetails:d,controllerEmails:f,controllerUserIds:p}){const{journalEntryMonth:_,journalEntryAmount:g,journalEntryBalance:m,journalEntryPostingStatus:v}=d,{scheduleCreateDate:y,scheduleMonthlyAmount:b,currentStatus:C,description:w,endMonth:S,period:T,runningBalance:R,scheduleAccountCategory:P,startMonth:x,startingBalance:O}=u,{expenseCategory:D,expenseClass:j}=c;this.fireTrack(e.Event.scheduleDetailsViewJournalEntry,{schedule_type:n,schedule_journal_entry_type:s,schedule_create_date:y,vendor_name:l,schedule_monthly_amount:b,schedule_account_category:P,schedule_description:w,schedule_current_status:C,schedule_start_month:x,schedule_end_month:S,schedule_number_of_months:T,schedule_expense_category:D,schedule_expense_class:j,schedule_current_balance:R,schedule_starting_balance:O,schedule_entry_current_status:v,schedule_entry_expense_link_amount:g,schedule_entry_expense_link_balance:m,schedule_entry_expense_link_month:_,controller_emails:f,controller_user_ids:p})}trackScheduleAccruedDetailsJournalEntryViewLinkedExpense({scheduleType:n,scheduleExpenseCategoryAndClass:s,schedule:c,vendorName:u,journalEntryDetails:l,controllerEmails:d,controllerUserIds:f}){const{journalEntryMonth:p,journalEntryAmount:_,journalEntryBalance:g,journalEntryPostingStatus:m}=l,{scheduleCreateDate:v,scheduleMonthlyAmount:y,currentStatus:b,description:C,endMonth:w,period:S,runningBalance:T,scheduleAccountCategory:R,startMonth:P,startingBalance:x}=c,{expenseCategory:O,expenseClass:D}=s;this.fireTrack(e.Event.scheduleDetailsJournalEntryViewLinkedExpense,{schedule_type:n,schedule_create_date:v,vendor_name:u,schedule_monthly_amount:y,schedule_account_category:R,schedule_description:C,schedule_current_status:b,schedule_start_month:P,schedule_end_month:w,schedule_number_of_months:S,schedule_expense_category:O,schedule_expense_class:D,schedule_current_balance:T,schedule_starting_balance:x,schedule_entry_current_status:m,schedule_entry_expense_link_amount:_,schedule_entry_expense_link_balance:g,schedule_entry_expense_link_month:p,controller_emails:d,controller_user_ids:f})}trackScheduleAccruedDetailsJournalEntryLinkCanceled({scheduleType:n,scheduleExpenseCategoryAndClass:s,schedule:c,vendorName:u,journalEntryDetails:l,controllerEmails:d,controllerUserIds:f}){const{journalEntryMonth:p,journalEntryAmount:_,journalEntryBalance:g,journalEntryPostingStatus:m}=l,{scheduleCreateDate:v,scheduleMonthlyAmount:y,currentStatus:b,description:C,endMonth:w,period:S,runningBalance:T,scheduleAccountCategory:R,startMonth:P,startingBalance:x}=c,{expenseCategory:O,expenseClass:D}=s;this.fireTrack(e.Event.scheduleDetailsEntryCanceled,{schedule_type:n,schedule_create_date:v,vendor_name:u,schedule_monthly_amount:y,schedule_description:C,schedule_current_status:b,schedule_start_month:P,schedule_end_month:w,schedule_number_of_months:S,schedule_current_balance:T,schedule_starting_balance:x,schedule_account_category:R,schedule_entry_expense_link_month:p,schedule_expense_category:O,schedule_expense_class:D,schedule_entry_current_status:m,schedule_entry_expense_link_amount:_,schedule_entry_expense_link_balance:g,controller_emails:d,controller_user_ids:f})}trackScheduleAccruedDetailsJournalEntryLinkedLoaded({scheduleType:n,scheduleExpenseCategoryAndClass:s,schedule:c,vendorName:u,journalEntryDetails:l,controllerEmails:d,controllerUserIds:f}){const{currentStatus:p,description:_,endMonth:g,period:m,runningBalance:v,scheduleAccountCategory:y,scheduleCreateDate:b,scheduleMonthlyAmount:C,startMonth:w,startingBalance:S}=c,{wasRecommendationAvailable:T,journalEntryPostingStatus:R}=l,{expenseCategory:P,expenseClass:x}=s;this.fireTrack(e.Event.scheduleDetailsJournalEntryLinkExpenseLoaded,{schedule_type:n,vendor_name:u,schedule_create_date:b,schedule_monthly_amount:C,schedule_description:_,schedule_current_status:p,schedule_start_month:w,schedule_end_month:g,schedule_number_of_months:m,schedule_current_balance:v,schedule_starting_balance:S,schedule_account_category:y,schedule_expense_category:P,schedule_expense_class:x,controller_emails:d,schedule_entry_current_status:R,controller_user_ids:f,is_vendor_recommended:T})}trackScheduleAccruedDetailsJournalEntryLinkedSaved({scheduleType:n,scheduleExpenseCategoryAndClass:s,schedule:c,vendorName:u,transactionDetails:l,journalEntryDetails:d,controllerEmails:f,controllerUserIds:p}){const{currentStatus:_,description:g,endMonth:m,period:v,runningBalance:y,scheduleAccountCategory:b,scheduleCreateDate:C,scheduleMonthlyAmount:w,startMonth:S,startingBalance:T}=c,{wasRecommendationAvailable:R,wasRecommendationSelected:P,journalEntryPostingStatus:x}=d,{linkedTransactionAmount:O,linkedTransactionDate:D,linkedTransactionDescription:j,linkedTransactionType:ye}=l,{expenseCategory:Z,expenseClass:we}=s;this.fireTrack(e.Event.scheduleDetailsJounralEntryLinkExpenseSaved,{schedule_type:n,vendor_name:u,schedule_create_date:C,schedule_monthly_amount:w,schedule_description:g,schedule_current_status:_,schedule_start_month:S,schedule_end_month:m,schedule_number_of_months:v,schedule_current_balance:y,schedule_starting_balance:T,schedule_account_category:b,schedule_expense_category:Z,schedule_expense_class:we,controller_emails:f,controller_user_ids:p,is_vendor_recommended:R,was_recommendation_selected:P,linked_transaction_amount:O,linked_transaction_date:D,schedule_entry_current_status:x,linked_transaction_description:j,linked_transaction_type:ye})}trackScheduleAccruedDetailsJournalEntryLinkedCanceled({scheduleType:n,scheduleExpenseCategoryAndClass:s,schedule:c,vendorName:u,journalEntryDetails:l,controllerEmails:d,controllerUserIds:f}){const{currentStatus:p,description:_,endMonth:g,period:m,runningBalance:v,scheduleAccountCategory:y,scheduleCreateDate:b,scheduleMonthlyAmount:C,startMonth:w,startingBalance:S}=c,{wasRecommendationAvailable:T,journalEntryPostingStatus:R}=l,{expenseCategory:P,expenseClass:x}=s;this.fireTrack(e.Event.scheduleDetailsJournalEntryLinkExpenseCanceled,{schedule_type:n,vendor_name:u,schedule_create_date:b,schedule_monthly_amount:C,schedule_description:_,schedule_current_status:p,schedule_start_month:w,schedule_end_month:g,schedule_number_of_months:m,schedule_current_balance:v,schedule_starting_balance:S,schedule_account_category:y,schedule_expense_category:P,schedule_expense_class:x,controller_emails:d,controller_user_ids:f,schedule_entry_current_status:R,is_vendor_recommended:T})}trackCockpitTaskCardClicked({tenantName:n,tenantId:s,user:c,controllerEmails:u}){this.fireTrack(e.Event.cockpitTaskCardClicked,{tenant_name:n,tenant_id:s,user_name:c.name,user_email:c.email,user_role:c.role,controller_emails:u})}trackTaskEdited({tenantName:n,taskId:s,activity:c,createdBy:u,commentsCreated:l}){const{name:d,description:f,status:p,priority:_,assignees:g,numberOfAttachments:m,tags:v,dueDate:y}=c.details;this.fireTrack(e.Event.taskEdited,{tenant_name:n,task_id:s,created_by:u,activity_count:c.count,activity_type:{name:d,description:f,status:p,priority:_,assignees:g,file_attached_count:m,tags:v,due_date:y},activity_by_user:c.byUser,comment_created:l})}trackTaskCreated({tenantName:n,taskId:s,newButtonClicked:c,activity:u,createdBy:l}){const{name:d,description:f,status:p,priority:_,assignees:g,numberOfAttachments:m,tags:v,dueDate:y}=u.details;this.fireTrack(e.Event.newTaskRequested,{tenant_name:n,task_id:s,created_by:l,new_task_button_clicked:c,file_attached_count:m,assignees:g,priority_set:_,task_name:d,task_description:f,task_status:p,tag_name:v?v.join(","):null,task_due_date:y})}trackRewardsPageClicked(n){this.fireTrack(e.Event.rewardsPageClicked,{click_type:n})}trackDashboardCardClicked(n,s){this.fireTrack(e.Event.dashboardCardClicked,{click_type:n,card_position:s})}trackInviteEmailClicked(n,s,c,u){this.fireTrack(e.Event.inviteEmailClicked,{click_type:n,referred_company:s,referred_email:c,invitee_count:u})}trackGetAuditScore(n,s,c,u,l){this.fireTrack(e.Event.getAuditScore,{clicked:n,tenant:s,report_month:c,controller_name:u,report_timestamp:l})}trackAuditScorePercentage(n,s,c,u,l,d,f,p){this.fireTrack(e.Event.auditScorePercentage,{report_timestamp:n,report_month:s,score_percentage:c,issue_type:l,tenant:u,controller_name:f,customer_group:p,no_of_issues:d})}trackAuditIssuesClicked(n,s,c,u){this.fireTrack(e.Event.auditIssuesClicked,{clicked_issue:n,tenant:s,controller_name:c,created_at:u})}trackZeniAssistClick(n,s,c,u,l){this.fireTrack(e.Event.zeniAssistClick,{bill_stage:s,bill_status:n,bill_type:u,error_description:c,invoice_number:l})}trackRetryClick(n,s,c,u,l){this.fireTrack(e.Event.retryClick,{bill_stage:s,bill_status:n,bill_type:u,error_description:c,invoice_number:l})}trackRetryConfirmClick(n,s,c,u,l){this.fireTrack(e.Event.retryConfirmClick,{bill_stage:s,bill_status:n,bill_type:u,error_description:c,invoice_number:l})}trackRefundClick(n,s,c,u,l){this.fireTrack(e.Event.refundClick,{bill_stage:s,bill_status:n,bill_type:u,error_description:c,invoice_number:l})}trackRefundConfirmClick(n,s,c,u,l){this.fireTrack(e.Event.refundConfirmClick,{bill_stage:s,bill_status:n,bill_type:u,error_description:c,invoice_number:l})}trackVendor1099DetailSave(n){this.fireTrack(e.Event.vendor1099DetailsSave,{vendor_legal_name:n})}trackVendor1099ReportDownload(n){this.fireTrack(e.Event.vendor1099ReportDownload,{report:n.includes("All")?"All":n.toUpperCase()})}trackEnableIntlWire(n){this.fireTrack(e.Event.enableIntlWire,{local_currency_enabled:n})}trackSubmitIntlWire(n){this.fireTrack(e.Event.submitIntlWire,{local_currency_enabled:n})}trackIntlWirePaymentSelect(n,s,c,u,l){this.fireTrack(e.Event.intlWirePaymentMethod,{bill_stage:n,bill_status:s,bill_type:c,invoice_number:u,local_currency_enabled:l})}trackMonthEndCloseClicked(n,s,c){this.fireTrack(e.Event.monthCloseClicked,{month_year:`${n}-${s}`,source:c})}trackMonthCloseAuditPage(n,s,c,u,l,d){this.fireTrack(e.Event.monthCloseAuditPage,{month_year:`${n}-${s}`,audit_score:u,refresh_clicked:l,status:c,source:d})}trackTransactionsReviewPage(n,s,c,u,l,d){this.fireTrack(e.Event.transactionsReview,{month_year:`${n}-${s}`,refresh_clicked:l,number_of_transactions:c,transaction_updates:u,source:d})}trackTransactionsAutoCategorisedPage(n,s,c,u,l,d){this.fireTrack(e.Event.transactionsAutoCategorised,{month_year:`${n}-${s}`,refresh_clicked:l,number_of_transactions:c,transaction_updates:u,source:d})}trackAiCloseTransactionSearch({filtersApplied:n,hasResults:s,isFiltered:c,resultsCount:u,searchTerm:l,searchType:d}){this.fireTrack(e.Event.aiCloseTransactionSearch,{filters_applied:n,has_results:s,is_filtered:c,results_count:u,search_term:l,search_type:d,section:"ai_close",tab:"transactions"})}trackMonthCloseScheduleListPage(n,s,c,u,l,d,f,p){this.fireTrack(e.Event.monthCloseScheduleList,{month_year:`${n}-${s}`,refresh_clicked:c,number_of_recommendations:u,failed_postings:l,number_of_prepaid:d.prepaidCount,number_of_fixed_assets:d.fixedAssetsCount,number_of_accrued:d.accruedCount,number_of_one_time_accruals:d.oneTimeAccrualCount,tab_name:f,source:p})}trackFluxAnalysisPage(n,s,c,u,l){this.fireTrack(e.Event.fluxAnalysis,{month_year:`${n}-${s}`,refresh_clicked:c,open_items:u,source:l})}trackFluxAnalysisReviewed(n,s,c,u){this.fireTrack(e.Event.fluxAnalysisReviewed,{month_year:`${n}-${s}`,number_of_items_reviewed:u.length,is_bulk_update:c})}trackMissingReceiptsPage(n,s,c,u,l){this.fireTrack(e.Event.missingReceipts,{month_year:`${n}-${s}`,number_of_transactions:u,refresh_clicked:c,source:l})}trackMissingReceiptAttached(n,s){this.fireTrack(e.Event.missingReceipts,{month_year:`${n}-${s}`,is_attached:!0})}trackInsightsEmailPage(n,s,c,u,l,d,f){this.fireTrack(e.Event.insightsEmail,{month_year:`${n}-${s}`,refresh_clicked:c,email_status:u,audit_score:l,date:d,source:f})}trackMonthEndEmailSentFromCockpit(n,s,c){this.fireTrack(e.Event.monthEndEmailSentFromCockpit,{month_year:`${n}-${s}`,recipient_count:c})}trackCommentAdded(n,s,c,u,l,d){this.fireTrack(e.Event.commentAdded,{page_name:n,commented_on:s,comment_type:c,tenant:u,controller_name:l,created_by:d})}trackCommentActivity(n,s,c,u,l,d,f){this.fireTrack(e.Event.commentActivity,{page_name:n,comment_activity_type:s,tenant:c,controller_name:u,status:l,created_by:d,comment_activity_source:f})}trackSendMoneyClick(){this.fireTrack(e.Event.sendMoneyClick)}trackExpressPayNextClick(n){this.fireTrack(e.Event.expressPayNextClick,{stage:n})}trackExpressPayScheduleClick(){this.fireTrack(e.Event.expressPayScheduleClick)}trackLowBalanceAccountSelected(n,s,c,u,l,d){this.fireTrack(e.Event.lowBalanceAccountSelected,{bill_stage:n,bill_status:s,bill_type:c,invoice_number:u,user_name:l,account_type:d})}trackLowBalanceAccountSentForApproval(n,s,c,u,l,d){this.fireTrack(e.Event.lowBalanceAccountSentForApproval,{bill_stage:n,bill_status:s,bill_type:c,invoice_number:u,user_name:l,account_type:d})}trackLowBalanceAccountApprove(n,s,c,u,l,d){this.fireTrack(e.Event.lowBalanceAccountApprove,{bill_stage:n,bill_status:s,bill_type:c,invoice_number:u,user_name:l,account_type:d})}trackLowBalanceAccountReject(n,s,c,u,l,d){this.fireTrack(e.Event.lowBalanceAccountReject,{bill_stage:n,bill_status:s,bill_type:c,invoice_number:u,user_name:l,account_type:d})}trackLowBalanceAccountChange(n,s,c,u,l,d){this.fireTrack(e.Event.lowBalanceAccountChange,{bill_stage:n,bill_status:s,bill_type:c,invoice_number:u,user_name:l,account_type:d})}trackLowBalanceAccountSchedule(n,s,c,u,l,d){this.fireTrack(e.Event.lowBalanceAccountSchedule,{bill_stage:n,bill_status:s,bill_type:c,invoice_number:u,user_name:l,account_type:d})}trackVendorOperatingExpenses(n,s){this.fireTrack(e.Event.vendorOperatingExpenses,{current_tab:n,previous_tab:s})}trackVendorOperatingExpensesPageLoaded(n){this.fireTrack(e.Event.vendorOperatingExpensesPageLoaded,{source:n})}trackAICFOChatScreenStateChanged(n,s,c,u){this.fireTrack(e.Event.aiCFOChatScreenStateChanged,{action:n,chat_source:s,chat_session_id:c,chat_session_title:u})}trackAICFOChatSessionChanged(n,s,c,u){this.fireTrack(e.Event.aiCFOChatSessionChanged,{action:n,chat_source:s,chat_session_id:c,chat_session_title:u})}trackAICFOChatSubmitted(n,s,c,u,l,d){this.fireTrack(e.Event.aiCFOChatSubmitted,{question_text:n,chat_source:s,chat_session_id:c,chat_message_id:l,chat_session_title:u,index:d})}trackAICFOChatFeedbackGiven(n,s,c,u,l){this.fireTrack(e.Event.aiCFOChatFeedbackGiven,{feedback_type:n,question_text:s,chat_session_id:c,chat_message_id:l,chat_session_title:u})}trackAICFOChatResponseGenerated(n,s,c,u,l,d){this.fireTrack(e.Event.aiCFOChatResponseGenerated,{response_type:n,question_text:s,response_text:c,chat_session_id:u,chat_message_id:d,chat_session_title:l})}trackAICFOChatAnswerGenerated(n,s,c,u,l,d,f,p,_,g){this.fireTrack(e.Event.aiCFOChatAnswerGenerated,{has_visualization:d,visualization_type:f,has_follow_up_questions:c,has_assumptions:u,response_text:n,has_insights:l,question_text:s,chat_session_id:p,chat_message_id:g,chat_session_title:_})}trackAICFOOnboardingScreenStateChanged(n,s){this.fireTrack(e.Event.aiCFOOnboardingScreenStateChanged,{action:n,ai_cfo_onboarding_source:s})}trackAICFOPrivacyPolicy(){this.fireTrack(e.Event.aiCFOPrivacyPolicy)}trackAICFOAgreement(){this.fireTrack(e.Event.aiCFOAgreement)}trackTreasuryNavPromoClick(n){this.fireTrack(e.Event.treasuryNavPromoClick,{clicked_on:n})}trackTreasuryPromoView(n){this.fireTrack(e.Event.treasuryPromoView,{page_name:n})}trackTreasurySetupActionClick(n){this.fireTrack(e.Event.treasurySetupActionClick,{action_type:n})}trackTreasuryProspectusClick(n,s,c){this.fireTrack(e.Event.treasuryProspectusClick,{fund_name:n,fund_ticker:s,page_name:c})}trackTreasuryCalculatorClick(n,s){this.fireTrack(e.Event.treasuryCalculatorClick,{page_name:n,amount:s})}trackTreasuryAgreementView(){this.fireTrack(e.Event.treasuryAgreementView)}trackTreasuryAllocationAction(n,s){this.fireTrack(e.Event.treasuryAllocationAction,{action_type:n,fund_percentage:s})}trackTreasuryRiskAction(n,s,c){this.fireTrack(e.Event.treasuryRiskAction,{action_type:n,risk_score:s,fund_percentage:c})}trackTreasuryVerificationNavigation(n,s){this.fireTrack(e.Event.treasuryVerificationNavigation,{clicked_on:n,verification_status:s})}trackTreasuryTransferAction(n,s,c,u,l,d){this.fireTrack(e.Event.treasuryTransferAction,{clicked_on:n,from_account:s,to_account:c,amount:u,fund_percentage:l,page_name:d})}trackTreasuryDashboardInteraction(n){this.fireTrack(e.Event.treasuryDashboardInteraction,{clicked_on:n})}trackTreasuryPortfolioConfirm(n,s){this.fireTrack(e.Event.treasuryPortfolioConfirm,{risk_score:n,fund_percentage:s})}trackTreasuryPromoCards(n){this.fireTrack(e.Event.treasuryPromoCards,{card_clicked:n})}trackTreasuryPromoVideo(n){this.fireTrack(e.Event.treasuryPromoVideo,{page_name:n})}trackInvoicingActionClick(n,s){this.fireTrack(n,{invoicing_invoice_id:s?.invoiceId,invoicing_customer_id:s?.customerId,invoicing_subscription_id:s?.subscriptionId,invoicing_transaction_id:s?.transactionId,invoicing_coupon_id:s?.couponId,invoicing_credit_note_id:s?.creditNoteId,invoicing_case_id:s?.caseId,invoicing_item_id:s?.itemId,invoicing_session_id:s?.sessionId,invoicing_entity_id:s?.entityId,invoicing_action:s?.action,invoicing_mode:s?.mode,invoicing_status:s?.status,invoicing_item_type:s?.itemType,invoicing_entity:s?.entity,invoicing_tab:s?.tab,invoicing_payment_method:s?.paymentMethod,invoicing_amount:s?.amount,invoicing_line_item_count:s?.lineItemCount,invoicing_linked_invoice_count:s?.linkedInvoiceCount,invoicing_is_recurring:s?.isRecurring,invoicing_fields_changed:s?.fieldsChanged,invoicing_from_screen:s?.fromScreen,invoicing_to_screen:s?.toScreen})}trackTransactionCotView({recommendationFor:n,currentValue:s,recommendation:c,recommendationCot:u,isRecommendationCotAvailable:l,recommendationReason:d,recommendationConfidenceLevel:f,alternativeRecommendation:p,alternativeRecommendationCot:_,isAlternativeRecommendationCotAvailable:g,alternativeRecommendationReason:m,alternativeRecommendationConfidenceLevel:v,transactionPage:y,transactionCurrentStatus:b,recommendationConfidencePercentage:C,alternativeRecommendationConfidencePercentage:w,transactionId:S,lineId:T}){this.fireTrack(e.Event.transactionCotView,{recommendation_for:n,current_value:s,recommendation:c,recommendation_cot:u,is_recommendation_cot_available:l,recommendation_reason:d,recommendation_confidence_percentage:C,recommendation_confidence_level:f,alternative_recommendation:p,alternative_recommendation_cot:_,is_alternative_recommendation_cot_available:g,alternative_recommendation_reason:m,alternative_recommendation_confidence_percentage:w,alternative_recommendation_confidence_level:v,transaction_page:y,transaction_current_status:b,...a(S,T)})}trackTransactionCotDropdownView({recommendationType:n,recommendationFor:s,currentValue:c,recommendation:u,recommendationCot:l,isRecommendationCotAvailable:d,recommendationReason:f,recommendationConfidenceLevel:p,transactionPage:_,transactionCurrentStatus:g,recommendationConfidencePercentage:m,transactionId:v,lineId:y}){this.fireTrack(e.Event.transactionCotDropdownView,{recommendation_type:n,recommendation_for:s,current_value:c,recommendation:u,recommendation_cot:l,is_recommendation_cot_available:d,recommendation_reason:f,recommendation_confidence_percentage:m,recommendation_confidence_level:p,transaction_current_status:g,transaction_page:_,...a(v,y)})}trackTransactionCotViewAlternative({alternativeRecommendationFor:n,alternativeRecommendation:s,alternativeRecommendationCot:c,isAlternativeRecommendationCotAvailable:u,alternativeRecommendationReason:l,alternativeRecommendationConfidenceLevel:d,transactionPage:f,transactionCurrentStatus:p,alternativeRecommendationConfidencePercentage:_,transactionId:g,lineId:m}){this.fireTrack(e.Event.transactionCotViewAlternative,{alternative_recommendation_for:n,alternative_recommendation:s,alternative_recommendation_cot:c,is_alternative_recommendation_cot_available:u,alternative_recommendation_reason:l,alternative_recommendation_confidence_percentage:_,alternative_recommendation_confidence_level:d,transaction_current_status:p,transaction_page:f,...a(g,m)})}trackTransactionCotViewRecommended({recommendationFor:n,currentValue:s,recommendation:c,recommendationCot:u,isRecommendationCotAvailable:l,recommendationReason:d,recommendationConfidenceLevel:f,recommendationConfidencePercentage:p,transactionId:_,lineId:g}){this.fireTrack(e.Event.transactionCotViewRecommended,{recommendation_for:n,current_value:s,recommendation:c,recommendation_cot:u,is_recommendation_cot_available:l,recommendation_reason:d,recommendation_confidence_percentage:p,recommendation_confidence_level:f,...a(_,g)})}trackRecommendationAccepted(n){this.fireTrack(e.Event.recommendationAccepted,r(n))}trackRecommendationFeedbackSubmitted({feedbackReason:n,...s}){this.fireTrack(e.Event.recommendationFeedbackSubmitted,{...r(s),feedback_reason:n})}trackRecommendationFeedbackSkipped(n){this.fireTrack(e.Event.recommendationFeedbackSkipped,r(n))}trackRecommendationFeedbackRetracted(n){this.fireTrack(e.Event.recommendationFeedbackRetracted,r(n))}trackAIPerfHome(n){this.fireTrack(e.Event.aiPerfHome,{perf_snapshot:n})}trackAIPerfRefresh(n){this.fireTrack(e.Event.aiPerfRefresh,{perf_snapshot:n})}trackAIPerfTimePeriodSelect(n){this.fireTrack(e.Event.aiPerfTimePeriodSelect,{perf_snapshot:n})}trackAutoTransferRuleIconClick(n){this.fireTrack(e.Event.autoTransferRuleIconClick,{page_name:n})}trackAutoTransferRuleClick(n){this.fireTrack(e.Event.autoTransferRuleClick,{rule_name:n})}trackAutoTransferRuleReviewClick(n,s,c,u,l){this.fireTrack(e.Event.autoTransferRuleReviewClick,{rule_name:n,amount:s,withdrawal_bank:c,deposit_bank:u,frequency:l})}trackAutoTransferRuleCreateClick(n,s,c,u,l){this.fireTrack(e.Event.autoTransferRuleCreateClick,{rule_name:n,amount:s,withdrawal_bank:c,deposit_bank:u,frequency:l})}trackAutoTransferRuleMoreClick(n,s,c,u,l){this.fireTrack(e.Event.autoTransferRuleMoreClick,{rule_name:n,amount:s,withdrawal_bank:c,deposit_bank:u,frequency:l})}trackAutoTransferRuleActionClick(n,s,c,u,l,d){this.fireTrack(e.Event.autoTransferRuleActionClick,{rule_name:n,action_clicked:s,amount:c,withdrawal_bank:u,deposit_bank:l,frequency:d})}trackAutoTransferRuleActionConfirm(n,s,c,u,l,d,f){this.fireTrack(e.Event.autoTransferRuleActionConfirm,{rule_name:n,action_clicked:s,amount:c,withdrawal_bank:u,deposit_bank:l,frequency:d,update_log:f})}trackAutoTransferRuleActionCancel(n,s,c,u,l,d){this.fireTrack(e.Event.autoTransferRuleActionCancel,{rule_name:n,action_clicked:s,amount:c,withdrawal_bank:u,deposit_bank:l,frequency:d})}fireTrack(n,s){if(e.EVENTS_WITHOUT_SUPER_PROPERTIES.has(n)===!0){this.provider.track(n,s);return}const c=Object.assign({},this.superProperties,s);this.provider.track(n,c)}}return _r.Analytics=i,_r}var Xr={},Vo;function id(){if(Vo)return Xr;Vo=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.extractUtmParamsFromUrl=e;function e(t){if(t==null&&typeof window>"u")return{};const a=t??new URLSearchParams(window.location.search),r={};for(const[i,o]of a.entries())i.startsWith("utm_")&&(r[i]=o);return r}return Xr}var zo;function sv(){return zo||(zo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extractUtmParamsFromUrl=e.EVENTS_WITHOUT_SUPER_PROPERTIES=e.Event=e.Analytics=void 0;const t=rd();Object.defineProperty(e,"Analytics",{enumerable:!0,get:function(){return t.Analytics}});const a=pc();Object.defineProperty(e,"EVENTS_WITHOUT_SUPER_PROPERTIES",{enumerable:!0,get:function(){return a.EVENTS_WITHOUT_SUPER_PROPERTIES}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return a.Event}});const r=id();Object.defineProperty(e,"extractUtmParamsFromUrl",{enumerable:!0,get:function(){return r.extractUtmParamsFromUrl}})})(Tn)),Tn}var Oi={},A;if(typeof window>"u"){var qo={hostname:""};A={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:qo,referrer:""},screen:{width:0,height:0},location:qo,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else A=window;function Wo(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function Go(e,t,a,r,i,o,n){try{var s=e[o](n),c=s.value}catch(u){a(u);return}s.done?t(c):Promise.resolve(c).then(r,i)}function Ga(e){return function(){var t=this,a=arguments;return new Promise(function(r,i){var o=e.apply(t,a);function n(c){Go(o,r,i,n,s,"next",c)}function s(c){Go(o,r,i,n,s,"throw",c)}n(void 0)})}}function Si(e,t,a){return _c()?Si=Reflect.construct:Si=function(i,o,n){var s=[null];s.push.apply(s,o);var c=Function.bind.apply(i,s),u=new c;return n&&Ir(u,n.prototype),u},Si.apply(null,arguments)}function nd(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ve(e,t,a){return t&&nd(e.prototype,t),e}function J(){return J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},J.apply(this,arguments)}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},Yn(e)}function ke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ir(e,t)}function B(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ad(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Pr(e,t){if(e==null)return{};var a={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(a[i]=e[i]);return a}function Ir(e,t){return Ir=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ir(e,t)}function $(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function od(e,t){if(e){if(typeof e=="string")return Wo(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(a);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Wo(e,t)}}function xi(e){var t=typeof Map=="function"?new Map:void 0;return xi=function(r){if(r===null||!ad(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Si(r,arguments,Yn(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ir(i,r)},xi(e)}function _c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_c=function(){return!!e})()}function E(e,t){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=od(e))||t){a&&(e=a);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Er(e,t){var a,r,i,o,n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(l){return c([u,l])}}function c(u){if(a)throw new TypeError("Generator is already executing.");for(;n;)try{if(a=1,r&&(i=u[0]&2?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(l){u=[6,l],r=0}finally{a=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function mc(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var sd=Object.defineProperty,cd=function(e,t,a){return t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a},I=function(e,t,a){return cd(e,(typeof t>"u"?"undefined":$(t))!=="symbol"?t+"":t,a)},jo,ud=Object.defineProperty,ld=function(e,t,a){return t in e?ud(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a},Ho=function(e,t,a){return ld(e,(typeof t>"u"?"undefined":$(t))!=="symbol"?t+"":t,a)},_e=(function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e})(_e||{}),Jo={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Zo={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Qr={},dd=function(){return!!globalThis.Zone};function ja(e){if(Qr[e])return Qr[e];var t=globalThis[e],a=t.prototype,r=e in Jo?Jo[e]:void 0,i=!!(r&&r.every(function(l){var d,f;return!!((f=(d=Object.getOwnPropertyDescriptor(a,l))==null?void 0:d.get)!=null&&f.toString().includes("[native code]"))})),o=e in Zo?Zo[e]:void 0,n=!!(o&&o.every(function(l){var d;return typeof a[l]=="function"&&((d=a[l])==null?void 0:d.toString().includes("[native code]"))}));if(i&&n&&!dd())return Qr[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(s),u?Qr[e]=u:a}catch{return a}}var Rn={};function dt(e,t,a){var r,i=e+"."+String(a);if(Rn[i])return Rn[i].call(t);var o=ja(e),n=(r=Object.getOwnPropertyDescriptor(o,a))==null?void 0:r.get;return n?(Rn[i]=n,n.call(t)):t[a]}var Pn={};function gc(e,t,a){var r=e+"."+String(a);if(Pn[r])return Pn[r].bind(t);var i=ja(e),o=i[a];return typeof o!="function"?t[a]:(Pn[r]=o,o.bind(t))}function fd(e){return dt("Node",e,"childNodes")}function hd(e){return dt("Node",e,"parentNode")}function pd(e){return dt("Node",e,"parentElement")}function _d(e){return dt("Node",e,"textContent")}function md(e,t){return gc("Node",e,"contains")(t)}function gd(e){return gc("Node",e,"getRootNode")()}function vd(e){return!e||!("host"in e)?null:dt("ShadowRoot",e,"host")}function yd(e){return e.styleSheets}function bd(e){return!e||!("shadowRoot"in e)?null:dt("Element",e,"shadowRoot")}function Cd(e,t){return dt("Element",e,"querySelector")(t)}function kd(e,t){return dt("Element",e,"querySelectorAll")(t)}function wd(){return ja("MutationObserver").constructor}function Sd(e,t,a){try{if(!(t in e))return function(){};var r=e[t],i=a(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var Ce={childNodes:fd,parentNode:hd,parentElement:pd,textContent:_d,contains:md,getRootNode:gd,host:vd,styleSheets:yd,shadowRoot:bd,querySelector:Cd,querySelectorAll:kd,mutationObserver:wd,patch:Sd};function vc(e){return e.nodeType===e.ELEMENT_NODE}function Cr(e){var t=e&&"host"in e&&"mode"in e&&Ce.host(e)||null;return!!(t&&"shadowRoot"in t&&Ce.shadowRoot(t)===e)}function kr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Ad(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Td(e){var t=e.cssText;if(t.split('"').length<3)return t;var a=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?a.push("layer"):e.layerName&&a.push("layer("+e.layerName+")"),e.supportsText&&a.push("supports("+e.supportsText+")"),e.media.length&&a.push(e.media.mediaText),a.join(" ")+";"}function Kn(e){try{var t=e.rules||e.cssRules;if(!t)return null;var a=e.href;!a&&e.ownerNode&&e.ownerNode.ownerDocument&&(a=e.ownerNode.ownerDocument.location.href);var r=Array.from(t,function(i){return yc(i,a)}).join("");return Ad(r)}catch{return null}}function yc(e,t){if(Pd(e)){var a;try{a=Kn(e.styleSheet)||Td(e)}catch{a=e.cssText}return e.styleSheet.href?Bi(a,e.styleSheet.href):a}else{var r=e.cssText;return Id(e)&&e.selectorText.includes(":")&&(r=Rd(r)),t?Bi(r,t):r}}function Rd(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Pd(e){return"styleSheet"in e}function Id(e){return"selectorText"in e}var bc=(function(){function e(){Ho(this,"idNodeMap",new Map),Ho(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(r){var i;if(!r)return-1;var o=(i=this.getMeta(r))==null?void 0:i.id;return o??-1},t.getNode=function(r){return this.idNodeMap.get(r)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(r){return this.nodeMetaMap.get(r)||null},t.removeNodeFromMap=function(r){var i=this,o=this.getId(r);this.idNodeMap.delete(o),r.childNodes&&r.childNodes.forEach(function(n){return i.removeNodeFromMap(n)})},t.has=function(r){return this.idNodeMap.has(r)},t.hasNode=function(r){return this.nodeMetaMap.has(r)},t.add=function(r,i){var o=i.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,i)},t.replace=function(r,i){var o=this.getNode(r);if(o){var n=this.nodeMetaMap.get(o);n&&this.nodeMetaMap.set(i,n)}this.idNodeMap.set(r,i)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e})();function Ed(){return new bc}function Mi(e){var t=e.element,a=e.maskInputOptions,r=e.tagName,i=e.type,o=e.value,n=e.maskInputFn,s=o||"",c=i&&Et(i);return(a[r.toLowerCase()]||c&&a[c])&&(n?s=n(s,t):s="*".repeat(s.length)),s}function Et(e){return e.toLowerCase()}var Yo="__rrweb_original__";function Od(e){var t=e.getContext("2d");if(!t)return!0;for(var a=50,r=0;r<e.width;r+=a)for(var i=0;i<e.height;i+=a){var o=t.getImageData,n=Yo in o?o[Yo]:o,s=new Uint32Array(n.call(t,r,i,Math.min(a,e.width-r),Math.min(a,e.height-i)).data.buffer);if(s.some(function(c){return c!==0}))return!1}return!0}function Di(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Et(t):null}function Cc(e,t){var a;try{a=new URL(e,t??window.location.href)}catch{return null}var r=/\.([0-9a-z]+)(?:$)/i,i=a.pathname.match(r),o;return(o=i?.[1])!=null?o:null}function xd(e){var t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Md=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Dd=/^(?:[a-z+]+:)?\/\//i,Bd=/^www\..*/i,Ld=/^(data:)([^,]*),(.*)/i;function Bi(e,t){return(e||"").replace(Md,function(a,r,i,o,n,s){var c=i||n||s,u=r||o||"";if(!c)return a;if(Dd.test(c)||Bd.test(c)||Ld.test(c))return"url("+u+c+u+")";if(c[0]==="/")return"url("+u+(xd(t)+c)+u+")";var l=t.split("/"),d=c.split("/");l.pop();for(var f=E(d),p;!(p=f()).done;){var _=p.value;_!=="."&&(_===".."?l.pop():l.push(_))}return"url("+u+l.join("/")+u+")"})}function ei(e,t){return t===void 0&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Nd(e,t,a){a===void 0&&(a=!1);var r=Array.from(t.childNodes),i=[],o=0;if(r.length>1&&e&&typeof e=="string"){for(var n=ei(e,a),s=n.length/e.length,c=1;c<r.length;c++)if(r[c].textContent&&typeof r[c].textContent=="string"){for(var u=ei(r[c].textContent,a),l=100,d=3;d<u.length&&(u[d].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,d),1)!==-1);d++);for(;d<u.length;d++){var f=u.substring(0,d),p=n.split(f),_=-1;if(p.length===2)_=p[0].length;else if(p.length>2&&p[0]===""&&r[c-1].textContent!=="")_=n.indexOf(f,1);else if(p.length===1){if(f=f.substring(0,f.length-1),p=n.split(f),p.length<=1)return i.push(e),i;d=l+1}else d===u.length-1&&(_=n.indexOf(f));if(p.length>=2&&d>l){var g=r[c-1].textContent;if(g&&typeof g=="string"){var m=ei(g).length;_=n.indexOf(f,m)}_===-1&&(_=p[0].length)}if(_!==-1){for(var v=Math.floor(_/s);v>0&&v<e.length;){if(o+=1,o>50*r.length)return i.push(e),i;var y=ei(e.substring(0,v),a);if(y.length===_){i.push(e.substring(0,v)),e=e.substring(v),n=n.substring(_);break}else y.length<_?v+=Math.max(1,Math.floor((_-y.length)/s)):v-=Math.max(1,Math.floor((y.length-_)*s))}break}}}}return i.push(e),i}function Fd(e,t){return Nd(e,t).join("/* rr_split */")}var $d=1,Ud=new RegExp("[^a-z0-9-_:]"),Or=-2;function kc(){return $d++}function Vd(e){if(B(e,HTMLFormElement))return"form";var t=Et(e.tagName);return Ud.test(t)?"div":t}var Vt,Ko,zd=/^[^ \t\n\r\u000c]+/,qd=/^[, \t\n\r\u000c]+/;function Wd(e,t){if(t.trim()==="")return t;var a=0;function r(u){var l,d=u.exec(t.substring(a));return d?(l=d[0],a+=l.length,l):""}for(var i=[];r(qd),!(a>=t.length);){var o=r(zd);if(o.slice(-1)===",")o=jt(e,o.substring(0,o.length-1)),i.push(o);else{var n="";o=jt(e,o);for(var s=!1;;){var c=t.charAt(a);if(c===""){i.push((o+n).trim());break}else if(s)c===")"&&(s=!1);else if(c===","){a+=1,i.push((o+n).trim());break}else c==="("&&(s=!0);n+=c,a+=1}}}return i.join(", ")}var Xo=new WeakMap;function jt(e,t){return!t||t.trim()===""?t:Ha(e,t)}function Gd(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ha(e,t){var a=Xo.get(e);if(a||(a=e.createElement("a"),Xo.set(e,a)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return a.setAttribute("href",t),a.href}function wc(e,t,a,r){return r&&(a==="src"||a==="href"&&!(t==="use"&&r[0]==="#")||a==="xlink:href"&&r[0]!=="#"||a==="background"&&(t==="table"||t==="td"||t==="th")?jt(e,r):a==="srcset"?Wd(e,r):a==="style"?Bi(r,Ha(e)):t==="object"&&a==="data"?jt(e,r):r)}function Sc(e,t,a){return(e==="video"||e==="audio")&&t==="autoplay"}function jd(e,t,a){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}if(a)return e.matches(a)}catch{}return!1}function Li(e,t,a){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return a?Li(Ce.parentNode(e),t,a):!1;for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}return a?Li(Ce.parentNode(e),t,a):!1}function Ac(e,t,a,r){var i;if(vc(e)){if(i=e,!Ce.childNodes(i).length)return!1}else{if(Ce.parentElement(e)===null)return!1;i=Ce.parentElement(e)}try{if(typeof t=="string"){if(r){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(Li(i,t,r))return!0;if(a){if(r){if(i.closest(a))return!0}else if(i.matches(a))return!0}}catch{}return!1}function Hd(e,t,a){var r=e.contentWindow;if(r){var i=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){var n=setTimeout(function(){i||(t(),i=!0)},a);e.addEventListener("load",function(){clearTimeout(n),i=!0,t()});return}var s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}function Jd(e,t,a){var r=!1,i;try{i=e.sheet}catch{return}if(!i){var o=setTimeout(function(){r||(t(),r=!0)},a);e.addEventListener("load",function(){clearTimeout(o),r=!0,t()})}}function Zd(e,t){var a=t.doc,r=t.mirror,i=t.blockClass,o=t.blockSelector,n=t.needsMask,s=t.inlineStylesheet,c=t.maskInputOptions,u=c===void 0?{}:c,l=t.maskTextFn,d=t.maskInputFn,f=t.dataURLOptions,p=f===void 0?{}:f,_=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,v=t.newlyAddedElement,y=v===void 0?!1:v,b=t.cssCaptured,C=b===void 0?!1:b,w=Yd(a,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:_e.Document,childNodes:[],compatMode:e.compatMode}:{type:_e.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:_e.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return Xd(e,{doc:a,blockClass:i,blockSelector:o,inlineStylesheet:s,maskInputOptions:u,maskInputFn:d,dataURLOptions:p,inlineImages:_,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:w});case e.TEXT_NODE:return Kd(e,{doc:a,needsMask:n,maskTextFn:l,rootId:w,cssCaptured:C});case e.CDATA_SECTION_NODE:return{type:_e.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:_e.Comment,textContent:Ce.textContent(e)||"",rootId:w};default:return!1}}function Yd(e,t){if(t.hasNode(e)){var a=t.getId(e);return a===1?void 0:a}}function Kd(e,t){var a=t.needsMask,r=t.maskTextFn,i=t.rootId,o=t.cssCaptured,n=Ce.parentNode(e),s=n&&n.tagName,c="",u=s==="STYLE"?!0:void 0,l=s==="SCRIPT"?!0:void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=Ce.textContent(e),u&&c&&(c=Bi(c,Ha(t.doc)))),!u&&!l&&c&&a&&(c=r?r(c,Ce.parentElement(e)):c.replace(/[\S]/g,"*")),{type:_e.Text,textContent:c||"",rootId:i}}function Xd(e,t){for(var a=t.doc,r=t.blockClass,i=t.blockSelector,o=t.inlineStylesheet,n=t.maskInputOptions,s=n===void 0?{}:n,c=t.maskInputFn,u=t.dataURLOptions,l=u===void 0?{}:u,d=t.inlineImages,f=t.recordCanvas,p=t.keepIframeSrcFn,_=t.newlyAddedElement,g=_===void 0?!1:_,m=t.rootId,v=jd(e,r,i),y=Vd(e),b={},C=e.attributes.length,w=0;w<C;w++){var S=e.attributes[w];Sc(y,S.name,S.value)||(b[S.name]=wc(a,y,Et(S.name),S.value))}if(y==="link"&&o){var T=Array.from(a.styleSheets).find(function(Oe){return Oe.href===e.href}),R=null;T&&(R=Kn(T)),R&&(delete b.rel,delete b.href,b._cssText=R)}if(y==="style"&&e.sheet){var P=Kn(e.sheet);P&&(e.childNodes.length>1&&(P=Fd(P,e)),b._cssText=P)}if(y==="input"||y==="textarea"||y==="select"){var x=e.value,O=e.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&x?b.value=Mi({element:e,type:Di(e),tagName:y,value:x,maskInputOptions:s,maskInputFn:c}):O&&(b.checked=O)}if(y==="option"&&(e.selected&&!s.select?b.selected=!0:delete b.selected),y==="dialog"&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),y==="canvas"&&f){if(e.__context==="2d")Od(e)||(b.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){var D=e.toDataURL(l.type,l.quality),j=a.createElement("canvas");j.width=e.width,j.height=e.height;var ye=j.toDataURL(l.type,l.quality);D!==ye&&(b.rr_dataURL=D)}}if(y==="img"&&d){Vt||(Vt=a.createElement("canvas"),Ko=Vt.getContext("2d"));var Z=e,we=Z.currentSrc||Z.getAttribute("src")||"<unknown-src>",Se=Z.crossOrigin,se=function(){Z.removeEventListener("load",se);try{Vt.width=Z.naturalWidth,Vt.height=Z.naturalHeight,Ko.drawImage(Z,0,0),b.rr_dataURL=Vt.toDataURL(l.type,l.quality)}catch(Oe){if(Z.crossOrigin!=="anonymous"){Z.crossOrigin="anonymous",Z.complete&&Z.naturalWidth!==0?se():Z.addEventListener("load",se);return}else console.warn("Cannot inline img src="+we+"! Error: "+Oe)}Z.crossOrigin==="anonymous"&&(Se?b.crossOrigin=Se:Z.removeAttribute("crossorigin"))};Z.complete&&Z.naturalWidth!==0?se():Z.addEventListener("load",se)}if(y==="audio"||y==="video"){var ge=b;ge.rr_mediaState=e.paused?"paused":"played",ge.rr_mediaCurrentTime=e.currentTime,ge.rr_mediaPlaybackRate=e.playbackRate,ge.rr_mediaMuted=e.muted,ge.rr_mediaLoop=e.loop,ge.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),v){var Ee=e.getBoundingClientRect(),yt=Ee.width,$e=Ee.height;b={class:b.class,rr_width:""+yt+"px",rr_height:""+$e+"px"}}y==="iframe"&&!p(b.src)&&(e.contentDocument||(b.rr_src=b.src),delete b.src);var Nt;try{customElements.get(y)&&(Nt=!0)}catch{}return{type:_e.Element,tagName:y,attributes:b,childNodes:[],isSVG:Gd(e)||void 0,needBlock:v,rootId:m,isCustom:Nt}}function ee(e){return e==null?"":e.toLowerCase()}function Qd(e,t){if(t.comment&&e.type===_e.Comment)return!0;if(e.type===_e.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Cc(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ee(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(e.attributes.name)==="application-name"||ee(e.attributes.rel)==="icon"||ee(e.attributes.rel)==="apple-touch-icon"||ee(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ee(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ee(e.attributes.property).match(/^(og|twitter|fb):/)||ee(e.attributes.name).match(/^(og|twitter):/)||ee(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ee(e.attributes.name)==="robots"||ee(e.attributes.name)==="googlebot"||ee(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ee(e.attributes.name)==="author"||ee(e.attributes.name)==="generator"||ee(e.attributes.name)==="framework"||ee(e.attributes.name)==="publisher"||ee(e.attributes.name)==="progid"||ee(e.attributes.property).match(/^article:/)||ee(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ee(e.attributes.name)==="google-site-verification"||ee(e.attributes.name)==="yandex-verification"||ee(e.attributes.name)==="csrf-token"||ee(e.attributes.name)==="p:domain_verify"||ee(e.attributes.name)==="verify-v1"||ee(e.attributes.name)==="verification"||ee(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ht(e,t){var a=t.doc,r=t.mirror,i=t.blockClass,o=t.blockSelector,n=t.maskTextClass,s=t.maskTextSelector,c=t.skipChild,u=c===void 0?!1:c,l=t.inlineStylesheet,d=l===void 0?!0:l,f=t.maskInputOptions,p=f===void 0?{}:f,_=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=v===void 0?{}:v,b=t.inlineImages,C=b===void 0?!1:b,w=t.recordCanvas,S=w===void 0?!1:w,T=t.onSerialize,R=t.onIframeLoad,P=t.iframeLoadTimeout,x=P===void 0?5e3:P,O=t.onStylesheetLoad,D=t.stylesheetLoadTimeout,j=D===void 0?5e3:D,ye=t.keepIframeSrcFn,Z=ye===void 0?function(){return!1}:ye,we=t.newlyAddedElement,Se=we===void 0?!1:we,se=t.cssCaptured,ge=se===void 0?!1:se,Ee=t.needsMask,yt=t.preserveWhiteSpace,$e=yt===void 0?!0:yt;if(!Ee){var Nt=Ee===void 0;Ee=Ac(e,n,s,Nt)}var Oe=Zd(e,{doc:a,mirror:r,blockClass:i,blockSelector:o,needsMask:Ee,inlineStylesheet:d,maskInputOptions:p,maskTextFn:_,maskInputFn:g,dataURLOptions:y,inlineImages:C,recordCanvas:S,keepIframeSrcFn:Z,newlyAddedElement:Se,cssCaptured:ge});if(!Oe)return console.warn(e,"not serialized"),null;var bt;r.hasNode(e)?bt=r.getId(e):Qd(Oe,m)||!$e&&Oe.type===_e.Text&&!Oe.textContent.replace(/^\s+|\s+$/gm,"").length?bt=Or:bt=kc();var Y=Object.assign(Oe,{id:bt});if(r.add(e,Y),bt===Or)return null;T&&T(e);var Ct=!u;if(Y.type===_e.Element){Ct=Ct&&!Y.needBlock,delete Y.needBlock;var kt=Ce.shadowRoot(e);kt&&kr(kt)&&(Y.isShadowHost=!0)}if((Y.type===_e.Document||Y.type===_e.Element)&&Ct){m.headWhitespace&&Y.type===_e.Element&&Y.tagName==="head"&&($e=!1);var Ft={doc:a,mirror:r,blockClass:i,blockSelector:o,needsMask:Ee,maskTextClass:n,maskTextSelector:s,skipChild:u,inlineStylesheet:d,maskInputOptions:p,maskTextFn:_,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:C,recordCanvas:S,preserveWhiteSpace:$e,onSerialize:T,onIframeLoad:R,iframeLoadTimeout:x,onStylesheetLoad:O,stylesheetLoadTimeout:j,keepIframeSrcFn:Z,cssCaptured:!1};if(!(Y.type===_e.Element&&Y.tagName==="textarea"&&Y.attributes.value!==void 0)){Y.type===_e.Element&&Y.attributes._cssText!==void 0&&typeof Y.attributes._cssText=="string"&&(Ft.cssCaptured=!0);for(var dr=E(Array.from(Ce.childNodes(e))),fr;!(fr=dr()).done;){var wn=fr.value,Yr=Ht(wn,Ft);Yr&&Y.childNodes.push(Yr)}}var it=null;if(vc(e)&&(it=Ce.shadowRoot(e)))for(var wt=E(Array.from(Ce.childNodes(it))),$t;!($t=wt()).done;){var hr=$t.value,Ut=Ht(hr,Ft);Ut&&(kr(it)&&(Ut.isShadow=!0),Y.childNodes.push(Ut))}}var St=Ce.parentNode(e);return St&&Cr(St)&&kr(St)&&(Y.isShadow=!0),Y.type===_e.Element&&Y.tagName==="iframe"&&Hd(e,function(){var He=e.contentDocument;if(He&&R){var At=Ht(He,{doc:He,mirror:r,blockClass:i,blockSelector:o,needsMask:Ee,maskTextClass:n,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:_,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:C,recordCanvas:S,preserveWhiteSpace:$e,onSerialize:T,onIframeLoad:R,iframeLoadTimeout:x,onStylesheetLoad:O,stylesheetLoadTimeout:j,keepIframeSrcFn:Z});At&&R(e,At)}},x),Y.type===_e.Element&&Y.tagName==="link"&&typeof Y.attributes.rel=="string"&&(Y.attributes.rel==="stylesheet"||Y.attributes.rel==="preload"&&typeof Y.attributes.href=="string"&&Cc(Y.attributes.href)==="css")&&Jd(e,function(){if(O){var He=Ht(e,{doc:a,mirror:r,blockClass:i,blockSelector:o,needsMask:Ee,maskTextClass:n,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:_,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:C,recordCanvas:S,preserveWhiteSpace:$e,onSerialize:T,onIframeLoad:R,iframeLoadTimeout:x,onStylesheetLoad:O,stylesheetLoadTimeout:j,keepIframeSrcFn:Z});He&&O(e,He)}},j),Y}function ef(e,t){var a=t||{},r=a.mirror,i=r===void 0?new bc:r,o=a.blockClass,n=o===void 0?"rr-block":o,s=a.blockSelector,c=s===void 0?null:s,u=a.maskTextClass,l=u===void 0?"rr-mask":u,d=a.maskTextSelector,f=d===void 0?null:d,p=a.inlineStylesheet,_=p===void 0?!0:p,g=a.inlineImages,m=g===void 0?!1:g,v=a.recordCanvas,y=v===void 0?!1:v,b=a.maskAllInputs,C=b===void 0?!1:b,w=a.maskTextFn,S=a.maskInputFn,T=a.slimDOM,R=T===void 0?!1:T,P=a.dataURLOptions,x=a.preserveWhiteSpace,O=a.onSerialize,D=a.onIframeLoad,j=a.iframeLoadTimeout,ye=a.onStylesheetLoad,Z=a.stylesheetLoadTimeout,we=a.keepIframeSrcFn,Se=we===void 0?function(){return!1}:we,se=C===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:C===!1?{password:!0}:C,ge=R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:R===!1?{}:R;return Ht(e,{doc:e,mirror:i,blockClass:n,blockSelector:c,maskTextClass:l,maskTextSelector:f,skipChild:!1,inlineStylesheet:_,maskInputOptions:se,maskTextFn:w,maskInputFn:S,slimDOMOptions:ge,dataURLOptions:P,inlineImages:m,recordCanvas:y,preserveWhiteSpace:x,onSerialize:O,onIframeLoad:D,iframeLoadTimeout:j,onStylesheetLoad:ye,stylesheetLoadTimeout:Z,keepIframeSrcFn:Se,newlyAddedElement:!1})}function tf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var a=function r(){return B(this,r)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),a}var Ja={exports:{}},re=String,Tc=function(){return{isColorSupported:!1,reset:re,bold:re,dim:re,italic:re,underline:re,inverse:re,hidden:re,strikethrough:re,black:re,red:re,green:re,yellow:re,blue:re,magenta:re,cyan:re,white:re,gray:re,bgBlack:re,bgRed:re,bgGreen:re,bgYellow:re,bgBlue:re,bgMagenta:re,bgCyan:re,bgWhite:re}};Ja.exports=Tc();Ja.exports.createColors=Tc;var nf=Ja.exports,af={},of=Object.freeze(Object.defineProperty({__proto__:null,default:af},Symbol.toStringTag,{value:"Module"})),le=rf(of),Qo=nf,es=le,Xn=(function(e){ke(t,e);function t(r,i,o,n,s,c){var u;return u=e.call(this,r)||this,u.name="CssSyntaxError",u.reason=r,s&&(u.file=s),n&&(u.source=n),c&&(u.plugin=c),typeof i<"u"&&typeof o<"u"&&(typeof i=="number"?(u.line=i,u.column=o):(u.line=i.line,u.column=i.column,u.endLine=o.line,u.endColumn=o.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}var a=t.prototype;return a.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},a.showSourceCode=function(i){var o=this;if(!this.source)return"";var n=this.source;i==null&&(i=Qo.isColorSupported),es&&i&&(n=es(n));var s=n.split(/\r?\n/),c=Math.max(this.line-3,0),u=Math.min(this.line+2,s.length),l=String(u).length,d,f;if(i){var p=Qo.createColors(!0),_=p.bold,g=p.gray,m=p.red;d=function(v){return _(m(v))},f=function(v){return g(v)}}else d=f=function(v){return v};return s.slice(c,u).map(function(v,y){var b=c+1+y,C=" "+(" "+b).slice(-l)+" | ";if(b===o.line){var w=f(C.replace(/\d/g," "))+v.slice(0,o.column-1).replace(/[^\t]/g," ");return d(">")+f(C)+v+`
2
+ `+w+d("^")}return" "+f(C)+v}).join(`
3
+ `)},a.toString=function(){var i=this.showSourceCode();return i&&(i=`
4
+
5
+ `+i+`
6
+ `),this.name+": "+this.message+i},t})(xi(Error)),Za=Xn;Xn.default=Xn;var ft={};ft.isClean=Symbol("isClean");ft.my=Symbol("my");var ts={after:`
7
+ `,beforeClose:`
8
+ `,beforeComment:`
9
+ `,beforeDecl:`
10
+ `,beforeOpen:" ",beforeRule:`
11
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function sf(e){return e[0].toUpperCase()+e.slice(1)}var Qn=(function(){function e(a){this.builder=a}var t=e.prototype;return t.atrule=function(r,i){var o="@"+r.name,n=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?o+=r.raws.afterName:n&&(o+=" "),r.nodes)this.block(r,o+n);else{var s=(r.raws.between||"")+(i?";":"");this.builder(o+n+s,r)}},t.beforeAfter=function(r,i){var o;r.type==="decl"?o=this.raw(r,null,"beforeDecl"):r.type==="comment"?o=this.raw(r,null,"beforeComment"):i==="before"?o=this.raw(r,null,"beforeRule"):o=this.raw(r,null,"beforeClose");for(var n=r.parent,s=0;n&&n.type!=="root";)s+=1,n=n.parent;if(o.includes(`
12
+ `)){var c=this.raw(r,null,"indent");if(c.length)for(var u=0;u<s;u++)o+=c}return o},t.block=function(r,i){var o=this.raw(r,"between","beforeOpen");this.builder(i+o+"{",r,"start");var n;r.nodes&&r.nodes.length?(this.body(r),n=this.raw(r,"after")):n=this.raw(r,"after","emptyBody"),n&&this.builder(n),this.builder("}",r,"end")},t.body=function(r){for(var i=r.nodes.length-1;i>0&&r.nodes[i].type==="comment";)i-=1;for(var o=this.raw(r,"semicolon"),n=0;n<r.nodes.length;n++){var s=r.nodes[n],c=this.raw(s,"before");c&&this.builder(c),this.stringify(s,i!==n||o)}},t.comment=function(r){var i=this.raw(r,"left","commentLeft"),o=this.raw(r,"right","commentRight");this.builder("/*"+i+r.text+o+"*/",r)},t.decl=function(r,i){var o=this.raw(r,"between","colon"),n=r.prop+o+this.rawValue(r,"value");r.important&&(n+=r.raws.important||" !important"),i&&(n+=";"),this.builder(n,r)},t.document=function(r){this.body(r)},t.raw=function(r,i,o){var n;if(o||(o=i),i&&(n=r.raws[i],typeof n<"u"))return n;var s=r.parent;if(o==="before"&&(!s||s.type==="root"&&s.first===r||s&&s.type==="document"))return"";if(!s)return ts[o];var c=r.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[o]<"u")return c.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(r,o);var u="raw"+sf(o);return this[u]?n=this[u](c,r):c.walk(function(l){if(n=l.raws[i],typeof n<"u")return!1}),typeof n>"u"&&(n=ts[o]),c.rawCache[o]=n,n},t.rawBeforeClose=function(r){var i;return r.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return i=o.raws.after,i.includes(`
13
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i},t.rawBeforeComment=function(r,i){var o;return r.walkComments(function(n){if(typeof n.raws.before<"u")return o=n.raws.before,o.includes(`
14
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(i,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},t.rawBeforeDecl=function(r,i){var o;return r.walkDecls(function(n){if(typeof n.raws.before<"u")return o=n.raws.before,o.includes(`
15
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(i,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},t.rawBeforeOpen=function(r){var i;return r.walk(function(o){if(o.type!=="decl"&&(i=o.raws.between,typeof i<"u"))return!1}),i},t.rawBeforeRule=function(r){var i;return r.walk(function(o){if(o.nodes&&(o.parent!==r||r.first!==o)&&typeof o.raws.before<"u")return i=o.raws.before,i.includes(`
16
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i},t.rawColon=function(r){var i;return r.walkDecls(function(o){if(typeof o.raws.between<"u")return i=o.raws.between.replace(/[^\s:]/g,""),!1}),i},t.rawEmptyBody=function(r){var i;return r.walk(function(o){if(o.nodes&&o.nodes.length===0&&(i=o.raws.after,typeof i<"u"))return!1}),i},t.rawIndent=function(r){if(r.raws.indent)return r.raws.indent;var i;return r.walk(function(o){var n=o.parent;if(n&&n!==r&&n.parent&&n.parent===r&&typeof o.raws.before<"u"){var s=o.raws.before.split(`
17
+ `);return i=s[s.length-1],i=i.replace(/\S/g,""),!1}}),i},t.rawSemicolon=function(r){var i;return r.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(i=o.raws.semicolon,typeof i<"u"))return!1}),i},t.rawValue=function(r,i){var o=r[i],n=r.raws[i];return n&&n.value===o?n.raw:o},t.root=function(r){this.body(r),r.raws.after&&this.builder(r.raws.after)},t.rule=function(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")},t.stringify=function(r,i){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,i)},e})(),Rc=Qn;Qn.default=Qn;var cf=Rc;function ea(e,t){var a=new cf(t);a.stringify(e)}var sn=ea;ea.default=ea;var ti=ft.isClean,uf=ft.my,lf=Za,df=Rc,ff=sn;function ta(e,t){var a=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r!=="proxyCache"){var i=e[r],o=typeof i>"u"?"undefined":$(i);r==="parent"&&o==="object"?t&&(a[r]=t):r==="source"?a[r]=i:Array.isArray(i)?a[r]=i.map(function(n){return ta(n,a)}):(o==="object"&&i!==null&&(i=ta(i)),a[r]=i)}return a}var ra=(function(){function e(a){a===void 0&&(a={}),this.raws={},this[ti]=!1,this[uf]=!0;for(var r in a)if(r==="nodes"){this.nodes=[];for(var i=E(a[r]),o;!(o=i()).done;){var n=o.value;typeof n.clone=="function"?this.append(n.clone()):this.append(n)}}else this[r]=a[r]}var t=e.prototype;return t.addToError=function(r){if(r.postcssNode=this,r.stack&&this.source&&/\n\s{4}at /.test(r.stack)){var i=this.source;r.stack=r.stack.replace(/\n\s{4}at /,"$&"+i.input.from+":"+i.start.line+":"+i.start.column+"$&")}return r},t.after=function(r){return this.parent.insertAfter(this,r),this},t.assign=function(r){r===void 0&&(r={});for(var i in r)this[i]=r[i];return this},t.before=function(r){return this.parent.insertBefore(this,r),this},t.cleanRaws=function(r){delete this.raws.before,delete this.raws.after,r||delete this.raws.between},t.clone=function(r){r===void 0&&(r={});var i=ta(this);for(var o in r)i[o]=r[o];return i},t.cloneAfter=function(r){r===void 0&&(r={});var i=this.clone(r);return this.parent.insertAfter(this,i),i},t.cloneBefore=function(r){r===void 0&&(r={});var i=this.clone(r);return this.parent.insertBefore(this,i),i},t.error=function(r,i){if(i===void 0&&(i={}),this.source){var o=this.rangeBy(i),n=o.end,s=o.start;return this.source.input.error(r,{column:s.column,line:s.line},{column:n.column,line:n.line},i)}return new lf(r)},t.getProxyProcessor=function(){return{get:function(i,o){return o==="proxyOf"?i:o==="root"?function(){return i.root().toProxy()}:i[o]},set:function(i,o,n){return i[o]===n||(i[o]=n,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&i.markDirty()),!0}}},t.markDirty=function(){if(this[ti]){this[ti]=!1;for(var r=this;r=r.parent;)r[ti]=!1}},t.next=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r+1]}},t.positionBy=function(r,i){var o=this.source.start;if(r.index)o=this.positionInside(r.index,i);else if(r.word){i=this.toString();var n=i.indexOf(r.word);n!==-1&&(o=this.positionInside(n,i))}return o},t.positionInside=function(r,i){for(var o=i||this.toString(),n=this.source.start.column,s=this.source.start.line,c=0;c<r;c++)o[c]===`
18
+ `?(n=1,s+=1):n+=1;return{column:n,line:s}},t.prev=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r-1]}},t.rangeBy=function(r){var i={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:i.column+1,line:i.line};if(r.word){var n=this.toString(),s=n.indexOf(r.word);s!==-1&&(i=this.positionInside(s,n),o=this.positionInside(s+r.word.length,n))}else r.start?i={column:r.start.column,line:r.start.line}:r.index&&(i=this.positionInside(r.index)),r.end?o={column:r.end.column,line:r.end.line}:typeof r.endIndex=="number"?o=this.positionInside(r.endIndex):r.index&&(o=this.positionInside(r.index+1));return(o.line<i.line||o.line===i.line&&o.column<=i.column)&&(o={column:i.column+1,line:i.line}),{end:o,start:i}},t.raw=function(r,i){var o=new df;return o.raw(this,r,i)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(this.parent){for(var n=this,s=!1,c=E(i),u;!(u=c()).done;){var l=u.value;l===this?s=!0:s?(this.parent.insertAfter(n,l),n=l):this.parent.insertBefore(n,l)}s||this.remove()}return this},t.root=function(){for(var r=this;r.parent&&r.parent.type!=="document";)r=r.parent;return r},t.toJSON=function(r,i){var o={},n=i==null;i=i||new Map;var s=0;for(var c in this)if(Object.prototype.hasOwnProperty.call(this,c)&&!(c==="parent"||c==="proxyCache")){var u=this[c];if(Array.isArray(u))o[c]=u.map(function(d){return(typeof d>"u"?"undefined":$(d))==="object"&&d.toJSON?d.toJSON(null,i):d});else if((typeof u>"u"?"undefined":$(u))==="object"&&u.toJSON)o[c]=u.toJSON(null,i);else if(c==="source"){var l=i.get(u.input);l==null&&(l=s,i.set(u.input,s),s++),o[c]={end:u.end,inputId:l,start:u.start}}else o[c]=u}return n&&(o.inputs=[].concat(i.keys()).map(function(d){return d.toJSON()})),o},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(r){r===void 0&&(r=ff),r.stringify&&(r=r.stringify);var i="";return r(this,function(o){i+=o}),i},t.warn=function(r,i,o){var n={node:this};for(var s in o)n[s]=o[s];return r.warn(i,n)},ve(e,[{key:"proxyOf",get:function(){return this}}]),e})(),cn=ra;ra.default=ra;var hf=cn,ia=(function(e){ke(t,e);function t(a){var r;return a&&typeof a.value<"u"&&typeof a.value!="string"&&(a=J({},a,{value:String(a.value)})),r=e.call(this,a)||this,r.type="decl",r}return ve(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),t})(hf),un=ia;ia.default=ia;var pf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_f=function(e){e===void 0&&(e=21);for(var t="",a=e;a--;)t+=pf[Math.random()*64|0];return t},mf={nanoid:_f},rs=le.SourceMapConsumer,is=le.SourceMapGenerator,gf=le.existsSync,vf=le.readFileSync,In=le.dirname,yf=le.join;function bf(e){return ct?ct.from(e,"base64").toString():window.atob(e)}var na=(function(){function e(a,r){if(r.map!==!1){this.loadAnnotation(a),this.inline=this.startWith(this.annotation,"data:");var i=r.map?r.map.prev:void 0,o=this.loadMap(r.from,i);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=In(this.mapFile)),o&&(this.text=o)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new rs(this.text)),this.consumerCache},t.decodeInline=function(r){var i=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(n.test(r)||s.test(r))return decodeURIComponent(r.substr(RegExp.lastMatch.length));if(i.test(r)||o.test(r))return bf(r.substr(RegExp.lastMatch.length));var c=r.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)},t.getAnnotationURL=function(r){return r.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(r){return(typeof r>"u"?"undefined":$(r))!=="object"?!1:typeof r.mappings=="string"||typeof r._mappings=="string"||Array.isArray(r.sections)},t.loadAnnotation=function(r){var i=r.match(/\/\*\s*# sourceMappingURL=/gm);if(i){var o=r.lastIndexOf(i.pop()),n=r.indexOf("*/",o);o>-1&&n>-1&&(this.annotation=this.getAnnotationURL(r.substring(o,n)))}},t.loadFile=function(r){if(this.root=In(r),gf(r))return this.mapFile=r,vf(r,"utf-8").toString().trim()},t.loadMap=function(r,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){var o=i(r);if(o){var n=this.loadFile(o);if(!n)throw new Error("Unable to load previous source map: "+o.toString());return n}}else{if(B(i,rs))return is.fromSourceMap(i).toString();if(B(i,is))return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return r&&(s=yf(In(r),s)),this.loadFile(s)}}},t.startWith=function(r,i){return r?r.substr(0,i.length)===i:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e})(),Pc=na;na.default=na;var Cf=le.SourceMapConsumer,kf=le.SourceMapGenerator,ns=le.fileURLToPath,ri=le.pathToFileURL,aa=le.isAbsolute,oa=le.resolve,wf=mf.nanoid,En=le,as=Za,Sf=Pc,On=Symbol("fromOffsetCache"),Af=!!(Cf&&kf),os=!!(oa&&aa),Ni=(function(){function e(a,r){if(r===void 0&&(r={}),a===null||typeof a>"u"||(typeof a>"u"?"undefined":$(a))==="object"&&!a.toString)throw new Error("PostCSS received "+a+" instead of CSS string");if(this.css=a.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!os||/^\w+:\/\//.test(r.from)||aa(r.from)?this.file=r.from:this.file=oa(r.from)),os&&Af){var i=new Sf(this.css,r);if(i.text){this.map=i;var o=i.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+wf(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(r,i,o,n){n===void 0&&(n={});var s,c,u;if(i&&(typeof i>"u"?"undefined":$(i))==="object"){var l=i,d=o;if(typeof l.offset=="number"){var f=this.fromOffset(l.offset);i=f.line,o=f.col}else i=l.line,o=l.column;if(typeof d.offset=="number"){var p=this.fromOffset(d.offset);c=p.line,u=p.col}else c=d.line,u=d.column}else if(!o){var _=this.fromOffset(i);i=_.line,o=_.col}var g=this.origin(i,o,c,u);return g?s=new as(r,g.endLine===void 0?g.line:{column:g.column,line:g.line},g.endLine===void 0?g.column:{column:g.endColumn,line:g.endLine},g.source,g.file,n.plugin):s=new as(r,c===void 0?i:{column:o,line:i},c===void 0?o:{column:u,line:c},this.css,this.file,n.plugin),s.input={column:o,endColumn:u,endLine:c,line:i,source:this.css},this.file&&(ri&&(s.input.url=ri(this.file).toString()),s.input.file=this.file),s},t.fromOffset=function(r){var i,o;if(this[On])o=this[On];else{var n=this.css.split(`
19
+ `);o=new Array(n.length);for(var s=0,c=0,u=n.length;c<u;c++)o[c]=s,s+=n[c].length+1;this[On]=o}i=o[o.length-1];var l=0;if(r>=i)l=o.length-1;else for(var d=o.length-2,f;l<d;)if(f=l+(d-l>>1),r<o[f])d=f-1;else if(r>=o[f+1])l=f+1;else{l=f;break}return{col:r-o[l]+1,line:l+1}},t.mapResolve=function(r){return/^\w+:\/\//.test(r)?r:oa(this.map.consumer().sourceRoot||this.map.root||".",r)},t.origin=function(r,i,o,n){if(!this.map)return!1;var s=this.map.consumer(),c=s.originalPositionFor({column:i,line:r});if(!c.source)return!1;var u;typeof o=="number"&&(u=s.originalPositionFor({column:n,line:o}));var l;aa(c.source)?l=ri(c.source):l=new URL(c.source,this.map.consumer().sourceRoot||ri(this.map.mapFile));var d={column:c.column,endColumn:u&&u.column,endLine:u&&u.line,line:c.line,url:l.toString()};if(l.protocol==="file:")if(ns)d.file=ns(l);else throw new Error("file: protocol is not available in this PostCSS build");var f=s.sourceContentFor(c.source);return f&&(d.source=f),d},t.toJSON=function(){for(var r={},i=0,o=["hasBOM","css","file","id"];i<o.length;i++){var n=o[i];this[n]!=null&&(r[n]=this[n])}return this.map&&(r.map=J({},this.map),r.map.consumerCache&&(r.map.consumerCache=void 0)),r},ve(e,[{key:"from",get:function(){return this.file||this.id}}]),e})(),ln=Ni;Ni.default=Ni;En&&En.registerInput&&En.registerInput(Ni);var Ic=le.SourceMapConsumer,Ai=le.SourceMapGenerator,Ti=le.dirname,Ec=le.relative,Oc=le.resolve,xc=le.sep,ss=le.pathToFileURL,Tf=ln,Rf=!!(Ic&&Ai),Pf=!!(Ti&&Oc&&Ec&&xc),If=(function(){function e(a,r,i,o){this.stringify=a,this.mapOpts=i.map||{},this.root=r,this.opts=i,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var r;this.isInline()?r="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?r=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?r=this.mapOpts.annotation(this.opts.to,this.root):r=this.outputFile()+".map";var i=`
20
+ `;this.css.includes(`\r
21
+ `)&&(i=`\r
22
+ `),this.css+=i+"/*# sourceMappingURL="+r+" */"},t.applyPrevMaps=function(){for(var r=E(this.previous()),i;!(i=r()).done;){var o=i.value,n=this.toUrl(this.path(o.file)),s=o.root||Ti(o.file),c=void 0;this.mapOpts.sourcesContent===!1?(c=new Ic(o.text),c.sourcesContent&&(c.sourcesContent=null)):c=o.consumer(),this.map.applySourceMap(c,n,this.toUrl(this.path(s)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var r,i=this.root.nodes.length-1;i>=0;i--)r=this.root.nodes[i],r.type==="comment"&&r.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(i);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Pf&&Rf&&this.isMap())return this.generateMap();var r="";return this.stringify(this.root,function(i){r+=i}),[r]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var r=this.previous()[0].consumer();r.file=this.outputFile(),this.map=Ai.fromSourceMap(r,{ignoreInvalidMapping:!0})}else this.map=new Ai({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var r=this;this.css="",this.map=new Ai({file:this.outputFile(),ignoreInvalidMapping:!0});var i=1,o=1,n="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},c,u;this.stringify(this.root,function(l,d,f){if(r.css+=l,d&&f!=="end"&&(s.generated.line=i,s.generated.column=o-1,d.source&&d.source.start?(s.source=r.sourcePath(d),s.original.line=d.source.start.line,s.original.column=d.source.start.column-1,r.map.addMapping(s)):(s.source=n,s.original.line=1,s.original.column=0,r.map.addMapping(s))),c=l.match(/\n/g),c?(i+=c.length,u=l.lastIndexOf(`
23
+ `),o=l.length-u):o+=l.length,d&&f!=="start"){var p=d.parent||{raws:{}},_=d.type==="decl"||d.type==="atrule"&&!d.nodes;(!_||d!==p.last||p.raws.semicolon)&&(d.source&&d.source.end?(s.source=r.sourcePath(d),s.original.line=d.source.end.line,s.original.column=d.source.end.column-1,s.generated.line=i,s.generated.column=o-2,r.map.addMapping(s)):(s.source=n,s.original.line=1,s.original.column=0,s.generated.line=i,s.generated.column=o-1,r.map.addMapping(s)))}})},t.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(r){return r.annotation}):!0},t.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var r=this.mapOpts.annotation;return typeof r<"u"&&r!==!0?!1:this.previous().length?this.previous().some(function(i){return i.inline}):!0},t.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(r){return r.withContent()}):!0},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;var i=this.memoizedPaths.get(r);if(i)return i;var o=this.opts.to?Ti(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Ti(Oc(o,this.mapOpts.annotation)));var n=Ec(o,r);return this.memoizedPaths.set(r,n),n},t.previous=function(){var r=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var n=o.source.input.map;r.previousMaps.includes(n)||r.previousMaps.push(n)}});else{var i=new Tf(this.originalCSS,this.opts);i.map&&this.previousMaps.push(i.map)}return this.previousMaps},t.setSourcesContent=function(){var r=this,i={};if(this.root)this.root.walk(function(n){if(n.source){var s=n.source.input.from;if(s&&!i[s]){i[s]=!0;var c=r.usesFileUrls?r.toFileUrl(s):r.toUrl(r.path(s));r.map.setSourceContent(c,n.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},t.sourcePath=function(r){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(r.source.input.from):this.toUrl(this.path(r.source.input.from))},t.toBase64=function(r){return ct?ct.from(r).toString("base64"):window.btoa(unescape(encodeURIComponent(r)))},t.toFileUrl=function(r){var i=this.memoizedFileURLs.get(r);if(i)return i;if(ss){var o=ss(r).toString();return this.memoizedFileURLs.set(r,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(r){var i=this.memoizedURLs.get(r);if(i)return i;xc==="\\"&&(r=r.replace(/\\/g,"/"));var o=encodeURI(r).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(r,o),o},e})(),Mc=If,Ef=cn,sa=(function(e){ke(t,e);function t(a){var r;return r=e.call(this,a)||this,r.type="comment",r}return t})(Ef),dn=sa;sa.default=sa;var Dc=ft.isClean,Bc=ft.my,Lc=un,Nc=dn,Of=cn,Fc,Ya,Ka,$c;function Uc(e){return e.map(function(t){return t.nodes&&(t.nodes=Uc(t.nodes)),delete t.source,t})}function Vc(e){if(e[Dc]=!1,e.proxyOf.nodes)for(var t=E(e.proxyOf.nodes),a;!(a=t()).done;){var r=a.value;Vc(r)}}var Ke=(function(e){ke(t,e);function t(){return e.apply(this,arguments)||this}var a=t.prototype;return a.append=function(){for(var i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];for(var s=E(o),c;!(c=s()).done;)for(var u=c.value,l=this.normalize(u,this.last),d=E(l),f;!(f=d()).done;){var p=f.value;this.proxyOf.nodes.push(p)}return this.markDirty(),this},a.cleanRaws=function(i){if(e.prototype.cleanRaws.call(this,i),this.nodes)for(var o=E(this.nodes),n;!(n=o()).done;){var s=n.value;s.cleanRaws(i)}},a.each=function(i){if(this.proxyOf.nodes){for(var o=this.getIterator(),n,s;this.indexes[o]<this.proxyOf.nodes.length&&(n=this.indexes[o],s=i(this.proxyOf.nodes[n],n),s!==!1);)this.indexes[o]+=1;return delete this.indexes[o],s}},a.every=function(i){return this.nodes.every(i)},a.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var i=this.lastEach;return this.indexes[i]=0,i},a.getProxyProcessor=function(){return{get:function(o,n){return n==="proxyOf"?o:o[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l;return(l=o)[n].apply(l,[].concat(c.map(function(d){return typeof d=="function"?function(f,p){return d(f.toProxy(),p)}:d})))}:n==="every"||n==="some"?function(s){return o[n](function(c){for(var u=arguments.length,l=new Array(u>1?u-1:0),d=1;d<u;d++)l[d-1]=arguments[d];return s.apply(void 0,[].concat([c.toProxy()],l))})}:n==="root"?function(){return o.root().toProxy()}:n==="nodes"?o.nodes.map(function(s){return s.toProxy()}):n==="first"||n==="last"?o[n].toProxy():o[n]:o[n]},set:function(o,n,s){return o[n]===s||(o[n]=s,(n==="name"||n==="params"||n==="selector")&&o.markDirty()),!0}}},a.index=function(i){return typeof i=="number"?i:(i.proxyOf&&(i=i.proxyOf),this.proxyOf.nodes.indexOf(i))},a.insertAfter=function(i,o){var n=this.index(i),s=this.normalize(o,this.proxyOf.nodes[n]).reverse();n=this.index(i);for(var c=E(s),u;!(u=c()).done;){var l=u.value;this.proxyOf.nodes.splice(n+1,0,l)}var d;for(var f in this.indexes)d=this.indexes[f],n<d&&(this.indexes[f]=d+s.length);return this.markDirty(),this},a.insertBefore=function(i,o){var n=this.index(i),s=n===0?"prepend":!1,c=this.normalize(o,this.proxyOf.nodes[n],s).reverse();n=this.index(i);for(var u=E(c),l;!(l=u()).done;){var d=l.value;this.proxyOf.nodes.splice(n,0,d)}var f;for(var p in this.indexes)f=this.indexes[p],n<=f&&(this.indexes[p]=f+c.length);return this.markDirty(),this},a.normalize=function(i,o){var n=this;if(typeof i=="string")i=Uc(Fc(i).nodes);else if(typeof i>"u")i=[];else if(Array.isArray(i)){i=i.slice(0);for(var s=E(i),c;!(c=s()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(i.type==="root"&&this.type!=="document"){i=i.nodes.slice(0);for(var l=E(i),d;!(d=l()).done;){var f=d.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(i.type)i=[i];else if(i.prop){if(typeof i.value>"u")throw new Error("Value field is missed in node creation");typeof i.value!="string"&&(i.value=String(i.value)),i=[new Lc(i)]}else if(i.selector)i=[new Ya(i)];else if(i.name)i=[new Ka(i)];else if(i.text)i=[new Nc(i)];else throw new Error("Unknown node type in node creation");var p=i.map(function(_){return _[Bc]||t.rebuild(_),_=_.proxyOf,_.parent&&_.parent.removeChild(_),_[Dc]&&Vc(_),typeof _.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(_.raws.before=o.raws.before.replace(/\S/g,"")),_.parent=n.proxyOf,_});return p},a.prepend=function(){for(var i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];o=o.reverse();for(var s=E(o),c;!(c=s()).done;){for(var u=c.value,l=this.normalize(u,this.first,"prepend").reverse(),d=E(l),f;!(f=d()).done;){var p=f.value;this.proxyOf.nodes.unshift(p)}for(var _ in this.indexes)this.indexes[_]=this.indexes[_]+l.length}return this.markDirty(),this},a.push=function(i){return i.parent=this,this.proxyOf.nodes.push(i),this},a.removeAll=function(){for(var i=E(this.proxyOf.nodes),o;!(o=i()).done;){var n=o.value;n.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},a.removeChild=function(i){i=this.index(i),this.proxyOf.nodes[i].parent=void 0,this.proxyOf.nodes.splice(i,1);var o;for(var n in this.indexes)o=this.indexes[n],o>=i&&(this.indexes[n]=o-1);return this.markDirty(),this},a.replaceValues=function(i,o,n){return n||(n=o,o={}),this.walkDecls(function(s){o.props&&!o.props.includes(s.prop)||o.fast&&!s.value.includes(o.fast)||(s.value=s.value.replace(i,n))}),this.markDirty(),this},a.some=function(i){return this.nodes.some(i)},a.walk=function(i){return this.each(function(o,n){var s;try{s=i(o,n)}catch(c){throw o.addToError(c)}return s!==!1&&o.walk&&(s=o.walk(i)),s})},a.walkAtRules=function(i,o){return o?B(i,RegExp)?this.walk(function(n,s){if(n.type==="atrule"&&i.test(n.name))return o(n,s)}):this.walk(function(n,s){if(n.type==="atrule"&&n.name===i)return o(n,s)}):(o=i,this.walk(function(n,s){if(n.type==="atrule")return o(n,s)}))},a.walkComments=function(i){return this.walk(function(o,n){if(o.type==="comment")return i(o,n)})},a.walkDecls=function(i,o){return o?B(i,RegExp)?this.walk(function(n,s){if(n.type==="decl"&&i.test(n.prop))return o(n,s)}):this.walk(function(n,s){if(n.type==="decl"&&n.prop===i)return o(n,s)}):(o=i,this.walk(function(n,s){if(n.type==="decl")return o(n,s)}))},a.walkRules=function(i,o){return o?B(i,RegExp)?this.walk(function(n,s){if(n.type==="rule"&&i.test(n.selector))return o(n,s)}):this.walk(function(n,s){if(n.type==="rule"&&n.selector===i)return o(n,s)}):(o=i,this.walk(function(n,s){if(n.type==="rule")return o(n,s)}))},ve(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t})(Of);Ke.registerParse=function(e){Fc=e};Ke.registerRule=function(e){Ya=e};Ke.registerAtRule=function(e){Ka=e};Ke.registerRoot=function(e){$c=e};var Mt=Ke;Ke.default=Ke;Ke.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,Ka.prototype):e.type==="rule"?Object.setPrototypeOf(e,Ya.prototype):e.type==="decl"?Object.setPrototypeOf(e,Lc.prototype):e.type==="comment"?Object.setPrototypeOf(e,Nc.prototype):e.type==="root"&&Object.setPrototypeOf(e,$c.prototype),e[Bc]=!0,e.nodes&&e.nodes.forEach(function(t){Ke.rebuild(t)})};var xf=Mt,zc,qc,xr=(function(e){ke(t,e);function t(r){var i;return i=e.call(this,J({type:"document"},r))||this,i.nodes||(i.nodes=[]),i}var a=t.prototype;return a.toResult=function(i){i===void 0&&(i={});var o=new zc(new qc,this,i);return o.stringify()},t})(xf);xr.registerLazyResult=function(e){zc=e};xr.registerProcessor=function(e){qc=e};var Xa=xr;xr.default=xr;var ca=(function(){function e(a,r){if(r===void 0&&(r={}),this.type="warning",this.text=a,r.node&&r.node.source){var i=r.node.rangeBy(r);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(var o in r)this[o]=r[o]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e})(),Wc=ca;ca.default=ca;var Mf=Wc,ua=(function(){function e(a,r,i){this.processor=a,this.messages=[],this.root=r,this.opts=i,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(r,i){i===void 0&&(i={}),i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);var o=new Mf(r,i);return this.messages.push(o),o},t.warnings=function(){return this.messages.filter(function(r){return r.type==="warning"})},ve(e,[{key:"content",get:function(){return this.css}}]),e})(),Qa=ua;ua.default=ua;var xn=39,cs=34,ii=92,us=47,ni=10,mr=32,ai=12,oi=9,si=13,Df=91,Bf=93,Lf=40,Nf=41,Ff=123,$f=125,Uf=59,Vf=42,zf=58,qf=64,ci=/[\t\n\f\r "#'()/;[\\\]{}]/g,ui=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Wf=/.[\r\n"'(/\\]/,ls=/[\da-f]/i,Gf=function(t,a){a===void 0&&(a={});var r=t.css.valueOf(),i=a.ignoreErrors,o,n,s,c,u,l,d,f,p,_,g=r.length,m=0,v=[],y=[];function b(){return m}function C(R){throw t.error("Unclosed "+R,m)}function w(){return y.length===0&&m>=g}function S(R){if(y.length)return y.pop();if(!(m>=g)){var P=R?R.ignoreUnclosed:!1;switch(o=r.charCodeAt(m),o){case ni:case mr:case oi:case si:case ai:{n=m;do n+=1,o=r.charCodeAt(n);while(o===mr||o===ni||o===oi||o===si||o===ai);_=["space",r.slice(m,n)],m=n-1;break}case Df:case Bf:case Ff:case $f:case zf:case Uf:case Nf:{var x=String.fromCharCode(o);_=[x,x,m];break}case Lf:{if(f=v.length?v.pop()[1]:"",p=r.charCodeAt(m+1),f==="url"&&p!==xn&&p!==cs&&p!==mr&&p!==ni&&p!==oi&&p!==ai&&p!==si){n=m;do{if(l=!1,n=r.indexOf(")",n+1),n===-1)if(i||P){n=m;break}else C("bracket");for(d=n;r.charCodeAt(d-1)===ii;)d-=1,l=!l}while(l);_=["brackets",r.slice(m,n+1),m,n],m=n}else n=r.indexOf(")",m+1),c=r.slice(m,n+1),n===-1||Wf.test(c)?_=["(","(",m]:(_=["brackets",c,m,n],m=n);break}case xn:case cs:{s=o===xn?"'":'"',n=m;do{if(l=!1,n=r.indexOf(s,n+1),n===-1)if(i||P){n=m+1;break}else C("string");for(d=n;r.charCodeAt(d-1)===ii;)d-=1,l=!l}while(l);_=["string",r.slice(m,n+1),m,n],m=n;break}case qf:{ci.lastIndex=m+1,ci.test(r),ci.lastIndex===0?n=r.length-1:n=ci.lastIndex-2,_=["at-word",r.slice(m,n+1),m,n],m=n;break}case ii:{for(n=m,u=!0;r.charCodeAt(n+1)===ii;)n+=1,u=!u;if(o=r.charCodeAt(n+1),u&&o!==us&&o!==mr&&o!==ni&&o!==oi&&o!==si&&o!==ai&&(n+=1,ls.test(r.charAt(n)))){for(;ls.test(r.charAt(n+1));)n+=1;r.charCodeAt(n+1)===mr&&(n+=1)}_=["word",r.slice(m,n+1),m,n],m=n;break}default:{o===us&&r.charCodeAt(m+1)===Vf?(n=r.indexOf("*/",m+2)+1,n===0&&(i||P?n=r.length:C("comment")),_=["comment",r.slice(m,n+1),m,n],m=n):(ui.lastIndex=m+1,ui.test(r),ui.lastIndex===0?n=r.length-1:n=ui.lastIndex-2,_=["word",r.slice(m,n+1),m,n],v.push(_),m=n);break}}return m++,_}}function T(R){y.push(R)}return{back:T,endOfFile:w,nextToken:S,position:b}},Gc=Mt,Fi=(function(e){ke(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type="atrule",i}var a=t.prototype;return a.append=function(){for(var i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=e.prototype.append).call.apply(s,[].concat([this],o))},a.prepend=function(){for(var i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=e.prototype.prepend).call.apply(s,[].concat([this],o))},t})(Gc),eo=Fi;Fi.default=Fi;Gc.registerAtRule(Fi);var jc=Mt,Hc,Jc,Xt=(function(e){ke(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type="root",i.nodes||(i.nodes=[]),i}var a=t.prototype;return a.normalize=function(i,o,n){var s=e.prototype.normalize.call(this,i);if(o){if(n==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var c=E(s),u;!(u=c()).done;){var l=u.value;l.raws.before=o.raws.before}}return s},a.removeChild=function(i,o){var n=this.index(i);return!o&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,i)},a.toResult=function(i){i===void 0&&(i={});var o=new Hc(new Jc,this,i);return o.stringify()},t})(jc);Xt.registerLazyResult=function(e){Hc=e};Xt.registerProcessor=function(e){Jc=e};var jr=Xt;Xt.default=Xt;jc.registerRoot(Xt);var Mr={comma:function(t){return Mr.split(t,[","],!0)},space:function(t){var a=[" ",`
24
+ `," "];return Mr.split(t,a)},split:function(t,a,r){for(var i=[],o="",n=!1,s=0,c=!1,u="",l=!1,d=E(t),f;!(f=d()).done;){var p=f.value;l?l=!1:p==="\\"?l=!0:c?p===u&&(c=!1):p==='"'||p==="'"?(c=!0,u=p):p==="("?s+=1:p===")"?s>0&&(s-=1):s===0&&a.includes(p)&&(n=!0),n?(o!==""&&i.push(o.trim()),o="",n=!1):o+=p}return(r||o!=="")&&i.push(o.trim()),i}},Zc=Mr;Mr.default=Mr;var Yc=Mt,jf=Zc,$i=(function(e){ke(t,e);function t(a){var r;return r=e.call(this,a)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return ve(t,[{key:"selectors",get:function(){return jf.comma(this.selector)},set:function(r){var i=this.selector?this.selector.match(/,\s*/):null,o=i?i[0]:","+this.raw("between","beforeOpen");this.selector=r.join(o)}}]),t})(Yc),to=$i;$i.default=$i;Yc.registerRule($i);var Hf=un,Jf=Gf,Zf=dn,Yf=eo,Kf=jr,ds=to,fs={empty:!0,space:!0};function Xf(e){for(var t=e.length-1;t>=0;t--){var a=e[t],r=a[3]||a[2];if(r)return r}}var Qf=(function(){function e(a){this.input=a,this.root=new Kf,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(r){var i=new Yf;i.name=r[1].slice(1),i.name===""&&this.unnamedAtrule(i,r),this.init(i,r[2]);for(var o,n,s,c=!1,u=!1,l=[],d=[];!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),o=r[0],o==="("||o==="["?d.push(o==="("?")":"]"):o==="{"&&d.length>0?d.push("}"):o===d[d.length-1]&&d.pop(),d.length===0)if(o===";"){i.source.end=this.getPosition(r[2]),i.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){u=!0;break}else if(o==="}"){if(l.length>0){for(s=l.length-1,n=l[s];n&&n[0]==="space";)n=l[--s];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(r);break}else l.push(r);else l.push(r);if(this.tokenizer.endOfFile()){c=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),c&&(r=l[l.length-1],i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),u&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(r){var i=this.colon(r);if(i!==!1){for(var o=0,n,s=i-1;s>=0&&(n=r[s],!(n[0]!=="space"&&(o+=1,o===2)));s--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}},t.colon=function(r){for(var i=0,o,n,s,c=E(r.entries()),u;!(u=c()).done;){var l=u.value,d=l[0],f=l[1];if(o=f,n=o[0],n==="("&&(i+=1),n===")"&&(i-=1),i===0&&n===":")if(!s)this.doubleColon(o);else{if(s[0]==="word"&&s[1]==="progid")continue;return d}s=o}return!1},t.comment=function(r){var i=new Zf;this.init(i,r[2]),i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++;var o=r[1].slice(2,-2);if(/^\s*$/.test(o))i.text="",i.raws.left=o,i.raws.right="";else{var n=o.match(/^(\s*)([^]*\S)(\s*)$/);i.text=n[2],i.raws.left=n[1],i.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=Jf(this.input)},t.decl=function(r,i){var o=new Hf;this.init(o,r[0][2]);var n=r[r.length-1];for(n[0]===";"&&(this.semicolon=!0,r.pop()),o.source.end=this.getPosition(n[3]||n[2]||Xf(r)),o.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),o.raws.before+=r.shift()[1];for(o.source.start=this.getPosition(r[0][2]),o.prop="";r.length;){var s=r[0][0];if(s===":"||s==="space"||s==="comment")break;o.prop+=r.shift()[1]}o.raws.between="";for(var c;r.length;)if(c=r.shift(),c[0]===":"){o.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),o.raws.between+=c[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var u=[],l;r.length&&(l=r[0][0],!(l!=="space"&&l!=="comment"));)u.push(r.shift());this.precheckMissedSemicolon(r);for(var d=r.length-1;d>=0;d--){if(c=r[d],c[1].toLowerCase()==="!important"){o.important=!0;var f=this.stringFrom(r,d);f=this.spacesFromEnd(r)+f,f!==" !important"&&(o.raws.important=f);break}else if(c[1].toLowerCase()==="important"){for(var p=r.slice(0),_="",g=d;g>0;g--){var m=p[g][0];if(_.trim().indexOf("!")===0&&m!=="space")break;_=p.pop()[1]+_}_.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=_,r=p)}if(c[0]!=="space"&&c[0]!=="comment")break}var v=r.some(function(y){return y[0]!=="space"&&y[0]!=="comment"});v&&(o.raws.between+=u.map(function(y){return y[1]}).join(""),u=[]),this.raw(o,"value",u.concat(r),i),o.value.includes(":")&&!i&&this.checkMissedSemicolon(r)},t.doubleColon=function(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})},t.emptyRule=function(r){var i=new ds;this.init(i,r[2]),i.selector="",i.raws.between="",this.current=i},t.end=function(r){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(r){if(this.spaces+=r[1],this.current.nodes){var i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(r){var i=this.input.fromOffset(r);return{column:i.col,line:i.line,offset:r}},t.init=function(r,i){this.current.push(r),r.source={input:this.input,start:this.getPosition(i)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)},t.other=function(r){for(var i=!1,o=null,n=!1,s=null,c=[],u=r[1].startsWith("--"),l=[],d=r;d;){if(o=d[0],l.push(d),o==="("||o==="[")s||(s=d),c.push(o==="("?")":"]");else if(u&&n&&o==="{")s||(s=d),c.push("}");else if(c.length===0)if(o===";")if(n){this.decl(l,u);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),i=!0;break}else o===":"&&(n=!0);else o===c[c.length-1]&&(c.pop(),c.length===0&&(s=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),c.length>0&&this.unclosedBracket(s),i&&n){if(!u)for(;l.length&&(d=l[l.length-1][0],!(d!=="space"&&d!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,u)}else this.unknownWord(l)},t.parse=function(){for(var r;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(r,i,o,n){for(var s,c,u=o.length,l="",d=!0,f,p,_=0;_<u;_+=1)s=o[_],c=s[0],c==="space"&&_===u-1&&!n?d=!1:c==="comment"?(p=o[_-1]?o[_-1][0]:"empty",f=o[_+1]?o[_+1][0]:"empty",!fs[p]&&!fs[f]?l.slice(-1)===","?d=!1:l+=s[1]:d=!1):l+=s[1];if(!d){var g=o.reduce(function(m,v){return m+v[1]},"");r.raws[i]={raw:g,value:l}}r[i]=l},t.rule=function(r){r.pop();var i=new ds;this.init(i,r[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(i,"selector",r),this.current=i},t.spacesAndCommentsFromEnd=function(r){for(var i,o="";r.length&&(i=r[r.length-1][0],!(i!=="space"&&i!=="comment"));)o=r.pop()[1]+o;return o},t.spacesAndCommentsFromStart=function(r){for(var i,o="";r.length&&(i=r[0][0],!(i!=="space"&&i!=="comment"));)o+=r.shift()[1];return o},t.spacesFromEnd=function(r){for(var i,o="";r.length&&(i=r[r.length-1][0],i==="space");)o=r.pop()[1]+o;return o},t.stringFrom=function(r,i){for(var o="",n=i;n<r.length;n++)o+=r[n][1];return r.splice(i,r.length-i),o},t.unclosedBlock=function(){var r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)},t.unclosedBracket=function(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})},t.unexpectedClose=function(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})},t.unknownWord=function(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})},t.unnamedAtrule=function(r,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})},e})(),eh=Qf,th=Mt,rh=eh,ih=ln;function Ui(e,t){var a=new ih(e,t),r=new rh(a);try{r.parse()}catch(i){throw i}return r.root}var ro=Ui;Ui.default=Ui;th.registerParse(Ui);var Ue=ft.isClean,nh=ft.my,ah=Mc,oh=sn,sh=Mt,ch=Xa,hs=Qa,uh=ro,lh=jr,dh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fh={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},hh={Once:!0,postcssPlugin:!0,prepare:!0},Qt=0;function gr(e){return(typeof e>"u"?"undefined":$(e))==="object"&&typeof e.then=="function"}function Kc(e){var t=!1,a=dh[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[a,a+"-"+t,Qt,a+"Exit",a+"Exit-"+t]:t?[a,a+"-"+t,a+"Exit",a+"Exit-"+t]:e.append?[a,Qt,a+"Exit"]:[a,a+"Exit"]}function ps(e){var t;return e.type==="document"?t=["Document",Qt,"DocumentExit"]:e.type==="root"?t=["Root",Qt,"RootExit"]:t=Kc(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function la(e){return e[Ue]=!1,e.nodes&&e.nodes.forEach(function(t){return la(t)}),e}var da={},er=(function(){function e(a,r,i){var o=this;this.stringified=!1,this.processed=!1;var n;if((typeof r>"u"?"undefined":$(r))==="object"&&r!==null&&(r.type==="root"||r.type==="document"))n=la(r);else if(B(r,e)||B(r,hs))n=la(r.root),r.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{var s=uh;i.syntax&&(s=i.syntax.parse),i.parser&&(s=i.parser),s.parse&&(s=s.parse);try{n=s(r,i)}catch(c){this.processed=!0,this.error=c}n&&!n[nh]&&sh.rebuild(n)}this.result=new hs(a,n,i),this.helpers=J({},da,{postcss:da,result:this.result}),this.plugins=this.processor.plugins.map(function(c){return(typeof c>"u"?"undefined":$(c))==="object"&&c.prepare?J({},c,c.prepare(o.result)):c})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(r,i){var o=this.result.lastPlugin;try{if(i&&i.addToError(r),this.error=r,r.name==="CssSyntaxError"&&!r.plugin)r.plugin=o.postcssPlugin,r.setMessage();else if(o.postcssVersion)var n,s,c,u,l}catch(d){console&&console.error&&console.error(d)}return r},t.prepareVisitors=function(){var r=this;this.listeners={};for(var i=function(l,d,f){r.listeners[d]||(r.listeners[d]=[]),r.listeners[d].push([l,f])},o=E(this.plugins),n;!(n=o()).done;){var s=n.value;if((typeof s>"u"?"undefined":$(s))==="object")for(var c in s){if(!fh[c]&&/^[A-Z]/.test(c))throw new Error("Unknown event "+c+" in "+s.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!hh[c])if($(s[c])==="object")for(var u in s[c])u==="*"?i(s,c,s[c][u]):i(s,c+"-"+u.toLowerCase(),s[c][u]);else typeof s[c]=="function"&&i(s,c,s[c])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var r=this;return Ga(function(){var i,o,n,s,c,u,l,d,f,p,_,g;return Er(this,function(m){switch(m.label){case 0:r.plugin=0,i=0,m.label=1;case 1:if(!(i<r.plugins.length))return[3,6];if(o=r.plugins[i],n=r.runOnRoot(o),!gr(n))return[3,5];m.label=2;case 2:return m.trys.push([2,4,,5]),[4,n];case 3:return m.sent(),[3,5];case 4:throw s=m.sent(),r.handleError(s);case 5:return i++,[3,1];case 6:if(r.prepareVisitors(),!r.hasListener)return[3,18];c=r.result.root,m.label=7;case 7:if(c[Ue])return[3,14];c[Ue]=!0,u=[ps(c)],m.label=8;case 8:if(!(u.length>0))return[3,13];if(l=r.visitTick(u),!gr(l))return[3,12];m.label=9;case 9:return m.trys.push([9,11,,12]),[4,l];case 10:return m.sent(),[3,12];case 11:throw d=m.sent(),f=u[u.length-1].node,r.handleError(d,f);case 12:return[3,8];case 13:return[3,7];case 14:if(!r.listeners.OnceExit)return[3,18];p=function(){var v,y,b,C,w;return Er(this,function(S){switch(S.label){case 0:v=g.value,y=v[0],b=v[1],r.result.lastPlugin=y,S.label=1;case 1:return S.trys.push([1,6,,7]),c.type!=="document"?[3,3]:(C=c.nodes.map(function(T){return b(T,r.helpers)}),[4,Promise.all(C)]);case 2:return S.sent(),[3,5];case 3:return[4,b(c,r.helpers)];case 4:S.sent(),S.label=5;case 5:return[3,7];case 6:throw w=S.sent(),r.handleError(w);case 7:return[2]}})},_=E(r.listeners.OnceExit),m.label=15;case 15:return(g=_()).done?[3,18]:[5,mc(p())];case 16:m.sent(),m.label=17;case 17:return[3,15];case 18:return r.processed=!0,[2,r.stringify()]}})})()},t.runOnRoot=function(r){var i=this;this.result.lastPlugin=r;try{if((typeof r>"u"?"undefined":$(r))==="object"&&r.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(n){return r.Once(n,i.helpers)});return gr(o[0])?Promise.all(o):o}return r.Once(this.result.root,this.helpers)}else if(typeof r=="function")return r(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var r=this.result.opts,i=oh;r.syntax&&(i=r.syntax.stringify),r.stringifier&&(i=r.stringifier),i.stringify&&(i=i.stringify);var o=new ah(i,this.result.root,this.result.opts),n=o.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var r=E(this.plugins),i;!(i=r()).done;){var o=i.value,n=this.runOnRoot(o);if(gr(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var s=this.result.root;!s[Ue];)s[Ue]=!0,this.walkSync(s);if(this.listeners.OnceExit)if(s.type==="document")for(var c=E(s.nodes),u;!(u=c()).done;){var l=u.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},t.then=function(r,i){return this.async().then(r,i)},t.toString=function(){return this.css},t.visitSync=function(r,i){for(var o=E(r),n;!(n=o()).done;){var s=n.value,c=s[0],u=s[1];this.result.lastPlugin=c;var l=void 0;try{l=u(i,this.helpers)}catch(d){throw this.handleError(d,i.proxyOf)}if(i.type!=="root"&&i.type!=="document"&&!i.parent)return!0;if(gr(l))throw this.getAsyncError()}},t.visitTick=function(r){var i=r[r.length-1],o=i.node,n=i.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){r.pop();return}if(n.length>0&&i.visitorIndex<n.length){var s=n[i.visitorIndex],c=s[0],u=s[1];i.visitorIndex+=1,i.visitorIndex===n.length&&(i.visitors=[],i.visitorIndex=0),this.result.lastPlugin=c;try{return u(o.toProxy(),this.helpers)}catch(_){throw this.handleError(_,o)}}if(i.iterator!==0){for(var l=i.iterator,d;d=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!d[Ue]){d[Ue]=!0,r.push(ps(d));return}i.iterator=0,delete o.indexes[l]}for(var f=i.events;i.eventIndex<f.length;){var p=f[i.eventIndex];if(i.eventIndex+=1,p===Qt){o.nodes&&o.nodes.length&&(o[Ue]=!0,i.iterator=o.getIterator());return}else if(this.listeners[p]){i.visitors=this.listeners[p];return}}r.pop()},t.walkSync=function(r){var i=this;r[Ue]=!0;for(var o=Kc(r),n=E(o),s;!(s=n()).done;){var c=s.value;if(c===Qt)r.nodes&&r.each(function(l){l[Ue]||i.walkSync(l)});else{var u=this.listeners[c];if(u&&this.visitSync(u,r.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},ve(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e})();er.registerPostcss=function(e){da=e};var Xc=er;er.default=er;lh.registerLazyResult(er);ch.registerLazyResult(er);var ph=Mc,_h=sn,mh=ro,gh=Qa,fa=(function(){function e(a,r,i){r=r.toString(),this.stringified=!1,this._processor=a,this._css=r,this._opts=i,this._map=void 0;var o,n=_h;this.result=new gh(this._processor,o,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var c=new ph(n,o,this._opts,r);if(c.isMap()){var u=c.generate(),l=u[0],d=u[1];l&&(this.result.css=l),d&&(this.result.map=d)}else c.clearAnnotation(),this.result.css=c.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(r,i){return this.async().then(r,i)},t.toString=function(){return this._css},t.warnings=function(){return[]},ve(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var r,i=mh;try{r=i(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=r,r}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e})(),vh=fa;fa.default=fa;var yh=vh,bh=Xc,Ch=Xa,kh=jr,Dr=(function(){function e(a){a===void 0&&(a=[]),this.version="8.4.38",this.plugins=this.normalize(a)}var t=e.prototype;return t.normalize=function(r){for(var i=[],o=E(r),n;!(n=o()).done;){var s=n.value;if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),(typeof s>"u"?"undefined":$(s))==="object"&&Array.isArray(s.plugins))i=i.concat(s.plugins);else if((typeof s>"u"?"undefined":$(s))==="object"&&s.postcssPlugin)i.push(s);else if(typeof s=="function")i.push(s);else if(!((typeof s>"u"?"undefined":$(s))==="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin")}return i},t.process=function(r,i){return i===void 0&&(i={}),!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new yh(this,r,i):new bh(this,r,i)},t.use=function(r){return this.plugins=this.plugins.concat(this.normalize([r])),this},e})(),wh=Dr;Dr.default=Dr;kh.registerProcessor(Dr);Ch.registerProcessor(Dr);var Sh=un,Ah=Pc,Th=dn,Rh=eo,Ph=ln,Ih=jr,Eh=to;function Br(e,t){if(Array.isArray(e))return e.map(function(d){return Br(d)});var a=e.inputs,r=Pr(e,["inputs"]);if(a){t=[];for(var i=E(a),o;!(o=i()).done;){var n=o.value,s=J({},n,{__proto__:Ph.prototype});s.map&&(s.map=J({},s.map,{__proto__:Ah.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(function(d){return Br(d,t)})),r.source){var c=r.source,u=c.inputId,l=Pr(c,["inputId"]);r.source=l,u!=null&&(r.source.input=t[u])}if(r.type==="root")return new Ih(r);if(r.type==="decl")return new Sh(r);if(r.type==="rule")return new Eh(r);if(r.type==="comment")return new Th(r);if(r.type==="atrule")return new Rh(r);throw new Error("Unknown node type: "+e.type)}var Oh=Br;Br.default=Br;var xh=Za,Qc=un,Mh=Xc,Dh=Mt,io=wh,Bh=sn,Lh=Oh,eu=Xa,Nh=Wc,tu=dn,ru=eo,Fh=Qa,$h=ln,Uh=ro,Vh=Zc,iu=to,nu=jr,zh=cn;function X(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new io(t)}X.plugin=function(t,a){var r=!1;function i(){for(var n=arguments.length,s=new Array(n),c=0;c<n;c++)s[c]=arguments[c];console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
25
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Oi.LANG&&Oi.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
26
+ https://www.w3ctech.com/topic/2226`));var u=a.apply(void 0,[].concat(s));return u.postcssPlugin=t,u.postcssVersion=new io().version,u}var o;return Object.defineProperty(i,"postcss",{get:function(){return o||(o=i()),o}}),i.process=function(n,s,c){return X([i(c)]).process(n,s)},i};X.stringify=Bh;X.parse=Uh;X.fromJSON=Lh;X.list=Vh;X.comment=function(e){return new tu(e)};X.atRule=function(e){return new ru(e)};X.decl=function(e){return new Qc(e)};X.rule=function(e){return new iu(e)};X.root=function(e){return new nu(e)};X.document=function(e){return new eu(e)};X.CssSyntaxError=xh;X.Declaration=Qc;X.Container=Dh;X.Processor=io;X.Document=eu;X.Comment=tu;X.Warning=Nh;X.AtRule=ru;X.Result=Fh;X.Input=$h;X.Rule=iu;X.Root=nu;X.Node=zh;Mh.registerPostcss(X);var qh=X;X.default=X;var ae=tf(qh);ae.stringify;ae.fromJSON;ae.plugin;ae.parse;ae.list;ae.document;ae.comment;ae.atRule;ae.rule;ae.decl;ae.root;ae.CssSyntaxError;ae.Declaration;ae.Container;ae.Processor;ae.Document;ae.Comment;ae.Warning;ae.AtRule;ae.Result;ae.Input;ae.Rule;ae.Root;ae.Node;var Wh=Object.defineProperty,Gh=function(e,t,a){return t in e?Wh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a},xe=function(e,t,a){return Gh(e,(typeof t>"u"?"undefined":$(t))!=="symbol"?t+"":t,a)};function jh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var a=function r(){return B(this,r)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),a}var no={exports:{}},ie=String,au=function(){return{isColorSupported:!1,reset:ie,bold:ie,dim:ie,italic:ie,underline:ie,inverse:ie,hidden:ie,strikethrough:ie,black:ie,red:ie,green:ie,yellow:ie,blue:ie,magenta:ie,cyan:ie,white:ie,gray:ie,bgBlack:ie,bgRed:ie,bgGreen:ie,bgYellow:ie,bgBlue:ie,bgMagenta:ie,bgCyan:ie,bgWhite:ie}};no.exports=au();no.exports.createColors=au;var Jh=no.exports,Zh={},Yh=Object.freeze(Object.defineProperty({__proto__:null,default:Zh},Symbol.toStringTag,{value:"Module"})),de=Hh(Yh),_s=Jh,ms=de,ha=(function(e){ke(t,e);function t(r,i,o,n,s,c){var u;return u=e.call(this,r)||this,u.name="CssSyntaxError",u.reason=r,s&&(u.file=s),n&&(u.source=n),c&&(u.plugin=c),typeof i<"u"&&typeof o<"u"&&(typeof i=="number"?(u.line=i,u.column=o):(u.line=i.line,u.column=i.column,u.endLine=o.line,u.endColumn=o.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}var a=t.prototype;return a.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},a.showSourceCode=function(i){var o=this;if(!this.source)return"";var n=this.source;i==null&&(i=_s.isColorSupported),ms&&i&&(n=ms(n));var s=n.split(/\r?\n/),c=Math.max(this.line-3,0),u=Math.min(this.line+2,s.length),l=String(u).length,d,f;if(i){var p=_s.createColors(!0),_=p.bold,g=p.gray,m=p.red;d=function(v){return _(m(v))},f=function(v){return g(v)}}else d=f=function(v){return v};return s.slice(c,u).map(function(v,y){var b=c+1+y,C=" "+(" "+b).slice(-l)+" | ";if(b===o.line){var w=f(C.replace(/\d/g," "))+v.slice(0,o.column-1).replace(/[^\t]/g," ");return d(">")+f(C)+v+`
27
+ `+w+d("^")}return" "+f(C)+v}).join(`
28
+ `)},a.toString=function(){var i=this.showSourceCode();return i&&(i=`
29
+
30
+ `+i+`
31
+ `),this.name+": "+this.message+i},t})(xi(Error)),ao=ha;ha.default=ha;var ht={};ht.isClean=Symbol("isClean");ht.my=Symbol("my");var gs={after:`
32
+ `,beforeClose:`
33
+ `,beforeComment:`
34
+ `,beforeDecl:`
35
+ `,beforeOpen:" ",beforeRule:`
36
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Kh(e){return e[0].toUpperCase()+e.slice(1)}var pa=(function(){function e(a){this.builder=a}var t=e.prototype;return t.atrule=function(r,i){var o="@"+r.name,n=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?o+=r.raws.afterName:n&&(o+=" "),r.nodes)this.block(r,o+n);else{var s=(r.raws.between||"")+(i?";":"");this.builder(o+n+s,r)}},t.beforeAfter=function(r,i){var o;r.type==="decl"?o=this.raw(r,null,"beforeDecl"):r.type==="comment"?o=this.raw(r,null,"beforeComment"):i==="before"?o=this.raw(r,null,"beforeRule"):o=this.raw(r,null,"beforeClose");for(var n=r.parent,s=0;n&&n.type!=="root";)s+=1,n=n.parent;if(o.includes(`
37
+ `)){var c=this.raw(r,null,"indent");if(c.length)for(var u=0;u<s;u++)o+=c}return o},t.block=function(r,i){var o=this.raw(r,"between","beforeOpen");this.builder(i+o+"{",r,"start");var n;r.nodes&&r.nodes.length?(this.body(r),n=this.raw(r,"after")):n=this.raw(r,"after","emptyBody"),n&&this.builder(n),this.builder("}",r,"end")},t.body=function(r){for(var i=r.nodes.length-1;i>0&&r.nodes[i].type==="comment";)i-=1;for(var o=this.raw(r,"semicolon"),n=0;n<r.nodes.length;n++){var s=r.nodes[n],c=this.raw(s,"before");c&&this.builder(c),this.stringify(s,i!==n||o)}},t.comment=function(r){var i=this.raw(r,"left","commentLeft"),o=this.raw(r,"right","commentRight");this.builder("/*"+i+r.text+o+"*/",r)},t.decl=function(r,i){var o=this.raw(r,"between","colon"),n=r.prop+o+this.rawValue(r,"value");r.important&&(n+=r.raws.important||" !important"),i&&(n+=";"),this.builder(n,r)},t.document=function(r){this.body(r)},t.raw=function(r,i,o){var n;if(o||(o=i),i&&(n=r.raws[i],typeof n<"u"))return n;var s=r.parent;if(o==="before"&&(!s||s.type==="root"&&s.first===r||s&&s.type==="document"))return"";if(!s)return gs[o];var c=r.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[o]<"u")return c.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(r,o);var u="raw"+Kh(o);return this[u]?n=this[u](c,r):c.walk(function(l){if(n=l.raws[i],typeof n<"u")return!1}),typeof n>"u"&&(n=gs[o]),c.rawCache[o]=n,n},t.rawBeforeClose=function(r){var i;return r.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return i=o.raws.after,i.includes(`
38
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i},t.rawBeforeComment=function(r,i){var o;return r.walkComments(function(n){if(typeof n.raws.before<"u")return o=n.raws.before,o.includes(`
39
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(i,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},t.rawBeforeDecl=function(r,i){var o;return r.walkDecls(function(n){if(typeof n.raws.before<"u")return o=n.raws.before,o.includes(`
40
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(i,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},t.rawBeforeOpen=function(r){var i;return r.walk(function(o){if(o.type!=="decl"&&(i=o.raws.between,typeof i<"u"))return!1}),i},t.rawBeforeRule=function(r){var i;return r.walk(function(o){if(o.nodes&&(o.parent!==r||r.first!==o)&&typeof o.raws.before<"u")return i=o.raws.before,i.includes(`
41
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i},t.rawColon=function(r){var i;return r.walkDecls(function(o){if(typeof o.raws.between<"u")return i=o.raws.between.replace(/[^\s:]/g,""),!1}),i},t.rawEmptyBody=function(r){var i;return r.walk(function(o){if(o.nodes&&o.nodes.length===0&&(i=o.raws.after,typeof i<"u"))return!1}),i},t.rawIndent=function(r){if(r.raws.indent)return r.raws.indent;var i;return r.walk(function(o){var n=o.parent;if(n&&n!==r&&n.parent&&n.parent===r&&typeof o.raws.before<"u"){var s=o.raws.before.split(`
42
+ `);return i=s[s.length-1],i=i.replace(/\S/g,""),!1}}),i},t.rawSemicolon=function(r){var i;return r.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(i=o.raws.semicolon,typeof i<"u"))return!1}),i},t.rawValue=function(r,i){var o=r[i],n=r.raws[i];return n&&n.value===o?n.raw:o},t.root=function(r){this.body(r),r.raws.after&&this.builder(r.raws.after)},t.rule=function(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")},t.stringify=function(r,i){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,i)},e})(),ou=pa;pa.default=pa;var Xh=ou;function _a(e,t){var a=new Xh(t);a.stringify(e)}var fn=_a;_a.default=_a;var li=ht.isClean,Qh=ht.my,ep=ao,tp=ou,rp=fn;function ma(e,t){var a=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r!=="proxyCache"){var i=e[r],o=typeof i>"u"?"undefined":$(i);r==="parent"&&o==="object"?t&&(a[r]=t):r==="source"?a[r]=i:Array.isArray(i)?a[r]=i.map(function(n){return ma(n,a)}):(o==="object"&&i!==null&&(i=ma(i)),a[r]=i)}return a}var ga=(function(){function e(a){a===void 0&&(a={}),this.raws={},this[li]=!1,this[Qh]=!0;for(var r in a)if(r==="nodes"){this.nodes=[];for(var i=E(a[r]),o;!(o=i()).done;){var n=o.value;typeof n.clone=="function"?this.append(n.clone()):this.append(n)}}else this[r]=a[r]}var t=e.prototype;return t.addToError=function(r){if(r.postcssNode=this,r.stack&&this.source&&/\n\s{4}at /.test(r.stack)){var i=this.source;r.stack=r.stack.replace(/\n\s{4}at /,"$&"+i.input.from+":"+i.start.line+":"+i.start.column+"$&")}return r},t.after=function(r){return this.parent.insertAfter(this,r),this},t.assign=function(r){r===void 0&&(r={});for(var i in r)this[i]=r[i];return this},t.before=function(r){return this.parent.insertBefore(this,r),this},t.cleanRaws=function(r){delete this.raws.before,delete this.raws.after,r||delete this.raws.between},t.clone=function(r){r===void 0&&(r={});var i=ma(this);for(var o in r)i[o]=r[o];return i},t.cloneAfter=function(r){r===void 0&&(r={});var i=this.clone(r);return this.parent.insertAfter(this,i),i},t.cloneBefore=function(r){r===void 0&&(r={});var i=this.clone(r);return this.parent.insertBefore(this,i),i},t.error=function(r,i){if(i===void 0&&(i={}),this.source){var o=this.rangeBy(i),n=o.end,s=o.start;return this.source.input.error(r,{column:s.column,line:s.line},{column:n.column,line:n.line},i)}return new ep(r)},t.getProxyProcessor=function(){return{get:function(i,o){return o==="proxyOf"?i:o==="root"?function(){return i.root().toProxy()}:i[o]},set:function(i,o,n){return i[o]===n||(i[o]=n,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&i.markDirty()),!0}}},t.markDirty=function(){if(this[li]){this[li]=!1;for(var r=this;r=r.parent;)r[li]=!1}},t.next=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r+1]}},t.positionBy=function(r,i){var o=this.source.start;if(r.index)o=this.positionInside(r.index,i);else if(r.word){i=this.toString();var n=i.indexOf(r.word);n!==-1&&(o=this.positionInside(n,i))}return o},t.positionInside=function(r,i){for(var o=i||this.toString(),n=this.source.start.column,s=this.source.start.line,c=0;c<r;c++)o[c]===`
43
+ `?(n=1,s+=1):n+=1;return{column:n,line:s}},t.prev=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r-1]}},t.rangeBy=function(r){var i={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:i.column+1,line:i.line};if(r.word){var n=this.toString(),s=n.indexOf(r.word);s!==-1&&(i=this.positionInside(s,n),o=this.positionInside(s+r.word.length,n))}else r.start?i={column:r.start.column,line:r.start.line}:r.index&&(i=this.positionInside(r.index)),r.end?o={column:r.end.column,line:r.end.line}:typeof r.endIndex=="number"?o=this.positionInside(r.endIndex):r.index&&(o=this.positionInside(r.index+1));return(o.line<i.line||o.line===i.line&&o.column<=i.column)&&(o={column:i.column+1,line:i.line}),{end:o,start:i}},t.raw=function(r,i){var o=new tp;return o.raw(this,r,i)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(this.parent){for(var n=this,s=!1,c=E(i),u;!(u=c()).done;){var l=u.value;l===this?s=!0:s?(this.parent.insertAfter(n,l),n=l):this.parent.insertBefore(n,l)}s||this.remove()}return this},t.root=function(){for(var r=this;r.parent&&r.parent.type!=="document";)r=r.parent;return r},t.toJSON=function(r,i){var o={},n=i==null;i=i||new Map;var s=0;for(var c in this)if(Object.prototype.hasOwnProperty.call(this,c)&&!(c==="parent"||c==="proxyCache")){var u=this[c];if(Array.isArray(u))o[c]=u.map(function(d){return(typeof d>"u"?"undefined":$(d))==="object"&&d.toJSON?d.toJSON(null,i):d});else if((typeof u>"u"?"undefined":$(u))==="object"&&u.toJSON)o[c]=u.toJSON(null,i);else if(c==="source"){var l=i.get(u.input);l==null&&(l=s,i.set(u.input,s),s++),o[c]={end:u.end,inputId:l,start:u.start}}else o[c]=u}return n&&(o.inputs=[].concat(i.keys()).map(function(d){return d.toJSON()})),o},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(r){r===void 0&&(r=rp),r.stringify&&(r=r.stringify);var i="";return r(this,function(o){i+=o}),i},t.warn=function(r,i,o){var n={node:this};for(var s in o)n[s]=o[s];return r.warn(i,n)},ve(e,[{key:"proxyOf",get:function(){return this}}]),e})(),hn=ga;ga.default=ga;var ip=hn,va=(function(e){ke(t,e);function t(a){var r;return a&&typeof a.value<"u"&&typeof a.value!="string"&&(a=J({},a,{value:String(a.value)})),r=e.call(this,a)||this,r.type="decl",r}return ve(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),t})(ip),pn=va;va.default=va;var np="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ap=function(e){e===void 0&&(e=21);for(var t="",a=e;a--;)t+=np[Math.random()*64|0];return t},op={nanoid:ap},vs=de.SourceMapConsumer,ys=de.SourceMapGenerator,sp=de.existsSync,cp=de.readFileSync,Mn=de.dirname,up=de.join;function lp(e){return ct?ct.from(e,"base64").toString():window.atob(e)}var ya=(function(){function e(a,r){if(r.map!==!1){this.loadAnnotation(a),this.inline=this.startWith(this.annotation,"data:");var i=r.map?r.map.prev:void 0,o=this.loadMap(r.from,i);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Mn(this.mapFile)),o&&(this.text=o)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new vs(this.text)),this.consumerCache},t.decodeInline=function(r){var i=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(n.test(r)||s.test(r))return decodeURIComponent(r.substr(RegExp.lastMatch.length));if(i.test(r)||o.test(r))return lp(r.substr(RegExp.lastMatch.length));var c=r.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)},t.getAnnotationURL=function(r){return r.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(r){return(typeof r>"u"?"undefined":$(r))!=="object"?!1:typeof r.mappings=="string"||typeof r._mappings=="string"||Array.isArray(r.sections)},t.loadAnnotation=function(r){var i=r.match(/\/\*\s*# sourceMappingURL=/gm);if(i){var o=r.lastIndexOf(i.pop()),n=r.indexOf("*/",o);o>-1&&n>-1&&(this.annotation=this.getAnnotationURL(r.substring(o,n)))}},t.loadFile=function(r){if(this.root=Mn(r),sp(r))return this.mapFile=r,cp(r,"utf-8").toString().trim()},t.loadMap=function(r,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){var o=i(r);if(o){var n=this.loadFile(o);if(!n)throw new Error("Unable to load previous source map: "+o.toString());return n}}else{if(B(i,vs))return ys.fromSourceMap(i).toString();if(B(i,ys))return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return r&&(s=up(Mn(r),s)),this.loadFile(s)}}},t.startWith=function(r,i){return r?r.substr(0,i.length)===i:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e})(),su=ya;ya.default=ya;var dp=de.SourceMapConsumer,fp=de.SourceMapGenerator,bs=de.fileURLToPath,di=de.pathToFileURL,ba=de.isAbsolute,Ca=de.resolve,hp=op.nanoid,Dn=de,Cs=ao,pp=su,Bn=Symbol("fromOffsetCache"),_p=!!(dp&&fp),ks=!!(Ca&&ba),Vi=(function(){function e(a,r){if(r===void 0&&(r={}),a===null||typeof a>"u"||(typeof a>"u"?"undefined":$(a))==="object"&&!a.toString)throw new Error("PostCSS received "+a+" instead of CSS string");if(this.css=a.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!ks||/^\w+:\/\//.test(r.from)||ba(r.from)?this.file=r.from:this.file=Ca(r.from)),ks&&_p){var i=new pp(this.css,r);if(i.text){this.map=i;var o=i.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+hp(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(r,i,o,n){n===void 0&&(n={});var s,c,u;if(i&&(typeof i>"u"?"undefined":$(i))==="object"){var l=i,d=o;if(typeof l.offset=="number"){var f=this.fromOffset(l.offset);i=f.line,o=f.col}else i=l.line,o=l.column;if(typeof d.offset=="number"){var p=this.fromOffset(d.offset);c=p.line,u=p.col}else c=d.line,u=d.column}else if(!o){var _=this.fromOffset(i);i=_.line,o=_.col}var g=this.origin(i,o,c,u);return g?s=new Cs(r,g.endLine===void 0?g.line:{column:g.column,line:g.line},g.endLine===void 0?g.column:{column:g.endColumn,line:g.endLine},g.source,g.file,n.plugin):s=new Cs(r,c===void 0?i:{column:o,line:i},c===void 0?o:{column:u,line:c},this.css,this.file,n.plugin),s.input={column:o,endColumn:u,endLine:c,line:i,source:this.css},this.file&&(di&&(s.input.url=di(this.file).toString()),s.input.file=this.file),s},t.fromOffset=function(r){var i,o;if(this[Bn])o=this[Bn];else{var n=this.css.split(`
44
+ `);o=new Array(n.length);for(var s=0,c=0,u=n.length;c<u;c++)o[c]=s,s+=n[c].length+1;this[Bn]=o}i=o[o.length-1];var l=0;if(r>=i)l=o.length-1;else for(var d=o.length-2,f;l<d;)if(f=l+(d-l>>1),r<o[f])d=f-1;else if(r>=o[f+1])l=f+1;else{l=f;break}return{col:r-o[l]+1,line:l+1}},t.mapResolve=function(r){return/^\w+:\/\//.test(r)?r:Ca(this.map.consumer().sourceRoot||this.map.root||".",r)},t.origin=function(r,i,o,n){if(!this.map)return!1;var s=this.map.consumer(),c=s.originalPositionFor({column:i,line:r});if(!c.source)return!1;var u;typeof o=="number"&&(u=s.originalPositionFor({column:n,line:o}));var l;ba(c.source)?l=di(c.source):l=new URL(c.source,this.map.consumer().sourceRoot||di(this.map.mapFile));var d={column:c.column,endColumn:u&&u.column,endLine:u&&u.line,line:c.line,url:l.toString()};if(l.protocol==="file:")if(bs)d.file=bs(l);else throw new Error("file: protocol is not available in this PostCSS build");var f=s.sourceContentFor(c.source);return f&&(d.source=f),d},t.toJSON=function(){for(var r={},i=0,o=["hasBOM","css","file","id"];i<o.length;i++){var n=o[i];this[n]!=null&&(r[n]=this[n])}return this.map&&(r.map=J({},this.map),r.map.consumerCache&&(r.map.consumerCache=void 0)),r},ve(e,[{key:"from",get:function(){return this.file||this.id}}]),e})(),_n=Vi;Vi.default=Vi;Dn&&Dn.registerInput&&Dn.registerInput(Vi);var cu=de.SourceMapConsumer,Ri=de.SourceMapGenerator,Pi=de.dirname,uu=de.relative,lu=de.resolve,du=de.sep,ws=de.pathToFileURL,mp=_n,gp=!!(cu&&Ri),vp=!!(Pi&&lu&&uu&&du),yp=(function(){function e(a,r,i,o){this.stringify=a,this.mapOpts=i.map||{},this.root=r,this.opts=i,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var r;this.isInline()?r="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?r=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?r=this.mapOpts.annotation(this.opts.to,this.root):r=this.outputFile()+".map";var i=`
45
+ `;this.css.includes(`\r
46
+ `)&&(i=`\r
47
+ `),this.css+=i+"/*# sourceMappingURL="+r+" */"},t.applyPrevMaps=function(){for(var r=E(this.previous()),i;!(i=r()).done;){var o=i.value,n=this.toUrl(this.path(o.file)),s=o.root||Pi(o.file),c=void 0;this.mapOpts.sourcesContent===!1?(c=new cu(o.text),c.sourcesContent&&(c.sourcesContent=null)):c=o.consumer(),this.map.applySourceMap(c,n,this.toUrl(this.path(s)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var r,i=this.root.nodes.length-1;i>=0;i--)r=this.root.nodes[i],r.type==="comment"&&r.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(i);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),vp&&gp&&this.isMap())return this.generateMap();var r="";return this.stringify(this.root,function(i){r+=i}),[r]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var r=this.previous()[0].consumer();r.file=this.outputFile(),this.map=Ri.fromSourceMap(r,{ignoreInvalidMapping:!0})}else this.map=new Ri({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var r=this;this.css="",this.map=new Ri({file:this.outputFile(),ignoreInvalidMapping:!0});var i=1,o=1,n="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},c,u;this.stringify(this.root,function(l,d,f){if(r.css+=l,d&&f!=="end"&&(s.generated.line=i,s.generated.column=o-1,d.source&&d.source.start?(s.source=r.sourcePath(d),s.original.line=d.source.start.line,s.original.column=d.source.start.column-1,r.map.addMapping(s)):(s.source=n,s.original.line=1,s.original.column=0,r.map.addMapping(s))),c=l.match(/\n/g),c?(i+=c.length,u=l.lastIndexOf(`
48
+ `),o=l.length-u):o+=l.length,d&&f!=="start"){var p=d.parent||{raws:{}},_=d.type==="decl"||d.type==="atrule"&&!d.nodes;(!_||d!==p.last||p.raws.semicolon)&&(d.source&&d.source.end?(s.source=r.sourcePath(d),s.original.line=d.source.end.line,s.original.column=d.source.end.column-1,s.generated.line=i,s.generated.column=o-2,r.map.addMapping(s)):(s.source=n,s.original.line=1,s.original.column=0,s.generated.line=i,s.generated.column=o-1,r.map.addMapping(s)))}})},t.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(r){return r.annotation}):!0},t.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var r=this.mapOpts.annotation;return typeof r<"u"&&r!==!0?!1:this.previous().length?this.previous().some(function(i){return i.inline}):!0},t.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(r){return r.withContent()}):!0},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;var i=this.memoizedPaths.get(r);if(i)return i;var o=this.opts.to?Pi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Pi(lu(o,this.mapOpts.annotation)));var n=uu(o,r);return this.memoizedPaths.set(r,n),n},t.previous=function(){var r=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var n=o.source.input.map;r.previousMaps.includes(n)||r.previousMaps.push(n)}});else{var i=new mp(this.originalCSS,this.opts);i.map&&this.previousMaps.push(i.map)}return this.previousMaps},t.setSourcesContent=function(){var r=this,i={};if(this.root)this.root.walk(function(n){if(n.source){var s=n.source.input.from;if(s&&!i[s]){i[s]=!0;var c=r.usesFileUrls?r.toFileUrl(s):r.toUrl(r.path(s));r.map.setSourceContent(c,n.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},t.sourcePath=function(r){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(r.source.input.from):this.toUrl(this.path(r.source.input.from))},t.toBase64=function(r){return ct?ct.from(r).toString("base64"):window.btoa(unescape(encodeURIComponent(r)))},t.toFileUrl=function(r){var i=this.memoizedFileURLs.get(r);if(i)return i;if(ws){var o=ws(r).toString();return this.memoizedFileURLs.set(r,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(r){var i=this.memoizedURLs.get(r);if(i)return i;du==="\\"&&(r=r.replace(/\\/g,"/"));var o=encodeURI(r).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(r,o),o},e})(),fu=yp,bp=hn,ka=(function(e){ke(t,e);function t(a){var r;return r=e.call(this,a)||this,r.type="comment",r}return t})(bp),mn=ka;ka.default=ka;var hu=ht.isClean,pu=ht.my,_u=pn,mu=mn,Cp=hn,gu,oo,so,vu;function yu(e){return e.map(function(t){return t.nodes&&(t.nodes=yu(t.nodes)),delete t.source,t})}function bu(e){if(e[hu]=!1,e.proxyOf.nodes)for(var t=E(e.proxyOf.nodes),a;!(a=t()).done;){var r=a.value;bu(r)}}var Xe=(function(e){ke(t,e);function t(){return e.apply(this,arguments)||this}var a=t.prototype;return a.append=function(){for(var i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];for(var s=E(o),c;!(c=s()).done;)for(var u=c.value,l=this.normalize(u,this.last),d=E(l),f;!(f=d()).done;){var p=f.value;this.proxyOf.nodes.push(p)}return this.markDirty(),this},a.cleanRaws=function(i){if(e.prototype.cleanRaws.call(this,i),this.nodes)for(var o=E(this.nodes),n;!(n=o()).done;){var s=n.value;s.cleanRaws(i)}},a.each=function(i){if(this.proxyOf.nodes){for(var o=this.getIterator(),n,s;this.indexes[o]<this.proxyOf.nodes.length&&(n=this.indexes[o],s=i(this.proxyOf.nodes[n],n),s!==!1);)this.indexes[o]+=1;return delete this.indexes[o],s}},a.every=function(i){return this.nodes.every(i)},a.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var i=this.lastEach;return this.indexes[i]=0,i},a.getProxyProcessor=function(){return{get:function(o,n){return n==="proxyOf"?o:o[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l;return(l=o)[n].apply(l,[].concat(c.map(function(d){return typeof d=="function"?function(f,p){return d(f.toProxy(),p)}:d})))}:n==="every"||n==="some"?function(s){return o[n](function(c){for(var u=arguments.length,l=new Array(u>1?u-1:0),d=1;d<u;d++)l[d-1]=arguments[d];return s.apply(void 0,[].concat([c.toProxy()],l))})}:n==="root"?function(){return o.root().toProxy()}:n==="nodes"?o.nodes.map(function(s){return s.toProxy()}):n==="first"||n==="last"?o[n].toProxy():o[n]:o[n]},set:function(o,n,s){return o[n]===s||(o[n]=s,(n==="name"||n==="params"||n==="selector")&&o.markDirty()),!0}}},a.index=function(i){return typeof i=="number"?i:(i.proxyOf&&(i=i.proxyOf),this.proxyOf.nodes.indexOf(i))},a.insertAfter=function(i,o){var n=this.index(i),s=this.normalize(o,this.proxyOf.nodes[n]).reverse();n=this.index(i);for(var c=E(s),u;!(u=c()).done;){var l=u.value;this.proxyOf.nodes.splice(n+1,0,l)}var d;for(var f in this.indexes)d=this.indexes[f],n<d&&(this.indexes[f]=d+s.length);return this.markDirty(),this},a.insertBefore=function(i,o){var n=this.index(i),s=n===0?"prepend":!1,c=this.normalize(o,this.proxyOf.nodes[n],s).reverse();n=this.index(i);for(var u=E(c),l;!(l=u()).done;){var d=l.value;this.proxyOf.nodes.splice(n,0,d)}var f;for(var p in this.indexes)f=this.indexes[p],n<=f&&(this.indexes[p]=f+c.length);return this.markDirty(),this},a.normalize=function(i,o){var n=this;if(typeof i=="string")i=yu(gu(i).nodes);else if(typeof i>"u")i=[];else if(Array.isArray(i)){i=i.slice(0);for(var s=E(i),c;!(c=s()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(i.type==="root"&&this.type!=="document"){i=i.nodes.slice(0);for(var l=E(i),d;!(d=l()).done;){var f=d.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(i.type)i=[i];else if(i.prop){if(typeof i.value>"u")throw new Error("Value field is missed in node creation");typeof i.value!="string"&&(i.value=String(i.value)),i=[new _u(i)]}else if(i.selector)i=[new oo(i)];else if(i.name)i=[new so(i)];else if(i.text)i=[new mu(i)];else throw new Error("Unknown node type in node creation");var p=i.map(function(_){return _[pu]||t.rebuild(_),_=_.proxyOf,_.parent&&_.parent.removeChild(_),_[hu]&&bu(_),typeof _.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(_.raws.before=o.raws.before.replace(/\S/g,"")),_.parent=n.proxyOf,_});return p},a.prepend=function(){for(var i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];o=o.reverse();for(var s=E(o),c;!(c=s()).done;){for(var u=c.value,l=this.normalize(u,this.first,"prepend").reverse(),d=E(l),f;!(f=d()).done;){var p=f.value;this.proxyOf.nodes.unshift(p)}for(var _ in this.indexes)this.indexes[_]=this.indexes[_]+l.length}return this.markDirty(),this},a.push=function(i){return i.parent=this,this.proxyOf.nodes.push(i),this},a.removeAll=function(){for(var i=E(this.proxyOf.nodes),o;!(o=i()).done;){var n=o.value;n.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},a.removeChild=function(i){i=this.index(i),this.proxyOf.nodes[i].parent=void 0,this.proxyOf.nodes.splice(i,1);var o;for(var n in this.indexes)o=this.indexes[n],o>=i&&(this.indexes[n]=o-1);return this.markDirty(),this},a.replaceValues=function(i,o,n){return n||(n=o,o={}),this.walkDecls(function(s){o.props&&!o.props.includes(s.prop)||o.fast&&!s.value.includes(o.fast)||(s.value=s.value.replace(i,n))}),this.markDirty(),this},a.some=function(i){return this.nodes.some(i)},a.walk=function(i){return this.each(function(o,n){var s;try{s=i(o,n)}catch(c){throw o.addToError(c)}return s!==!1&&o.walk&&(s=o.walk(i)),s})},a.walkAtRules=function(i,o){return o?B(i,RegExp)?this.walk(function(n,s){if(n.type==="atrule"&&i.test(n.name))return o(n,s)}):this.walk(function(n,s){if(n.type==="atrule"&&n.name===i)return o(n,s)}):(o=i,this.walk(function(n,s){if(n.type==="atrule")return o(n,s)}))},a.walkComments=function(i){return this.walk(function(o,n){if(o.type==="comment")return i(o,n)})},a.walkDecls=function(i,o){return o?B(i,RegExp)?this.walk(function(n,s){if(n.type==="decl"&&i.test(n.prop))return o(n,s)}):this.walk(function(n,s){if(n.type==="decl"&&n.prop===i)return o(n,s)}):(o=i,this.walk(function(n,s){if(n.type==="decl")return o(n,s)}))},a.walkRules=function(i,o){return o?B(i,RegExp)?this.walk(function(n,s){if(n.type==="rule"&&i.test(n.selector))return o(n,s)}):this.walk(function(n,s){if(n.type==="rule"&&n.selector===i)return o(n,s)}):(o=i,this.walk(function(n,s){if(n.type==="rule")return o(n,s)}))},ve(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t})(Cp);Xe.registerParse=function(e){gu=e};Xe.registerRule=function(e){oo=e};Xe.registerAtRule=function(e){so=e};Xe.registerRoot=function(e){vu=e};var Dt=Xe;Xe.default=Xe;Xe.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,so.prototype):e.type==="rule"?Object.setPrototypeOf(e,oo.prototype):e.type==="decl"?Object.setPrototypeOf(e,_u.prototype):e.type==="comment"?Object.setPrototypeOf(e,mu.prototype):e.type==="root"&&Object.setPrototypeOf(e,vu.prototype),e[pu]=!0,e.nodes&&e.nodes.forEach(function(t){Xe.rebuild(t)})};var kp=Dt,Cu,ku,Lr=(function(e){ke(t,e);function t(r){var i;return i=e.call(this,J({type:"document"},r))||this,i.nodes||(i.nodes=[]),i}var a=t.prototype;return a.toResult=function(i){i===void 0&&(i={});var o=new Cu(new ku,this,i);return o.stringify()},t})(kp);Lr.registerLazyResult=function(e){Cu=e};Lr.registerProcessor=function(e){ku=e};var co=Lr;Lr.default=Lr;var wa=(function(){function e(a,r){if(r===void 0&&(r={}),this.type="warning",this.text=a,r.node&&r.node.source){var i=r.node.rangeBy(r);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(var o in r)this[o]=r[o]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e})(),wu=wa;wa.default=wa;var wp=wu,Sa=(function(){function e(a,r,i){this.processor=a,this.messages=[],this.root=r,this.opts=i,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(r,i){i===void 0&&(i={}),i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);var o=new wp(r,i);return this.messages.push(o),o},t.warnings=function(){return this.messages.filter(function(r){return r.type==="warning"})},ve(e,[{key:"content",get:function(){return this.css}}]),e})(),uo=Sa;Sa.default=Sa;var Ln=39,Ss=34,fi=92,As=47,hi=10,vr=32,pi=12,_i=9,mi=13,Sp=91,Ap=93,Tp=40,Rp=41,Pp=123,Ip=125,Ep=59,Op=42,xp=58,Mp=64,gi=/[\t\n\f\r "#'()/;[\\\]{}]/g,vi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Dp=/.[\r\n"'(/\\]/,Ts=/[\da-f]/i,Bp=function(t,a){a===void 0&&(a={});var r=t.css.valueOf(),i=a.ignoreErrors,o,n,s,c,u,l,d,f,p,_,g=r.length,m=0,v=[],y=[];function b(){return m}function C(R){throw t.error("Unclosed "+R,m)}function w(){return y.length===0&&m>=g}function S(R){if(y.length)return y.pop();if(!(m>=g)){var P=R?R.ignoreUnclosed:!1;switch(o=r.charCodeAt(m),o){case hi:case vr:case _i:case mi:case pi:{n=m;do n+=1,o=r.charCodeAt(n);while(o===vr||o===hi||o===_i||o===mi||o===pi);_=["space",r.slice(m,n)],m=n-1;break}case Sp:case Ap:case Pp:case Ip:case xp:case Ep:case Rp:{var x=String.fromCharCode(o);_=[x,x,m];break}case Tp:{if(f=v.length?v.pop()[1]:"",p=r.charCodeAt(m+1),f==="url"&&p!==Ln&&p!==Ss&&p!==vr&&p!==hi&&p!==_i&&p!==pi&&p!==mi){n=m;do{if(l=!1,n=r.indexOf(")",n+1),n===-1)if(i||P){n=m;break}else C("bracket");for(d=n;r.charCodeAt(d-1)===fi;)d-=1,l=!l}while(l);_=["brackets",r.slice(m,n+1),m,n],m=n}else n=r.indexOf(")",m+1),c=r.slice(m,n+1),n===-1||Dp.test(c)?_=["(","(",m]:(_=["brackets",c,m,n],m=n);break}case Ln:case Ss:{s=o===Ln?"'":'"',n=m;do{if(l=!1,n=r.indexOf(s,n+1),n===-1)if(i||P){n=m+1;break}else C("string");for(d=n;r.charCodeAt(d-1)===fi;)d-=1,l=!l}while(l);_=["string",r.slice(m,n+1),m,n],m=n;break}case Mp:{gi.lastIndex=m+1,gi.test(r),gi.lastIndex===0?n=r.length-1:n=gi.lastIndex-2,_=["at-word",r.slice(m,n+1),m,n],m=n;break}case fi:{for(n=m,u=!0;r.charCodeAt(n+1)===fi;)n+=1,u=!u;if(o=r.charCodeAt(n+1),u&&o!==As&&o!==vr&&o!==hi&&o!==_i&&o!==mi&&o!==pi&&(n+=1,Ts.test(r.charAt(n)))){for(;Ts.test(r.charAt(n+1));)n+=1;r.charCodeAt(n+1)===vr&&(n+=1)}_=["word",r.slice(m,n+1),m,n],m=n;break}default:{o===As&&r.charCodeAt(m+1)===Op?(n=r.indexOf("*/",m+2)+1,n===0&&(i||P?n=r.length:C("comment")),_=["comment",r.slice(m,n+1),m,n],m=n):(vi.lastIndex=m+1,vi.test(r),vi.lastIndex===0?n=r.length-1:n=vi.lastIndex-2,_=["word",r.slice(m,n+1),m,n],v.push(_),m=n);break}}return m++,_}}function T(R){y.push(R)}return{back:T,endOfFile:w,nextToken:S,position:b}},Su=Dt,zi=(function(e){ke(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type="atrule",i}var a=t.prototype;return a.append=function(){for(var i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=e.prototype.append).call.apply(s,[].concat([this],o))},a.prepend=function(){for(var i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=e.prototype.prepend).call.apply(s,[].concat([this],o))},t})(Su),lo=zi;zi.default=zi;Su.registerAtRule(zi);var Au=Dt,Tu,Ru,tr=(function(e){ke(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type="root",i.nodes||(i.nodes=[]),i}var a=t.prototype;return a.normalize=function(i,o,n){var s=e.prototype.normalize.call(this,i);if(o){if(n==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var c=E(s),u;!(u=c()).done;){var l=u.value;l.raws.before=o.raws.before}}return s},a.removeChild=function(i,o){var n=this.index(i);return!o&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,i)},a.toResult=function(i){i===void 0&&(i={});var o=new Tu(new Ru,this,i);return o.stringify()},t})(Au);tr.registerLazyResult=function(e){Tu=e};tr.registerProcessor=function(e){Ru=e};var Hr=tr;tr.default=tr;Au.registerRoot(tr);var Nr={comma:function(t){return Nr.split(t,[","],!0)},space:function(t){var a=[" ",`
49
+ `," "];return Nr.split(t,a)},split:function(t,a,r){for(var i=[],o="",n=!1,s=0,c=!1,u="",l=!1,d=E(t),f;!(f=d()).done;){var p=f.value;l?l=!1:p==="\\"?l=!0:c?p===u&&(c=!1):p==='"'||p==="'"?(c=!0,u=p):p==="("?s+=1:p===")"?s>0&&(s-=1):s===0&&a.includes(p)&&(n=!0),n?(o!==""&&i.push(o.trim()),o="",n=!1):o+=p}return(r||o!=="")&&i.push(o.trim()),i}},Pu=Nr;Nr.default=Nr;var Iu=Dt,Lp=Pu,qi=(function(e){ke(t,e);function t(a){var r;return r=e.call(this,a)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return ve(t,[{key:"selectors",get:function(){return Lp.comma(this.selector)},set:function(r){var i=this.selector?this.selector.match(/,\s*/):null,o=i?i[0]:","+this.raw("between","beforeOpen");this.selector=r.join(o)}}]),t})(Iu),fo=qi;qi.default=qi;Iu.registerRule(qi);var Np=pn,Fp=Bp,$p=mn,Up=lo,Vp=Hr,Rs=fo,Ps={empty:!0,space:!0};function zp(e){for(var t=e.length-1;t>=0;t--){var a=e[t],r=a[3]||a[2];if(r)return r}}var qp=(function(){function e(a){this.input=a,this.root=new Vp,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(r){var i=new Up;i.name=r[1].slice(1),i.name===""&&this.unnamedAtrule(i,r),this.init(i,r[2]);for(var o,n,s,c=!1,u=!1,l=[],d=[];!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),o=r[0],o==="("||o==="["?d.push(o==="("?")":"]"):o==="{"&&d.length>0?d.push("}"):o===d[d.length-1]&&d.pop(),d.length===0)if(o===";"){i.source.end=this.getPosition(r[2]),i.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){u=!0;break}else if(o==="}"){if(l.length>0){for(s=l.length-1,n=l[s];n&&n[0]==="space";)n=l[--s];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(r);break}else l.push(r);else l.push(r);if(this.tokenizer.endOfFile()){c=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),c&&(r=l[l.length-1],i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),u&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(r){var i=this.colon(r);if(i!==!1){for(var o=0,n,s=i-1;s>=0&&(n=r[s],!(n[0]!=="space"&&(o+=1,o===2)));s--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}},t.colon=function(r){for(var i=0,o,n,s,c=E(r.entries()),u;!(u=c()).done;){var l=u.value,d=l[0],f=l[1];if(o=f,n=o[0],n==="("&&(i+=1),n===")"&&(i-=1),i===0&&n===":")if(!s)this.doubleColon(o);else{if(s[0]==="word"&&s[1]==="progid")continue;return d}s=o}return!1},t.comment=function(r){var i=new $p;this.init(i,r[2]),i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++;var o=r[1].slice(2,-2);if(/^\s*$/.test(o))i.text="",i.raws.left=o,i.raws.right="";else{var n=o.match(/^(\s*)([^]*\S)(\s*)$/);i.text=n[2],i.raws.left=n[1],i.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=Fp(this.input)},t.decl=function(r,i){var o=new Np;this.init(o,r[0][2]);var n=r[r.length-1];for(n[0]===";"&&(this.semicolon=!0,r.pop()),o.source.end=this.getPosition(n[3]||n[2]||zp(r)),o.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),o.raws.before+=r.shift()[1];for(o.source.start=this.getPosition(r[0][2]),o.prop="";r.length;){var s=r[0][0];if(s===":"||s==="space"||s==="comment")break;o.prop+=r.shift()[1]}o.raws.between="";for(var c;r.length;)if(c=r.shift(),c[0]===":"){o.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),o.raws.between+=c[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var u=[],l;r.length&&(l=r[0][0],!(l!=="space"&&l!=="comment"));)u.push(r.shift());this.precheckMissedSemicolon(r);for(var d=r.length-1;d>=0;d--){if(c=r[d],c[1].toLowerCase()==="!important"){o.important=!0;var f=this.stringFrom(r,d);f=this.spacesFromEnd(r)+f,f!==" !important"&&(o.raws.important=f);break}else if(c[1].toLowerCase()==="important"){for(var p=r.slice(0),_="",g=d;g>0;g--){var m=p[g][0];if(_.trim().indexOf("!")===0&&m!=="space")break;_=p.pop()[1]+_}_.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=_,r=p)}if(c[0]!=="space"&&c[0]!=="comment")break}var v=r.some(function(y){return y[0]!=="space"&&y[0]!=="comment"});v&&(o.raws.between+=u.map(function(y){return y[1]}).join(""),u=[]),this.raw(o,"value",u.concat(r),i),o.value.includes(":")&&!i&&this.checkMissedSemicolon(r)},t.doubleColon=function(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})},t.emptyRule=function(r){var i=new Rs;this.init(i,r[2]),i.selector="",i.raws.between="",this.current=i},t.end=function(r){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(r){if(this.spaces+=r[1],this.current.nodes){var i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(r){var i=this.input.fromOffset(r);return{column:i.col,line:i.line,offset:r}},t.init=function(r,i){this.current.push(r),r.source={input:this.input,start:this.getPosition(i)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)},t.other=function(r){for(var i=!1,o=null,n=!1,s=null,c=[],u=r[1].startsWith("--"),l=[],d=r;d;){if(o=d[0],l.push(d),o==="("||o==="[")s||(s=d),c.push(o==="("?")":"]");else if(u&&n&&o==="{")s||(s=d),c.push("}");else if(c.length===0)if(o===";")if(n){this.decl(l,u);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),i=!0;break}else o===":"&&(n=!0);else o===c[c.length-1]&&(c.pop(),c.length===0&&(s=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),c.length>0&&this.unclosedBracket(s),i&&n){if(!u)for(;l.length&&(d=l[l.length-1][0],!(d!=="space"&&d!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,u)}else this.unknownWord(l)},t.parse=function(){for(var r;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(r,i,o,n){for(var s,c,u=o.length,l="",d=!0,f,p,_=0;_<u;_+=1)s=o[_],c=s[0],c==="space"&&_===u-1&&!n?d=!1:c==="comment"?(p=o[_-1]?o[_-1][0]:"empty",f=o[_+1]?o[_+1][0]:"empty",!Ps[p]&&!Ps[f]?l.slice(-1)===","?d=!1:l+=s[1]:d=!1):l+=s[1];if(!d){var g=o.reduce(function(m,v){return m+v[1]},"");r.raws[i]={raw:g,value:l}}r[i]=l},t.rule=function(r){r.pop();var i=new Rs;this.init(i,r[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(i,"selector",r),this.current=i},t.spacesAndCommentsFromEnd=function(r){for(var i,o="";r.length&&(i=r[r.length-1][0],!(i!=="space"&&i!=="comment"));)o=r.pop()[1]+o;return o},t.spacesAndCommentsFromStart=function(r){for(var i,o="";r.length&&(i=r[0][0],!(i!=="space"&&i!=="comment"));)o+=r.shift()[1];return o},t.spacesFromEnd=function(r){for(var i,o="";r.length&&(i=r[r.length-1][0],i==="space");)o=r.pop()[1]+o;return o},t.stringFrom=function(r,i){for(var o="",n=i;n<r.length;n++)o+=r[n][1];return r.splice(i,r.length-i),o},t.unclosedBlock=function(){var r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)},t.unclosedBracket=function(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})},t.unexpectedClose=function(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})},t.unknownWord=function(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})},t.unnamedAtrule=function(r,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})},e})(),Wp=qp,Gp=Dt,jp=Wp,Hp=_n;function Wi(e,t){var a=new Hp(e,t),r=new jp(a);try{r.parse()}catch(i){throw i}return r.root}var ho=Wi;Wi.default=Wi;Gp.registerParse(Wi);var Ve=ht.isClean,Jp=ht.my,Zp=fu,Yp=fn,Kp=Dt,Xp=co,Is=uo,Qp=ho,e_=Hr,t_={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},r_={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},i_={Once:!0,postcssPlugin:!0,prepare:!0},rr=0;function yr(e){return(typeof e>"u"?"undefined":$(e))==="object"&&typeof e.then=="function"}function Eu(e){var t=!1,a=t_[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[a,a+"-"+t,rr,a+"Exit",a+"Exit-"+t]:t?[a,a+"-"+t,a+"Exit",a+"Exit-"+t]:e.append?[a,rr,a+"Exit"]:[a,a+"Exit"]}function Es(e){var t;return e.type==="document"?t=["Document",rr,"DocumentExit"]:e.type==="root"?t=["Root",rr,"RootExit"]:t=Eu(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Aa(e){return e[Ve]=!1,e.nodes&&e.nodes.forEach(function(t){return Aa(t)}),e}var Ta={},ir=(function(){function e(a,r,i){var o=this;this.stringified=!1,this.processed=!1;var n;if((typeof r>"u"?"undefined":$(r))==="object"&&r!==null&&(r.type==="root"||r.type==="document"))n=Aa(r);else if(B(r,e)||B(r,Is))n=Aa(r.root),r.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{var s=Qp;i.syntax&&(s=i.syntax.parse),i.parser&&(s=i.parser),s.parse&&(s=s.parse);try{n=s(r,i)}catch(c){this.processed=!0,this.error=c}n&&!n[Jp]&&Kp.rebuild(n)}this.result=new Is(a,n,i),this.helpers=J({},Ta,{postcss:Ta,result:this.result}),this.plugins=this.processor.plugins.map(function(c){return(typeof c>"u"?"undefined":$(c))==="object"&&c.prepare?J({},c,c.prepare(o.result)):c})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(r,i){var o=this.result.lastPlugin;try{if(i&&i.addToError(r),this.error=r,r.name==="CssSyntaxError"&&!r.plugin)r.plugin=o.postcssPlugin,r.setMessage();else if(o.postcssVersion)var n,s,c,u,l}catch(d){console&&console.error&&console.error(d)}return r},t.prepareVisitors=function(){var r=this;this.listeners={};for(var i=function(l,d,f){r.listeners[d]||(r.listeners[d]=[]),r.listeners[d].push([l,f])},o=E(this.plugins),n;!(n=o()).done;){var s=n.value;if((typeof s>"u"?"undefined":$(s))==="object")for(var c in s){if(!r_[c]&&/^[A-Z]/.test(c))throw new Error("Unknown event "+c+" in "+s.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!i_[c])if($(s[c])==="object")for(var u in s[c])u==="*"?i(s,c,s[c][u]):i(s,c+"-"+u.toLowerCase(),s[c][u]);else typeof s[c]=="function"&&i(s,c,s[c])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var r=this;return Ga(function(){var i,o,n,s,c,u,l,d,f,p,_,g;return Er(this,function(m){switch(m.label){case 0:r.plugin=0,i=0,m.label=1;case 1:if(!(i<r.plugins.length))return[3,6];if(o=r.plugins[i],n=r.runOnRoot(o),!yr(n))return[3,5];m.label=2;case 2:return m.trys.push([2,4,,5]),[4,n];case 3:return m.sent(),[3,5];case 4:throw s=m.sent(),r.handleError(s);case 5:return i++,[3,1];case 6:if(r.prepareVisitors(),!r.hasListener)return[3,18];c=r.result.root,m.label=7;case 7:if(c[Ve])return[3,14];c[Ve]=!0,u=[Es(c)],m.label=8;case 8:if(!(u.length>0))return[3,13];if(l=r.visitTick(u),!yr(l))return[3,12];m.label=9;case 9:return m.trys.push([9,11,,12]),[4,l];case 10:return m.sent(),[3,12];case 11:throw d=m.sent(),f=u[u.length-1].node,r.handleError(d,f);case 12:return[3,8];case 13:return[3,7];case 14:if(!r.listeners.OnceExit)return[3,18];p=function(){var v,y,b,C,w;return Er(this,function(S){switch(S.label){case 0:v=g.value,y=v[0],b=v[1],r.result.lastPlugin=y,S.label=1;case 1:return S.trys.push([1,6,,7]),c.type!=="document"?[3,3]:(C=c.nodes.map(function(T){return b(T,r.helpers)}),[4,Promise.all(C)]);case 2:return S.sent(),[3,5];case 3:return[4,b(c,r.helpers)];case 4:S.sent(),S.label=5;case 5:return[3,7];case 6:throw w=S.sent(),r.handleError(w);case 7:return[2]}})},_=E(r.listeners.OnceExit),m.label=15;case 15:return(g=_()).done?[3,18]:[5,mc(p())];case 16:m.sent(),m.label=17;case 17:return[3,15];case 18:return r.processed=!0,[2,r.stringify()]}})})()},t.runOnRoot=function(r){var i=this;this.result.lastPlugin=r;try{if((typeof r>"u"?"undefined":$(r))==="object"&&r.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(n){return r.Once(n,i.helpers)});return yr(o[0])?Promise.all(o):o}return r.Once(this.result.root,this.helpers)}else if(typeof r=="function")return r(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var r=this.result.opts,i=Yp;r.syntax&&(i=r.syntax.stringify),r.stringifier&&(i=r.stringifier),i.stringify&&(i=i.stringify);var o=new Zp(i,this.result.root,this.result.opts),n=o.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var r=E(this.plugins),i;!(i=r()).done;){var o=i.value,n=this.runOnRoot(o);if(yr(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var s=this.result.root;!s[Ve];)s[Ve]=!0,this.walkSync(s);if(this.listeners.OnceExit)if(s.type==="document")for(var c=E(s.nodes),u;!(u=c()).done;){var l=u.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},t.then=function(r,i){return this.async().then(r,i)},t.toString=function(){return this.css},t.visitSync=function(r,i){for(var o=E(r),n;!(n=o()).done;){var s=n.value,c=s[0],u=s[1];this.result.lastPlugin=c;var l=void 0;try{l=u(i,this.helpers)}catch(d){throw this.handleError(d,i.proxyOf)}if(i.type!=="root"&&i.type!=="document"&&!i.parent)return!0;if(yr(l))throw this.getAsyncError()}},t.visitTick=function(r){var i=r[r.length-1],o=i.node,n=i.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){r.pop();return}if(n.length>0&&i.visitorIndex<n.length){var s=n[i.visitorIndex],c=s[0],u=s[1];i.visitorIndex+=1,i.visitorIndex===n.length&&(i.visitors=[],i.visitorIndex=0),this.result.lastPlugin=c;try{return u(o.toProxy(),this.helpers)}catch(_){throw this.handleError(_,o)}}if(i.iterator!==0){for(var l=i.iterator,d;d=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!d[Ve]){d[Ve]=!0,r.push(Es(d));return}i.iterator=0,delete o.indexes[l]}for(var f=i.events;i.eventIndex<f.length;){var p=f[i.eventIndex];if(i.eventIndex+=1,p===rr){o.nodes&&o.nodes.length&&(o[Ve]=!0,i.iterator=o.getIterator());return}else if(this.listeners[p]){i.visitors=this.listeners[p];return}}r.pop()},t.walkSync=function(r){var i=this;r[Ve]=!0;for(var o=Eu(r),n=E(o),s;!(s=n()).done;){var c=s.value;if(c===rr)r.nodes&&r.each(function(l){l[Ve]||i.walkSync(l)});else{var u=this.listeners[c];if(u&&this.visitSync(u,r.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},ve(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e})();ir.registerPostcss=function(e){Ta=e};var Ou=ir;ir.default=ir;e_.registerLazyResult(ir);Xp.registerLazyResult(ir);var n_=fu,a_=fn,o_=ho,s_=uo,Ra=(function(){function e(a,r,i){r=r.toString(),this.stringified=!1,this._processor=a,this._css=r,this._opts=i,this._map=void 0;var o,n=a_;this.result=new s_(this._processor,o,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var c=new n_(n,o,this._opts,r);if(c.isMap()){var u=c.generate(),l=u[0],d=u[1];l&&(this.result.css=l),d&&(this.result.map=d)}else c.clearAnnotation(),this.result.css=c.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(r,i){return this.async().then(r,i)},t.toString=function(){return this._css},t.warnings=function(){return[]},ve(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var r,i=o_;try{r=i(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=r,r}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e})(),c_=Ra;Ra.default=Ra;var u_=c_,l_=Ou,d_=co,f_=Hr,Fr=(function(){function e(a){a===void 0&&(a=[]),this.version="8.4.38",this.plugins=this.normalize(a)}var t=e.prototype;return t.normalize=function(r){for(var i=[],o=E(r),n;!(n=o()).done;){var s=n.value;if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),(typeof s>"u"?"undefined":$(s))==="object"&&Array.isArray(s.plugins))i=i.concat(s.plugins);else if((typeof s>"u"?"undefined":$(s))==="object"&&s.postcssPlugin)i.push(s);else if(typeof s=="function")i.push(s);else if(!((typeof s>"u"?"undefined":$(s))==="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin")}return i},t.process=function(r,i){return i===void 0&&(i={}),!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new u_(this,r,i):new l_(this,r,i)},t.use=function(r){return this.plugins=this.plugins.concat(this.normalize([r])),this},e})(),h_=Fr;Fr.default=Fr;f_.registerProcessor(Fr);d_.registerProcessor(Fr);var p_=pn,__=su,m_=mn,g_=lo,v_=_n,y_=Hr,b_=fo;function $r(e,t){if(Array.isArray(e))return e.map(function(d){return $r(d)});var a=e.inputs,r=Pr(e,["inputs"]);if(a){t=[];for(var i=E(a),o;!(o=i()).done;){var n=o.value,s=J({},n,{__proto__:v_.prototype});s.map&&(s.map=J({},s.map,{__proto__:__.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(function(d){return $r(d,t)})),r.source){var c=r.source,u=c.inputId,l=Pr(c,["inputId"]);r.source=l,u!=null&&(r.source.input=t[u])}if(r.type==="root")return new y_(r);if(r.type==="decl")return new p_(r);if(r.type==="rule")return new b_(r);if(r.type==="comment")return new m_(r);if(r.type==="atrule")return new g_(r);throw new Error("Unknown node type: "+e.type)}var C_=$r;$r.default=$r;var k_=ao,xu=pn,w_=Ou,S_=Dt,po=h_,A_=fn,T_=C_,Mu=co,R_=wu,Du=mn,Bu=lo,P_=uo,I_=_n,E_=ho,O_=Pu,Lu=fo,Nu=Hr,x_=hn;function Q(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new po(t)}Q.plugin=function(t,a){var r=!1;function i(){for(var n=arguments.length,s=new Array(n),c=0;c<n;c++)s[c]=arguments[c];console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
50
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Oi.LANG&&Oi.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
51
+ https://www.w3ctech.com/topic/2226`));var u=a.apply(void 0,[].concat(s));return u.postcssPlugin=t,u.postcssVersion=new po().version,u}var o;return Object.defineProperty(i,"postcss",{get:function(){return o||(o=i()),o}}),i.process=function(n,s,c){return Q([i(c)]).process(n,s)},i};Q.stringify=A_;Q.parse=E_;Q.fromJSON=T_;Q.list=O_;Q.comment=function(e){return new Du(e)};Q.atRule=function(e){return new Bu(e)};Q.decl=function(e){return new xu(e)};Q.rule=function(e){return new Lu(e)};Q.root=function(e){return new Nu(e)};Q.document=function(e){return new Mu(e)};Q.CssSyntaxError=k_;Q.Declaration=xu;Q.Container=S_;Q.Processor=po;Q.Document=Mu;Q.Comment=Du;Q.Warning=R_;Q.AtRule=Bu;Q.Result=P_;Q.Input=I_;Q.Rule=Lu;Q.Root=Nu;Q.Node=x_;w_.registerPostcss(Q);var M_=Q;Q.default=Q;var oe=jh(M_);oe.stringify;oe.fromJSON;oe.plugin;oe.parse;oe.list;oe.document;oe.comment;oe.atRule;oe.rule;oe.decl;oe.root;oe.CssSyntaxError;oe.Declaration;oe.Container;oe.Processor;oe.Document;oe.Comment;oe.Warning;oe.AtRule;oe.Result;oe.Input;oe.Rule;oe.Root;oe.Node;var D_=(function(){function e(){for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];xe(this,"parentElement",null),xe(this,"parentNode",null),xe(this,"ownerDocument"),xe(this,"firstChild",null),xe(this,"lastChild",null),xe(this,"previousSibling",null),xe(this,"nextSibling",null),xe(this,"ELEMENT_NODE",1),xe(this,"TEXT_NODE",3),xe(this,"nodeType"),xe(this,"nodeName"),xe(this,"RRNodeType")}var t=e.prototype;return t.contains=function(r){if(B(r,e)){if(r.ownerDocument!==this.ownerDocument)return!1;if(r===this)return!0}else return!1;for(;r.parentNode;){if(r.parentNode===this)return!0;r=r.parentNode}return!1},t.appendChild=function(r){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(r,i){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(r){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},ve(e,[{key:"childNodes",get:function(){for(var r=[],i=this.firstChild;i;)r.push(i),i=i.nextSibling;return r}}]),e})(),Os={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},xs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},yi={},B_=function(){return!!globalThis.Zone};function _o(e){if(yi[e])return yi[e];var t=globalThis[e],a=t.prototype,r=e in Os?Os[e]:void 0,i=!!(r&&r.every(function(l){var d,f;return!!((f=(d=Object.getOwnPropertyDescriptor(a,l))==null?void 0:d.get)!=null&&f.toString().includes("[native code]"))})),o=e in xs?xs[e]:void 0,n=!!(o&&o.every(function(l){var d;return typeof a[l]=="function"&&((d=a[l])==null?void 0:d.toString().includes("[native code]"))}));if(i&&n&&!B_())return yi[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(s),u?yi[e]=u:a}catch{return a}}var Nn={};function pt(e,t,a){var r,i=e+"."+String(a);if(Nn[i])return Nn[i].call(t);var o=_o(e),n=(r=Object.getOwnPropertyDescriptor(o,a))==null?void 0:r.get;return n?(Nn[i]=n,n.call(t)):t[a]}var Fn={};function Fu(e,t,a){var r=e+"."+String(a);if(Fn[r])return Fn[r].bind(t);var i=_o(e),o=i[a];return typeof o!="function"?t[a]:(Fn[r]=o,o.bind(t))}function L_(e){return pt("Node",e,"childNodes")}function N_(e){return pt("Node",e,"parentNode")}function F_(e){return pt("Node",e,"parentElement")}function $_(e){return pt("Node",e,"textContent")}function U_(e,t){return Fu("Node",e,"contains")(t)}function V_(e){return Fu("Node",e,"getRootNode")()}function z_(e){return!e||!("host"in e)?null:pt("ShadowRoot",e,"host")}function q_(e){return e.styleSheets}function W_(e){return!e||!("shadowRoot"in e)?null:pt("Element",e,"shadowRoot")}function G_(e,t){return pt("Element",e,"querySelector")(t)}function j_(e,t){return pt("Element",e,"querySelectorAll")(t)}function $u(){return _o("MutationObserver").constructor}function Bt(e,t,a){try{if(!(t in e))return function(){};var r=e[t],i=a(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var q={childNodes:L_,parentNode:N_,parentElement:F_,textContent:$_,contains:U_,getRootNode:V_,host:z_,styleSheets:q_,shadowRoot:W_,querySelector:G_,querySelectorAll:j_,mutationObserver:$u,patch:Bt};function Ae(e,t,a){a===void 0&&(a=document);var r={capture:!0,passive:!0};return a.addEventListener(e,t,r),function(){return a.removeEventListener(e,t,r)}}var Wt=`Please stop import mirror directly. Instead of that,\r
52
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
53
+ or you can use record.mirror to access the mirror instance during recording.`,Ms={map:{},getId:function(){return console.error(Wt),-1},getNode:function(){return console.error(Wt),null},removeNodeFromMap:function(){console.error(Wt)},has:function(){return console.error(Wt),!1},reset:function(){console.error(Wt)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ms=new Proxy(Ms,{get:function(t,a,r){return a==="map"&&console.error(Wt),Reflect.get(t,a,r)}}));function Ur(e,t,a){a===void 0&&(a={});var r=null,i=0;return function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];var c=Date.now();!i&&a.leading===!1&&(i=c);var u=t-(c-i),l=this;u<=0||u>t?(r&&(clearTimeout(r),r=null),i=c,e.apply(l,n)):!r&&a.trailing!==!1&&(r=setTimeout(function(){i=a.leading===!1?0:Date.now(),r=null,e.apply(l,n)},u))}}function gn(e,t,a,r,i){i===void 0&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?a:{set:function(s){var c=this;setTimeout(function(){a.set.call(c,s)},0),o&&o.set&&o.set.call(this,s)}}),function(){return gn(e,t,o||{},!0)}}var Gi=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Gi=function(){return new Date().getTime()});function Uu(e){var t,a,r,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||o?.body&&((t=q.parentElement(o.body))==null?void 0:t.scrollLeft)||((a=o?.body)==null?void 0:a.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:o?.documentElement.scrollTop||o?.body&&((r=q.parentElement(o.body))==null?void 0:r.scrollTop)||((i=o?.body)==null?void 0:i.scrollTop)||0}}function Vu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function zu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function qu(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:q.parentElement(e);return t}function Te(e,t,a,r){if(!e)return!1;var i=qu(e);if(!i)return!1;try{if(typeof t=="string"){if(i.classList.contains(t)||r&&i.closest("."+t)!==null)return!0}else if(Li(i,t,r))return!0}catch{}return!!(a&&(i.matches(a)||r&&i.closest(a)!==null))}function H_(e,t){return t.getId(e)!==-1}function $n(e,t,a){return e.tagName==="TITLE"&&a.headTitleMutations?!0:t.getId(e)===Or}function Wu(e,t){if(Cr(e))return!1;var a=t.getId(e);if(!t.has(a))return!0;var r=q.parentNode(e);return r&&r.nodeType===e.DOCUMENT_NODE?!1:r?Wu(r,t):!0}function Pa(e){return!!e.changedTouches}function J_(e){e===void 0&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Gu(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function ju(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ia(e){return e?B(e,D_)&&"shadowRoot"in e?!!e.shadowRoot:!!q.shadowRoot(e):!1}var Z_=(function(){function e(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(r){var i;return(i=this.styleIDMap.get(r))!=null?i:-1},t.has=function(r){return this.styleIDMap.has(r)},t.add=function(r,i){if(this.has(r))return this.getId(r);var o;return i===void 0?o=this.id++:o=i,this.styleIDMap.set(r,o),this.idStyleMap.set(o,r),o},t.getStyle=function(r){return this.idStyleMap.get(r)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e})();function Hu(e){var t,a=null;return"getRootNode"in e&&((t=q.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&q.host(q.getRootNode(e))&&(a=q.host(q.getRootNode(e))),a}function Y_(e){for(var t=e,a;a=Hu(t);)t=a;return t}function K_(e){var t=e.ownerDocument;if(!t)return!1;var a=Y_(e);return q.contains(t,a)}function Ju(e){var t=e.ownerDocument;return t?q.contains(t,e)||K_(e):!1}var W=(function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e})(W||{}),L=(function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e})(L||{}),Ie=(function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e})(Ie||{}),Je=(function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e})(Je||{}),nr=(function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e})(nr||{}),Gt=(function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e})(Gt||{}),Zu=(function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e})(Zu||{});function Ds(e){return"__ln"in e}var X_=(function(){function e(){I(this,"length",0),I(this,"head",null),I(this,"tail",null)}var t=e.prototype;return t.get=function(r){if(r>=this.length)throw new Error("Position outside of list range");for(var i=this.head,o=0;o<r;o++)i=i?.next||null;return i},t.addNode=function(r){var i={value:r,previous:null,next:null};if(r.__ln=i,r.previousSibling&&Ds(r.previousSibling)){var o=r.previousSibling.__ln.next;i.next=o,i.previous=r.previousSibling.__ln,r.previousSibling.__ln.next=i,o&&(o.previous=i)}else if(r.nextSibling&&Ds(r.nextSibling)&&r.nextSibling.__ln.previous){var n=r.nextSibling.__ln.previous;i.previous=n,i.next=r.nextSibling.__ln,r.nextSibling.__ln.previous=i,n&&(n.next=i)}else this.head&&(this.head.previous=i),i.next=this.head,this.head=i;i.next===null&&(this.tail=i),this.length++},t.removeNode=function(r){var i=r.__ln;this.head&&(i.previous?(i.previous.next=i.next,i.next?i.next.previous=i.previous:this.tail=i.previous):(this.head=i.next,this.head?this.head.previous=null:this.tail=null),r.__ln&&delete r.__ln,this.length--)},e})(),Bs=function(e,t){return e+"@"+t},Q_=(function(){function e(){var a=this;I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",function(r){r.forEach(a.processMutation),a.emit()}),I(this,"emit",function(){if(!(a.frozen||a.locked)){for(var r=[],i=new Set,o=new X_,n=function(O){for(var D=O,j=Or;j===Or;)D=D&&D.nextSibling,j=D&&a.mirror.getId(D);return j},s=function(O){var D=q.parentNode(O);if(!(!D||!Ju(O))){var j=!1;if(O.nodeType===Node.TEXT_NODE){var ye=D.tagName;if(ye==="TEXTAREA")return;ye==="STYLE"&&a.addedSet.has(D)&&(j=!0)}var Z=Cr(D)?a.mirror.getId(Hu(O)):a.mirror.getId(D),we=n(O);if(Z===-1||we===-1)return o.addNode(O);var Se=Ht(O,{doc:a.doc,mirror:a.mirror,blockClass:a.blockClass,blockSelector:a.blockSelector,maskTextClass:a.maskTextClass,maskTextSelector:a.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:a.inlineStylesheet,maskInputOptions:a.maskInputOptions,maskTextFn:a.maskTextFn,maskInputFn:a.maskInputFn,slimDOMOptions:a.slimDOMOptions,dataURLOptions:a.dataURLOptions,recordCanvas:a.recordCanvas,inlineImages:a.inlineImages,onSerialize:function(se){Gu(se,a.mirror)&&a.iframeManager.addIframe(se),ju(se,a.mirror)&&a.stylesheetManager.trackLinkElement(se),Ia(O)&&a.shadowDomManager.addShadowRoot(q.shadowRoot(O),a.doc)},onIframeLoad:function(se,ge){a.iframeManager.attachIframe(se,ge),a.shadowDomManager.observeAttachShadow(se)},onStylesheetLoad:function(se,ge){a.stylesheetManager.attachLinkElement(se,ge)},cssCaptured:j});Se&&(r.push({parentId:Z,nextId:we,node:Se}),i.add(Se.id))}};a.mapRemoves.length;)a.mirror.removeNodeFromMap(a.mapRemoves.shift());for(var c=E(a.movedSet),u;!(u=c()).done;){var l=u.value;Ls(a.removesSubTreeCache,l,a.mirror)&&!a.movedSet.has(q.parentNode(l))||s(l)}for(var d=E(a.addedSet),f;!(f=d()).done;){var p=f.value;!Ns(a.droppedSet,p)&&!Ls(a.removesSubTreeCache,p,a.mirror)||Ns(a.movedSet,p)?s(p):a.droppedSet.add(p)}for(var _=null;o.length;){var g=null;if(_){var m=a.mirror.getId(q.parentNode(_.value)),v=n(_.value);m!==-1&&v!==-1&&(g=_)}if(!g)for(var y=o.tail;y;){var b=y;if(y=y.previous,b){var C=a.mirror.getId(q.parentNode(b.value)),w=n(b.value);if(w===-1)continue;if(C!==-1){g=b;break}else{var S=b.value,T=q.parentNode(S);if(T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var R=q.host(T),P=a.mirror.getId(R);if(P!==-1){g=b;break}}}}}if(!g){for(;o.head;)o.removeNode(o.head.value);break}_=g.previous,o.removeNode(g.value),s(g.value)}var x={texts:a.texts.map(function(O){var D=O.node,j=q.parentNode(D);return j&&j.tagName==="TEXTAREA"&&a.genTextAreaValueMutation(j),{id:a.mirror.getId(D),value:O.value}}).filter(function(O){return!i.has(O.id)}).filter(function(O){return a.mirror.has(O.id)}),attributes:a.attributes.map(function(O){var D=O.attributes;if(typeof D.style=="string"){var j=JSON.stringify(O.styleDiff),ye=JSON.stringify(O._unchangedStyles);j.length<D.style.length&&(j+ye).split("var(").length===D.style.split("var(").length&&(D.style=O.styleDiff)}return{id:a.mirror.getId(O.node),attributes:D}}).filter(function(O){return!i.has(O.id)}).filter(function(O){return a.mirror.has(O.id)}),removes:a.removes,adds:r};!x.texts.length&&!x.attributes.length&&!x.removes.length&&!x.adds.length||(a.texts=[],a.attributes=[],a.attributeMap=new WeakMap,a.removes=[],a.addedSet=new Set,a.movedSet=new Set,a.droppedSet=new Set,a.removesSubTreeCache=new Set,a.movedMap={},a.mutationCb(x))}}),I(this,"genTextAreaValueMutation",function(r){var i=a.attributeMap.get(r);i||(i={node:r,attributes:{},styleDiff:{},_unchangedStyles:{}},a.attributes.push(i),a.attributeMap.set(r,i));var o=Array.from(q.childNodes(r),function(n){return q.textContent(n)||""}).join("");i.attributes.value=Mi({element:r,maskInputOptions:a.maskInputOptions,tagName:r.tagName,type:Di(r),value:o,maskInputFn:a.maskInputFn})}),I(this,"processMutation",function(r){if(!$n(r.target,a.mirror,a.slimDOMOptions))switch(r.type){case"characterData":{var i=q.textContent(r.target);!Te(r.target,a.blockClass,a.blockSelector,!1)&&i!==r.oldValue&&a.texts.push({value:Ac(r.target,a.maskTextClass,a.maskTextSelector,!0)&&i?a.maskTextFn?a.maskTextFn(i,qu(r.target)):i.replace(/[\S]/g,"*"):i,node:r.target});break}case"attributes":{var o=r.target,n=r.attributeName,s=r.target.getAttribute(n);if(n==="value"){var c=Di(o);s=Mi({element:o,maskInputOptions:a.maskInputOptions,tagName:o.tagName,type:c,value:s,maskInputFn:a.maskInputFn})}if(Te(r.target,a.blockClass,a.blockSelector,!1)||s===r.oldValue)return;var u=a.attributeMap.get(r.target);if(o.tagName==="IFRAME"&&n==="src"&&!a.keepIframeSrcFn(s))if(!o.contentDocument)n="rr_src";else return;if(u||(u={node:r.target,attributes:{},styleDiff:{},_unchangedStyles:{}},a.attributes.push(u),a.attributeMap.set(r.target,u)),n==="type"&&o.tagName==="INPUT"&&(r.oldValue||"").toLowerCase()==="password"&&o.setAttribute("data-rr-is-password","true"),!Sc(o.tagName,n))if(u.attributes[n]=wc(a.doc,Et(o.tagName),Et(n),s),n==="style"){if(!a.unattachedDoc)try{a.unattachedDoc=document.implementation.createHTMLDocument()}catch{a.unattachedDoc=a.doc}var l=a.unattachedDoc.createElement("span");r.oldValue&&l.setAttribute("style",r.oldValue);for(var d=E(Array.from(o.style)),f;!(f=d()).done;){var p=f.value,_=o.style.getPropertyValue(p),g=o.style.getPropertyPriority(p);_!==l.style.getPropertyValue(p)||g!==l.style.getPropertyPriority(p)?g===""?u.styleDiff[p]=_:u.styleDiff[p]=[_,g]:u._unchangedStyles[p]=[_,g]}for(var m=E(Array.from(l.style)),v;!(v=m()).done;){var y=v.value;o.style.getPropertyValue(y)===""&&(u.styleDiff[y]=!1)}}else n==="open"&&o.tagName==="DIALOG"&&(o.matches("dialog:modal")?u.attributes.rr_open_mode="modal":u.attributes.rr_open_mode="non-modal");break}case"childList":{if(Te(r.target,a.blockClass,a.blockSelector,!0))return;if(r.target.tagName==="TEXTAREA"){a.genTextAreaValueMutation(r.target);return}r.addedNodes.forEach(function(b){return a.genAdds(b,r.target)}),r.removedNodes.forEach(function(b){var C=a.mirror.getId(b),w=Cr(r.target)?a.mirror.getId(q.host(r.target)):a.mirror.getId(r.target);Te(r.target,a.blockClass,a.blockSelector,!1)||$n(b,a.mirror,a.slimDOMOptions)||!H_(b,a.mirror)||(a.addedSet.has(b)?(Ea(a.addedSet,b),a.droppedSet.add(b)):a.addedSet.has(r.target)&&C===-1||Wu(r.target,a.mirror)||(a.movedSet.has(b)&&a.movedMap[Bs(C,w)]?Ea(a.movedSet,b):(a.removes.push({parentId:w,id:C,isShadow:Cr(r.target)&&kr(r.target)?!0:void 0}),em(b,a.removesSubTreeCache))),a.mapRemoves.push(b))});break}}}),I(this,"genAdds",function(r,i){if(!a.processedNodeManager.inOtherBuffer(r,a)&&!(a.addedSet.has(r)||a.movedSet.has(r))){if(a.mirror.hasNode(r)){if($n(r,a.mirror,a.slimDOMOptions))return;a.movedSet.add(r);var o=null;i&&a.mirror.hasNode(i)&&(o=a.mirror.getId(i)),o&&o!==-1&&(a.movedMap[Bs(a.mirror.getId(r),o)]=!0)}else a.addedSet.add(r),a.droppedSet.delete(r);Te(r,a.blockClass,a.blockSelector,!1)||(q.childNodes(r).forEach(function(n){return a.genAdds(n)}),Ia(r)&&q.childNodes(q.shadowRoot(r)).forEach(function(n){a.processedNodeManager.add(n,a),a.genAdds(n,r)}))}})}var t=e.prototype;return t.init=function(r){var i=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(o){i[o]=r[o]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e})();function Ea(e,t){e.delete(t),q.childNodes(t).forEach(function(a){return Ea(e,a)})}function em(e,t){for(var a=[e];a.length;){var r=a.pop();t.has(r)||(t.add(r),q.childNodes(r).forEach(function(i){return a.push(i)}))}}function Ls(e,t,a){return e.size===0?!1:tm(e,t)}function tm(e,t,a){var r=q.parentNode(t);return r?e.has(r):!1}function Ns(e,t){return e.size===0?!1:Yu(e,t)}function Yu(e,t){var a=q.parentNode(t);return a?e.has(a)?!0:Yu(e,a):!1}var wr;function rm(e){wr=e}function im(){wr=void 0}var H=function(e){if(!wr)return e;var t=function(){for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];try{return e.apply(void 0,[].concat(r))}catch(o){if(wr&&wr(o)===!0)return;throw o}};return t},It=[];function Jr(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Ku(e,t){var a=new Q_;It.push(a),a.init(e);var r=new($u())(H(a.processMutations.bind(a)));return r.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function nm(e){var t=e.mousemoveCb,a=e.sampling,r=e.doc,i=e.mirror;if(a.mousemove===!1)return function(){};var o=typeof a.mousemove=="number"?a.mousemove:50,n=typeof a.mousemoveCallback=="number"?a.mousemoveCallback:500,s=[],c,u=Ur(H(function(f){var p=Date.now()-c;t(s.map(function(_){return _.timeOffset-=p,_}),f),s=[],c=null}),n),l=H(Ur(H(function(f){var p=Jr(f),_=Pa(f)?f.changedTouches[0]:f,g=_.clientX,m=_.clientY;c||(c=Gi()),s.push({x:g,y:m,id:i.getId(p),timeOffset:Gi()-c}),u(typeof DragEvent<"u"&&B(f,DragEvent)?L.Drag:B(f,MouseEvent)?L.MouseMove:L.TouchMove)}),o,{trailing:!1})),d=[Ae("mousemove",l,r),Ae("touchmove",l,r),Ae("drag",l,r)];return H(function(){d.forEach(function(f){return f()})})}function am(e){var t=e.mouseInteractionCb,a=e.doc,r=e.mirror,i=e.blockClass,o=e.blockSelector,n=e.sampling;if(n.mouseInteraction===!1)return function(){};var s=n.mouseInteraction===!0||n.mouseInteraction===void 0?{}:n.mouseInteraction,c=[],u=null,l=function(d){return function(f){var p=Jr(f);if(!Te(p,i,o,!0)){var _=null,g=d;if("pointerType"in f){switch(f.pointerType){case"mouse":_=Je.Mouse;break;case"touch":_=Je.Touch;break;case"pen":_=Je.Pen;break}_===Je.Touch?Ie[d]===Ie.MouseDown?g="TouchStart":Ie[d]===Ie.MouseUp&&(g="TouchEnd"):Je.Pen}else Pa(f)&&(_=Je.Touch);_!==null?(u=_,(g.startsWith("Touch")&&_===Je.Touch||g.startsWith("Mouse")&&_===Je.Mouse)&&(_=null)):Ie[d]===Ie.Click&&(_=u,u=null);var m=Pa(f)?f.changedTouches[0]:f;if(m){var v=r.getId(p),y=m.clientX,b=m.clientY;H(t)(J({type:Ie[g],id:v,x:y,y:b},_!==null&&{pointerType:_}))}}}};return Object.keys(Ie).filter(function(d){return Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&s[d]!==!1}).forEach(function(d){var f=Et(d),p=l(d);if(window.PointerEvent)switch(Ie[d]){case Ie.MouseDown:case Ie.MouseUp:f=f.replace("mouse","pointer");break;case Ie.TouchStart:case Ie.TouchEnd:return}c.push(Ae(f,p,a))}),H(function(){c.forEach(function(d){return d()})})}function Xu(e){var t=e.scrollCb,a=e.doc,r=e.mirror,i=e.blockClass,o=e.blockSelector,n=e.sampling,s=H(Ur(H(function(c){var u=Jr(c);if(!(!u||Te(u,i,o,!0))){var l=r.getId(u);if(u===a&&a.defaultView){var d=Uu(a.defaultView);t({id:l,x:d.left,y:d.top})}else t({id:l,x:u.scrollLeft,y:u.scrollTop})}}),n.scroll||100));return Ae("scroll",s,a)}function om(e,t){var a=e.viewportResizeCb,r=t.win,i=-1,o=-1,n=H(Ur(H(function(){var s=Vu(),c=zu();(i!==s||o!==c)&&(a({width:Number(c),height:Number(s)}),i=s,o=c)}),200));return Ae("resize",n,r)}var sm=["INPUT","TEXTAREA","SELECT"],Fs=new WeakMap;function cm(e){var t=e.inputCb,a=e.doc,r=e.mirror,i=e.blockClass,o=e.blockSelector,n=e.ignoreClass,s=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,d=e.userTriggeredOnInput;function f(C){var w=Jr(C),S=C.isTrusted,T=w&&w.tagName;if(w&&T==="OPTION"&&(w=q.parentElement(w)),!(!w||!T||sm.indexOf(T)<0||Te(w,i,o,!0))&&!(w.classList.contains(n)||s&&w.matches(s))){var R=w.value,P=!1,x=Di(w)||"";x==="radio"||x==="checkbox"?P=w.checked:(c[T.toLowerCase()]||c[x])&&(R=Mi({element:w,maskInputOptions:c,tagName:T,type:x,value:R,maskInputFn:u})),p(w,d?{text:R,isChecked:P,userTriggered:S}:{text:R,isChecked:P});var O=w.name;x==="radio"&&O&&P&&a.querySelectorAll('input[type="radio"][name="'+O+'"]').forEach(function(D){if(D!==w){var j=D.value;p(D,d?{text:j,isChecked:!P,userTriggered:!1}:{text:j,isChecked:!P})}})}}function p(C,w){var S=Fs.get(C);if(!S||S.text!==w.text||S.isChecked!==w.isChecked){Fs.set(C,w);var T=r.getId(C);H(t)(J({},w,{id:T}))}}var _=l.input==="last"?["change"]:["input","change"],g=_.map(function(C){return Ae(C,H(f),a)}),m=a.defaultView;if(!m)return function(){g.forEach(function(C){return C()})};var v=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),y=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];if(v&&v.set){var b;(b=g).push.apply(b,[].concat(y.map(function(C){return gn(C[0],C[1],{set:function(){H(f)({target:this,isTrusted:!1})}},!1,m)})))}return H(function(){g.forEach(function(C){return C()})})}function ji(e){var t=[];function a(r,i){if(bi("CSSGroupingRule")&&B(r.parentRule,CSSGroupingRule)||bi("CSSMediaRule")&&B(r.parentRule,CSSMediaRule)||bi("CSSSupportsRule")&&B(r.parentRule,CSSSupportsRule)||bi("CSSConditionRule")&&B(r.parentRule,CSSConditionRule)){var o=Array.from(r.parentRule.cssRules),n=o.indexOf(r);i.unshift(n)}else if(r.parentStyleSheet){var s=Array.from(r.parentStyleSheet.cssRules),c=s.indexOf(r);i.unshift(c)}return i}return a(e,t)}function nt(e,t,a){var r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=a.getId(e),{styleId:i,id:r}):{}}function um(e,t){var a=e.styleSheetRuleCb,r=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var n=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:H(function(f,p,_){var g=_[0],m=_[1],v=nt(p,r,i.styleMirror),y=v.id,b=v.styleId;return(y&&y!==-1||b&&b!==-1)&&a({id:y,styleId:b,adds:[{rule:g,index:m}]}),f.apply(p,_)})}),o.CSSStyleSheet.prototype.addRule=function(f,p,_){_===void 0&&(_=this.cssRules.length);var g=f+" { "+p+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[g,_])};var s=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:H(function(f,p,_){var g=_[0],m=nt(p,r,i.styleMirror),v=m.id,y=m.styleId;return(v&&v!==-1||y&&y!==-1)&&a({id:v,styleId:y,removes:[{index:g}]}),f.apply(p,_)})}),o.CSSStyleSheet.prototype.removeRule=function(f){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[f])};var c;o.CSSStyleSheet.prototype.replace&&(c=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:H(function(f,p,_){var g=_[0],m=nt(p,r,i.styleMirror),v=m.id,y=m.styleId;return(v&&v!==-1||y&&y!==-1)&&a({id:v,styleId:y,replace:g}),f.apply(p,_)})}));var u;o.CSSStyleSheet.prototype.replaceSync&&(u=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:H(function(f,p,_){var g=_[0],m=nt(p,r,i.styleMirror),v=m.id,y=m.styleId;return(v&&v!==-1||y&&y!==-1)&&a({id:v,styleId:y,replaceSync:g}),f.apply(p,_)})}));var l={};Ci("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Ci("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Ci("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Ci("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var d={};return Object.entries(l).forEach(function(f){var p=f[0],_=f[1];d[p]={insertRule:_.prototype.insertRule,deleteRule:_.prototype.deleteRule},_.prototype.insertRule=new Proxy(d[p].insertRule,{apply:H(function(g,m,v){var y=v[0],b=v[1],C=nt(m.parentStyleSheet,r,i.styleMirror),w=C.id,S=C.styleId;return(w&&w!==-1||S&&S!==-1)&&a({id:w,styleId:S,adds:[{rule:y,index:[].concat(ji(m),[b||0])}]}),g.apply(m,v)})}),_.prototype.deleteRule=new Proxy(d[p].deleteRule,{apply:H(function(g,m,v){var y=v[0],b=nt(m.parentStyleSheet,r,i.styleMirror),C=b.id,w=b.styleId;return(C&&C!==-1||w&&w!==-1)&&a({id:C,styleId:w,removes:[{index:[].concat(ji(m),[y])}]}),g.apply(m,v)})})}),H(function(){o.CSSStyleSheet.prototype.insertRule=n,o.CSSStyleSheet.prototype.deleteRule=s,c&&(o.CSSStyleSheet.prototype.replace=c),u&&(o.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach(function(f){var p=f[0],_=f[1];_.prototype.insertRule=d[p].insertRule,_.prototype.deleteRule=d[p].deleteRule})})}function Qu(e,t){var a=e.mirror,r=e.stylesheetManager,i,o,n,s=null;t.nodeName==="#document"?s=a.getId(t):s=a.getId(q.host(t));var c=t.nodeName==="#document"?(i=t.defaultView)==null?void 0:i.Document:(n=(o=t.ownerDocument)==null?void 0:o.defaultView)==null?void 0:n.ShadowRoot,u=c?.prototype?Object.getOwnPropertyDescriptor(c?.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!c||!u?function(){}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var d;return(d=u.get)==null?void 0:d.call(this)},set:function(d){var f,p=(f=u.set)==null?void 0:f.call(this,d);if(s!==null&&s!==-1)try{r.adoptStyleSheets(d,s)}catch{}return p}}),H(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}))}function lm(e,t){var a=e.styleDeclarationCb,r=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,n=t.win,s=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:H(function(u,l,d){var f,p=d[0],_=d[1],g=d[2];if(i.has(p))return s.apply(l,[p,_,g]);var m=nt((f=l.parentRule)==null?void 0:f.parentStyleSheet,r,o.styleMirror),v=m.id,y=m.styleId;return(v&&v!==-1||y&&y!==-1)&&a({id:v,styleId:y,set:{property:p,value:_,priority:g},index:ji(l.parentRule)}),u.apply(l,d)})});var c=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:H(function(u,l,d){var f,p=d[0];if(i.has(p))return c.apply(l,[p]);var _=nt((f=l.parentRule)==null?void 0:f.parentStyleSheet,r,o.styleMirror),g=_.id,m=_.styleId;return(g&&g!==-1||m&&m!==-1)&&a({id:g,styleId:m,remove:{property:p},index:ji(l.parentRule)}),u.apply(l,d)})}),H(function(){n.CSSStyleDeclaration.prototype.setProperty=s,n.CSSStyleDeclaration.prototype.removeProperty=c})}function dm(e){var t=e.mediaInteractionCb,a=e.blockClass,r=e.blockSelector,i=e.mirror,o=e.sampling,n=e.doc,s=H(function(u){return Ur(H(function(l){var d=Jr(l);if(!(!d||Te(d,a,r,!0))){var f=d.currentTime,p=d.volume,_=d.muted,g=d.playbackRate,m=d.loop;t({type:u,id:i.getId(d),currentTime:f,volume:p,muted:_,playbackRate:g,loop:m})}}),o.media||500)}),c=[Ae("play",s(Gt.Play),n),Ae("pause",s(Gt.Pause),n),Ae("seeked",s(Gt.Seeked),n),Ae("volumechange",s(Gt.VolumeChange),n),Ae("ratechange",s(Gt.RateChange),n)];return H(function(){c.forEach(function(u){return u()})})}function fm(e){var t=e.fontCb,a=e.doc,r=a.defaultView;if(!r)return function(){};var i=[],o=new WeakMap,n=r.FontFace;r.FontFace=function(u,l,d){var f=new n(u,l,d);return o.set(f,{family:u,buffer:typeof l!="string",descriptors:d,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),f};var s=Bt(a.fonts,"add",function(c){return function(u){return setTimeout(H(function(){var l=o.get(u);l&&(t(l),o.delete(u))}),0),c.apply(this,[u])}});return i.push(function(){r.FontFace=n}),i.push(s),H(function(){i.forEach(function(c){return c()})})}function hm(e){var t=e.doc,a=e.mirror,r=e.blockClass,i=e.blockSelector,o=e.selectionCb,n=!0,s=H(function(){var c=t.getSelection();if(!(!c||n&&c?.isCollapsed)){n=c.isCollapsed||!1;for(var u=[],l=c.rangeCount||0,d=0;d<l;d++){var f=c.getRangeAt(d),p=f.startContainer,_=f.startOffset,g=f.endContainer,m=f.endOffset,v=Te(p,r,i,!0)||Te(g,r,i,!0);v||u.push({start:a.getId(p),startOffset:_,end:a.getId(g),endOffset:m})}o({ranges:u})}});return s(),Ae("selectionchange",s)}function pm(e){var t=e.doc,a=e.customElementCb,r=t.defaultView;if(!r||!r.customElements)return function(){};var i=Bt(r.customElements,"define",function(o){return function(n,s,c){try{a({define:{name:n}})}catch{console.warn("Custom element callback failed for "+n)}return o.apply(this,[n,s,c])}});return i}function _m(e,t){var a=e.mutationCb,r=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,n=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,d=e.canvasMutationCb,f=e.fontCb,p=e.selectionCb,_=e.customElementCb;e.mutationCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.mutation){var y;(y=t).mutation.apply(y,[].concat(m))}a.apply(void 0,[].concat(m))},e.mousemoveCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.mousemove){var y;(y=t).mousemove.apply(y,[].concat(m))}r.apply(void 0,[].concat(m))},e.mouseInteractionCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.mouseInteraction){var y;(y=t).mouseInteraction.apply(y,[].concat(m))}i.apply(void 0,[].concat(m))},e.scrollCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.scroll){var y;(y=t).scroll.apply(y,[].concat(m))}o.apply(void 0,[].concat(m))},e.viewportResizeCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.viewportResize){var y;(y=t).viewportResize.apply(y,[].concat(m))}n.apply(void 0,[].concat(m))},e.inputCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.input){var y;(y=t).input.apply(y,[].concat(m))}s.apply(void 0,[].concat(m))},e.mediaInteractionCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.mediaInteaction){var y;(y=t).mediaInteaction.apply(y,[].concat(m))}c.apply(void 0,[].concat(m))},e.styleSheetRuleCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.styleSheetRule){var y;(y=t).styleSheetRule.apply(y,[].concat(m))}u.apply(void 0,[].concat(m))},e.styleDeclarationCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.styleDeclaration){var y;(y=t).styleDeclaration.apply(y,[].concat(m))}l.apply(void 0,[].concat(m))},e.canvasMutationCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.canvasMutation){var y;(y=t).canvasMutation.apply(y,[].concat(m))}d.apply(void 0,[].concat(m))},e.fontCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.font){var y;(y=t).font.apply(y,[].concat(m))}f.apply(void 0,[].concat(m))},e.selectionCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.selection){var y;(y=t).selection.apply(y,[].concat(m))}p.apply(void 0,[].concat(m))},e.customElementCb=function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];if(t.customElement){var y;(y=t).customElement.apply(y,[].concat(m))}_.apply(void 0,[].concat(m))}}function mm(e,t){t===void 0&&(t={});var a=e.doc.defaultView;if(!a)return function(){};_m(e,t);var r;e.recordDOM&&(r=Ku(e,e.doc));var i=nm(e),o=am(e),n=Xu(e),s=om(e,{win:a}),c=cm(e),u=dm(e),l=function(){},d=function(){},f=function(){},p=function(){};e.recordDOM&&(l=um(e,{win:a}),d=Qu(e,e.doc),f=lm(e,{win:a}),e.collectFonts&&(p=fm(e)));for(var _=hm(e),g=pm(e),m=[],v=E(e.plugins),y;!(y=v()).done;){var b=y.value;m.push(b.observer(b.callback,a,b.options))}return H(function(){It.forEach(function(C){return C.reset()}),r?.disconnect(),i(),o(),n(),s(),c(),u(),l(),d(),f(),p(),_(),g(),m.forEach(function(C){return C()})})}function bi(e){return typeof window[e]<"u"}function Ci(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var $s=(function(){function e(a){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=a}var t=e.prototype;return t.getId=function(r,i,o,n){var s=o||this.getIdToRemoteIdMap(r),c=n||this.getRemoteIdToIdMap(r),u=s.get(i);return u||(u=this.generateIdFn(),s.set(i,u),c.set(u,i)),u},t.getIds=function(r,i){var o=this,n=this.getIdToRemoteIdMap(r),s=this.getRemoteIdToIdMap(r);return i.map(function(c){return o.getId(r,c,n,s)})},t.getRemoteId=function(r,i,o){var n=o||this.getRemoteIdToIdMap(r);if(typeof i!="number")return i;var s=n.get(i);return s||-1},t.getRemoteIds=function(r,i){var o=this,n=this.getRemoteIdToIdMap(r);return i.map(function(s){return o.getRemoteId(r,s,n)})},t.reset=function(r){if(!r){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(r),this.iframeRemoteIdToIdMap.delete(r)},t.getIdToRemoteIdMap=function(r){var i=this.iframeIdToRemoteIdMap.get(r);return i||(i=new Map,this.iframeIdToRemoteIdMap.set(r,i)),i},t.getRemoteIdToIdMap=function(r){var i=this.iframeRemoteIdToIdMap.get(r);return i||(i=new Map,this.iframeRemoteIdToIdMap.set(r,i)),i},e})(),gm=(function(){function e(a){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new $s(kc)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=a.mutationCb,this.wrappedEmit=a.wrappedEmit,this.stylesheetManager=a.stylesheetManager,this.recordCrossOriginIframes=a.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new $s(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=a.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(r){this.iframes.set(r,!0),r.contentWindow&&this.crossOriginIframeMap.set(r.contentWindow,r)},t.addLoadListener=function(r){this.loadListener=r},t.attachIframe=function(r,i){var o,n;this.mutationCb({adds:[{parentId:this.mirror.getId(r),nextId:null,node:i}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((o=r.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(n=this.loadListener)==null||n.call(this,r),r.contentDocument&&r.contentDocument.adoptedStyleSheets&&r.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.contentDocument.adoptedStyleSheets,this.mirror.getId(r.contentDocument))},t.handleMessage=function(r){var i=r;if(!(i.data.type!=="rrweb"||i.origin!==i.data.origin)){var o=r.source;if(o){var n=this.crossOriginIframeMap.get(r.source);if(n){var s=this.transformCrossOriginEvent(n,i.data.event);s&&this.wrappedEmit(s,i.data.isCheckout)}}}},t.transformCrossOriginEvent=function(r,i){var o=this,n;switch(i.type){case W.FullSnapshot:{this.crossOriginIframeMirror.reset(r),this.crossOriginIframeStyleMirror.reset(r),this.replaceIdOnNode(i.data.node,r);var s=i.data.node.id;return this.crossOriginIframeRootIdMap.set(r,s),this.patchRootIdOnNode(i.data.node,s),{timestamp:i.timestamp,type:W.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(r),nextId:null,node:i.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case W.Meta:case W.Load:case W.DomContentLoaded:return!1;case W.Plugin:return i;case W.Custom:return this.replaceIds(i.data.payload,r,["id","parentId","previousId","nextId"]),i;case W.IncrementalSnapshot:switch(i.data.source){case L.Mutation:return i.data.adds.forEach(function(c){o.replaceIds(c,r,["parentId","nextId","previousId"]),o.replaceIdOnNode(c.node,r);var u=o.crossOriginIframeRootIdMap.get(r);u&&o.patchRootIdOnNode(c.node,u)}),i.data.removes.forEach(function(c){o.replaceIds(c,r,["parentId","id"])}),i.data.attributes.forEach(function(c){o.replaceIds(c,r,["id"])}),i.data.texts.forEach(function(c){o.replaceIds(c,r,["id"])}),i;case L.Drag:case L.TouchMove:case L.MouseMove:return i.data.positions.forEach(function(c){o.replaceIds(c,r,["id"])}),i;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(i.data,r,["id"]),i;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(i.data,r,["id"]),this.replaceStyleIds(i.data,r,["styleId"]),i;case L.Font:return i;case L.Selection:return i.data.ranges.forEach(function(c){o.replaceIds(c,r,["start","end"])}),i;case L.AdoptedStyleSheet:return this.replaceIds(i.data,r,["id"]),this.replaceStyleIds(i.data,r,["styleIds"]),(n=i.data.styles)==null||n.forEach(function(c){o.replaceStyleIds(c,r,["styleId"])}),i}}return!1},t.replace=function(r,i,o,n){for(var s=E(n),c;!(c=s()).done;){var u=c.value;!Array.isArray(i[u])&&typeof i[u]!="number"||(Array.isArray(i[u])?i[u]=r.getIds(o,i[u]):i[u]=r.getId(o,i[u]))}return i},t.replaceIds=function(r,i,o){return this.replace(this.crossOriginIframeMirror,r,i,o)},t.replaceStyleIds=function(r,i,o){return this.replace(this.crossOriginIframeStyleMirror,r,i,o)},t.replaceIdOnNode=function(r,i){var o=this;this.replaceIds(r,i,["id","rootId"]),"childNodes"in r&&r.childNodes.forEach(function(n){o.replaceIdOnNode(n,i)})},t.patchRootIdOnNode=function(r,i){var o=this;r.type!==Zu.Document&&!r.rootId&&(r.rootId=i),"childNodes"in r&&r.childNodes.forEach(function(n){o.patchRootIdOnNode(n,i)})},e})(),vm=(function(){function e(a){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(this,"restoreHandlers",[]),this.mutationCb=a.mutationCb,this.scrollCb=a.scrollCb,this.bypassOptions=a.bypassOptions,this.mirror=a.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(r,i){var o=this;if(kr(r)&&!this.shadowDoms.has(r)){this.shadowDoms.add(r);var n=Ku(J({},this.bypassOptions,{doc:i,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),r);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Xu(J({},this.bypassOptions,{scrollCb:this.scrollCb,doc:r,mirror:this.mirror}))),setTimeout(function(){r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&o.bypassOptions.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,o.mirror.getId(q.host(r))),o.restoreHandlers.push(Qu({mirror:o.mirror,stylesheetManager:o.bypassOptions.stylesheetManager},r))},0)}},t.observeAttachShadow=function(r){!r.contentWindow||!r.contentDocument||this.patchAttachShadow(r.contentWindow.Element,r.contentDocument)},t.patchAttachShadow=function(r,i){var o=this;this.restoreHandlers.push(Bt(r.prototype,"attachShadow",function(n){return function(s){var c=n.call(this,s),u=q.shadowRoot(this);return u&&Ju(this)&&o.addShadowRoot(u,i),c}}))},t.reset=function(){this.restoreHandlers.forEach(function(r){try{r()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e})(),Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ym=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ki=0;ki<Jt.length;ki++)ym[Jt.charCodeAt(ki)]=ki;var bm=function(t){var a=new Uint8Array(t),r,i=a.length,o="";for(r=0;r<i;r+=3)o+=Jt[a[r]>>2],o+=Jt[(a[r]&3)<<4|a[r+1]>>4],o+=Jt[(a[r+1]&15)<<2|a[r+2]>>6],o+=Jt[a[r+2]&63];return i%3===2?o=o.substring(0,o.length-1)+"=":i%3===1&&(o=o.substring(0,o.length-2)+"=="),o},Us=new Map;function Cm(e,t){var a=Us.get(e);return a||(a=new Map,Us.set(e,a)),a.has(t)||a.set(t,[]),a.get(t)}var el=function(e,t,a){if(!(!e||!(rl(e,t)||(typeof e>"u"?"undefined":$(e))==="object"))){var r=e.constructor.name,i=Cm(a,r),o=i.indexOf(e);return o===-1&&(o=i.length,i.push(e)),o}};function Ii(e,t,a){if(B(e,Array))return e.map(function(_){return Ii(_,t,a)});if(e===null)return e;if(B(e,Float32Array)||B(e,Float64Array)||B(e,Int32Array)||B(e,Uint32Array)||B(e,Uint8Array)||B(e,Uint16Array)||B(e,Int16Array)||B(e,Int8Array)||B(e,Uint8ClampedArray)){var r=e.constructor.name;return{rr_type:r,args:[Object.values(e)]}}else if(B(e,ArrayBuffer)){var i=e.constructor.name,o=bm(e);return{rr_type:i,base64:o}}else if(B(e,DataView)){var n=e.constructor.name;return{rr_type:n,args:[Ii(e.buffer,t,a),e.byteOffset,e.byteLength]}}else if(B(e,HTMLImageElement)){var s=e.constructor.name,c=e.src;return{rr_type:s,src:c}}else if(B(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}else if(B(e,ImageData)){var d=e.constructor.name;return{rr_type:d,args:[Ii(e.data,t,a),e.width,e.height]}}else if(rl(e,t)||(typeof e>"u"?"undefined":$(e))==="object"){var f=e.constructor.name,p=el(e,t,a);return{rr_type:f,index:p}}return e}var tl=function(e,t,a){return e.map(function(r){return Ii(r,t,a)})},rl=function(e,t){var a=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],r=a.filter(function(i){return typeof t[i]=="function"});return!!r.find(function(i){return B(e,t[i])})};function km(e,t,a,r){for(var i=function(){var u=c.value;try{if(typeof t.CanvasRenderingContext2D.prototype[u]!="function")return"continue";var l=Bt(t.CanvasRenderingContext2D.prototype,u,function(f){return function(){for(var p=this,_=arguments.length,g=new Array(_),m=0;m<_;m++)g[m]=arguments[m];return Te(this.canvas,a,r,!0)||setTimeout(function(){var v=tl(g,t,p);e(p.canvas,{type:nr["2D"],property:u,args:v})},0),f.apply(this,g)}});o.push(l)}catch{var d=gn(t.CanvasRenderingContext2D.prototype,u,{set:function(_){e(this.canvas,{type:nr["2D"],property:u,args:[_],setter:!0})}});o.push(d)}},o=[],n=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),s=E(n),c;!(c=s()).done;)i();return function(){o.forEach(function(u){return u()})}}function wm(e){return e==="experimental-webgl"?"webgl":e}function Vs(e,t,a,r){var i=[];try{var o=Bt(e.HTMLCanvasElement.prototype,"getContext",function(n){return function(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),l=1;l<c;l++)u[l-1]=arguments[l];if(!Te(this,t,a,!0)){var d=wm(s);if("__context"in this||(this.__context=d),r&&["webgl","webgl2"].includes(d))if(u[0]&&$(u[0])==="object"){var f=u[0];f.preserveDrawingBuffer||(f.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return n.apply(this,[].concat([s],u))}});i.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(n){return n()})}}function zs(e,t,a,r,i,o){for(var n=function(){var d=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))return"continue";try{if(typeof e[d]!="function")return"continue";var f=Bt(e,d,function(_){return function(){for(var g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];var y=_.apply(this,m);if(el(y,o,this),"tagName"in this.canvas&&!Te(this.canvas,r,i,!0)){var b=tl(m,o,this),C={type:t,property:d,args:b};a(this.canvas,C)}return y}});s.push(f)}catch{var p=gn(e,d,{set:function(m){a(this.canvas,{type:t,property:d,args:[m],setter:!0})}});s.push(p)}},s=[],c=Object.getOwnPropertyNames(e),u=E(c),l;!(l=u()).done;)n();return s}function Sm(e,t,a,r){var i,o=[];if((i=o).push.apply(i,[].concat(zs(t.WebGLRenderingContext.prototype,nr.WebGL,e,a,r,t))),typeof t.WebGL2RenderingContext<"u"){var n;(n=o).push.apply(n,[].concat(zs(t.WebGL2RenderingContext.prototype,nr.WebGL2,e,a,r,t)))}return function(){o.forEach(function(s){return s()})}}var il="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Am=function(e){return Uint8Array.from(atob(e),function(t){return t.charCodeAt(0)})},qs=typeof window<"u"&&window.Blob&&new Blob([Am(il)],{type:"text/javascript;charset=utf-8"});function Tm(e){var t;try{if(t=qs&&(window.URL||window.webkitURL).createObjectURL(qs),!t)throw"";var a=new Worker(t,{name:e?.name});return a.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),a}catch{return new Worker("data:text/javascript;base64,"+il,{name:e?.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Rm=(function(){function e(a){var r=this;I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",function(d,f){var p=r.rafStamps.invokeId&&r.rafStamps.latestId!==r.rafStamps.invokeId;(p||!r.rafStamps.invokeId)&&(r.rafStamps.invokeId=r.rafStamps.latestId),r.pendingCanvasMutations.has(d)||r.pendingCanvasMutations.set(d,[]),r.pendingCanvasMutations.get(d).push(f)});var i=a.sampling,o=i===void 0?"all":i,n=a.win,s=a.blockClass,c=a.blockSelector,u=a.recordCanvas,l=a.dataURLOptions;this.mutationCb=a.mutationCb,this.mirror=a.mirror,u&&o==="all"&&this.initCanvasMutationObserver(n,s,c),u&&typeof o=="number"&&this.initCanvasFPSObserver(o,n,s,c,{dataURLOptions:l})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(r,i,o,n,s){var c=this,u=Vs(i,o,n,!0),l=new Map,d=new Tm;d.onmessage=function(v){var y=v.data.id;if(l.set(y,!1),"base64"in v.data){var b=v.data,C=b.base64,w=b.type,S=b.width,T=b.height;c.mutationCb({id:y,type:nr["2D"],commands:[{property:"clearRect",args:[0,0,S,T]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:C}],type:w}]},0,0]}]})}};var f=1e3/r,p=0,_,g=function(){var v=[];return i.document.querySelectorAll("canvas").forEach(function(y){Te(y,o,n,!0)||v.push(y)}),v},m=function(v){if(p&&v-p<f){_=requestAnimationFrame(m);return}p=v;var y=c;g().forEach(Ga(function(b){var C,w,S,T;return Er(this,function(R){switch(R.label){case 0:return w=y.mirror.getId(b),l.get(w)?[2]:b.width===0||b.height===0?[2]:(l.set(w,!0),["webgl","webgl2"].includes(b.__context)&&(S=b.getContext(b.__context),((C=S?.getContextAttributes())==null?void 0:C.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return T=R.sent(),d.postMessage({id:w,bitmap:T,width:b.width,height:b.height,dataURLOptions:s.dataURLOptions},[T]),[2]}})})),_=requestAnimationFrame(m)};_=requestAnimationFrame(m),this.resetObservers=function(){u(),cancelAnimationFrame(_)}},t.initCanvasMutationObserver=function(r,i,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=Vs(r,i,o,!1),s=km(this.processMutation.bind(this),r,i,o),c=Sm(this.processMutation.bind(this),r,i,o);this.resetObservers=function(){n(),s(),c()}},t.startPendingCanvasMutationFlusher=function(){var r=this;requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var r=this,i=function(o){r.rafStamps.latestId=o,requestAnimationFrame(i)};requestAnimationFrame(i)},t.flushPendingCanvasMutations=function(){var r=this;this.pendingCanvasMutations.forEach(function(i,o){var n=r.mirror.getId(o);r.flushPendingCanvasMutationFor(o,n)}),requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(r,i){if(!(this.frozen||this.locked)){var o=this.pendingCanvasMutations.get(r);if(!(!o||i===-1)){var n=o.map(function(c){c.type;var u=Pr(c,["type"]);return u}),s=o[0].type;this.mutationCb({id:i,type:s,commands:n}),this.pendingCanvasMutations.delete(r)}}},e})(),Pm=(function(){function e(a){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new Z_),this.mutationCb=a.mutationCb,this.adoptedStyleSheetCb=a.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(r,i){"_cssText"in i.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:i.id,attributes:i.attributes}]}),this.trackLinkElement(r)},t.trackLinkElement=function(r){this.trackedLinkElements.has(r)||(this.trackedLinkElements.add(r),this.trackStylesheetInLinkElement(r))},t.adoptStyleSheets=function(r,i){var o,n=function(){var d=l.value,f=void 0;o.styleMirror.has(d)?f=o.styleMirror.getId(d):(f=o.styleMirror.add(d),c.push({styleId:f,rules:Array.from(d.rules||CSSRule,function(p,_){return{rule:yc(p,d.href),index:_}})})),s.styleIds.push(f)};if(r.length!==0){for(var s={id:i,styleIds:[]},c=[],u=E(r),l;!(l=u()).done;)o=this,n();c.length>0&&(s.styles=c),this.adoptedStyleSheetCb(s)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(r){},e})(),Im=(function(){function e(){I(this,"nodeMap",new WeakMap),I(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(r,i){var o=this.nodeMap.get(r);return o&&Array.from(o).some(function(n){return n!==i})},t.add=function(r,i){var o=this;this.active||(this.active=!0,requestAnimationFrame(function(){o.nodeMap=new WeakMap,o.active=!1})),this.nodeMap.set(r,(this.nodeMap.get(r)||new Set).add(i))},t.destroy=function(){},e})(),ue,Ei,Un,Hi=!1;try{if(Array.from([1],function(e){return e*2})[0]!==2){var Vn=document.createElement("iframe");document.body.appendChild(Vn),Array.from=((jo=Vn.contentWindow)==null?void 0:jo.Array.from)||Array.from,document.body.removeChild(Vn)}}catch(e){console.debug("Unable to override Array.from",e)}var Le=Ed();function _t(e){e===void 0&&(e={});var t=e.emit,a=e.checkoutEveryNms,r=e.checkoutEveryNth,i=e.blockClass,o=i===void 0?"rr-block":i,n=e.blockSelector,s=n===void 0?null:n,c=e.ignoreClass,u=c===void 0?"rr-ignore":c,l=e.ignoreSelector,d=l===void 0?null:l,f=e.maskTextClass,p=f===void 0?"rr-mask":f,_=e.maskTextSelector,g=_===void 0?null:_,m=e.inlineStylesheet,v=m===void 0?!0:m,y=e.maskAllInputs,b=e.maskInputOptions,C=e.slimDOMOptions,w=e.maskInputFn,S=e.maskTextFn,T=e.hooks,R=e.packFn,P=e.sampling,x=P===void 0?{}:P,O=e.dataURLOptions,D=O===void 0?{}:O,j=e.mousemoveWait,ye=e.recordDOM,Z=ye===void 0?!0:ye,we=e.recordCanvas,Se=we===void 0?!1:we,se=e.recordCrossOriginIframes,ge=se===void 0?!1:se,Ee=e.recordAfter,yt=Ee===void 0?e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load":Ee,$e=e.userTriggeredOnInput,Nt=$e===void 0?!1:$e,Oe=e.collectFonts,bt=Oe===void 0?!1:Oe,Y=e.inlineImages,Ct=Y===void 0?!1:Y,kt=e.plugins,Ft=e.keepIframeSrcFn,dr=Ft===void 0?function(){return!1}:Ft,fr=e.ignoreCSSAttributes,wn=fr===void 0?new Set([]):fr,Yr=e.errorHandler;rm(Yr);var it=ge?window.parent===window:!0,wt=!1;if(!it)try{window.parent.document&&(wt=!1)}catch{wt=!0}if(it&&!t)throw new Error("emit function is required");if(!it&&!wt)return function(){};j!==void 0&&x.mousemove===void 0&&(x.mousemove=j),Le.reset();var $t=y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:b!==void 0?b:{password:!0},hr=C===!0||C==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:C==="all",headMetaDescKeywords:C==="all",headTitleMutations:C==="all"}:C||{};J_();var Ut,St=0,He=function(K){for(var Pe=E(kt||[]),M;!(M=Pe()).done;){var ce=M.value;ce.eventProcessor&&(K=ce.eventProcessor(K))}return R&&!wt&&(K=R(K)),K};ue=function(K,Pe){var M,ce=K;if(ce.timestamp=Gi(),(M=It[0])!=null&&M.isFrozen()&&ce.type!==W.FullSnapshot&&!(ce.type===W.IncrementalSnapshot&&ce.data.source===L.Mutation)&&It.forEach(function(td){return td.unfreeze()}),it)t?.(He(ce),Pe);else if(wt){var Xl={type:"rrweb",event:He(ce),origin:window.location.origin,isCheckout:Pe};window.parent.postMessage(Xl,"*")}if(ce.type===W.FullSnapshot)Ut=ce,St=0;else if(ce.type===W.IncrementalSnapshot){if(ce.data.source===L.Mutation&&ce.data.isAttachIframe)return;St++;var Ql=r&&St>=r,ed=a&&ce.timestamp-Ut.timestamp>a;(Ql||ed)&&Ei(!0)}};for(var At=function(K){ue({type:W.IncrementalSnapshot,data:J({source:L.Mutation},K)})},Do=function(K){return ue({type:W.IncrementalSnapshot,data:J({source:L.Scroll},K)})},Bo=function(K){return ue({type:W.IncrementalSnapshot,data:J({source:L.CanvasMutation},K)})},Yl=function(K){return ue({type:W.IncrementalSnapshot,data:J({source:L.AdoptedStyleSheet},K)})},Tt=new Pm({mutationCb:At,adoptedStyleSheetCb:Yl}),Rt=new gm({mirror:Le,mutationCb:At,stylesheetManager:Tt,recordCrossOriginIframes:ge,wrappedEmit:ue}),Kl=E(kt||[]),Lo;!(Lo=Kl()).done;){var No=Lo.value;No.getMirror&&No.getMirror({nodeMirror:Le,crossOriginIframeMirror:Rt.crossOriginIframeMirror,crossOriginIframeStyleMirror:Rt.crossOriginIframeStyleMirror})}var Sn=new Im;Un=new Rm({recordCanvas:Se,mutationCb:Bo,win:window,blockClass:o,blockSelector:s,mirror:Le,sampling:x.canvas,dataURLOptions:D});var Kr=new vm({mutationCb:At,scrollCb:Do,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:p,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:$t,dataURLOptions:D,maskTextFn:S,maskInputFn:w,recordCanvas:Se,inlineImages:Ct,sampling:x,slimDOMOptions:hr,iframeManager:Rt,stylesheetManager:Tt,canvasManager:Un,keepIframeSrcFn:dr,processedNodeManager:Sn},mirror:Le});Ei=function(K){if(K===void 0&&(K=!1),!!Z){ue({type:W.Meta,data:{href:window.location.href,width:zu(),height:Vu()}},K),Tt.reset(),Kr.init(),It.forEach(function(M){return M.lock()});var Pe=ef(document,{mirror:Le,blockClass:o,blockSelector:s,maskTextClass:p,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:$t,maskTextFn:S,maskInputFn:w,slimDOM:hr,dataURLOptions:D,recordCanvas:Se,inlineImages:Ct,onSerialize:function(M){Gu(M,Le)&&Rt.addIframe(M),ju(M,Le)&&Tt.trackLinkElement(M),Ia(M)&&Kr.addShadowRoot(q.shadowRoot(M),document)},onIframeLoad:function(M,ce){Rt.attachIframe(M,ce),Kr.observeAttachShadow(M)},onStylesheetLoad:function(M,ce){Tt.attachLinkElement(M,ce)},keepIframeSrcFn:dr});if(!Pe)return console.warn("Failed to snapshot the document");ue({type:W.FullSnapshot,data:{node:Pe,initialOffset:Uu(window)}},K),It.forEach(function(M){return M.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Tt.adoptStyleSheets(document.adoptedStyleSheets,Le.getId(document))}};try{var pr=[],Fo=function(K){var Pe;return H(mm)({mutationCb:At,mousemoveCb:function(M,ce){return ue({type:W.IncrementalSnapshot,data:{source:ce,positions:M}})},mouseInteractionCb:function(M){return ue({type:W.IncrementalSnapshot,data:J({source:L.MouseInteraction},M)})},scrollCb:Do,viewportResizeCb:function(M){return ue({type:W.IncrementalSnapshot,data:J({source:L.ViewportResize},M)})},inputCb:function(M){return ue({type:W.IncrementalSnapshot,data:J({source:L.Input},M)})},mediaInteractionCb:function(M){return ue({type:W.IncrementalSnapshot,data:J({source:L.MediaInteraction},M)})},styleSheetRuleCb:function(M){return ue({type:W.IncrementalSnapshot,data:J({source:L.StyleSheetRule},M)})},styleDeclarationCb:function(M){return ue({type:W.IncrementalSnapshot,data:J({source:L.StyleDeclaration},M)})},canvasMutationCb:Bo,fontCb:function(M){return ue({type:W.IncrementalSnapshot,data:J({source:L.Font},M)})},selectionCb:function(M){ue({type:W.IncrementalSnapshot,data:J({source:L.Selection},M)})},customElementCb:function(M){ue({type:W.IncrementalSnapshot,data:J({source:L.CustomElement},M)})},blockClass:o,ignoreClass:u,ignoreSelector:d,maskTextClass:p,maskTextSelector:g,maskInputOptions:$t,inlineStylesheet:v,sampling:x,recordDOM:Z,recordCanvas:Se,inlineImages:Ct,userTriggeredOnInput:Nt,collectFonts:bt,doc:K,maskInputFn:w,maskTextFn:S,keepIframeSrcFn:dr,blockSelector:s,slimDOMOptions:hr,dataURLOptions:D,mirror:Le,iframeManager:Rt,stylesheetManager:Tt,shadowDomManager:Kr,processedNodeManager:Sn,canvasManager:Un,ignoreCSSAttributes:wn,plugins:((Pe=kt?.filter(function(M){return M.observer}))==null?void 0:Pe.map(function(M){return{observer:M.observer,options:M.options,callback:function(ce){return ue({type:W.Plugin,data:{plugin:M.name,payload:ce}})}}}))||[]},T)};Rt.addLoadListener(function(K){try{pr.push(Fo(K.contentDocument))}catch(Pe){console.warn(Pe)}});var An=function(){Ei(),pr.push(Fo(document)),Hi=!0};return document.readyState==="interactive"||document.readyState==="complete"?An():(pr.push(Ae("DOMContentLoaded",function(){ue({type:W.DomContentLoaded,data:{}}),yt==="DOMContentLoaded"&&An()})),pr.push(Ae("load",function(){ue({type:W.Load,data:{}}),yt==="load"&&An()},window))),function(){pr.forEach(function(K){try{K()}catch(M){var Pe=String(M).toLowerCase();Pe.includes("cross-origin")||console.warn(M)}}),Sn.destroy(),Hi=!1,im()}}catch(K){console.warn(K)}}_t.addCustomEvent=function(e,t){if(!Hi)throw new Error("please add custom event after start recording");ue({type:W.Custom,data:{tag:e,payload:t}})};_t.freezePage=function(){It.forEach(function(e){return e.freeze()})};_t.takeFullSnapshot=function(e){if(!Hi)throw new Error("please take full snapshot after start recording");Ei(e)};_t.mirror=Le;var Ws;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ws||(Ws={}));_t.addCustomEvent;_t.freezePage;_t.takeFullSnapshot;var Em=Object.defineProperty,Om=function(e,t,a){return t in e?Em(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a},wi=function(e,t,a){return Om(e,(typeof t>"u"?"undefined":$(t))!=="symbol"?t+"":t,a)};function xm(e,t,a){try{if(!(t in e))return function(){};var r=e[t],i=a(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var zt=(function(){function e(a){wi(this,"fileName"),wi(this,"functionName"),wi(this,"lineNumber"),wi(this,"columnNumber"),this.fileName=a.fileName||"",this.functionName=a.functionName||"",this.lineNumber=a.lineNumber,this.columnNumber=a.columnNumber}var t=e.prototype;return t.toString=function(){var r=this.lineNumber||"",i=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+r+":"+i+")":this.fileName+":"+r+":"+i},e})(),Mm=/(^|@)\S+:\d+/,Gs=/^\s*at .*(\S+:\d+|\(native\))/m,Dm=/^(eval@)?(\[native code])?$/,zn={parse:function(t){return t?typeof t.stacktrace<"u"||typeof t["opera#sourceloc"]<"u"?this.parseOpera(t):t.stack&&t.stack.match(Gs)?this.parseV8OrIE(t):t.stack?this.parseFFOrSafari(t):(console.warn("[console-record-plugin]: Failed to parse error object:",t),[]):[]},extractLocation:function(t){if(t.indexOf(":")===-1)return[t];var a=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=a.exec(t.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+t);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(t){var a=t.stack.split(`
54
+ `).filter(function(r){return!!r.match(Gs)},this);return a.map(function(r){r.indexOf("(eval ")>-1&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var i=r.replace(/^\s+/,"").replace(/\(eval code/g,"("),o=i.match(/ (\((.+):(\d+):(\d+)\)$)/);i=o?i.replace(o[0],""):i;var n=i.split(/\s+/).slice(1),s=this.extractLocation(o?o[1]:n.pop()),c=n.join(" ")||void 0,u=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new zt({functionName:c,fileName:u,lineNumber:s[1],columnNumber:s[2]})},this)},parseFFOrSafari:function(t){var a=t.stack.split(`
55
+ `).filter(function(r){return!r.match(Dm)},this);return a.map(function(r){if(r.indexOf(" > eval")>-1&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),r.indexOf("@")===-1&&r.indexOf(":")===-1)return new zt({functionName:r});var i=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=r.match(i),n=o&&o[1]?o[1]:void 0,s=this.extractLocation(r.replace(i,""));return new zt({functionName:n,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf(`
56
+ `)>-1&&t.message.split(`
57
+ `).length>t.stacktrace.split(`
58
+ `).length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(t){for(var a=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split(`
59
+ `),i=[],o=2,n=r.length;o<n;o+=2){var s=a.exec(r[o]);s&&i.push(new zt({fileName:s[2],lineNumber:parseFloat(s[1])}))}return i},parseOpera10:function(t){for(var a=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split(`
60
+ `),i=[],o=0,n=r.length;o<n;o+=2){var s=a.exec(r[o]);s&&i.push(new zt({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return i},parseOpera11:function(t){var a=t.stack.split(`
61
+ `).filter(function(r){return!!r.match(Mm)&&!r.match(/^Error created at/)},this);return a.map(function(r){var i=r.split("@"),o=this.extractLocation(i.pop()),n=i.shift()||"",s=n.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new zt({functionName:s,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})},this)}};function Bm(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var a=e.localName;if(!a)break;a=a.toLowerCase();var r=e.parentElement,i=[];if(r.children&&r.children.length>0)for(var o=0;o<r.children.length;o++){var n=r.children[o];n.localName&&n.localName.toLowerCase&&n.localName.toLowerCase()===a&&i.push(n)}i.length>1&&(a+=":eq("+i.indexOf(e)+")"),t=a+(t?">"+t:""),e=r}return t}function Oa(e){return Object.prototype.toString.call(e)==="[object Object]"}function nl(e,t){if(t===0)return!0;for(var a=Object.keys(e),r=E(a),i;!(i=r()).done;){var o=i.value;if(Oa(e[o])&&nl(e[o],t-1))return!0}return!1}function qt(e,t){var a={numOfKeysLimit:50,depthOfLimit:4};Object.assign(a,t);var r=[],i=[];return JSON.stringify(e,function(s,c){if(r.length>0){var u=r.indexOf(this);~u?r.splice(u+1):r.push(this),~u?i.splice(u,1/0,s):i.push(s),~r.indexOf(c)&&(r[0]===c?c="[Circular ~]":c="[Circular ~."+i.slice(0,r.indexOf(c)).join(".")+"]")}else r.push(c);if(c===null)return c;if(c===void 0)return"undefined";if(o(c))return n(c);if((typeof c>"u"?"undefined":$(c))==="bigint")return c.toString()+"n";if(B(c,Event)){var l={};for(var d in c){var f=c[d];Array.isArray(f)?l[d]=Bm(f.length?f[0]:null):l[d]=f}return l}else{if(B(c,Node))return B(c,HTMLElement)?c?c.outerHTML:"":c.nodeName;if(B(c,Error))return c.stack?c.stack+`
62
+ End of stack for Error object`:c.name+": "+c.message}return c});function o(s){return!!(Oa(s)&&Object.keys(s).length>a.numOfKeysLimit||typeof s=="function"||Oa(s)&&nl(s,a.depthOfLimit))}function n(s){var c=s.toString();return a.stringLengthLimit&&c.length>a.stringLengthLimit&&(c=""+c.slice(0,a.stringLengthLimit)+"..."),c}}var js={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Lm(e,t,a){var r=a?Object.assign({},js,a):js,i=r.logger;if(!i)return function(){};var o;typeof i=="string"?o=t[i]:o=i;var n=0,s=!1,c=[];if(r.level.includes("error")){var u=function(g){var m=g.message,v=g.error,y=zn.parse(v).map(function(C){return C.toString()}),b=[qt(m,r.stringifyOptions)];e({level:"error",trace:y,payload:b})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(g){var m,v;B(g.reason,Error)?(m=g.reason,v=[qt("Uncaught (in promise) "+m.name+": "+m.message,r.stringifyOptions)]):(m=new Error,v=[qt("Uncaught (in promise)",r.stringifyOptions),qt(g.reason,r.stringifyOptions)]);var y=zn.parse(m).map(function(b){return b.toString()});e({level:"error",trace:y,payload:v})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var d=E(r.level),f;!(f=d()).done;){var p=f.value;c.push(_(o,p))}return function(){c.forEach(function(g){return g()})};function _(g,m){var v=this;return g[m]?xm(g,m,function(y){var b=v;return function(){for(var C=arguments.length,w=new Array(C),S=0;S<C;S++)w[S]=arguments[S];if(y.apply(b,w),!(m==="assert"&&w[0])&&!s){s=!0;try{var T=zn.parse(new Error).map(function(x){return x.toString()}).splice(1),R=m==="assert"?w.slice(1):w,P=R.map(function(x){return qt(x,r.stringifyOptions)});n++,n<r.lengthThreshold?e({level:m,trace:T,payload:P}):n===r.lengthThreshold&&e({level:"warn",trace:[],payload:[qt("The number of log records reached the threshold.")]})}catch(x){y.apply(void 0,[].concat(["rrweb logger error:",x],w))}finally{s=!1}}}}):function(){}}}var Nm="rrweb/console@1",Fm=function(e){return{name:Nm,observer:Lm,options:e}},Hs=A.setImmediate,ut,xa,Ma,al=Object.prototype.toString,$m=typeof Hs<"u"?function(t){return Hs(t)}:setTimeout;try{Object.defineProperty({},"x",{}),ut=function(t,a,r,i){return Object.defineProperty(t,a,{value:r,writable:!0,configurable:i!==!1})}}catch{ut=function(a,r,i){return a[r]=i,a}}Ma=(function(){var t,a,r;function i(o,n){this.fn=o,this.self=n,this.next=void 0}return{add:function(n,s){r=new i(n,s),a?a.next=r:t=r,a=r,r=void 0},drain:function(){var n=t;for(t=a=xa=void 0;n;)n.fn.call(n.self),n=n.next}}})();function Ji(e,t){Ma.add(e,t),xa||(xa=$m(Ma.drain))}function ol(e){var t,a=typeof e;return e!==null&&(a==="object"||a==="function")&&(t=e.then),typeof t=="function"?t:!1}function mo(){for(var e=0;e<this.chain.length;e++)Um(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function Um(e,t,a){var r,i;try{t===!1?a.reject(e.msg):(t===!0?r=e.msg:r=t.call(void 0,e.msg),r===a.promise?a.reject(TypeError("Promise-chain cycle")):(i=ol(r))?i.call(r,a.resolve,a.reject):a.resolve(r))}catch(o){a.reject(o)}}function sl(e){var t,a=this;if(!a.triggered){a.triggered=!0,a.def&&(a=a.def);try{(t=ol(e))?Ji(function(){var r=new Js(a);try{t.call(e,function(){sl.apply(r,arguments)},function(){Sr.apply(r,arguments)})}catch(i){Sr.call(r,i)}}):(a.msg=e,a.state=1,a.chain.length>0&&Ji(mo,a))}catch(r){Sr.call(new Js(a),r)}}}function Sr(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Ji(mo,t))}function cl(e,t,a,r){for(var i=0;i<t.length;i++)(function(n){e.resolve(t[n]).then(function(c){a(n,c)},r)})(i)}function Js(e){this.def=e,this.triggered=!1}function Vm(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function mt(e){if(typeof e!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var t=new Vm(this);this.then=function(r,i){var o={success:typeof r=="function"?r:!0,failure:typeof i=="function"?i:!1};return o.promise=new this.constructor(function(s,c){if(typeof s!="function"||typeof c!="function")throw TypeError("Not a function");o.resolve=s,o.reject=c}),t.chain.push(o),t.state!==0&&Ji(mo,t),o.promise},this.catch=function(r){return this.then(void 0,r)};try{e.call(void 0,function(r){sl.call(t,r)},function(r){Sr.call(t,r)})}catch(a){Sr.call(t,a)}}var ul=ut({},"constructor",mt,!1);mt.prototype=ul;ut(ul,"__NPO__",0,!1);ut(mt,"resolve",function(t){var a=this;return t&&typeof t=="object"&&t.__NPO__===1?t:new a(function(i,o){if(typeof i!="function"||typeof o!="function")throw TypeError("Not a function");i(t)})});ut(mt,"reject",function(t){return new this(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");i(t)})});ut(mt,"all",function(t){var a=this;return al.call(t)!=="[object Array]"?a.reject(TypeError("Not an array")):t.length===0?a.resolve([]):new a(function(i,o){if(typeof i!="function"||typeof o!="function")throw TypeError("Not a function");var n=t.length,s=Array(n),c=0;cl(a,t,function(l,d){s[l]=d,++c===n&&i(s)},o)})});ut(mt,"race",function(t){var a=this;return al.call(t)!=="[object Array]"?a.reject(TypeError("Not an array")):new a(function(i,o){if(typeof i!="function"||typeof o!="function")throw TypeError("Not a function");cl(a,t,function(s,c){i(c)},o)})});var G;typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?G=Promise:G=mt;var De={DEBUG:!1,LIB_VERSION:"2.73.0"},Ar=1440*60*1e3,qn=8*1e3,vn=Array.prototype,zm=Function.prototype,ll=Object.prototype,at=vn.slice,Zr=ll.toString,yn=ll.hasOwnProperty,he=A.console,Ze=A.navigator,N=A.document,br=A.opera,Zs=A.screen,ze=Ze.userAgent,Wn=zm.bind,Ys=vn.forEach,Ks=vn.indexOf,Xs=vn.map,qm=Array.isArray,Da={},h={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},V={log:function(){if(De.DEBUG&&!h.isUndefined(he)&&he)try{he.log.apply(he,arguments)}catch{h.each(arguments,function(t){he.log(t)})}},warn:function(){if(De.DEBUG&&!h.isUndefined(he)&&he){var e=["Mixpanel warning:"].concat(h.toArray(arguments));try{he.warn.apply(he,e)}catch{h.each(e,function(a){he.warn(a)})}}},error:function(){if(De.DEBUG&&!h.isUndefined(he)&&he){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{he.error.apply(he,e)}catch{h.each(e,function(a){he.error(a)})}}},critical:function(){if(!h.isUndefined(he)&&he){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{he.error.apply(he,e)}catch{h.each(e,function(a){he.error(a)})}}}},Gn=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(V,arguments)}},Lt=function(e){return{log:Gn(V.log,e),error:Gn(V.error,e),critical:Gn(V.critical,e)}},Vr=function(e){return function(){try{return e.apply(this,arguments)}catch(t){V.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),De.DEBUG&&V.critical(t)}}},dl=function(e){var t=e.prototype;for(var a in t)typeof t[a]=="function"&&(t[a]=Vr(t[a]))};h.bind=function(e,t){var a,r;if(Wn&&e.bind===Wn)return Wn.apply(e,at.call(arguments,1));if(!h.isFunction(e))throw new TypeError;return a=at.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,a.concat(at.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var n=e.apply(o,a.concat(at.call(arguments)));return Object(n)===n?n:o},r};h.each=function(e,t,a){if(e!=null){if(Ys&&e.forEach===Ys)e.forEach(t,a);else if(e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(a,e[r],r,e)===Da)return}else for(var o in e)if(yn.call(e,o)&&t.call(a,e[o],o,e)===Da)return}};h.extend=function(e){return h.each(at.call(arguments,1),function(t){for(var a in t)t[a]!==void 0&&(e[a]=t[a])}),e};h.isArray=qm||function(e){return Zr.call(e)==="[object Array]"};h.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch{return!1}};h.isArguments=function(e){return!!(e&&yn.call(e,"callee"))};h.toArray=function(e){return e?e.toArray?e.toArray():h.isArray(e)||h.isArguments(e)?at.call(e):h.values(e):[]};h.map=function(e,t,a){if(Xs&&e.map===Xs)return e.map(t,a);var r=[];return h.each(e,function(i){r.push(t.call(a,i))}),r};h.keys=function(e){var t=[];return e===null||h.each(e,function(a,r){t[t.length]=r}),t};h.values=function(e){var t=[];return e===null||h.each(e,function(a){t[t.length]=a}),t};h.include=function(e,t){var a=!1;return e===null?a:Ks&&e.indexOf===Ks?e.indexOf(t)!=-1:(h.each(e,function(r){if(a||(a=r===t))return Da}),a)};h.includes=function(e,t){return e.indexOf(t)!==-1};h.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e};h.isObject=function(e){return e===Object(e)&&!h.isArray(e)};h.isEmptyObject=function(e){if(h.isObject(e)){for(var t in e)if(yn.call(e,t))return!1;return!0}return!1};h.isUndefined=function(e){return e===void 0};h.isString=function(e){return Zr.call(e)=="[object String]"};h.isDate=function(e){return Zr.call(e)=="[object Date]"};h.isNumber=function(e){return Zr.call(e)=="[object Number]"};h.isElement=function(e){return!!(e&&e.nodeType===1)};h.encodeDates=function(e){return h.each(e,function(t,a){h.isDate(t)?e[a]=h.formatDate(t):h.isObject(t)&&(e[a]=h.encodeDates(t))}),e};h.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};h.formatDate=function(e){function t(a){return a<10?"0"+a:a}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())};h.strip_empty_properties=function(e){var t={};return h.each(e,function(a,r){h.isString(a)&&a.length>0&&(t[r]=a)}),t};h.truncate=function(e,t){var a;return typeof e=="string"?a=e.slice(0,t):h.isArray(e)?(a=[],h.each(e,function(r){a.push(h.truncate(r,t))})):h.isObject(e)?(a={},h.each(e,function(r,i){a[i]=h.truncate(r,t)})):a=e,a};h.JSONEncode=(function(){return function(e){var t=e,a=function(i){var o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return o.lastIndex=0,o.test(i)?'"'+i.replace(o,function(s){var c=n[s];return typeof c=="string"?c:"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'},r=function(i,o){var n="",s=" ",c=0,u="",l="",d=0,f=n,p=[],_=o[i];switch(_&&typeof _=="object"&&typeof _.toJSON=="function"&&(_=_.toJSON(i)),typeof _){case"string":return a(_);case"number":return isFinite(_)?String(_):"null";case"boolean":case"null":return String(_);case"object":if(!_)return"null";if(n+=s,p=[],Zr.apply(_)==="[object Array]"){for(d=_.length,c=0;c<d;c+=1)p[c]=r(c,_)||"null";return l=p.length===0?"[]":n?`[
63
+ `+n+p.join(`,
64
+ `+n)+`
65
+ `+f+"]":"["+p.join(",")+"]",n=f,l}for(u in _)yn.call(_,u)&&(l=r(u,_),l&&p.push(a(u)+(n?": ":":")+l));return l=p.length===0?"{}":n?"{"+p.join(",")+f+"}":"{"+p.join(",")+"}",n=f,l}};return r("",{"":t})}})();h.JSONDecode=(function(){var e,t,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
66
+ `,r:"\r",t:" "},r,i=function(p){var _=new SyntaxError(p);throw _.at=e,_.text=r,_},o=function(p){return p&&p!==t&&i("Expected '"+p+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},n=function(){var p,_="";for(t==="-"&&(_="-",o("-"));t>="0"&&t<="9";)_+=t,o();if(t===".")for(_+=".";o()&&t>="0"&&t<="9";)_+=t;if(t==="e"||t==="E")for(_+=t,o(),(t==="-"||t==="+")&&(_+=t,o());t>="0"&&t<="9";)_+=t,o();if(p=+_,!isFinite(p))i("Bad number");else return p},s=function(){var p,_,g="",m;if(t==='"')for(;o();){if(t==='"')return o(),g;if(t==="\\")if(o(),t==="u"){for(m=0,_=0;_<4&&(p=parseInt(o(),16),!!isFinite(p));_+=1)m=m*16+p;g+=String.fromCharCode(m)}else if(typeof a[t]=="string")g+=a[t];else break;else g+=t}i("Bad string")},c=function(){for(;t&&t<=" ";)o()},u=function(){switch(t){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}i('Unexpected "'+t+'"')},l,d=function(){var p=[];if(t==="["){if(o("["),c(),t==="]")return o("]"),p;for(;t;){if(p.push(l()),c(),t==="]")return o("]"),p;o(","),c()}}i("Bad array")},f=function(){var p,_={};if(t==="{"){if(o("{"),c(),t==="}")return o("}"),_;for(;t;){if(p=s(),c(),o(":"),Object.hasOwnProperty.call(_,p)&&i('Duplicate key "'+p+'"'),_[p]=l(),c(),t==="}")return o("}"),_;o(","),c()}}i("Bad object")};return l=function(){switch(c(),t){case"{":return f();case"[":return d();case'"':return s();case"-":return n();default:return t>="0"&&t<="9"?n():u()}},function(p){var _;return r=p,e=0,t=" ",_=l(),c(),t&&i("Syntax error"),_}})();h.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a,r,i,o,n,s,c,u,l=0,d=0,f="",p=[];if(!e)return e;e=h.utf8Encode(e);do a=e.charCodeAt(l++),r=e.charCodeAt(l++),i=e.charCodeAt(l++),u=a<<16|r<<8|i,o=u>>18&63,n=u>>12&63,s=u>>6&63,c=u&63,p[d++]=t.charAt(o)+t.charAt(n)+t.charAt(s)+t.charAt(c);while(l<e.length);switch(f=p.join(""),e.length%3){case 1:f=f.slice(0,-2)+"==";break;case 2:f=f.slice(0,-1)+"=";break}return f};h.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,`
67
+ `).replace(/\r/g,`
68
+ `);var t="",a,r,i=0,o;for(a=r=0,i=e.length,o=0;o<i;o++){var n=e.charCodeAt(o),s=null;n<128?r++:n>127&&n<2048?s=String.fromCharCode(n>>6|192,n&63|128):s=String.fromCharCode(n>>12|224,n>>6&63|128,n&63|128),s!==null&&(r>a&&(t+=e.substring(a,r)),t+=s,a=r=o+1)}return r>a&&(t+=e.substring(a,e.length)),t};h.UUID=function(){try{return A.crypto.randomUUID()}catch{for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",h.map(e,function(r){return r.toString(16)}).join("")}};var Qs=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];h.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Qs.length;t++)if(e.indexOf(Qs[t])!==-1)return!0;return!1};h.HTTPBuildQuery=function(e,t){var a,r,i=[];return h.isUndefined(t)&&(t="&"),h.each(e,function(o,n){a=encodeURIComponent(o.toString()),r=encodeURIComponent(n),i[i.length]=r+"="+a}),i.join(t)};h.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var a="[\\?&]"+t+"=([^&#]*)",r=new RegExp(a),i=r.exec(e);if(i===null||i&&typeof i[1]!="string"&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch{V.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")};h.cookie={get:function(e){for(var t=e+"=",a=N.cookie.split(";"),r=0;r<a.length;r++){for(var i=a[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=h.JSONDecode(h.cookie.get(e))||{}}catch{}return t},set_seconds:function(e,t,a,r,i,o,n){var s="",c="",u="";if(n)s="; domain="+n;else if(r){var l=ec(N.location.hostname);s=l?"; domain=."+l:""}if(a){var d=new Date;d.setTime(d.getTime()+a*1e3),c="; expires="+d.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),N.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+s+u},set:function(e,t,a,r,i,o,n){var s="",c="",u="";if(n)s="; domain="+n;else if(r){var l=ec(N.location.hostname);s=l?"; domain=."+l:""}if(a){var d=new Date;d.setTime(d.getTime()+a*24*60*60*1e3),c="; expires="+d.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var f=e+"="+encodeURIComponent(t)+c+"; path=/"+s+u;return N.cookie=f,f},remove:function(e,t,a){h.cookie.set(e,"",-1,t,!1,!1,a)}};var fl=function(e){var t=!0;try{var a="__mplss_"+go(8),r="xyz";e.setItem(a,r),e.getItem(a)!==r&&(t=!1),e.removeItem(a)}catch{t=!1}return t},jn=null,zr=function(e,t){return jn!==null&&!t?jn:jn=fl(e||A.localStorage)},Hn=null,Wm=function(e,t){return Hn!==null&&!t?Hn:Hn=fl(e||A.sessionStorage)};function hl(e,t,a){var r=function(i){V.error(t+" error: "+i)};return{is_supported:function(i){var o=a(e,i);return o||V.error(t+" unsupported"),o},error:r,get:function(i){try{return e.getItem(i)}catch(o){r(o)}return null},parse:function(i){try{return h.JSONDecode(e.getItem(i))||{}}catch{}return null},set:function(i,o){try{e.setItem(i,o)}catch(n){r(n)}},remove:function(i){try{e.removeItem(i)}catch(o){r(o)}}}}h.localStorage=hl(A.localStorage,"localStorage",zr);h.sessionStorage=hl(A.sessionStorage,"sessionStorage",Wm);h.register_event=(function(){var e=function(r,i,o,n,s){if(!r){V.error("No valid element provided to register_event");return}if(r.addEventListener&&!n)r.addEventListener(i,o,!!s);else{var c="on"+i,u=r[c];r[c]=t(r,o,u)}};function t(r,i,o){var n=function(s){if(s=s||a(A.event),!!s){var c=!0,u,l;return h.isFunction(o)&&(u=o(s)),l=i.call(r,s),(u===!1||l===!1)&&(c=!1),c}};return n}function a(r){return r&&(r.preventDefault=a.preventDefault,r.stopPropagation=a.stopPropagation),r}return a.preventDefault=function(){this.returnValue=!1},a.stopPropagation=function(){this.cancelBubble=!0},e})();var Gm=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');h.dom_query=(function(){function e(i){return i.all?i.all:i.getElementsByTagName("*")}var t=/[\t\r\n]/g;function a(i,o){var n=" "+o+" ";return(" "+i.className+" ").replace(t," ").indexOf(n)>=0}function r(i){if(!N.getElementsByTagName)return[];var o=i.split(" "),n,s,c,u,l,d,f,p,_,g,m=[N];for(d=0;d<o.length;d++){if(n=o[d].replace(/^\s+/,"").replace(/\s+$/,""),n.indexOf("#")>-1){s=n.split("#"),c=s[0];var v=s[1],y=N.getElementById(v);if(!y||c&&y.nodeName.toLowerCase()!=c)return[];m=[y];continue}if(n.indexOf(".")>-1){s=n.split("."),c=s[0];var b=s[1];for(c||(c="*"),u=[],l=0,f=0;f<m.length;f++)for(c=="*"?_=e(m[f]):_=m[f].getElementsByTagName(c),p=0;p<_.length;p++)u[l++]=_[p];for(m=[],g=0,f=0;f<u.length;f++)u[f].className&&h.isString(u[f].className)&&a(u[f],b)&&(m[g++]=u[f]);continue}var C=n.match(Gm);if(C){c=C[1];var w=C[2],S=C[3],T=C[4];for(c||(c="*"),u=[],l=0,f=0;f<m.length;f++)for(c=="*"?_=e(m[f]):_=m[f].getElementsByTagName(c),p=0;p<_.length;p++)u[l++]=_[p];m=[],g=0;var R;switch(S){case"=":R=function(P){return P.getAttribute(w)==T};break;case"~":R=function(P){return P.getAttribute(w).match(new RegExp("\\b"+T+"\\b"))};break;case"|":R=function(P){return P.getAttribute(w).match(new RegExp("^"+T+"-?"))};break;case"^":R=function(P){return P.getAttribute(w).indexOf(T)===0};break;case"$":R=function(P){return P.getAttribute(w).lastIndexOf(T)==P.getAttribute(w).length-T.length};break;case"*":R=function(P){return P.getAttribute(w).indexOf(T)>-1};break;default:R=function(P){return P.getAttribute(w)}}for(m=[],g=0,f=0;f<u.length;f++)R(u[f])&&(m[g++]=u[f]);continue}for(c=n,u=[],l=0,f=0;f<m.length;f++)for(_=m[f].getElementsByTagName(c),p=0;p<_.length;p++)u[l++]=_[p];m=u}return m}return function(i){return h.isElement(i)?[i]:h.isObject(i)&&!h.isUndefined(i.length)?i:r.call(this,i)}})();var jm=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Hm=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];h.info={campaignParams:function(e){var t="",a={};return h.each(jm,function(r){t=h.getQueryParam(N.URL,r),t.length?a[r]=t:e!==void 0&&(a[r]=e)}),a},clickParams:function(){var e="",t={};return h.each(Hm,function(a){e=h.getQueryParam(N.URL,a),e.length&&(t[a]=e)}),t},marketingParams:function(){return h.extend(h.info.campaignParams(),h.info.clickParams())},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var t=h.info.searchEngine(e),a=t!="yahoo"?"q":"p",r={};if(t!==null){r.$search_engine=t;var i=h.getQueryParam(e,a);i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,a){return t=t||"",a||h.includes(e," OPR/")?h.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":h.includes(e,"IEMobile")||h.includes(e,"WPDesktop")?"Internet Explorer Mobile":h.includes(e,"SamsungBrowser/")?"Samsung Internet":h.includes(e,"Edge")||h.includes(e,"Edg/")?"Microsoft Edge":h.includes(e,"FBIOS")?"Facebook Mobile":h.includes(e,"Whale/")?"Whale Browser":h.includes(e,"Chrome")?"Chrome":h.includes(e,"CriOS")?"Chrome iOS":h.includes(e,"UCWEB")||h.includes(e,"UCBrowser")?"UC Browser":h.includes(e,"FxiOS")?"Firefox iOS":h.includes(t,"Apple")?h.includes(e,"Mobile")?"Mobile Safari":"Safari":h.includes(e,"Android")?"Android Mobile":h.includes(e,"Konqueror")?"Konqueror":h.includes(e,"Firefox")?"Firefox":h.includes(e,"MSIE")||h.includes(e,"Trident/")?"Internet Explorer":h.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,a){var r=h.info.browser(e,t,a),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=i[r];if(o===void 0)return null;var n=e.match(o);return n?parseFloat(n[n.length-2]):null},os:function(){var e=ze;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return A.location.href},properties:function(e){return typeof e!="object"&&(e={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(ze,Ze.vendor,br),$referrer:N.referrer,$referring_domain:h.info.referringDomain(N.referrer),$device:h.info.device(ze)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(ze,Ze.vendor,br),$screen_height:Zs.height,$screen_width:Zs.width,mp_lib:"web",$lib_version:De.LIB_VERSION,$insert_id:go(),time:h.timestamp()/1e3},h.strip_empty_properties(e))},people_properties:function(){return h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(ze,Ze.vendor,br)}),{$browser_version:h.info.browserVersion(ze,Ze.vendor,br)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:N.title,current_domain:A.location.hostname,current_url_path:A.location.pathname,current_url_protocol:A.location.protocol,current_url_search:A.location.search})}};var Jm=function(e,t){var a=null,r=[];return function(i){var o=this;return r.push(i),a||(a=new G(function(n){setTimeout(function(){var s=e.apply(o,[r]);a=null,r=[],n(s)},t)})),a}},go=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Zm=function(){var e=h.UUID().replace(/-/g,""),t=h.UUID().replace(/-/g,"").substring(0,16),a="01";return"00-"+e+"-"+t+"-"+a},Ym=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Km=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ec=function(e){var t=Km,a=e.split("."),r=a[a.length-1];(r.length>4||r==="com"||r==="org")&&(t=Ym);var i=e.match(t);return i?i[0]:""},Xm=function(){var e=A.navigator.onLine;return h.isUndefined(e)||e},st=function(){},ar=null,Zi=null;typeof JSON<"u"&&(ar=JSON.stringify,Zi=JSON.parse);ar=ar||h.JSONEncode;Zi=Zi||h.JSONDecode;var Qm=function(e,t,a){if(!A.CompressionStream)return!1;var r=h.info.browser(e,t,a),i=h.info.browserVersion(e,t,a);return!((r==="Safari"||r==="Mobile Safari")&&i>=16.4&&i<16.6)};h.info=h.info;h.info.browser=h.info.browser;h.info.browserVersion=h.info.browserVersion;h.info.device=h.info.device;h.info.properties=h.info.properties;h.isBlockedUA=h.isBlockedUA;h.isEmptyObject=h.isEmptyObject;h.isObject=h.isObject;h.JSONDecode=h.JSONDecode;h.JSONEncode=h.JSONEncode;h.toArray=h.toArray;h.NPO=mt;var eg="mixpanelBrowserDb",pl="mixpanelRecordingEvents",vo="mixpanelRecordingRegistry",tg=1,rg=[pl,vo],Fe=function(e){this.dbPromise=null,this.storeName=e};Fe.prototype._openDb=function(){return new G(function(e,t){var a=A.indexedDB.open(eg,tg);a.onerror=function(){t(a.error)},a.onsuccess=function(){e(a.result)},a.onupgradeneeded=function(r){var i=r.target.result;rg.forEach(function(o){i.createObjectStore(o)})}})};Fe.prototype.init=function(){return A.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof A.IDBDatabase?G.resolve():G.reject(e)})):G.reject("indexedDB is not supported in this browser")};Fe.prototype.isInitialized=function(){return!!this.dbPromise};Fe.prototype.makeTransaction=function(e,t){var a=this.storeName,r=function(i){return new G(function(o,n){var s=i.transaction(a,e);s.oncomplete=function(){o(s)},s.onabort=s.onerror=function(){n(s.error)},t(s.objectStore(a))})};return this.dbPromise.then(r).catch((function(i){return i&&i.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(r)):G.reject(i)}).bind(this))};Fe.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(a){a.put(t,e)})};Fe.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(a){t=a.get(e)}).then(function(){return t.result})};Fe.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})};Fe.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var ig="__mp_opt_in_out_";function ng(e,t){gl(!0,e,t)}function ag(e,t){gl(!1,e,t)}function og(e,t){return ml(e,t)==="1"}function _l(e,t){if(cg(t))return V.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var a=ml(e,t)==="0";return a&&V.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),a}function gt(e){return Co(e,function(t){return this.get_config(t)})}function vt(e){return Co(e,function(t){return this._get_config(t)})}function cr(e){return Co(e,function(t){return this._get_config(t)})}function sg(e,t){t=t||{},yo(t).remove(bo(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function yo(e){return e=e||{},e.persistenceType==="localStorage"?h.localStorage:h.cookie}function bo(e,t){return t=t||{},(t.persistencePrefix||ig)+e}function ml(e,t){return yo(t).get(bo(e,t))}function cg(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||A,a=t.navigator||{},r=!1;return h.each([a.doNotTrack,a.msDoNotTrack,t.doNotTrack],function(i){h.includes([!0,1,"1","yes"],i)&&(r=!0)}),r}function gl(e,t,a){if(!h.isString(t)||!t.length){V.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}a=a||{},yo(a).set(bo(t,a),e?1:0,h.isNumber(a.cookieExpiration)?a.cookieExpiration:null,!!a.crossSubdomainCookie,!!a.secureCookie,!!a.crossSiteCookie,a.cookieDomain),a.track&&e&&a.track(a.trackEventName||"$opt_in",a.trackProperties,{send_immediately:!0})}function Co(e,t){return function(){var a=!1;try{var r=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),n=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");r&&(a=_l(r,{ignoreDnt:i,persistenceType:o,persistencePrefix:n,window:s}))}catch(u){V.error("Unexpected error when checking tracking opt-out status: "+u)}if(!a)return e.apply(this,arguments);var c=arguments[arguments.length-1];typeof c=="function"&&c(0)}}var ug=Lt("lock"),vl=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||A.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||G};vl.prototype.withLock=function(e,t){var a=this.promiseImpl;return new a(h.bind(function(r,i){var o=t||new Date().getTime()+"|"+Math.random(),n=new Date().getTime(),s=this.storageKey,c=this.pollIntervalMS,u=this.timeoutMS,l=this.storage,d=s+":X",f=s+":Y",p=s+":Z",_=function(b){if(new Date().getTime()-n>u){ug.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+o+"]"),l.removeItem(p),l.removeItem(f),v();return}setTimeout(function(){try{b()}catch(C){i(C)}},c*(Math.random()+.1))},g=function(b,C){b()?C():_(function(){g(b,C)})},m=function(){var b=l.getItem(f);return b&&b!==o?!1:(l.setItem(f,o),l.getItem(f)===o?!0:(zr(l,!0)||i(new Error("localStorage support dropped while acquiring lock")),!1))},v=function(){l.setItem(d,o),g(m,function(){if(l.getItem(d)===o){y();return}_(function(){if(l.getItem(f)!==o){v();return}g(function(){return!l.getItem(p)},y)})})},y=function(){l.setItem(p,"1");var b=function(){l.removeItem(p),l.getItem(f)===o&&l.removeItem(f),l.getItem(d)===o&&l.removeItem(d)};e().then(function(C){b(),r(C)}).catch(function(C){b(),i(C)})};try{if(zr(l,!0))v();else throw new Error("localStorage support check failed")}catch(b){i(b)}},this))};var ur=function(e){this.storage=e||A.localStorage};ur.prototype.init=function(){return G.resolve()};ur.prototype.isInitialized=function(){return!0};ur.prototype.setItem=function(e,t){return new G(h.bind(function(a,r){try{this.storage.setItem(e,ar(t))}catch(i){r(i)}a()},this))};ur.prototype.getItem=function(e){return new G(h.bind(function(t,a){var r;try{r=Zi(this.storage.getItem(e))}catch(i){a(i)}t(r)},this))};ur.prototype.removeItem=function(e){return new G(h.bind(function(t,a){try{this.storage.removeItem(e)}catch(r){a(r)}t()},this))};var tc=Lt("batch"),Ge=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new ur,this.lock=new vl(e,{storage:t.sharedLockStorage||A.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||h.bind(tc.error,tc),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=Jm(h.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=h.bind(function(a){return this._enqueuePersisted([a])},this)};Ge.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?G.resolve():this.queueStorage.init().then(h.bind(function(){this.initialized=!0},this)).catch(h.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))};Ge.prototype.enqueue=function(e,t){var a={id:go(),flushAfter:new Date().getTime()+t*2,payload:e};return this.usePersistence?this.enqueuePersisted(a):(this.memQueue.push(a),G.resolve(!0))};Ge.prototype._enqueuePersisted=function(e){var t=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(a){return this.saveToStorage(a.concat(e))},this)).then(h.bind(function(a){return a&&(this.memQueue=this.memQueue.concat(e)),a},this)).catch(h.bind(function(a){return this.reportError("Error enqueueing items",a,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(h.bind(function(a){return this.reportError("Error acquiring storage lock",a),!1},this))};Ge.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(a){if(a.length){var r={};h.each(t,function(n){r[n.id]=!0});for(var i=0;i<a.length;i++){var o=a[i];if(new Date().getTime()>o.flushAfter&&!r[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):G.resolve(t)};var rc=function(e,t){var a=[];return h.each(e,function(r){r.id&&!t[r.id]&&a.push(r)}),a};Ge.prototype.removeItemsByID=function(e){var t={};if(h.each(e,function(r){t[r]=!0}),this.memQueue=rc(this.memQueue,t),this.usePersistence){var a=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(r){return r=rc(r,t),this.saveToStorage(r)},this)).then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(r){for(var i=0;i<r.length;i++){var o=r[i];if(o.id&&t[o.id])throw new Error("Item not removed from storage")}return!0},this)).catch(h.bind(function(r){return this.reportError("Error removing items",r,e),!1},this))},this);return this.lock.withLock(a,this.pid).catch(h.bind(function(r){return this.reportError("Error acquiring storage lock",r),zr(this.lock.storage,!0)?!1:a().then(h.bind(function(i){return i||this.queueStorage.removeItem(this.storageKey).then(function(){return i})},this)).catch(h.bind(function(i){return this.reportError("Error clearing queue",i),!1},this))},this))}else return G.resolve(!0)};var ic=function(e,t){var a=[];return h.each(e,function(r){var i=r.id;if(i in t){var o=t[i];o!==null&&(r.payload=o,a.push(r))}else a.push(r)}),a};Ge.prototype.updatePayloads=function(e){return this.memQueue=ic(this.memQueue,e),this.usePersistence?this.lock.withLock(h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(a){return a=ic(a,e),this.saveToStorage(a)},this)).catch(h.bind(function(a){return this.reportError("Error updating items",e,a),!1},this))},this),this.pid).catch(h.bind(function(t){return this.reportError("Error acquiring storage lock",t),!1},this)):G.resolve(!0)};Ge.prototype.readFromStorage=function(){return this.ensureInit().then(h.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(h.bind(function(e){return e&&(h.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(h.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))};Ge.prototype.saveToStorage=function(e){return this.ensureInit().then(h.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(h.bind(function(t){return this.reportError("Error saving queue",t),!1},this))};Ge.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(h.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):G.resolve()};var lg=600*1e3,Tr=Lt("batch"),Be=function(e,t){this.errorReporter=t.errorReporter,this.queue=new Ge(e,{errorReporter:h.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};Be.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)};Be.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};Be.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};Be.prototype.clear=function(){return this.queue.clear()};Be.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};Be.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};Be.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))};Be.prototype.sendRequestPromise=function(e,t){return new G(h.bind(function(a){this.sendRequest(e,t,a)},this))};Be.prototype.flush=function(e){if(this.requestInProgress)return Tr.log("Flush: Request already in progress"),G.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,a=new Date().getTime(),r=this.batchSize;return this.queue.fillBatch(r).then(h.bind(function(i){var o=i.length===r,n=[],s={};if(h.each(i,function(d){var f=d.payload;if(this.beforeSendHook&&!d.orphaned&&(f=this.beforeSendHook(f)),f){f.event&&f.properties&&(f.properties=h.extend({},f.properties,{mp_sent_by_lib_version:De.LIB_VERSION}));var p=!0,_=d.id;_?(this.itemIdsSentSuccessfully[_]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:d,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[_]}),p=!1):this.reportError("[dupe] found item with no ID",{item:d}),p&&n.push(f)}s[d.id]=f},this),n.length<1)return this.requestInProgress=!1,this.resetFlush(),G.resolve();var c=h.bind(function(){return this.queue.removeItemsByID(h.map(i,function(d){return d.id})).then(h.bind(function(d){return h.each(i,h.bind(function(f){var p=f.id;p?(this.itemIdsSentSuccessfully[p]=this.itemIdsSentSuccessfully[p]||0,this.itemIdsSentSuccessfully[p]++,this.itemIdsSentSuccessfully[p]>5&&this.reportError("[dupe] item ID sent too many times",{item:f,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[p]})):this.reportError("[dupe] found item with no ID while removing",{item:f})},this)),d?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),G.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),G.resolve())},this))},this),u=h.bind(function(d){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(s);if(h.isObject(d)&&d.error==="timeout"&&new Date().getTime()-a>=t)return this.reportError("Network timeout; retrying"),this.flush();if(h.isObject(d)&&(d.httpStatusCode>=500||d.httpStatusCode===429||d.httpStatusCode<=0&&!Xm()||d.error==="timeout")){var f=this.flushInterval*2;return d.retryAfter&&(f=parseInt(d.retryAfter,10)*1e3||f),f=Math.min(lg,f),this.reportError("Error; retry in "+f+" ms"),this.scheduleFlush(f),G.resolve()}else if(h.isObject(d)&&d.httpStatusCode===413)if(i.length>1){var p=Math.max(1,Math.floor(r/2));return this.batchSize=Math.min(this.batchSize,p,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),G.resolve()}else return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c();else return c()}catch(_){this.reportError("Error handling API response",_),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),Tr.log("MIXPANEL REQUEST:",n),this.sendRequestPromise(n,l).then(u)},this)).catch(h.bind(function(i){this.reportError("Error flushing request queue",i),this.resetFlush()},this))};Be.prototype.reportError=function(e,t){if(Tr.error.apply(Tr.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(a){Tr.error(a)}};var ko=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},dg=250,Yt=Lt("recorder"),fg=A.CompressionStream,hg={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},pg=new Set([L.MouseMove,L.MouseInteraction,L.Scroll,L.ViewportResize,L.Input,L.TouchMove,L.MediaInteraction,L.Drag,L.Selection]);function _g(e){return e.type===W.IncrementalSnapshot&&pg.has(e.data.source)}var me=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||st,this._onMaxLengthReached=e.onMaxLengthReached||st,this._onBatchSent=e.onBatchSent||st,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Ar,this.recordMinMs=0;var t=zr(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Fe(pl),this.batcher=new Be(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:hg,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:dg,sharedLockTimeoutMS:10*1e3})};me.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var a=this._mixpanel.get_property("$user_id");return a&&(e.$user_id=a),e};me.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))};me.prototype.getConfig=function(e){return this._mixpanel.get_config(e)};me.prototype.get_config=function(e){return this.getConfig(e)};me.prototype.startRecording=function(e){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Yt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Ar&&(this.recordMaxMs=Ar,Yt.critical("record_max_ms cannot be greater than "+Ar+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=h.info.currentUrl(),this.replayStartUrl=h.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var i=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,i),this.idleExpires=new Date().getTime()+i}).bind(this);t();var a=this.getConfig("record_block_selector");(a===""||a===null)&&(a=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(i){if(this.idleExpires&&this.idleExpires<i.timestamp){this._onIdleTimeout();return}_g(i)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(i),(this.lastEventTimestamp===null||i.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=i.timestamp)}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:a,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[Fm({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}})]:[]})}catch(i){this.reportError("Unexpected error when starting rrweb recording.",i)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var r=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),r)};me.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(a){this.reportError("Error with rrweb stopRecording",a)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t};me.prototype.isRrwebStopped=function(){return this._stopRecording===null};me.prototype.flushEventsWithOptOut=function(e,t,a){var r=(function(i){i===0&&(this.stopRecording(),a({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,a,r)};me.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}};me.deserialize=function(e,t){var a=new me(h.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}));return a};me.prototype._sendRequest=function(e,t,a,r){var i=(function(n,s){n.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),r({status:0,httpStatusCode:n.status,responseBody:s,retryAfter:n.headers.get("Retry-After")})}).bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");A.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:a}).then(function(n){n.json().then(function(s){i(n,s)}).catch(function(s){r({error:s})})}).catch(function(n){r({error:n,httpStatusCode:0})})};me.prototype._flushEvents=gt(function(e,t,a){var r=e.length;if(r>0){for(var i=this.replayId,o=1/0,n=-1/0,s=!1,c=0;c<r;c++)o=Math.min(o,e[c].timestamp),n=Math.max(n,e[c].timestamp),e[c].type===W.FullSnapshot&&(s=!0);if(this.seqNo===0){if(!s){a({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=n-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:De.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},d=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Qm(ze,Ze.vendor,br)){var f=new Blob([d],{type:"application/json"}).stream(),p=f.pipeThrough(new fg("gzip"));new Response(p).blob().then((function(_){l.format="gzip",this._sendRequest(i,l,_,a)}).bind(this))}else l.format="body",this._sendRequest(i,l,d,a)}});me.prototype.reportError=function(e,t){Yt.error.apply(Yt.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(a){Yt.error(a)}};me.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime};me.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>qn?(Yt.critical("record_min_ms cannot be greater than "+qn+"ms. Capping value."),qn):e};var et=function(e){this.idb=new Fe(vo),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};et.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")};et.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)};et.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return G.resolve();var t=e.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),G.resolve())};et.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return ko(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):G.resolve(null)};et.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()};et.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))};et.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):G.resolve()};et.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(a){return ko(a)}).map((function(a){var r=me.deserialize(a,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return r.unloadPersistedData().then((function(){return this.idb.removeItem(a.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return G.all(t)}).bind(this)).catch(this.handleError.bind(this)):G.resolve([])};var Rr=Lt("recorder"),tt=function(e,t,a){this.mixpanelInstance=e,this.rrwebRecord=t||_t,this.sharedLockStorage=a,this.recordingRegistry=new et({mixpanelInstance:this.mixpanelInstance,errorReporter:Rr.error,sharedLockStorage:a}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};tt.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Rr.log("Recording already in progress, skipping startRecording.");return}var t=(function(){Rr.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),a=(function(){Rr.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),r=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:r,onIdleTimeout:t,onMaxLengthReached:a,replayId:h.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=me.deserialize(e.activeSerializedRecording,i):this.activeRecording=new me(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())};tt.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))};tt.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)};tt.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var a=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),a}return G.resolve()};tt.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),G.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Rr.log("No resumable recording found."),null)}).bind(this))};tt.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})};tt.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null};Object.defineProperty(tt.prototype,"replayId",{get:function(){return this.getActiveReplayId()}});A.__mp_recorder=tt;var qr="change",Qe="click",Ba="hashchange",mg="input",nc="load",ot="mp_locationchange",ac="popstate",bn="scrollend",wo="scroll",gg="select",Yi="submit",vg="toggle",oc="visibilitychange",yg=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],sc=["mp-include"],La=["mp-no-track"],cc=La.concat(["mp-sensitive"]),bg=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Cg={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},kg={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},wg={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},uc=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Sg=5,te=Lt("autocapture");function Na(e){for(var t={},a=yl(e).split(" "),r=0;r<a.length;r++){var i=a[r];i&&(t[i]=!0)}return t}function yl(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Ag(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!bl(e));return e}function lc(e,t,a,r,i,o){var n={$classes:yl(e).split(" "),$tag_name:e.tagName.toLowerCase()},s=e.id;s&&(n.$id=s),So(e,t,i,o)&&h.each(bg.concat(r),function(d){if(e.hasAttribute(d)&&!a[d]){var f=e.getAttribute(d);Ki(f)&&(n["$attr-"+d]=f)}});for(var c=1,u=1,l=e;l=Ag(l);)c++,l.tagName===e.tagName&&u++;return n.$nth_child=c,n.$nth_of_type=u,n}function Tg(e,t){var a=t.allowElementCallback,r=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,n=t.blockSelectors||[],s=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};h.each(i,function(w){l[w]=!0});var d=null,f=typeof e.target>"u"?e.srcElement:e.target;if(Cl(f)&&(f=f.parentNode),Eg(f,e)&&Fa(f,e,a,r)&&!Jn(f,e,o,n)){for(var p=[f],_=f;_.parentNode&&!qe(_,"body");)p.push(_.parentNode),_=_.parentNode;var g=[],m,v=!1;if(h.each(p,function(w){var S=So(w,e,a,r);!l.href&&w.tagName.toLowerCase()==="a"&&(m=w.getAttribute("href"),m=S&&Ki(m)&&m),Jn(w,e,o,n)&&(v=!0),g.push(lc(w,e,l,c,a,r))},this),!v){var y=N.documentElement;if(d={$event_type:e.type,$host:A.location.host,$pathname:A.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y.clientHeight,A.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,A.innerWidth||0),$pageHeight:N.body.offsetHeight||0,$pageWidth:N.body.offsetWidth||0},h.each(c,function(w){if(!l[w]&&f.hasAttribute(w)){var S=f.getAttribute(w);Ki(S)&&(d["$el_attr__"+w]=S)}}),s&&(b=dc(f,e,a,r),b&&b.length&&(d.$el_text=b)),e.type===Qe&&(h.each(yg,function(w){w in e&&(d["$"+w]=e[w])}),u&&(d.$captured_for_heatmap=!0),f=Rg(e)),s){var b=dc(f,e,a,r);b&&b.length&&(d.$el_text=b)}if(f){if(!Fa(f,e,a,r)||Jn(f,e,o,n))return null;var C=lc(f,e,l,c,a,r);d.$target=C,d.$el_classes=C.$classes,h.extend(d,h.strip_empty_properties({$el_id:C.$id,$el_tag_name:C.$tag_name}))}}}return d}function dc(e,t,a,r){var i="";return So(e,t,a,r)&&e.childNodes&&e.childNodes.length&&h.each(e.childNodes,function(o){Cl(o)&&o.textContent&&(i+=h.trim(o.textContent).split(/(\s+)/).filter(Ki).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(i)}function Rg(e){for(var t=e.target,a=e.composedPath(),r=0;r<a.length;r++){var i=a[r];if(qe(i,"a")||qe(i,"button")||qe(i,"input")||qe(i,"select")||i.getAttribute&&i.getAttribute("role")==="button"){t=i;break}if(i===t)break}return t}function Fa(e,t,a,r){if(a)try{if(!a(e,t))return!1}catch(n){return te.critical("Error while checking element in allowElementCallback",n),!1}if(!r.length)return!0;for(var i=0;i<r.length;i++){var o=r[i];try{if(e.matches(o))return!0}catch(n){te.critical("Error while checking selector: "+o,n)}}return!1}function Jn(e,t,a,r){var i;if(a)try{if(a(e,t))return!0}catch(s){return te.critical("Error while checking element in blockElementCallback",s),!0}if(r&&r.length)for(i=0;i<r.length;i++){var o=r[i];try{if(e.matches(o))return!0}catch(s){te.critical("Error while checking selector: "+o,s)}}var n=Na(e);for(i=0;i<La.length;i++)if(n[La[i]])return!0;return!1}function bl(e){return e&&e.nodeType===1}function qe(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Cl(e){return e&&e.nodeType===3}function Pg(){try{var e=N.createElement("div");return!!e.matches}catch{return!1}}function Ig(){return typeof WeakSet<"u"}function Eg(e,t){if(!e||qe(e,"html")||!bl(e))return!1;var a=e.tagName.toLowerCase();switch(a){case"form":return t.type===Yi;case"input":return["button","submit"].indexOf(e.getAttribute("type"))===-1?t.type===qr:t.type===Qe;case"select":case"textarea":return t.type===qr;default:return t.type===Qe}}function So(e,t,a,r){var i;if(!Fa(e,t,a,r))return!1;for(var o=e;o.parentNode&&!qe(o,"body");o=o.parentNode){var n=Na(o);for(i=0;i<cc.length;i++)if(n[cc[i]])return!1}var s=Na(e);for(i=0;i<sc.length;i++)if(s[sc[i]])return!0;if(qe(e,"input")||qe(e,"select")||qe(e,"textarea")||e.getAttribute("contenteditable")==="true")return!1;var c=e.type||"";if(typeof c=="string")switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}var u=e.name||e.id||"";if(typeof u=="string"){var l=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(l.test(u.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function Ki(e){if(e===null||h.isUndefined(e))return!1;if(typeof e=="string"){e=h.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var a=/(^\d{3}-?\d{2}-?\d{4}$)/;if(a.test(e))return!1}return!0}function kl(e){var t="onscrollend"in A,a=Vr(e),r=bn;if(!t){var i=null,o=100;a=Vr(function(){clearTimeout(i),i=setTimeout(e,o)}),r=wo}return{listener:a,eventType:r}}function Og(e){for(var t=0;t<uc.length;t++)if(e.hasAttribute(uc[t]))return!0;return!1}function xg(e){var t=e.getAttribute("role");if(!t)return!1;var a=t.trim().split(/\s+/)[0].toLowerCase();return Cg[a]}function Zn(e){var t=e.tagName.toLowerCase();return!!(t==="button"||t==="input"||t==="select"||t==="textarea"||t==="details"||t==="dialog"||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||Og(e)||xg(e)||t==="a"&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function wl(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(kg[t])return!0;if(Zn(e))return!1;for(var a=e.parentElement,r=0;a&&r<Sg;){if(Zn(a))return!1;if(a.getRootNode&&a.getRootNode()!==N){var i=a.getRootNode();if(i.host&&Zn(i.host))return!1}a=a.parentElement,r++}return!!wg[t]}function Sl(e){return"composedPath"in e?e.composedPath():[]}function Al(e){var t=Sl(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var Mg=30,Dg=1e3,Bg=4,Lg=!1;function Tl(){this.clicks=[]}Tl.prototype.isRageClick=function(e,t){t=t||{};var a=t.threshold_px||Mg,r=t.timeout_ms||Dg,i=t.click_count||Bg,o=t.interactive_elements_only||Lg;if(o){var n=Al(e);if(!n||wl(n))return!1}var s=Date.now(),c=e.pageX,u=e.pageY,l=this.clicks[this.clicks.length-1];if(l&&s-l.timestamp<r&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<a){if(this.clicks.push({x:c,y:u,timestamp:s}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:s}];return!1};function lr(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}lr.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Al(e)};lr.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=Sl(e),a=0;a<t.length;a++){var r=t[a];r&&r.shadowRoot&&this.observeShadowRoot(r.shadowRoot)}};lr.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var a=new window.MutationObserver(function(){t.changeCallback()});a.observe(e,this.observerConfig),this.shadowObservers.push(a)}catch(r){te.critical("Error while observing shadow root",r)}}};lr.prototype.start=function(){if(!this.observedShadowRoots){if(!Ig()){te.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}};lr.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(t){te.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var Ng=500,Fg=[qr,mg,Yi,gg,vg],$g=[bn],Ug=[Ba],fc={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function je(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}je.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!t||wl(t)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)};je.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var a=this.addClick(e);return a&&this.triggerProcessing(t),a};je.prototype.getDeadClicks=function(e){if(this.pendingClicks.length===0)return[];var t=e.timeout_ms,a=Date.now(),r=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<r.length;o++){var n=r[o];a-n.timestamp>=t?this.hasChangesAfter(n.timestamp)||i.push(n):this.pendingClicks.push(n)}return i};je.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100};je.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()};je.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))};je.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,a=this;this.processingTimeout=setTimeout(function(){if(a.processingActive){for(var r=a.getDeadClicks(e),i=0;i<r.length;i++)a.onDeadClickCallback(r[i].event);a.pendingClicks.length>0?a.processRecursively(e):a.processingActive=!1}},t)};je.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Fg.forEach(function(a){var r=function(){e.recordChangeEvent()};document.addEventListener(a,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:a,handler:r,options:{capture:!0,passive:!0}})}),Ug.forEach(function(a){var r=function(){e.recordChangeEvent()};window.addEventListener(a,r),e.eventListeners.push({target:window,event:a,handler:r})}),$g.forEach(function(a){var r=function(){e.recordChangeEvent()};window.addEventListener(a,r,{passive:!0}),e.eventListeners.push({target:window,event:a,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,fc)}catch(a){te.critical("Error while setting up mutation observer",a)}if(window.customElements)try{this.shadowDOMObserver=new lr(function(){e.recordChangeEvent()},fc),this.shadowDOMObserver.start()}catch(a){te.critical("Error while setting up shadow DOM observer",a),this.shadowDOMObserver=null}}};je.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(a){te.critical("Error while removing event listener",a)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(a){te.critical("Error while disconnecting mutation observer",a)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(a){te.critical("Error while stopping shadow DOM observer",a)}this.shadowDOMObserver=null}}};var Rl="autocapture",Vg="track_pageview",Pl="full-url",zg="url-with-path-and-query-string",qg="url-with-path",Wg="allow_element_callback",Il="allow_selectors",El="allow_url_regexes",Ol="block_attrs",xl="block_element_callback",Ml="block_selectors",Dl="block_url_regexes",Bl="capture_extra_attrs",Ll="capture_text_content",Nl="scroll_capture_all",Fl="scroll_depth_percent_checkpoints",Xi="click",Qi="dead_click",$a="input",$l="pageview",en="rage_click",Ua="scroll",Cn="page_leave",Va="submit",pe={};pe[Il]=[];pe[El]=[];pe[Ol]=[];pe[xl]=null;pe[Ml]=[];pe[Dl]=[];pe[Bl]=[];pe[Ll]=!1;pe[Nl]=!1;pe[Fl]=[25,50,75,100];pe[Xi]=!0;pe[Qi]=!0;pe[$a]=!0;pe[$l]=Pl;pe[en]=!0;pe[Ua]=!0;pe[Cn]=!1;pe[Va]=!0;var Wr={$mp_autocapture:!0},Ul="$mp_click",Vl="$mp_dead_click",Gg="$mp_input_change",zl="$mp_rage_click",jg="$mp_scroll",Hg="$mp_submit",Jg="$mp_page_leave",fe=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};fe.prototype.init=function(){if(!Pg()){te.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()};fe.prototype.getFullConfig=function(){var e=this.mp.get_config(Rl);return e?h.isObject(e)?h.extend({},pe,e):pe:{}};fe.prototype.getConfig=function(e){return this.getFullConfig()[e]};fe.prototype.currentUrlBlocked=function(){var e,t=h.info.currentUrl(),a=this.getConfig(El)||[];if(a.length){var r=!1;for(e=0;e<a.length;e++){var i=a[e];try{if(t.match(i)){r=!0;break}}catch(n){return te.critical("Error while checking block URL regex: "+i,n),!0}}if(!r)return!0}var o=this.getConfig(Dl)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(n){return te.critical("Error while checking block URL regex: "+o[e],n),!0}return!1};fe.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Rl)?this.getConfig($l):this.mp.get_config(Vg)};fe.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var a=this.mp.is_recording_heatmap_data()&&(t===Ul&&!this.getConfig(Xi)||t===zl&&!this._getClickTrackingConfig(en)||t===Vl&&!this._getClickTrackingConfig(Qi)),r=Tg(e,{allowElementCallback:this.getConfig(Wg),allowSelectors:this.getConfig(Il),blockAttrs:this.getConfig(Ol),blockElementCallback:this.getConfig(xl),blockSelectors:this.getConfig(Ml),captureExtraAttrs:this.getConfig(Bl),captureTextContent:this.getConfig(Ll),capturedForHeatMap:a});r&&(h.extend(r,Wr),this.mp.track(t,r))}};fe.prototype.initPageListeners=function(){if(A.removeEventListener(ac,this.listenerPopstate),A.removeEventListener(Ba,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(Cn)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){A.dispatchEvent(new Event(ot))},this.listenerHashchange=function(){A.dispatchEvent(new Event(ot))},A.addEventListener(ac,this.listenerPopstate),A.addEventListener(Ba,this.listenerHashchange);var e=A.history.pushState;typeof e=="function"&&(A.history.pushState=function(a,r,i){e.call(A.history,a,r,i),A.dispatchEvent(new Event(ot))});var t=A.history.replaceState;typeof t=="function"&&(A.history.replaceState=function(a,r,i){t.call(A.history,a,r,i),A.dispatchEvent(new Event(ot))})}};fe.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?t===!0?{}:typeof t=="object"?t:{}:null};fe.prototype._trackPageLeave=function(e,t,a){if(!this.hasTrackedScrollSession&&!(!this.getConfig(Cn)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var r=Math.max(N.documentElement.clientHeight,A.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-r,0)/(a-r)*100),o=Math.round(r/a*100);a<=r&&(i=100,o=100);var n=h.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:a,$event_type:e.type,$current_url:t||h.info.currentUrl(),$viewportHeight:r,$viewportWidth:Math.max(N.documentElement.clientWidth,A.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Wr);this.mp.track(Jg,n,{transport:"sendBeacon"})}};fe.prototype._initScrollDepthTracking=function(){if(A.removeEventListener(wo,this.listenerScrollDepth),A.removeEventListener(bn,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){te.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(N.documentElement.clientHeight,A.innerHeight||0);var e=(function(){if(!this.currentUrlBlocked()){var a=Math.max(N.documentElement.clientHeight,A.innerHeight||0)+A.scrollY;a>this.maxScrollViewDepth&&(this.maxScrollViewDepth=a),this.previousScrollHeight=N.body.scrollHeight}}).bind(this),t=kl(e);this.listenerScrollDepth=t.listener,A.addEventListener(t.eventType,this.listenerScrollDepth)}};fe.prototype.initClickTracking=function(){A.removeEventListener(Qe,this.listenerClick),!(!this.getConfig(Xi)&&!this.mp.get_config("record_heatmap_data"))&&(te.log("Initializing click tracking"),this.listenerClick=(function(e){!this.getConfig(Xi)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(e,Ul)}).bind(this),A.addEventListener(Qe,this.listenerClick))};fe.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(Qi);if(!e&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}te.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new je((function(t){this.trackDomEvent(t,Vl)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(t){var a=this._getClickTrackingConfig(Qi);if(!(!a&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=a||{};r.timeout_ms||(r.timeout_ms=Ng),this._deadClickTracker.trackClick(t,r)}}).bind(this),A.addEventListener(Qe,this.listenerDeadClick))};fe.prototype.initInputTracking=function(){A.removeEventListener(qr,this.listenerChange),this.getConfig($a)&&(te.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig($a)&&this.trackDomEvent(e,Gg)}).bind(this),A.addEventListener(qr,this.listenerChange))};fe.prototype.initPageviewTracking=function(){if(A.removeEventListener(ot,this.listenerLocationchange),!!this.pageviewTrackingConfig()){te.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(Wr)),t&&(e=h.info.currentUrl()),this.listenerLocationchange=Vr((function(){if(!this.currentUrlBlocked()){var a=h.info.currentUrl(),r=!1,i=a.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],o=this.pageviewTrackingConfig();if(o===Pl?r=a!==e:o===zg?r=a.split("#")[0]!==e.split("#")[0]:o===qg&&(r=i),r){var n=this.mp.track_pageview(Wr);n&&(e=a),i&&(this.lastScrollCheckpoint=0,te.log("Path change: re-initializing scroll depth checkpoints"))}}}).bind(this)),A.addEventListener(ot,this.listenerLocationchange)}};fe.prototype.initRageClickTracking=function(){A.removeEventListener(Qe,this.listenerRageClick);var e=this._getClickTrackingConfig(en);!e&&!this.mp.get_config("record_heatmap_data")||(te.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Tl),this.listenerRageClick=(function(t){var a=this._getClickTrackingConfig(en);!a&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(t,a)&&this.trackDomEvent(t,zl)}).bind(this),A.addEventListener(Qe,this.listenerRageClick))};fe.prototype.initScrollTracking=function(){if(A.removeEventListener(bn,this.listenerScroll),A.removeEventListener(wo,this.listenerScroll),!!this.getConfig(Ua)){te.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(Ua)&&!this.currentUrlBlocked()){var a=this.getConfig(Nl),r=(this.getConfig(Fl)||[]).slice().sort(function(l,d){return l-d}),i=A.scrollY,o=h.extend({$scroll_top:i},Wr);try{var n=N.body.scrollHeight,s=Math.round(i/(n-A.innerHeight)*100);if(o.$scroll_height=n,o.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var c=0;c<r.length;c++){var u=r[c];s>=u&&this.lastScrollCheckpoint<u&&(o.$scroll_checkpoint=u,this.lastScrollCheckpoint=u,a=!0)}}catch(l){te.critical("Error while calculating scroll percentage",l)}a&&this.mp.track(jg,o)}}).bind(this),t=kl(e);this.listenerScroll=t.listener,A.addEventListener(t.eventType,this.listenerScroll)}};fe.prototype.initSubmitTracking=function(){A.removeEventListener(Yi,this.listenerSubmit),this.getConfig(Va)&&(te.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(Va)&&this.trackDomEvent(e,Hg)}).bind(this),A.addEventListener(Yi,this.listenerSubmit))};fe.prototype.initPageLeaveTracking=function(){if(N.removeEventListener(oc,this.listenerPageLeaveVisibilitychange),A.removeEventListener(ot,this.listenerPageLeaveLocationchange),A.removeEventListener(nc,this.listenerPageLoad),!(!this.getConfig(Cn)&&!this.mp.get_config("record_heatmap_data"))){te.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=h.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=N.body.scrollHeight}).bind(this),A.addEventListener(nc,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Vr((function(t){if(!this.currentUrlBlocked()){var a=h.info.currentUrl(),r=a!==e;r&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=a,this.maxScrollViewDepth=Math.max(N.documentElement.clientHeight,A.innerHeight||0),this.previousScrollHeight=N.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),A.addEventListener(ot,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){N.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),N.addEventListener(oc,this.listenerPageLeaveVisibilitychange)}};fe.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(A.removeEventListener(Qe,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)};dl(fe);var Re=Lt("flags"),tn="flags",rn="context",za={};za[rn]={};var z=function(e){this.fetch=A.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};z.prototype.init=function(){if(!this.minApisSupported()){Re.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set};z.prototype.getFullConfig=function(){var e=this.getMpConfig(tn);return e?h.isObject(e)?h.extend({},za,e):za:{}};z.prototype.getConfig=function(e){return this.getFullConfig()[e]};z.prototype.isSystemEnabled=function(){return!!this.getMpConfig(tn)};z.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Re.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var a=this.getMpConfig(tn);h.isObject(a)||(a={});var r=t&&t.replace?{}:this.getConfig(rn);return a[rn]=h.extend({},r,e),this.setMpConfig(tn,a),this.fetchFlags()};z.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Re.error("Feature Flags not enabled"),!!this.flags};z.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),a=Zm();Re.log("Fetching flags for distinct ID: "+e);var r=h.extend({distinct_id:e,device_id:t},this.getConfig(rn)),i=new URLSearchParams;i.set("context",JSON.stringify(r)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",De.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(A,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:a}}).then((function(n){return this.markFetchComplete(),n.json().then((function(s){var c=s.flags;if(!c)throw new Error("No flags in API response");var u=new Map;h.each(c,function(l,d){u.set(d,{key:l.variant_key,value:l.variant_value,experiment_id:l.experiment_id,is_experiment_active:l.is_experiment_active,is_qa_tester:l.is_qa_tester})}),this.flags=u,this._traceparent=a}).bind(this)).catch((function(s){this.markFetchComplete(),Re.error(s)}).bind(this))}).bind(this)).catch((function(n){this.markFetchComplete(),Re.error(n)}).bind(this)),this.fetchPromise};z.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){Re.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null};z.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(a){return Re.error(a),t}):new Promise(function(a){Re.critical("Feature Flags not initialized"),a(t)})};z.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return Re.log("Flags not loaded yet"),t;var a=this.flags.get(e);return a?(this.trackFeatureCheck(e,a),a):(Re.log('No flag found: "'+e+'"'),t)};z.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(a){return a.value}).catch(function(a){return Re.error(a),t})};z.prototype.getFeatureData=function(e,t){return Re.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)};z.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value};z.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(a){return Re.error(a),t})};z.prototype.isEnabledSync=function(e,t){t=t||!1;var a=this.getVariantValueSync(e,t);return a!==!0&&a!==!1&&(Re.error('Feature flag "'+e+'" value: '+a+" is not a boolean; returning fallback value: "+t),a=t),a};z.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var a={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};t.experiment_id!=="undefined"&&(a.$experiment_id=t.experiment_id),t.is_experiment_active!=="undefined"&&(a.$is_experiment_active=t.is_experiment_active),t.is_qa_tester!=="undefined"&&(a.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",a)}};z.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise<"u"&&typeof Map<"u"&&typeof Set<"u"};dl(z);z.prototype.are_flags_ready=z.prototype.areFlagsReady;z.prototype.get_variant=z.prototype.getVariant;z.prototype.get_variant_sync=z.prototype.getVariantSync;z.prototype.get_variant_value=z.prototype.getVariantValue;z.prototype.get_variant_value_sync=z.prototype.getVariantValueSync;z.prototype.is_enabled=z.prototype.isEnabled;z.prototype.is_enabled_sync=z.prototype.isEnabledSync;z.prototype.update_context=z.prototype.updateContext;z.prototype.get_feature_data=z.prototype.getFeatureData;var rt=function(){};rt.prototype.create_properties=function(){};rt.prototype.event_handler=function(){};rt.prototype.after_track_handler=function(){};rt.prototype.init=function(e){return this.mp=e,this};rt.prototype.track=function(e,t,a,r){var i=this,o=h.dom_query(e);if(o.length===0){V.error("The DOM query ("+e+") returned 0 elements");return}return h.each(o,function(n){h.register_event(n,this.override_event,function(s){var c={},u=i.create_properties(a,this),l=i.mp.get_config("track_links_timeout");i.event_handler(s,this,c),window.setTimeout(i.track_callback(r,u,c,!0),l),i.mp.track(t,u,i.track_callback(r,u,c))})},this),!0};rt.prototype.track_callback=function(e,t,a,r){r=r||!1;var i=this;return function(){a.callback_fired||(a.callback_fired=!0,!(e&&e(r,t)===!1)&&i.after_track_handler(t,a,r))}};rt.prototype.create_properties=function(e,t){var a;return typeof e=="function"?a=e(t):a=h.extend({},e),a};var or=function(){this.override_event="click"};h.inherit(or,rt);or.prototype.create_properties=function(e,t){var a=or.superclass.create_properties.apply(this,arguments);return t.href&&(a.url=t.href),a};or.prototype.event_handler=function(e,t,a){a.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",a.href=t.href,a.new_tab||e.preventDefault()};or.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var kn=function(){this.override_event="submit"};h.inherit(kn,rt);kn.prototype.event_handler=function(e,t,a){a.element=t,e.preventDefault()};kn.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var lt="$set",sr="$set_once",Ne="$unset",Ot="$add",We="$append",xt="$union",Ye="$remove",Zg="$delete",ql={set_action:function(e,t){var a={},r={};return h.isObject(e)?h.each(e,function(i,o){this._is_reserved_property(o)||(r[o]=i)},this):r[e]=t,a[lt]=r,a},unset_action:function(e){var t={},a=[];return h.isArray(e)||(e=[e]),h.each(e,function(r){this._is_reserved_property(r)||a.push(r)},this),t[Ne]=a,t},set_once_action:function(e,t){var a={},r={};return h.isObject(e)?h.each(e,function(i,o){this._is_reserved_property(o)||(r[o]=i)},this):r[e]=t,a[sr]=r,a},union_action:function(e,t){var a={},r={};return h.isObject(e)?h.each(e,function(i,o){this._is_reserved_property(o)||(r[o]=h.isArray(i)?i:[i])},this):r[e]=h.isArray(t)?t:[t],a[xt]=r,a},append_action:function(e,t){var a={},r={};return h.isObject(e)?h.each(e,function(i,o){this._is_reserved_property(o)||(r[o]=i)},this):r[e]=t,a[We]=r,a},remove_action:function(e,t){var a={},r={};return h.isObject(e)?h.each(e,function(i,o){this._is_reserved_property(o)||(r[o]=i)},this):r[e]=t,a[Ye]=r,a},delete_action:function(){var e={};return e[Zg]="",e}},ne=function(){};h.extend(ne.prototype,ql);ne.prototype._init=function(e,t,a){this._mixpanel=e,this._group_key=t,this._group_id=a};ne.prototype.set=cr(function(e,t,a){var r=this.set_action(e,t);return h.isObject(e)&&(a=t),this._send_request(r,a)});ne.prototype.set_once=cr(function(e,t,a){var r=this.set_once_action(e,t);return h.isObject(e)&&(a=t),this._send_request(r,a)});ne.prototype.unset=cr(function(e,t){var a=this.unset_action(e);return this._send_request(a,t)});ne.prototype.union=cr(function(e,t,a){h.isObject(e)&&(a=t);var r=this.union_action(e,t);return this._send_request(r,a)});ne.prototype.delete=cr(function(e){var t=this.delete_action();return this._send_request(t,e)});ne.prototype.remove=cr(function(e,t,a){var r=this.remove_action(e,t);return this._send_request(r,a)});ne.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var a=h.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:a,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)};ne.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};ne.prototype._get_config=function(e){return this._mixpanel.get_config(e)};ne.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};ne.prototype.remove=ne.prototype.remove;ne.prototype.set=ne.prototype.set;ne.prototype.set_once=ne.prototype.set_once;ne.prototype.union=ne.prototype.union;ne.prototype.unset=ne.prototype.unset;ne.prototype.toString=ne.prototype.toString;var F=function(){};h.extend(F.prototype,ql);F.prototype._init=function(e){this._mixpanel=e};F.prototype.set=vt(function(e,t,a){var r=this.set_action(e,t);return h.isObject(e)&&(a=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[lt]=h.extend({},h.info.people_properties(),r[lt]),this._send_request(r,a)});F.prototype.set_once=vt(function(e,t,a){var r=this.set_once_action(e,t);return h.isObject(e)&&(a=t),this._send_request(r,a)});F.prototype.unset=vt(function(e,t){var a=this.unset_action(e);return this._send_request(a,t)});F.prototype.increment=vt(function(e,t,a){var r={},i={};return h.isObject(e)?(h.each(e,function(o,n){if(!this._is_reserved_property(n))if(isNaN(parseFloat(o))){V.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else i[n]=o},this),a=t):(h.isUndefined(t)&&(t=1),i[e]=t),r[Ot]=i,this._send_request(r,a)});F.prototype.append=vt(function(e,t,a){h.isObject(e)&&(a=t);var r=this.append_action(e,t);return this._send_request(r,a)});F.prototype.remove=vt(function(e,t,a){h.isObject(e)&&(a=t);var r=this.remove_action(e,t);return this._send_request(r,a)});F.prototype.union=vt(function(e,t,a){h.isObject(e)&&(a=t);var r=this.union_action(e,t);return this._send_request(r,a)});F.prototype.track_charge=vt(function(){V.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")});F.prototype.clear_charges=function(e){return this.set("$transactions",[],e)};F.prototype.delete_user=function(){if(!this._identify_called()){V.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)};F.prototype.toString=function(){return this._mixpanel.toString()+".people"};F.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var a=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");a&&(e.$device_id=a),r&&(e.$user_id=r),i&&(e.$had_persisted_distinct_id=i);var o=h.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),h.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),h.truncate(o,255))};F.prototype._get_config=function(e){return this._mixpanel.get_config(e)};F.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};F.prototype._enqueue=function(e){lt in e?this._mixpanel.persistence._add_to_people_queue(lt,e):sr in e?this._mixpanel.persistence._add_to_people_queue(sr,e):Ne in e?this._mixpanel.persistence._add_to_people_queue(Ne,e):Ot in e?this._mixpanel.persistence._add_to_people_queue(Ot,e):We in e?this._mixpanel.persistence._add_to_people_queue(We,e):Ye in e?this._mixpanel.persistence._add_to_people_queue(Ye,e):xt in e?this._mixpanel.persistence._add_to_people_queue(xt,e):V.error("Invalid call to _enqueue():",e)};F.prototype._flush_one_queue=function(e,t,a,r){var i=this,o=h.extend({},this._mixpanel.persistence.load_queue(e)),n=o;!h.isUndefined(o)&&h.isObject(o)&&!h.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),r&&(n=r(o)),t.call(i,n,function(s,c){s===0&&i._mixpanel.persistence._add_to_people_queue(e,o),h.isUndefined(a)||a(s,c)}))};F.prototype._flush=function(e,t,a,r,i,o,n){var s=this;this._flush_one_queue(lt,this.set,e),this._flush_one_queue(sr,this.set_once,r),this._flush_one_queue(Ne,this.unset,o,function(m){return h.keys(m)}),this._flush_one_queue(Ot,this.increment,t),this._flush_one_queue(xt,this.union,i);var c=this._mixpanel.persistence.load_queue(We);if(!h.isUndefined(c)&&h.isArray(c)&&c.length)for(var u,l=function(m,v){m===0&&s._mixpanel.persistence._add_to_people_queue(We,u),h.isUndefined(a)||a(m,v)},d=c.length-1;d>=0;d--)c=this._mixpanel.persistence.load_queue(We),u=c.pop(),s._mixpanel.persistence.save(),h.isEmptyObject(u)||s.append(u,l);var f=this._mixpanel.persistence.load_queue(Ye);if(!h.isUndefined(f)&&h.isArray(f)&&f.length)for(var p,_=function(m,v){m===0&&s._mixpanel.persistence._add_to_people_queue(Ye,p),h.isUndefined(n)||n(m,v)},g=f.length-1;g>=0;g--)f=this._mixpanel.persistence.load_queue(Ye),p=f.pop(),s._mixpanel.persistence.save(),h.isEmptyObject(p)||s.remove(p,_)};F.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"};F.prototype.set=F.prototype.set;F.prototype.set_once=F.prototype.set_once;F.prototype.unset=F.prototype.unset;F.prototype.increment=F.prototype.increment;F.prototype.append=F.prototype.append;F.prototype.remove=F.prototype.remove;F.prototype.union=F.prototype.union;F.prototype.track_charge=F.prototype.track_charge;F.prototype.clear_charges=F.prototype.clear_charges;F.prototype.delete_user=F.prototype.delete_user;F.prototype.toString=F.prototype.toString;var Ao="__mps",To="__mpso",Ro="__mpus",Po="__mpa",Io="__mpap",Eo="__mpr",Oo="__mpu",Wl="$people_distinct_id",nn="__alias",Gr="__timers",Yg=[Ao,To,Ro,Po,Io,Eo,Oo,Wl,nn,Gr],U=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&&t!=="localStorage"&&(V.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&&h.localStorage.is_supported()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};U.prototype.properties=function(){var e={};return this.load(),h.each(this.props,function(t,a){h.include(Yg,a)||(e[a]=t)}),e};U.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=h.extend({},e))}};U.prototype.upgrade=function(){var e,t;this.storage===h.localStorage?(e=h.cookie.parse(this.name),h.cookie.remove(this.name),h.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===h.cookie&&(t=h.localStorage.parse(this.name),h.localStorage.remove(this.name),t&&this.register_once(t))};U.prototype.save=function(){this.disabled||this.storage.set(this.name,ar(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};U.prototype.load_prop=function(e){return this.load(),this.props[e]};U.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};U.prototype.clear=function(){this.remove(),this.props={}};U.prototype.register_once=function(e,t,a){return h.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof a>"u"?this.default_expiry:a,this.load(),h.each(e,function(r,i){(!this.props.hasOwnProperty(i)||this.props[i]===t)&&(this.props[i]=r)},this),this.save(),!0):!1};U.prototype.register=function(e,t){return h.isObject(e)?(this.expire_days=typeof t>"u"?this.default_expiry:t,this.load(),h.extend(this.props,e),this.save(),!0):!1};U.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())};U.prototype.update_search_keyword=function(e){this.register(h.info.searchInfo(e))};U.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:h.info.referringDomain(e)||"$direct"},"")};U.prototype.get_referrer_info=function(){return h.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};U.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)};U.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()};U.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())};U.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())};U.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())};U.prototype.get_cross_subdomain=function(){return this.cross_subdomain};U.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())};U.prototype._add_to_people_queue=function(e,t){var a=this._get_queue_key(e),r=t[e],i=this._get_or_create_queue(lt),o=this._get_or_create_queue(sr),n=this._get_or_create_queue(Ne),s=this._get_or_create_queue(Ot),c=this._get_or_create_queue(xt),u=this._get_or_create_queue(Ye,[]),l=this._get_or_create_queue(We,[]);a===Ao?(h.extend(i,r),this._pop_from_people_queue(Ot,r),this._pop_from_people_queue(xt,r),this._pop_from_people_queue(Ne,r)):a===To?(h.each(r,function(d,f){f in o||(o[f]=d)}),this._pop_from_people_queue(Ne,r)):a===Ro?h.each(r,function(d){h.each([i,o,s,c],function(f){d in f&&delete f[d]}),h.each(l,function(f){d in f&&delete f[d]}),n[d]=!0}):a===Po?(h.each(r,function(d,f){f in i?i[f]+=d:(f in s||(s[f]=0),s[f]+=d)},this),this._pop_from_people_queue(Ne,r)):a===Oo?(h.each(r,function(d,f){h.isArray(d)&&(f in c||(c[f]=[]),h.each(d,function(p){h.include(c[f],p)||c[f].push(p)}))}),this._pop_from_people_queue(Ne,r)):a===Eo?(u.push(r),this._pop_from_people_queue(We,r)):a===Io&&(l.push(r),this._pop_from_people_queue(Ne,r)),V.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),V.log(t),this.save()};U.prototype._pop_from_people_queue=function(e,t){var a=this.props[this._get_queue_key(e)];h.isUndefined(a)||h.each(t,function(r,i){e===We||e===Ye?h.each(a,function(o){o[i]===r&&delete o[i]}):delete a[i]},this)};U.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))};U.prototype._get_queue_key=function(e){if(e===lt)return Ao;if(e===sr)return To;if(e===Ne)return Ro;if(e===Ot)return Po;if(e===We)return Io;if(e===Ye)return Eo;if(e===xt)return Oo;V.error("Invalid queue:",e)};U.prototype._get_or_create_queue=function(e,t){var a=this._get_queue_key(e);return t=h.isUndefined(t)?{}:t,this.props[a]||(this.props[a]=t)};U.prototype.set_event_timer=function(e,t){var a=this.load_prop(Gr)||{};a[e]=t,this.props[Gr]=a,this.save()};U.prototype.remove_event_timer=function(e){var t=this.load_prop(Gr)||{},a=t[e];return h.isUndefined(a)||(delete this.props[Gr][e],this.save()),a};var an,Gl=function(e,t){throw new Error(e+" not available in this build.")},be,qa=0,Kg=1,Me="mixpanel",jl="base64",Xg="json",xo="$device:",Kt=A.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Hl=!Kt&&ze.indexOf("MSIE")===-1&&ze.indexOf("Mozilla")===-1,on=null;Ze.sendBeacon&&(on=function(){return Ze.sendBeacon.apply(Ze,arguments)});var Jl={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},hc={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Jl,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:jl,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:st,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:st,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:1800*1e3,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Ar,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Zl=!1,k=function(){},Wa=function(e,t,a){var r,i=a===Me?be:be[a];if(i&&an===qa)r=i;else{if(i&&!h.isArray(i)){V.error("You have already initialized "+a);return}r=new k}if(r._cached_groups={},r._init(e,t,a),r.people=new F,r.people._init(r),!r.get_config("skip_first_touch_marketing")){var o=h.info.campaignParams(null),n={},s=!1;h.each(o,function(u,l){n["initial_"+l]=u,u&&(s=!0)}),s&&r.people.set_once(n)}De.DEBUG=De.DEBUG||r.get_config("debug");var c=an===qa?"module":"snippet";return A.dispatchEvent(new A.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:r,source:c,token:e,name:a,info:h.info}})),!h.isUndefined(i)&&h.isArray(i)&&(r._execute_array.call(r.people,i.people),r._execute_array(i)),r};k.prototype.init=function(e,t,a){if(h.isUndefined(a)){this.report_error("You must name your new library: init(token, config, name)");return}if(a===Me){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var r=Wa(e,t,a);return be[a]=r,r._loaded(),r};k.prototype._init=function(e,t,a){t=t||{},this.__loaded=!0,this.config={};var r={};if(!("api_payload_format"in t)){var i=t.api_host||hc.api_host;i.match(/\.mixpanel\.com/)&&(r.api_payload_format=Xg)}if(this.hooks={},this.set_config(h.extend({},hc,r,t,{name:a,token:e,callback_fn:(a===Me?a:Me+"."+a)+"._jsc"})),this._jsc=st,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!h.localStorage.is_supported(!0)||!Kt)this._batch_requests=!1,V.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(s){V.log("Clearing batch queue "+s.queue_key),h.localStorage.remove(s.queue_key)});else if(this.init_batchers(),on&&A.addEventListener){var o=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);A.addEventListener("pagehide",function(s){s.persisted&&o()}),A.addEventListener("visibilitychange",function(){N.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new U(this.config),this.unpersisted_superprops={},this._gdpr_init();var n=h.UUID();this.get_distinct_id()||this.register_once({distinct_id:xo+n,$device_id:n},""),this.flags=new z({getFullApiRoute:h.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:h.bind(this.get_config,this),setConfigFunc:h.bind(this.set_config,this),getPropertyFunc:h.bind(this.get_property,this),trackingFunc:h.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new fe(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()};k.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))V.log("Tab ID initialization skipped due to disable_persistence config");else if(h.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,a="mp_gen_new_tab_id_"+e;(h.sessionStorage.get(a)||!h.sessionStorage.get(t))&&h.sessionStorage.set(t,"$tab-"+h.UUID()),h.sessionStorage.set(a,"1"),this.tab_id=h.sessionStorage.get(t),A.addEventListener("beforeunload",function(){h.sessionStorage.remove(a)})}catch(r){this.report_error("Error initializing tab id",r)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")};k.prototype.get_tab_id=function(){return this.tab_id||null};k.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return V.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new Fe(vo),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(a){for(var r=0;r<a.length;r++)if(ko(a[r])||a[r].tabId===t)return!0;return!1}).catch(h.bind(function(a){this.report_error("Error checking recording registry",a)},this))};k.prototype._check_and_start_session_recording=gt(function(e){if(!A.MutationObserver){V.critical("Browser does not support MutationObserver; skipping session recording");return}var t=h.bind(function(r){var i=h.bind(function(){this._recorder=this._recorder||new A.__mp_recorder(this),this._recorder.resumeRecording(r)},this);h.isUndefined(A.__mp_recorder)?Gl(this.get_config("recorder_src"),i):i()},this),a=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");e||a?t(!0):this._should_load_recorder().then(function(r){r&&t(!1)})});k.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)};k.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()};k.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()};k.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()};k.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")};k.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e};k.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();if(t){var a=h.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")});e="https://mixpanel.com/projects/replay-redirect?"+a}return e};k.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null};k.prototype.__get_recorder=function(){return this._recorder};k.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=h.info.campaignParams(null);h.each(e,(function(t,a){this.unregister(a)}).bind(this))}};k.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(N.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(h.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(N.referrer)};k.prototype._dom_loaded=function(){h.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||h.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue};k.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Zl)return this.__dom_loaded_queue.push([e,t]),!1;var a=new e().init(this);return a.track.apply(a,t)};k.prototype._prepare_callback=function(e,t){if(h.isUndefined(e))return null;if(Kt){var a=function(n){e(n,t)};return a}else{var r=this._jsc,i=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(n){delete r[i],e(n,t)},o}};k.prototype._send_request=function(e,t,a,r){var i=!0;if(Hl)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},n=null;!r&&(h.isFunction(a)||typeof a=="string")&&(r=a,a=null),a=h.extend(o,a||{}),Kt||(a.method="GET");var s=a.method==="POST",c=on&&s&&a.transport.toLowerCase()==="sendbeacon",u=a.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),Kt||(r?t.callback=r:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),s&&(n="data="+encodeURIComponent(t.data),delete t.data),h.extend(t,this.get_config("api_extra_query_params")),e+="?"+h.HTTPBuildQuery(t);var l=this;if("img"in t){var d=N.createElement("img");d.src=e,N.body.appendChild(d)}else if(c){try{i=on(e,n)}catch(v){l.report_error(v),i=!1}try{r&&r(i?1:0)}catch(v){l.report_error(v)}}else if(Kt)try{var f=new XMLHttpRequest;f.open(a.method,e,!0);var p=this.get_config("xhr_headers");if(s&&(p["Content-Type"]="application/x-www-form-urlencoded"),h.each(p,function(v,y){f.setRequestHeader(y,v)}),a.timeout_ms&&typeof f.timeout<"u"){f.timeout=a.timeout_ms;var _=new Date().getTime()}f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState===4)if(f.status===200){if(r)if(u){var v;try{v=h.JSONDecode(f.responseText)}catch(C){if(l.report_error(C),a.ignore_json_errors)v=f.responseText;else return}r(v)}else r(Number(f.responseText))}else{var y;if(f.timeout&&!f.status&&new Date().getTime()-_>=f.timeout?y="timeout":y="Bad HTTP status: "+f.status+" "+f.statusText,l.report_error(y),r)if(u){var b=f.responseHeaders||{};r({status:0,httpStatusCode:f.status,error:y,retryAfter:b["Retry-After"]})}else r(0)}},f.send(n)}catch(v){l.report_error(v),i=!1}else{var g=N.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=N.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i};k.prototype._execute_array=function(e){var t,a=[],r=[],i=[];h.each(e,function(n){n&&(t=n[0],h.isArray(t)?i.push(n):typeof n=="function"?n.call(this):h.isArray(n)&&t==="alias"?a.push(n):h.isArray(n)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?i.push(n):r.push(n))},this);var o=function(n,s){h.each(n,function(c){if(h.isArray(c[0])){var u=s;h.each(c,function(l){u=u[l[0]].apply(u,l.slice(1))})}else this[c[0]].apply(this,c.slice(1))},s)};o(a,this),o(r,this),o(i,this)};k.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};k.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs};k.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=h.bind(function(a){return new Be(a.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(r,i,o){var n=this.get_config("api_routes");this._send_request(this.get_api_host(a.api_name)+"/"+n[a.api_name],this._encode_data_for_request(r),i,this._prepare_callback(o,r))},this),beforeSendHook:h.bind(function(r){var i=this._run_hook("before_send_"+a.type,r);return i?i[0]:null},this),stopAllBatchingFunc:h.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()};k.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,h.each(this.request_batchers,function(e){e.start()}))};k.prototype.stop_batch_senders=function(){this._batch_requests=!1,h.each(this.request_batchers,function(e){e.stop(),e.clear()})};k.prototype.push=function(e){this._execute_array([e])};k.prototype.disable=function(e){typeof e>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)};k.prototype._encode_data_for_request=function(e){var t=ar(e);return this.get_config("api_payload_format")===jl&&(t=h.base64Encode(t)),{data:t}};k.prototype._track_or_batch=function(e,t){var a=h.truncate(e.data,255),r=e.endpoint,i=e.batcher,o=e.should_send_immediately,n=e.send_request_options||{};t=t||st;var s=!0,c=h.bind(function(){return n.skip_hooks||(a=this._run_hook("before_send_"+e.type,a),a&&(a=a[0])),a?(V.log("MIXPANEL REQUEST:"),V.log(a),this._send_request(r,this._encode_data_for_request(a),n,this._prepare_callback(t,a))):null},this);return this._batch_requests&&!o?i.enqueue(a).then(function(u){u?t(1,a):c()}):s=c(),s&&a};k.prototype.track=gt(function(e,t,a,r){var i;if(!(a&&a.skip_hooks)){if(i=this._run_hook("before_track",e,t),i===null)return;e=i[0],t=i[1]}!r&&typeof a=="function"&&(r=a,a=null),a=a||{};var o=a.transport;o&&(a.transport=o);var n=a.send_immediately;if(typeof r!="function"&&(r=st),h.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){r(0);return}t=h.extend({},t),t.token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!h.isUndefined(s)){var c=new Date().getTime()-s;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?h.info.marketingParams():{};t=h.extend({},h.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");h.isArray(l)?h.each(l,function(f){delete t[f]}):this.report_error("Invalid value for property_blacklist config: "+l);var d={event:e,properties:t};return i=this._track_or_batch({type:"events",data:d,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:n,send_request_options:a},r),i});k.prototype.set_group=gt(function(e,t,a){h.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,a)});k.prototype.add_group=gt(function(e,t,a){var r=this.get_property(e),i={};return r===void 0?(i[e]=[t],this.register(i)):r.indexOf(t)===-1&&(r.push(t),i[e]=r,this.register(i)),this.people.union(e,t,a)});k.prototype.remove_group=gt(function(e,t,a){var r=this.get_property(e);if(r!==void 0){var i=r.indexOf(t);i>-1&&(r.splice(i,1),this.register({group_key:r})),r.length===0&&this.unregister(e)}return this.people.remove(e,t,a)});k.prototype.track_with_groups=gt(function(e,t,a,r){var i=h.extend({},t||{});return h.each(a,function(o,n){o!=null&&(i[n]=o)}),this.track(e,i,r)});k.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)};k.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]};k.prototype.get_group=function(e,t){var a=this._create_map_key(e,t),r=this._cached_groups[a];return(r===void 0||r._group_key!==e||r._group_id!==t)&&(r=new ne,r._init(this,e,t),this._cached_groups[a]=r),r};k.prototype.track_pageview=gt(function(e,t){typeof e!="object"&&(e={}),t=t||{};var a=t.event_name||"$mp_web_page_view",r=h.extend(h.info.mpPageViewProperties(),h.info.campaignParams(),h.info.clickParams()),i=h.extend({},r,e);return this.track(a,i)});k.prototype.track_links=function(){return this._track_dom.call(this,or,arguments)};k.prototype.track_forms=function(){return this._track_dom.call(this,kn,arguments)};k.prototype.time_event=function(e){if(h.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var Qg={persistent:!0},Mo=function(e){var t;return h.isObject(e)?t=e:h.isUndefined(e)?t={}:t={days:e},h.extend({},Qg,t)};k.prototype.register=function(e,t){var a=this._run_hook("before_register",e,t);if(a!==null){e=a[0],t=a[1];var r=Mo(t);r.persistent?this.persistence.register(e,r.days):h.extend(this.unpersisted_superprops,e)}};k.prototype.register_once=function(e,t,a){var r=this._run_hook("before_register_once",e,t,a);if(r!==null){e=r[0],t=r[1],a=r[2];var i=Mo(a);i.persistent?this.persistence.register_once(e,t,i.days):(typeof t>"u"&&(t="None"),h.each(e,function(o,n){(!this.unpersisted_superprops.hasOwnProperty(n)||this.unpersisted_superprops[n]===t)&&(this.unpersisted_superprops[n]=o)},this))}};k.prototype.unregister=function(e,t){var a=this._run_hook("before_unregister",e,t);a!==null&&(e=a[0],t=a[1],t=Mo(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])};k.prototype._register_single=function(e,t){var a={};a[e]=t,this.register(a)};k.prototype.identify=function(e,t,a,r,i,o,n,s){var c=this._run_hook("before_identify",e);if(c===null)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if(typeof e=="string"&&e.indexOf(xo)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(nn)&&(this.unregister(nn),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,a,r,i,o,n,s),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()};k.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=h.UUID();this.register_once({distinct_id:xo+e,$device_id:e},""),this._check_and_start_session_recording()};k.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};k.prototype.alias=function(e,t){if(e===this.get_property(Wl))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var a=this;return h.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(nn,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){a.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)};k.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)};k.prototype.set_config=function(e){if(h.isObject(e)){h.extend(this.config,e);var t=e.batch_size;t&&h.each(this.request_batchers,function(a){a.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),De.DEBUG=De.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),h.isObject(e.hooks)&&(this.hooks={},h.each(e.hooks,function(a,r){if(h.isFunction(a))this.hooks[r]=[a];else if(h.isArray(a)){this.hooks[r]=[];for(var i=0;i<a.length;i++)h.isFunction(a[i])||V.critical("Invalid hook added. Hook is not a function"),this.hooks[r].push(a[i])}else V.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}};k.prototype.get_config=function(e){return this.config[e]};k.prototype._run_hook=function(e){var t=at.call(arguments,1);return h.each(this.hooks[e],function(a){if(t===null)return null;var r=a.apply(this,t);typeof r>"u"?(this.report_error(e+" hook did not return a valid value"),t=null):(h.isArray(r)||(r=[r]),t.splice.apply(t,[0,r.length].concat(r)))},this),t};k.prototype.get_property=function(e){return this.persistence.load_prop([e])};k.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")};k.prototype.toString=function(){var e=this.get_config("name");return e!==Me&&(e=Me+"."+e),e};k.prototype._event_is_disabled=function(e){return h.isBlockedUA(ze)||this._flags.disable_all_events||h.include(this.__disabled_events,e)};k.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&h.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||h.cookie.get("mp_optout"))&&(h.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};k.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()};k.prototype._gdpr_call_func=function(e,t){return t=h.extend({track:h.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),h.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};k.prototype.opt_in_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(ng,e),this._gdpr_update_persistence(e)};k.prototype.opt_out_tracking=function(e){e=h.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(ag,e),this._gdpr_update_persistence(e)};k.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(og,e)};k.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(_l,e)};k.prototype.clear_opt_in_out_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(sg,e),this._gdpr_update_persistence(e)};k.prototype.report_error=function(e,t){V.error.apply(V.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(a){V.error(a)}};k.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)};k.prototype.remove_hook=function(e,t){var a;this.hooks[e]&&(a=this.hooks[e].indexOf(t),a!==-1?this.hooks[e].splice(a,1):V.log("remove_hook failed. Matching hook was not found"))};k.prototype.init=k.prototype.init;k.prototype.reset=k.prototype.reset;k.prototype.disable=k.prototype.disable;k.prototype.time_event=k.prototype.time_event;k.prototype.track=k.prototype.track;k.prototype.track_links=k.prototype.track_links;k.prototype.track_forms=k.prototype.track_forms;k.prototype.track_pageview=k.prototype.track_pageview;k.prototype.register=k.prototype.register;k.prototype.register_once=k.prototype.register_once;k.prototype.unregister=k.prototype.unregister;k.prototype.identify=k.prototype.identify;k.prototype.alias=k.prototype.alias;k.prototype.name_tag=k.prototype.name_tag;k.prototype.set_config=k.prototype.set_config;k.prototype.get_config=k.prototype.get_config;k.prototype.get_api_host=k.prototype.get_api_host;k.prototype.get_property=k.prototype.get_property;k.prototype.get_distinct_id=k.prototype.get_distinct_id;k.prototype.toString=k.prototype.toString;k.prototype.opt_out_tracking=k.prototype.opt_out_tracking;k.prototype.opt_in_tracking=k.prototype.opt_in_tracking;k.prototype.has_opted_out_tracking=k.prototype.has_opted_out_tracking;k.prototype.has_opted_in_tracking=k.prototype.has_opted_in_tracking;k.prototype.clear_opt_in_out_tracking=k.prototype.clear_opt_in_out_tracking;k.prototype.get_group=k.prototype.get_group;k.prototype.set_group=k.prototype.set_group;k.prototype.add_group=k.prototype.add_group;k.prototype.remove_group=k.prototype.remove_group;k.prototype.add_hook=k.prototype.add_hook;k.prototype.remove_hook=k.prototype.remove_hook;k.prototype.track_with_groups=k.prototype.track_with_groups;k.prototype.start_batch_senders=k.prototype.start_batch_senders;k.prototype.stop_batch_senders=k.prototype.stop_batch_senders;k.prototype.start_session_recording=k.prototype.start_session_recording;k.prototype.stop_session_recording=k.prototype.stop_session_recording;k.prototype.pause_session_recording=k.prototype.pause_session_recording;k.prototype.resume_session_recording=k.prototype.resume_session_recording;k.prototype.get_session_recording_properties=k.prototype.get_session_recording_properties;k.prototype.get_session_replay_url=k.prototype.get_session_replay_url;k.prototype.get_tab_id=k.prototype.get_tab_id;k.prototype.DEFAULT_API_ROUTES=Jl;k.prototype.__get_recorder=k.prototype.__get_recorder;U.prototype.properties=U.prototype.properties;U.prototype.update_search_keyword=U.prototype.update_search_keyword;U.prototype.update_referrer_info=U.prototype.update_referrer_info;U.prototype.get_cross_subdomain=U.prototype.get_cross_subdomain;U.prototype.clear=U.prototype.clear;var Zt={},ev=function(){h.each(Zt,function(e,t){t!==Me&&(be[t]=e)}),be._=h},tv=function(){be.init=function(e,t,a){if(a)return be[a]||(be[a]=Zt[a]=Wa(e,t,a),be[a]._loaded()),be[a];var r=be;Zt[Me]?r=Zt[Me]:e&&(r=Wa(e,t,Me),r._loaded(),Zt[Me]=r),be=r,an===Kg&&(A[Me]=be),ev()}},rv=function(){function e(){e.done||(e.done=!0,Zl=!0,Hl=!1,h.each(Zt,function(r){r._dom_loaded()}))}function t(){try{N.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(N.addEventListener)N.readyState==="complete"?e():N.addEventListener("DOMContentLoaded",e,!1);else if(N.attachEvent){N.attachEvent("onreadystatechange",e);var a=!1;try{a=A.frameElement===null}catch{}N.documentElement.doScroll&&a&&t()}h.register_event(A,"load",e,!0)};function iv(e){return Gl=e,an=qa,be=new k,tv(),be.init(),rv(),be}function nv(e,t){t()}var cv=iv(nv);export{cv as m,sv as r};