@zeniai/web-cockpit-ui 2.1.71-qa → 2.1.72-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{CreditAgentRoutes-B0FxQ7Sl.js → CreditAgentRoutes-C6ZhFI5W.js} +1 -1
- package/dist/assets/{Preview-pD0lCc-P.js → Preview-Bbq90y5B.js} +1 -1
- package/dist/assets/{ScreenRoutes-xf1_Uz_-.js → ScreenRoutes-XvTwJDl-.js} +3 -3
- package/dist/assets/{SignInScreen-BCw-6y2i.js → SignInScreen-CeZa_CBf.js} +1 -1
- package/dist/assets/analytics-B-TgwWRZ.js +68 -0
- package/dist/assets/{analyticsHelper-CYvsDLZc.js → analyticsHelper-kf0E7Wdj.js} +1 -1
- package/dist/assets/{core-BTVyrebi.js → core-BYFeH-pi.js} +1 -1
- package/dist/assets/{dash.all.min-BTaIgV0-.js → dash.all.min-DrPV59rg.js} +1 -1
- package/dist/assets/{empty-Cwww3ZgQ.js → empty-BSBwCdqT.js} +1 -1
- package/dist/assets/{empty-CDYVnXSY.js → empty-Ez3_iJJZ.js} +1 -1
- package/dist/assets/{epic-h_Uhp_G8.js → epic-Cg68ITaF.js} +1 -1
- package/dist/assets/{index-D3PjrMrv.js → index-9XOX4quz.js} +1 -1
- package/dist/assets/{index-CFfJAfxS.js → index-BFRBin7h.js} +1 -1
- package/dist/assets/{index-BpbjL4Kf.js → index-CZEjApUu.js} +1 -1
- package/dist/assets/{index-Bv3cxDnH.js → index-Cz0TFyW8.js} +1 -1
- package/dist/assets/{index-BM9tc6KW.js → index-D4Dw7bVy.js} +1 -1
- package/dist/assets/{index-F3VWzOrT.js → index-DK_LO8aG.js} +2 -2
- package/dist/assets/{index-C2GsD4gS.js → index-VJ5_uK_6.js} +7 -7
- package/dist/assets/{lexical-DAsz72BH.js → lexical-BKg5vD-z.js} +1 -1
- package/dist/assets/{liveblocks-CKEBIiuO.js → liveblocks-DZfFxcEe.js} +1 -1
- package/dist/assets/{lottie-v31sTxKp.js → lottie-DLtDE1PD.js} +1 -1
- package/dist/assets/{mui-CYf554AI.js → mui-BFyVD7K4.js} +1 -1
- package/dist/assets/{react-C1msI4IR.js → react-5cgvaBT2.js} +1 -1
- package/dist/assets/{react-Kgcz9L37.js → react-Bf2osclT.js} +1 -1
- package/dist/assets/{react-BdUTIRsp.js → react-BvLDh4Ay.js} +1 -1
- package/dist/assets/{react-DV-V8WAT.js → react-CBp5Fp0A.js} +1 -1
- package/dist/assets/{react-BHuRekNC.js → react-CiBnXcsL.js} +1 -1
- package/dist/assets/{react-yuv00j_3.js → react-D6AVNxr6.js} +1 -1
- package/dist/assets/{react-Bi4MtwrB.js → react-DaC0ohXB.js} +2 -2
- package/dist/assets/{react-CO5ggfCk.js → react-DrrtiV6Y.js} +1 -1
- package/dist/assets/{recharts-BzfgsY7A.js → recharts-CxYvtiJ5.js} +1 -1
- package/dist/assets/{sentry-BbiUc2dc.js → sentry-CePhLuwS.js} +1 -1
- package/dist/assets/{url-hx2S9R6T.js → url-3b7fY4in.js} +1 -1
- package/dist/assets/{url-CuSVVE16.js → url-pyLnClw3.js} +1 -1
- package/dist/assets/{utils-DHLuNXnA.js → utils-CVIiXbDS.js} +1 -1
- package/dist/assets/{zeni-epic-state-D0UxpWYa.js → zeni-epic-state-jrVHY64r.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/analytics-DtQGHLur.js +0 -68
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import"./sentry-BbiUc2dc.js";import{H as ct}from"./zeni-epic-state-D0UxpWYa.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="cd723e8b-419d-4fcf-958b-a5756cfd2627",t._sentryDebugIdIdentifier="sentry-dbid-cd723e8b-419d-4fcf-958b-a5756cfd2627")}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 t;return(function(i){i.dashboard="Dashboard",i.cashBalance="Cash Balance",i.cardBalance="Card Balance",i.cashPosition="Cash Position",i.revenues="Revenues",i.operatingExpenses="Operating Expenses",i.topExpenses="Top Expenses",i.burnRate="Burn Rate",i.cashInCashOut="Cash In, Cash Out",i.howItWorks="How It Works",i.insights="Insights",i.brexAd="Brex Ad",i.companyPassport="Company Passport",i.addAddress="Add Address",i.editAddress="Edit Address",i.saveAddressClicked="Save Address Clicked",i.reports="Reports",i.profitAndLoss="Profit & Loss",i.balanceSheet="Balance Sheet",i.cashFlow="Cash Flow",i.profitAndLossWithForecast="Profit & Loss with Forecast",i.balanceSheetWithForecast="Balance Sheet with Forecast",i.cashFlowWithForecast="Cash Flow with Forecast",i.sidePanelClicked="Side Panel Clicked",i.transactionList="Transaction List",i.transactionDetails="Transaction Details",i.transactionDetailsSave="Transaction Details Save",i.transactionTypeUpdateTriggered="Transaction Type Update Triggered",i.transactionDetailReceiptOpened="Transaction Details Receipt Opened",i.transactionDetailReceiptDeleted="Attachment Deleted",i.transactionDetailReceiptAdded="Transaction Details Receipt Added",i.compareMode="Compare Mode",i.compareFilterChange="Compare Filter Change",i.compareFilterTimeframe="Compare Filter Timeframe",i.dateRangeFilter="Date Range Filter",i.timeframeSwitch="Timeframe Switch",i.graphBar="Graph Bar",i.cardStatementCloseDateClicked="Card Statement Close Date Clicked",i.cardStatementCloseDateSaved="Card Statement Close Date Saved",i.forecast="Forecast",i.forecastSwitch="Forecast Switch",i.forecastVsActualMode="Forecast vs Actual Mode",i.members="Members",i.inviteSent="Invite Sent",i.roleChanged="Role Changed",i.removeUserAccess="Remove User Access",i.resendInvite="Resend Invite",i.companySwitch="Company Switch",i.download="Download",i.sort="Sort",i.incomeTrend="Income Trend",i.spendTrend="Spend Trend",i.search="Search",i.login="Login",i.loginButton="Login Button",i.signInClick="Sign In click",i.signInViaGoogleMicrosoft="Sign In Via Google Microsoft",i.signInViaEmail="Sign In Via Email",i.signInLinkSent="Sign In Link Sent",i.loginSuccess="Login Success",i.loginFailure="Login Fail",i.logoutButton="Logout Button",i.logoutSuccess="Logout Success",i.logoutFailure="Logout Fail",i.sessionTimeoutPopupShown="Session Timeout Popup Shown",i.sessionTimeoutClicked="Session Timeout Clicked",i.sessionTimeoutAutoLogout="Session Timeout Auto Logout",i.reportGenerated="Report Generated",i.aiCFOPage="AI CFO Page",i.aiCFOChatScreenStateChanged="AI CFO Chat Screen State Changed",i.aiCFOChatSessionChanged="AI CFO Chat Session Changed",i.aiCFOChatSubmitted="AI CFO Chat Submitted",i.aiCFOChatFeedbackGiven="AI CFO Chat Feedback Given",i.aiCFOChatResponseGenerated="AI CFO Chat Response Generated",i.aiCFOChatAnswerGenerated="AI CFO Chat Answer Generated",i.aiCFOOnboardingScreenStateChanged="AI CFO Onboarding Screen State Changed",i.onboardingLinkClicked="Onboarding Invite Link Click",i.onboardingNeedHelp="Onboarding Need Help",i.onboardingInterimNeedHelp="Onboarding Interim Page Need Help",i.onboardingLandingNeedHelp="Onboarding Landing Page Need Help",i.onboardingPage="Onboarding Page",i.onboardingInterimPage="Onboarding Interim Page",i.onboardingLandingPage="Onboarding Landing Page",i.onboardingQBOConnect="Onboarding QBO Connect Clicked",i.onboardingSaveQBOConnection="Onboarding Save QBO Connection",i.onboardingClickUpdatePaymentDetails="Onboarding Landing Page Update Payment Details",i.onboardingSkipAndSave="Onboarding skip (save details if any) and activate dashboard",i.onboardingCompanyOfficerSave="Onboarding Company Officer Save",i.onboardingCompanyDetailsSave="Onboarding Company Details Save",i.onboardingBusinessVerificationCompleted="Onboarding Business Verification Completed",i.onboardingDashboardActivation="Onboarding Dashboard Activation",i.onboardingAiFinanceTeamAcknowledged="Onboarding AI Finance Team Acknowledged",i.onboardingAiFinanceTeamViewed="Onboarding AI Finance Team Viewed",i.onboardingQBOConnectionSuccess="Onboarding QBO Connection Success",i.onboardingQBOConnectionFailed="Onboarding QBO Connection Failed",i.onboardingAddressClicked="Onboarding Address Clicked",i.onboardingDocumentUploaded="Onboarding Document Uploaded",i.onboardingPhoneVerified="Onboarding Phone Verified",i.onboardingStepSkipped="Onboarding Step Skipped",i.onboardingFlowExited="Onboarding Flow Exited",i.onboardingButtonClicked="Onboarding Button Clicked",i.onboardingConnectBank="Onboarding Connect Bank",i.onboardingConnectBankSuccess="Onboarding Connect Bank Success",i.onboardingConnectBankFailure="Onboarding Connect Bank Failure",i.onboardingConnectBankLink="Onboarding Connect Bank Link",i.onboardingConnectBankGetBalance="Onboarding Connect Bank Get Balance",i.onboardingBankConnectAbandoned="Onboarding Bank Connect Abandoned",i.onboardingNewCustomerStarted="Onboarding New Customer Started",i.onboardingNewCustomerGroupCreationCheck="Onboarding New Customer Group Creation Check",i.onboardingZeniManagedQBOConnectionSelected="Onboarding Zeni Managed QBO Connection Selected",i.onboardingCustomerManagedQBOConnectionSelected="Onboarding Customer Managed Connection QBO Selected",i.onboardingZeniManagedQBOConnectionSuccess="Onboarding Zeni Managed QBO Connection Successful",i.onboardingZeniManagedQBOConnectionUnsuccess="Onboarding Zeni Managed QBO Connection Unsuccessful",i.onboardingSendInvite="Onboarding Send Invite",i.onboardingResendInvite="Onboarding Resend Invite",i.onboardingSave="Onboarding Save",i.onboardingBillingAddress="Onboarding Billing Address Clicked",i.onboardingBillingAddressSave="Onboarding Billing Address Save",i.onboardingNext="Onboarding Next",i.onboardingBack="Onboarding Back",i.onboardingActiveStep="Onboarding Active Step",i.onboardingLinkBankAccount="Onboarding Link A Bank Account",i.onboardingLinkBankAccountSuccess="Onboarding Link A Bank Account Success",i.onboardingLinkBankAccountFailure="Onboarding Link A Bank Account Failure",i.onboardingLinkANewBankAccount="Onboarding Link A New Bank Account",i.onboardingLinkANewBankAccountSuccess="Onboarding Link A New Bank Account Success",i.onboardingLinkANewBankAccountFailure="Onboarding Link A New Bank Account Failure",i.onboardingLinkCreditCard="Onboarding Link Credit Card",i.onboardingLinkCreditCardSuccess="Onboarding Link Credit Card Success",i.onboardingLinkCreditCardFailure="Onboarding Link Credit Card Failure",i.onboardingLinkNewCard="Onboarding Link a New Credit Card",i.onboardingLinkNewCardSuccess="Onboarding Link a New Credit Card Success",i.onboardingLinkNewCardFailure="Onboarding Link a New Credit Card Failure",i.onboardingBankAccountPendingVerification="Onboarding Bank Account Pending Verification",i.onboardingBankAccountVerified="Onboarding Bank Account Verified",i.onboardingSwitchToBankAccount="Onboarding Switch To Bank Account",i.onboardingSwitchToBankAccountSuccess="Onboarding Switch To Bank Account Success",i.onboardingSwitchToBankAccountFailure="Onboarding Switch To Bank Account Failure",i.onboardingSwitchToCreditCard="Onboarding Switch To Credit Card",i.onboardingSwitchToCreditCardSuccess="Onboarding Switch To Credit Card Success",i.onboardingSwitchToCreditCardFailure="Onboarding Switch To Credit Card Failure",i.onboardingInterimCardClick="Onboarding Interim Page Card Click",i.onboardingLandingPageCardClick="Onboarding Landing Page Card Click",i.billingLinkNewBankAccount="Billing Link a New Bank Account",i.billingLinkNewBankAccountSuccess="Billing Link a New Bank Account Success",i.billingLinkNewBankAccountFailure="Billing Link a New Bank Account Failure",i.billingSwitchToCreditCard="Billing Switch To Credit Card",i.billingSwitchToCreditCardSuccess="Billing Switch To Credit Card Success",i.billingSwitchToCreditCardFailure="Billing Switch To Credit Card Failure",i.billingSwitchToBankAccount="Billing Switch To Bank Account",i.billingSwitchToBankAccountSuccess="Billing Switch To Bank Account Success",i.billingSwitchToBankAccountFailure="Billing Switch To Bank Account Failure",i.billingLinkNewCard="Billing Link a New Card",i.billingLinkNewCardSuccess="Billing Link a New Card Success",i.billingLinkNewCardFailure="Billing Link a New Card Failure",i.billPayHome="Bill Pay Home",i.billPaySetup="Bill Pay Setup",i.billPayPromoPage="Bill Pay Promo",i.billPayNeedHelp="Bill Pay Need Help",i.billPayBusinessVerification="Bill Pay Business Verification",i.billPayBusinessVerificationSave="Bill Pay Business Verification Save",i.billPayBusinessVerificationSend="Bill Pay Business Verification Send",i.billPayBusinessVerificationAddOfficer="Bill Pay Business Verification Add Officer",i.billPayConnectBank="Bill Pay Connect Bank",i.billPayConnectBankSuccess="Bill Pay Connect Bank Success",i.billPayConnectBankFailure="Bill Pay Connect Bank Failure",i.billPayConnectBankLink="Bill Pay Connect Bank Link",i.billPayConnectBankGetBalance="Bill Pay Connect Bank Get Balance",i.enableBillPay="Enable Bill Pay",i.billPayDrafts="Bill Pay Drafts",i.billPayDraftsOverdue="Bill Pay Drafts Overdue",i.billPayApprovals="Bill Pay Approvals",i.billPayApprovalsAwaitingApproval="Bill Pay Approvals Awaiting Approval",i.billPayApprovalsAwaitingMyApproval="Bill Pay Approvals Awaiting My Approval",i.billPayApprovalsOverdue="Bill Pay Approvals Overdue",i.billPayApprovalsRejected="Bill Pay Approvals Rejected",i.billPayApprovalsDeleted="Bill Pay Approvals Deleted",i.billPayScheduled="Bill Pay Scheduled",i.billPayScheduledFailed="Bill Pay Scheduled Failed",i.billPayScheduledCancelled="Bill Pay Scheduled Cancelled",i.billPayScheduledDeleted="Bill Pay Scheduled Deleted",i.billPayPaid="Bill Pay Paid",i.billPayPaidACH="Bill Pay Paid ACH",i.billPayPaidWire="Bill Pay Paid Wire",i.billPayPaidDeleted="Bill Pay Paid Deleted",i.billPayPaidOffline="Bill Pay Paid Offline",i.billPayNewBill="Bill Pay New Bill",i.billPayInvoiceUpload="Bill Pay Invoice Upload",i.billPaySkipAutofill="Bill Pay Skip Autofill",i.billPayInvoiceActionClick="Bill Pay Invoice Action Click",i.billPayBillDetails="Bill Pay Bill Details",i.billPayEditBill="Bill Pay Edit Bill",i.billPayDeleteBill="Bill Pay Delete Bill",i.billPayCancelBill="Bill Pay Cancel Bill",i.billPayCancelAndDeleteBill="Bill Pay Cancel And Delete Bill",i.billPayReviewBill="Bill Pay Review Bill",i.billPaySendForApproval="Bill Pay Send For Approval",i.billPayMagicLinkPreviewEmail="Bill Pay MagicLink Preview Email",i.billPayMagicLinkPageLoad="Bill Pay MagicLink Page Load",i.billPayMagicLinkSubmitBankAccountDetails="Bill Pay MagicLink Submit Bank Account Details",i.billPayFilterClick="Bill Pay Filter Click",i.billPayFilterChange="Bill Pay Filter Change",i.billPayDownloadClick="Bill Pay Download Click",i.billPayNewVendor="Bill Pay New Vendor",i.billPayEditVendor="Bill Pay Edit Vendor",i.billPayExpandVendor="Bill Pay Expand Vendor",i.billPayChooseNewVendor="Bill Pay Choose New Vendor",i.billPayCreateNewVendorFromDropdown="Bill Pay Create New Vendor From Dropdown",i.billPayAutoDateChange="Book Close - Auto Date Change",i.billPayPrivacyPolicy="Bill Pay Privacy Policy",i.billPayAgreement="Bill Pay Agreement",i.billPayPromoSchedule="Bill Pay Schedule Demo",i.billPayPromoVideo="Bill Pay Promo Video",i.billPayTaskCard="Bill Pay Task Card",i.billPayCard="Bill Pay Card",i.enableIntlWire="Enable International Wire",i.submitIntlWire="International Wire Submit",i.intlWirePaymentMethod="International Wire Payment Method",i.zeniAssistClick="Zeni Assist Click",i.retryClick="Retry Click",i.retryConfirmClick="Retry Confirm Click",i.refundClick="Refund Click",i.refundConfirmClick="Refund Confirm Click",i.billPayBulkSelectAll="Bill Pay Bulk Select All",i.billPayBulkDeleted="Bill Pay Bulk Deleted",i.billPayBulkSubmit="Bill Pay Bulk Submit",i.billPayBulkSelection="Bill Pay Bulk Selection",i.billPayBulkPopupConfirm="Bill Pay Bulk Popup Confirm",i.billPayMarkAsPaid="Mark As Paid",i.billPayMarkAsPaidSubmit="Mark As Paid Submit",i.lowBalanceAccountSelected="Low Balance Account Selected",i.lowBalanceAccountSentForApproval="Low Balance Account Sent for Approval",i.lowBalanceAccountApprove="Low Balance Account Approve",i.lowBalanceAccountReject="Low Balance Account Reject",i.lowBalanceAccountChange="Low Balance Account Change",i.lowBalanceAccountSchedule="Low Balance Account Schedule",i.cockpitTabClicked="Cockpit Tab Clicked",i.cockpitHealthMonitorRowClicked="Cockpit Health Monitor Row Clicked",i.cockpitHealthMonitorChurnFormClicked="Cockpit Health Monitor Churn Form Click",i.cockpitHealthMonitorNotificationAlertClicked="Cockpit Health Monitor Notification Alert Clicked",i.reimbursementHome="Reimbursement Home",i.reimbursementSetup="Reimbursement Setup",i.reimbursementPromoPage="Reimbursement Promo",i.reimbursementTaskCard="Reimbursement Task Card",i.reimbursementFilterClick="Reimbursement Filter Click",i.reimbursementFilterChange="Reimbursement Filter Change",i.reimbursementDownloadClick="Reimbursement Download Click",i.reimbursementBulkSelectAll="Reimbursement Bulk Select All",i.reimbursementBulkDeleted="Reimbursement Bulk Deleted",i.reimbursementBulkSubmit="Reimbursement Bulk Submit",i.reimbursementBulkSelection="Reimbursement Bulk Selection",i.reimbursementBulkPopupConfirm="Reimbursement Bulk Popup Confirm",i.accountsListPageViewed="Accounts List Page Viewed",i.zeniAccountsSetup="Zeni Accounts Setup",i.accountsPromoPageViewed="Accounts Promo Page Viewed",i.zeniAccountsPromoCardClick="Zeni Accounts Promo Card Click",i.zeniAccountsCashBalancePromoClicked="Zeni Accounts Cash Balance Promo Clicked",i.zeniAccountsNeedHelp="Zeni Accounts Need Help",i.zeniAccountsBusinessVerification="Zeni Accounts Business Verification",i.zeniAccountsBusinessVerificationSave="Zeni Accounts Business Verification Save",i.zeniAccountsBusinessVerificationSend="Zeni Accounts Business Verification Send",i.plgPromoActionTaken="Promo Action Taken",i.cardsPromoPage="Cards Promo Page Viewed",i.cardsPromoPageClick="Cards Promo Page Clicked",i.cardsListPage="Cards List Page Viewed",i.cardsListPageClick="Cards List Page Clicked",i.cardsIssueNewCardFormClick="Issue New Card Form Clicked",i.cardsListRowClick="Cards List Row Clicked",i.cardsDetailPage="Cards Detail Page Viewed",i.cardsDetailPageClick="Cards Detail Page Clicked",i.cardsVerifyPopUpClick="Cards Verify Pop-Up Clicked",i.cardsSetupVisited="Cards Setup Page Visited",i.cardsPromoView="Cards Promo View",i.cardsSetupCardsClick="Cards Set Up Cards Click",i.cardsEnableCardsClick="Cards Enable Cards Click",i.cardsScheduleDemoClick="Cards Schedule Demo Click",i.cardsCardListView="Cards Card List View",i.cardsCardListSearchClick="Cards Card List Search Click",i.cardsCardListMoreMenuClick="Cards Card List More Menu Click",i.cardsSettingsClick="Cards Settings Click",i.cardsCardSetupView="Cards Card Setup View",i.cardsVerifyIdentityCompanyDetailsClick="Cards Verify Identity & Company Details Click",i.cardsPaymentAccountChangeClick="Cards Payment Account Change Click",i.cardsZeniCashAccountChangeClick="Cards Zeni Cash Account Change Click",i.cardsStatementsClick="Cards Statements Click",i.cardsCreditCardStatementsView="Cards Credit Card Statements View",i.cardsDownloadClick="Cards Download Click",i.cardsNewCardClick="Cards New Card Click",i.cardsCashbackOverviewClick="Cards Cashback Overview Click",i.cardsCardListRowClick="Cards Card List Row Click",i.cardsCopyIconClick="Cards Copy Icon Click",i.cardsCardListSortClick="Cards Card List Sort Click",i.cardsCardDetailView="Cards Card Detail View",i.cardsUpdateSpendLimitInitiated="Cards Update Spend Limit Initiated",i.cardsUpdateSpendLimitClick="Cards Update Spend Limit Click",i.cardsAddToWalletClick="Cards Add to Wallet Click",i.cardsNeedHelp="Cards Need Help",i.cardsBusinessVerification="Cards Business Verification",i.cardsBusinessVerificationSave="Cards Business Verification Save",i.cardsBusinessVerificationSend="Cards Business Verification Send",i.cardsConnectBank="Cards Connect Bank",i.cardsConnectBankSuccess="Cards Connect Bank Success",i.cardsConnectBankFailure="Cards Connect Bank Failure",i.cardsConnectBankGetBalance="Cards Connect Bank Get Balance",i.cardsConnectBankLink="Cards Connect Bank Link",i.zeniCardsPromoCardClicked="Zeni Cards Promo Card Click",i.cardsPayEarlyClick="Cards Pay Early Click",i.cardsPayEarlyFormView="Cards Pay Early Form View",i.cardsPayEarlyFormClick="Cards Pay Early Form Click",i.cardsPayEarlyPayNowClick="Cards Pay Early Pay Now Click",i.accountsListPageClicked="Accounts List Page Clicked",i.zeniAccountsTransferFormViewed="Transfer Between Accounts Form Viewed",i.zeniAccountsTransferFormClicked="Transfer Between Accounts Form Clicked",i.accountsDepositCheckFormViewed="Accounts Deposit Check Form Viewed",i.accountsDepositCheckFormClicked="Accounts Deposit Check Form Clicked",i.accountsPromoPageClicked="Accounts Promo Page Clicked",i.zeniAccountsSettingPageVisited="Zeni Accounts Setting Page Visited",i.zeniAccountsConnectBank="Zeni Accounts Connect Bank",i.zeniAccountsConnectBankSuccess="Zeni Accounts Connect Bank Success",i.zeniAccountsConnectBankFailure="Zeni Accounts Connect Bank Failure",i.zeniAccountsConnectBankGetBalance="Zeni Accounts Connect Bank Get Balance",i.zeniAccountsConnectBankLink="Zeni Accounts Connect Bank Link",i.enableZeniAccounts="Enable Zeni Accounts",i.reimbursementNeedHelp="Reimbursement Need Help",i.reimbursementBusinessVerification="Reimbursement Business Verification",i.reimbursementBusinessVerificationSave="Reimbursement Business Verification Save",i.reimbursementBusinessVerificationSend="Reimbursement Business Verification Send",i.reimbursementBusinessVerificationAddOfficer="Reimbursement Business Verification Add Officer",i.reimbursementConnectBank="Reimbursement Connect Bank",i.reimbursementConnectBankSuccess="Reimbursement Connect Bank Success",i.reimbursementConnectBankFailure="Reimbursement Connect Bank Failure",i.reimbursementConnectBankLink="Reimbursement Connect Bank Link",i.reimbursementConnectBankGetBalance="Reimbursement Connect Bank Get Balance",i.enableReimbursement="Enable Reimbursement",i.reimbursementMileageRateSave="Reimbursement Mileage Rate Save",i.reimbursementMileageRateEdit="Reimbursement Mileage Rate Edit",i.reimbursementPrivacyPolicy="Reimbursement Privacy Policy",i.reimbursementAgreement="Reimbursement Agreement",i.reimbursementPromoSchedule="Reimbursement Schedule Demo",i.reimbursementPromoVideo="Reimbursement Promo Video",i.reimbursementCard="Reimbursement Card",i.reimbursementDrafts="Reimbursement Drafts",i.reimbursementMyDrafts="Reimbursement My Drafts",i.reimbursementApprovals="Reimbursement Approvals",i.reimbursementApprovalsAwaitingApproval="Reimbursement Approvals Awaiting Approval",i.reimbursementApprovalsAwaitingAllApproval="Reimbursement Approvals Awaiting All Approval",i.reimbursementApprovalsAwaitingMyApproval="Reimbursement Approvals Awaiting My Approval",i.reimbursementApprovalsRejected="Reimbursement Approvals Rejected",i.reimbursementApprovalsDeleted="Reimbursement Approvals Deleted",i.reimbursementScheduled="Reimbursement Scheduled",i.reimbursementScheduledFailed="Reimbursement Scheduled Failed",i.reimbursementScheduledCancelled="Reimbursement Scheduled Cancelled",i.reimbursementScheduledDeleted="Reimbursement Scheduled Deleted",i.reimbursementPaid="Reimbursement Paid",i.reimbursementPaidACH="Reimbursement Paid ACH",i.reimbursementPaidDeleted="Reimbursement Paid Deleted",i.reimbursementListSort="Reimbursement List Sort",i.reimbursementNewReimbursement="Reimbursement New Reimbursement",i.reimbursementInvoiceUpload="Reimbursement Invoice Upload",i.reimbursementSkipAutofill="Reimbursement Skip Autofill",i.reimbursementSubmitReimbursement="Reimbursement Submit Reimbursement",i.reimbursementReimbursementDetails="Reimbursement Reimbursement Details",i.reimbursementEditReimbursement="Reimbursement Edit Reimbursement",i.reimbursementDeleteReimbursement="Reimbursement Delete Reimbursement",i.reimbursementCancelReimbursement="Reimbursement Cancel Reimbursement",i.reimbursementCancelAndDeleteReimbursement="Reimbursement Cancel And Delete Reimbursement",i.reimbursementSubmitAnywayDuplicateReimbursement="Reimbursement Submit Anyway Duplicate Reimbursement",i.reimbursementReviewDuplicateReportReimbursement="Reimbursement Review Duplicate Report Reimbursement",i.reimbursementDeleteReimbursementLine="Reimbursement Delete Reimbursement Line",i.reimbursementViewDuplicateExpense="Reimbursement View Duplicate Expense",i.groupBySwitch="Group By Switch",i.burnRateCalculatorSettings="Burn Rate Calculator Settings",i.vendorList="Vendor List",i.vendorListSort="Vendor List Sort",i.vendorListSpendTrendSelection="Vendor List Spend Trend Selection",i.vendorListSearch="Vendor List Search",i.vendorDetails="Vendor Details",i.vendorDetailsSave="Vendor Details Save",i.vendorDetailsCancel="Vendor Details Cancel",i.vendorDetailsSpendTrendHotlinkClicked="Vendor Details Spend Trend Hotlink Clicked",i.vendorOperatingExpenses="Operating Expenses By Vendor",i.vendorOperatingExpensesPageLoaded="Operating Expenses By Vendor Page Loaded",i.agingReport="Aging Report",i.agingReportDateChange="Aging Report Date Change",i.apAgingDetail="AP Aging Detail",i.arAgingDetail="AR Aging Detail",i.vendorTenantReviewListPage="Vendor Dedupe Tenant Review List Page",i.vendorGlobalReviewListPage="Vendor Dedupe Global Review List Page",i.vendorReviewList="Vendor Dedupe Review List Loaded",i.vendorReviewTenantSave="Vendor Dedupe First Review",i.vendorReviewTenantMergeInQBORedirect="Vendor Dedupe Merge in QBO Redirected",i.vendorReviewTenantMergeInQBOCancel="Vendor Dedupe Merge in QBO Canceled",i.vendorReviewTenantRecommendationUpdateContinue="Vendor Dedupe Recommendation Update Continued",i.vendorReviewTenantRecommendationUpdateCancel="Vendor Dedupe Recommendation Update Canceled",i.vendorReviewTenantUpdateCancel="Vendor Dedupe Update Canceled",i.vendorReviewTenantWebsiteOpened="Vendor Dedupe Website Opened",i.vendorReviewGlobalApproveRequest="Vendor Dedupe Approve Requested",i.vendorReviewGlobalNewVendorRequest="Vendor Dedupe New Vendor Requested",i.vendorReviewGlobalNewVendorSave="Vendor Dedupe New Vendor Saved",i.vendorReviewGlobalNewVendorCancel="Vendor Dedupe New Vendor Canceled",i.vendor1099ListPage="Vendors 1099",i.vendor1099TabSettingsSave="1099 Settings Save",i.vendor1099AccountingSettingsSave="Settings Accounting 1099 Save",i.vendor1099W9DocumentUpload="1099 Vendor W9 Upload",i.vendor1099DetailsSave="1099 Vendor Save",i.vendor1099ReportDownload="1099 Download",i.scheduleReviewList="Schedule Review List Loaded",i.scheduleReviewListDownload="Schedule Review List Download",i.scheduleDetailsPage="Schedule Details Loaded",i.scheduleDetailsNewRequested="Schedule Details New Requested",i.scheduleDetailsPreview="Schedule Details Previewed",i.scheduleDetailsSave="Schedule Details Saved",i.scheduleDetailsCancel="Schedule Details Canceled",i.scheduleDetailsLinkJournalEntry="Schedule Details Link Journal Entry",i.scheduleDetailsViewJournalEntry="Schedule Details View Journal Entry",i.scheduleDetailsJournalEntryViewLinkedExpense="Schedule Details Journal Entry View Linked Expense",i.scheduleDetailsJournalEntryLinkedSaved="Schedule Details Journal Entry Linked Saved",i.scheduleDetailsJournalEntryQBOFetched="Schedule Details Journal Entry QBO Fetched",i.scheduleDetailsJournalEntryLinkCancel="Schedule Details Journal Entry Link Canceled",i.scheduleDetailsEntryCanceled="Schedule Details Entry Canceled",i.scheduleDetailsJournalEntryLinkExpense="Schedule Details Journal Entry Link Expense",i.scheduleDetailsJournalEntryLinkExpenseLoaded="Schedule Details Journal Entry Link Expense Loaded",i.scheduleDetailsJournalEntryLinkExpenseCanceled="Schedule Details Journal Entry Link Expense Canceled",i.scheduleDetailsJounralEntryLinkExpenseSaved="Schedule Details Journal Entry Linked Expense Saved",i.scheduleDetailsDelete="Schedule Details Deleted",i.scheduleDetailsMarkComplete="Schedule Details Marked As Complete",i.taskListPage="Task List Page",i.taskDetailPage="Task Detail Page",i.cockpitTaskCardClicked="Cockpit Task Card Clicked",i.taskEdited="Task Edited",i.newTaskRequested="New Task Requested",i.healthMonitorFilterApplied="Health Monitor Filter Applied",i.error="Error",i.rewardsPageViewed="Rewards Page Viewed",i.rewardsPageClicked="Rewards Page Clicked",i.dashboardCardClicked="Dashboard Card Clicked",i.inviteEmailViewed="Rewards Invite Email Viewed",i.inviteEmailClicked="Rewards Invite Email Clicked",i.getAuditScore="Get Score",i.auditScorePercentage="Score %",i.auditIssueType="Issue Type",i.auditIssuesClicked="Issue Clicked",i.commentAdded="Comment Added",i.commentActivity="Comment Activity",i.monthCloseClicked="Month Close Clicked",i.monthCloseAuditPage="Month Close: Audit Page",i.transactionsReview="Transactions: Review",i.transactionsAutoCategorised="Transactions: Autocategorised",i.monthCloseScheduleList="Month Close: Schedule List",i.fluxAnalysis="Flux Analysis",i.fluxAnalysisReviewed="Flux Analysis: Reviewed",i.missingReceipts="Missing Receipts",i.receiptsAttached="Receipt Attached",i.insightsEmail="Insights Email",i.monthEndEmailSentFromCockpit="Month End Email Sent From Cockpit",i.sendMoneyClick="Send Money Click",i.expressPayNextClick="Express Pay Next Click",i.expressPayScheduleClick="Express Pay Schedule Click",i.aiCFOPrivacyPolicy="AI CFO Privacy Policy",i.aiCFOAgreement="AI CFO Agreement",i.treasuryNavPromoClick="Treasury Nav Promo Click",i.treasuryPromoView="Treasury Promo View",i.treasurySetupActionClick="Treasury Setup Action Click",i.treasuryProspectusClick="Treasury Prospectus Click",i.treasuryCalculatorClick="Treasury Calculator Click",i.treasuryAgreementView="Treasury Agreement View",i.treasuryAllocationAction="Treasury Allocation Action",i.treasuryRiskAction="Treasury Risk Action",i.treasuryVerificationNavigation="Treasury Verification Navigation",i.treasuryTransferAction="Treasury Transfer Action",i.treasuryDashboardInteraction="Treasury Dashboard Interaction",i.treasuryPortfolioConfirm="Treasury Portfolio Confirm",i.treasuryPromoCards="Treasury Promo Cards",i.treasuryPromoVideo="Treasury Promo Video",i.transactionCotView="Transaction Cot View",i.transactionCotDropdownView="Transaction Cot Dropdown View",i.transactionCotViewAlternative="Transaction Cot View Alternative",i.transactionCotViewRecommended="Transaction Cot View Recommended",i.aiPerfHome="AI Perf Home",i.aiPerfRefresh="AI Perf Refresh",i.aiPerfTimePeriodSelect="AI Perf Time Period Select",i.otherConnectionConnectBank="Other Connection Connect Bank",i.otherConnectionConnectBankSuccess="Other Connections Connect Bank Success",i.otherConnectionConnectBankFailure="Other Connections Connect Bank Failure",i.otherConnectionsConnectBankLink="Other Connections Connect Bank Link",i.otherConnectionConnectBankGetBalance="Other Connection Connect Bank Get Balance",i.autoTransferRuleIconClick="Auto Transfer Rule Icon Click",i.autoTransferRuleClick="Auto Transfer Rule Click",i.autoTransferRuleReviewClick="Auto Transfer Rule Review Click",i.autoTransferRuleCreateClick="Auto Transfer Rule Create Click",i.autoTransferRuleMoreClick="Auto Transfer Rule More Click",i.autoTransferRuleActionClick="Auto Transfer Rule Action Click",i.autoTransferRuleActionConfirm="Auto Transfer Rule Action Confirm",i.autoTransferRuleActionCancel="Auto Transfer Rule Action Cancel",i.integrationsNotifyMeClicked="Integrations Notify Me Clicked",i.invoicingOverviewPage="Invoicing Overview Page",i.invoicingInvoicesListPage="Invoicing Invoices List Page",i.invoicingCreateInvoicePage="Invoicing Create Invoice Page",i.invoicingInvoiceDetailPage="Invoicing Invoice Detail Page",i.invoicingCustomersListPage="Invoicing Customers List Page",i.invoicingCustomerFormPage="Invoicing Customer Form Page",i.invoicingCustomerDetailPage="Invoicing Customer Detail Page",i.invoicingSubscriptionsListPage="Invoicing Subscriptions List Page",i.invoicingSubscriptionFormPage="Invoicing Subscription Form Page",i.invoicingSubscriptionDetailPage="Invoicing Subscription Detail Page",i.invoicingPaymentsListPage="Invoicing Payments List Page",i.invoicingRecordPaymentPage="Invoicing Record Payment Page",i.invoicingTransactionDetailPage="Invoicing Transaction Detail Page",i.invoicingCreditsListPage="Invoicing Credits List Page",i.invoicingCreditDetailPage="Invoicing Credit Detail Page",i.invoicingDiscountsListPage="Invoicing Discounts List Page",i.invoicingCouponFormPage="Invoicing Coupon Form Page",i.invoicingDiscountDetailPage="Invoicing Discount Detail Page",i.invoicingDunningListPage="Invoicing Dunning List Page",i.invoicingDunningDetailPage="Invoicing Dunning Detail Page",i.invoicingCatalogPage="Invoicing Catalog Page",i.invoicingCatalogItemFormPage="Invoicing Catalog Item Form Page",i.invoicingCatalogItemDetailPage="Invoicing Catalog Item Detail Page",i.invoicingSettingsPage="Invoicing Settings Page",i.invoicingAuditLogPage="Invoicing Audit Log Page",i.invoicingApprovalsPage="Invoicing Approvals Page",i.invoicingDataImportHubPage="Invoicing Data Import Hub Page",i.invoicingDataImportMigratePage="Invoicing Data Import Migrate Page",i.invoicingViewInvoicesClicked="Invoicing View Invoices Clicked",i.invoicingViewPaymentsClicked="Invoicing View Payments Clicked",i.invoicingSubscriptionTileClicked="Invoicing Subscription Tile Clicked",i.invoicingCreateInvoiceClicked="Invoicing Create Invoice Clicked",i.invoicingInvoiceRowClicked="Invoicing Invoice Row Clicked",i.invoicingImportCsvClicked="Invoicing Import CSV Clicked",i.invoicingInvoiceCreated="Invoicing Invoice Created",i.invoicingCreateInvoiceCancelled="Invoicing Create Invoice Cancelled",i.invoicingInvoiceEdited="Invoicing Invoice Edited",i.invoicingInvoicePdfDownloaded="Invoicing Invoice PDF Downloaded",i.invoicingInvoiceReminderSent="Invoicing Invoice Reminder Sent",i.invoicingRecordPaymentClicked="Invoicing Record Payment Clicked",i.invoicingCreditNoteIssued="Invoicing Credit Note Issued",i.invoicingInvoiceVoided="Invoicing Invoice Voided",i.invoicingInvoiceRegenerated="Invoicing Invoice Regenerated",i.invoicingAddCustomerClicked="Invoicing Add Customer Clicked",i.invoicingCustomerRowClicked="Invoicing Customer Row Clicked",i.invoicingCustomerSaved="Invoicing Customer Saved",i.invoicingCustomerFormCancelled="Invoicing Customer Form Cancelled",i.invoicingCustomerEdited="Invoicing Customer Edited",i.invoicingAddSubscriptionClicked="Invoicing Add Subscription Clicked",i.invoicingSubscriptionRowClicked="Invoicing Subscription Row Clicked",i.invoicingSubscriptionLifecycleAction="Invoicing Subscription Lifecycle Action",i.invoicingSubscriptionSaved="Invoicing Subscription Saved",i.invoicingSubscriptionFormCancelled="Invoicing Subscription Form Cancelled",i.invoicingSubscriptionEdited="Invoicing Subscription Edited",i.invoicingPaymentRowClicked="Invoicing Payment Row Clicked",i.invoicingPaymentRecorded="Invoicing Payment Recorded",i.invoicingRecordPaymentCancelled="Invoicing Record Payment Cancelled",i.invoicingTransactionCaptured="Invoicing Transaction Captured",i.invoicingCreditNoteRowClicked="Invoicing Credit Note Row Clicked",i.invoicingCreateCouponClicked="Invoicing Create Coupon Clicked",i.invoicingDiscountRowClicked="Invoicing Discount Row Clicked",i.invoicingCouponSaved="Invoicing Coupon Saved",i.invoicingCouponFormCancelled="Invoicing Coupon Form Cancelled",i.invoicingCouponEdited="Invoicing Coupon Edited",i.invoicingDunningCaseRowClicked="Invoicing Dunning Case Row Clicked",i.invoicingDunningAction="Invoicing Dunning Action",i.invoicingAddCatalogItemClicked="Invoicing Add Catalog Item Clicked",i.invoicingCatalogItemRowClicked="Invoicing Catalog Item Row Clicked",i.invoicingCatalogItemSaved="Invoicing Catalog Item Saved",i.invoicingCatalogItemFormCancelled="Invoicing Catalog Item Form Cancelled",i.invoicingCatalogItemEdited="Invoicing Catalog Item Edited",i.invoicingSettingsSaved="Invoicing Settings Saved",i.invoicingBankAccountConnectClicked="Invoicing Bank Account Connect Clicked",i.invoicingLogoUploaded="Invoicing Logo Uploaded",i.invoicingApprovalAction="Invoicing Approval Action",i.invoicingNewImportClicked="Invoicing New Import Clicked",i.invoicingImportSessionAction="Invoicing Import Session Action",i.invoicingChargebeeConnectClicked="Invoicing Chargebee Connect Clicked",i.invoicingImportTemplatesDownloaded="Invoicing Import Templates Downloaded",i.invoicingImportFileUploaded="Invoicing Import File Uploaded",i.invoicingImportStarted="Invoicing Import Started",i.invoicingImportSavedForLater="Invoicing Import Saved For Later",i.invoicingEntityLinkClicked="Invoicing Entity Link Clicked",i.invoicingPromoSchedule="Invoicing Schedule Demo",i.integrationConnectClicked="Integration Connect Clicked",i.integrationCredentialsSubmitted="Integration Credentials Submitted",i.integrationConnected="Integration Connected",i.integrationConnectFailed="Integration Connect Failed",i.integrationConnectDismissed="Integration Connect Dismissed",i.integrationDisconnected="Integration Disconnected"})(t||(Pt.Event=t={})),Pt.EVENTS_WITHOUT_SUPER_PROPERTIES=new Set([t.signInClick,t.signInViaGoogleMicrosoft,t.signInViaEmail,t.signInLinkSent]),Pt}var Uo;function rd(){if(Uo)return _r;Uo=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.Analytics=void 0;const t=pc();class i{constructor(e){this.provider=e,this.superProperties={},this.userProperties={},this.userAndSuperProperties={}}static splitUserAndSuperProperties(e){const r={$distinct_id:e.$distinct_id??"",user_id:e.user_id??"",role_at_company:e.role_at_company??"",$email:e.$email??"",user_email_domain:e.user_email_domain??"",$first_name:e.$first_name??"",$last_name:e.$last_name??"",company_ids:e.company_ids??[],company_names:e.company_names??[],user_roles:e.user_roles??[],app_type:e.app_type??"web",app_version:e.app_version??"",app_short_version:e.app_short_version??"",profile_type:e.profile_type??void 0,chargebee_customer_id:e.chargebee_customer_id??"",is_zeni:e.is_zeni??void 0},n={appearance:e.appearance??void 0,company_id:e.company_id??"",company_name:e.company_name??"",user_role:e.user_role??[],tenant_id:e.tenant_id??"",tenant_email_domain:e.tenant_email_domain??""};return{userProperties:r,superProperties:n}}identify(e,r){const n=r??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,n,{$distinct_id:e,profile_type:"user"});const o=i.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=o.userProperties,this.superProperties=o.superProperties,this.provider.identify(e,this.userProperties)}identifyUserAndCompany(e,r,n,o,s){const c=o??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,c,{$distinct_id:e==="company"?n:r,user_id:r,company_id:n,profile_type:e});const u=i.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=u.userProperties,this.superProperties=u.superProperties,this.provider.identifyUserAndCompany(e,r,n,this.userProperties,s)}resetUserIdentity(){console.warn("Resetting user identity"),this.superProperties={},this.userProperties={},this.userAndSuperProperties={},this.provider.reset()}track(e){this.fireTrack(e)}trackLogin(e,r,n){this.fireTrack(e,{login_type:r,customer_type:n})}trackSignInClick(e){const n={login_type:e.charAt(0).toUpperCase()+e.slice(1)};this.fireTrack(t.Event.signInClick,n)}trackSignInViaGoogleMicrosoft(){this.fireTrack(t.Event.signInViaGoogleMicrosoft)}trackSignInViaEmail(){this.fireTrack(t.Event.signInViaEmail)}trackSignInLinkSent(){this.fireTrack(t.Event.signInLinkSent)}trackError(e,r,n,o){this.fireTrack(e,{error_referrer:r,error_description:n,error_code:o})}trackSidePanelClicked(e,r){this.fireTrack(t.Event.sidePanelClicked,{sidepanel_click_type:e,sidepanel_click_group_type:r})}trackLogout(e){this.fireTrack(e)}trackSessionTimeoutPopupShown(e){const r={seconds_remaining:e};this.fireTrack(t.Event.sessionTimeoutPopupShown,r)}trackSessionTimeoutClicked(e,r){const n={click_type:e,seconds_remaining:r};this.fireTrack(t.Event.sessionTimeoutClicked,n)}trackSessionTimeoutAutoLogout(){this.fireTrack(t.Event.sessionTimeoutAutoLogout)}trackPageLoaded(e,r,n){this.fireTrack(e,{referrer_card:r,customer_type:n})}trackTransactionList(e,r,n,o,s,c){this.fireTrack(t.Event.transactionList,{account_id:e,account_name:r,referrer_card:n,referrer_account:o,referrer_account_group:s,load_more:c})}trackTransactionDetails(e,r,n,o,s,c,u,l,d,f,m){this.fireTrack(t.Event.transactionDetails,{account_id:e,account_name:r,transaction_id:n,transaction_name:o,category:s,class:c,transaction_type:u,transaction_amount:l,transaction_memo:d,line_item_count:f,receipt_file_names:m})}trackCompareMode(e,r,n){this.fireTrack(t.Event.compareMode,{is_turned_on:e,referrer_card:r,graph_filter:n})}trackCompareFilterChange(e,r,n,o){this.fireTrack(t.Event.compareFilterChange,{value:e,referrer_card:r,graph_filter:n,clicked_on:o})}trackCompareFilterTimeFrame(e,r,n,o){this.fireTrack(t.Event.compareFilterTimeframe,{referrer_card:e,graph_filter:r,clicked_on:n,value:o})}trackDateRangeFilterChange(e,r,n,o,s){this.fireTrack(t.Event.dateRangeFilter,{parent_card:e,clicked_on:r,compare_mode:n,value:o,bar_name:s})}trackTimeframeSwitch(e,r,n){this.fireTrack(t.Event.timeframeSwitch,{value:e,parent_card:r,referrer_card:n})}trackGraphBar(e,r,n,o){this.fireTrack(t.Event.graphBar,{referrer_card:e,graph_filter:r,compare_mode:n,bar_name:o})}trackInviteSent(e,r,n){this.fireTrack(t.Event.inviteSent,{role:e,count:r,emails:n})}trackRoleChanged(e,r,n){this.fireTrack(t.Event.roleChanged,{old_role:e,new_role:r,member_email:n})}trackRemoveUserAccess(e,r){this.fireTrack(t.Event.removeUserAccess,{role:e,member_email:r})}trackResendInvite(e,r){this.fireTrack(t.Event.resendInvite,{role:e,member_email:r})}trackCompanySwitch(e,r,n){this.fireTrack(t.Event.companySwitch,{new_company_id:e,new_company_name:r,new_user_role:n})}trackDownload(e,r,n,o){this.fireTrack(t.Event.download,{referrer_card:e,graph_filter:r,file_type:n,compare_mode:o})}trackSpendIncomeTrendForTransaction(e,r,n,o,s,c,u,l,d,f){this.fireTrack(e,{referrer_card:r,transaction_id:n,transaction_type:o,transaction_name:s,account_ids:c,account_names:u,class_ids:l,class_names:d,bar_name:f})}trackSpendIncomeTrend(e,r,n,o,s){this.fireTrack(e,{referrer_card:r,bar_name:s,entity_name:o,entity_type:n})}trackSearch(e,r,n,o,s){this.fireTrack(e,{referrer_card:r,entity_type:n,entity_name:o,search_term:s})}trackTransactionDetailReceipt(e,r,n,o,s,c,u){this.fireTrack(e,{attachment_id:r,transaction_id:n,transaction_name:o,transaction_type:s,account_ids:c,account_names:u})}trackTransactionDetailReceiptUpload(e,r,n,o,s,c,u,l){this.fireTrack(t.Event.transactionDetailReceiptAdded,{account_id:e,account_name:r,transaction_id:n,transaction_name:o,transaction_type:s,transaction_memo:c,file_name:u,file_type:l})}trackCardStatementCloseDate(e,r,n,o,s){this.fireTrack(e,{referrer_card:o,account_id:r,account_name:n,value:s})}trackReportGenerated(e,r,n,o,s,c,u,l){const d={report_id:e,file_type:r,time_taken_rest_api:n,time_taken_data_transform:o,time_taken_rendering:s,time_taken_total:c};Object.assign(d,u!=null?{time_taken_pdf_merge:u}:{}),Object.assign(d,l!=null?{time_taken_sub_report_total_max:l}:{}),this.fireTrack(t.Event.reportGenerated,d)}trackInsightsNavigation(e,r){this.fireTrack(e,{referrer_view:r})}trackForecast(){this.fireTrack(t.Event.forecast)}trackForecastSwitch(e,r){this.fireTrack(t.Event.forecastSwitch,{parent_card:e,forecast_name:r})}trackForecastVsActualMode(e,r,n){this.fireTrack(t.Event.forecastVsActualMode,{parent_card:e,forecast_name:r,is_turned_on:n})}trackSpendManagmentFilterClick(e){switch(e){case"bill_pay":{this.fireTrack(t.Event.billPayFilterClick);break}case"reimbursement":{this.fireTrack(t.Event.reimbursementFilterClick);break}}}trackSpendManagmentFilterChange(e,r){switch(e){case"bill_pay":{this.fireTrack(t.Event.billPayFilterChange,{filter_categories:r});break}case"reimbursement":{this.fireTrack(t.Event.reimbursementFilterChange,{filter_categories:r});break}}}trackSpendManagementDownloadClick(e){switch(e){case"bill_pay":{this.fireTrack(t.Event.billPayDownloadClick);break}case"reimbursement":{this.fireTrack(t.Event.reimbursementDownloadClick);break}}}trackBillPayPrivacyPolicy(){this.fireTrack(t.Event.billPayPrivacyPolicy)}trackBillPayAgreement(){this.fireTrack(t.Event.billPayAgreement)}trackReimbursementPrivacyPolicy(){this.fireTrack(t.Event.reimbursementPrivacyPolicy)}trackReimbursementAgreement(){this.fireTrack(t.Event.reimbursementAgreement)}trackReimbursementMileageRateSave(e){const r={mileage_unit_amount:e};this.fireTrack(t.Event.reimbursementMileageRateSave,r)}trackReimbursementMileageRateEdit(){this.fireTrack(t.Event.reimbursementMileageRateEdit)}trackReimbursementPromoScheduleDemo(){this.fireTrack(t.Event.reimbursementPromoSchedule)}trackReimbursementPromoVideo(){this.fireTrack(t.Event.reimbursementPromoVideo)}trackBillPayPromoScheduleDemo(){this.fireTrack(t.Event.billPayPromoSchedule)}trackInvoicingPromoScheduleDemo(){this.fireTrack(t.Event.invoicingPromoSchedule)}trackBillPayPromoVideo(){this.fireTrack(t.Event.billPayPromoVideo)}trackBillPayTaskCard(e){const r={count:e};this.fireTrack(t.Event.billPayTaskCard,r)}trackBillPayCard(e,r){const n={transaction_amount:r,bill_pay_tab_subtab:e};this.fireTrack(t.Event.billPayCard,n)}trackReimbursementCard(e,r){const n={transaction_amount:r,reimbursement_tab_subtab:e};this.fireTrack(t.Event.reimbursementCard,n)}trackReimbursementTaskCard(e){const r={count:e};this.fireTrack(t.Event.reimbursementTaskCard,r)}trackOnboardingConnectQBO(e=!1){const r={is_reconnect:e};this.fireTrack(t.Event.onboardingQBOConnect,r)}trackIntegrationsNotifyMeClicked(e,r){const n={referrer_card:e,connector:r};this.fireTrack(t.Event.integrationsNotifyMeClicked,n)}trackOnboardingSaveQBOConnection(e,r){const n={qbo_realm_id:e,qbo_connection_id:r};this.fireTrack(t.Event.onboardingSaveQBOConnection,n)}trackOnboardingQBOConnectionSuccess(e,r){const n={qbo_realm_id:e,qbo_connection_id:r};this.fireTrack(t.Event.onboardingQBOConnectionSuccess,n)}trackOnboardingQBOConnectionFailed(e,r,n){const o={qbo_realm_id:e,qbo_connection_id:r,qbo_connection_response_message:n};this.fireTrack(t.Event.onboardingQBOConnectionFailed,o)}trackOnboardingAiFinanceTeamViewed(){this.fireTrack(t.Event.onboardingAiFinanceTeamViewed)}trackOnboardingAddressClicked(e){const r={address_type:e};this.fireTrack(t.Event.onboardingAddressClicked,r)}trackOnboardingDocumentUploaded(e,r){const n={document_kind:e,document_type:r};this.fireTrack(t.Event.onboardingDocumentUploaded,n)}trackOnboardingPhoneVerified(){this.fireTrack(t.Event.onboardingPhoneVerified)}trackOnboardingStepSkipped(e){const r={skipped_step:e};this.fireTrack(t.Event.onboardingStepSkipped,r)}trackOnboardingFlowExited(e){const r={exit_destination:e};this.fireTrack(t.Event.onboardingFlowExited,r)}trackOnboardingButtonClicked(e,r,n,o){const s={onboarding_button:e,onboarding_current_step:r,triggered_action:n,action_name:o};this.fireTrack(t.Event.onboardingButtonClicked,s)}buildIntegrationConnectionProps(e,r,n,o=null){return{referrer_card:r,connector:e,connection_type:n,error_message:o}}trackIntegrationConnectClicked(e,r,n){this.fireTrack(t.Event.integrationConnectClicked,this.buildIntegrationConnectionProps(e,r,n))}trackIntegrationCredentialsSubmitted(e,r,n){this.fireTrack(t.Event.integrationCredentialsSubmitted,this.buildIntegrationConnectionProps(e,r,n))}trackIntegrationConnected(e,r,n){this.fireTrack(t.Event.integrationConnected,this.buildIntegrationConnectionProps(e,r,n))}trackIntegrationConnectFailed(e,r,n,o){this.fireTrack(t.Event.integrationConnectFailed,this.buildIntegrationConnectionProps(e,r,n,o))}trackIntegrationDisconnected(e,r,n){this.fireTrack(t.Event.integrationDisconnected,this.buildIntegrationConnectionProps(e,r,n))}trackIntegrationConnectDismissed(e,r,n){this.fireTrack(t.Event.integrationConnectDismissed,this.buildIntegrationConnectionProps(e,r,n))}trackConnectBankAbandoned(e,r){e==="onboarding"&&this.fireTrack(t.Event.onboardingBankConnectAbandoned,{referrer_card:r})}trackOnboardingClickUpdatePaymentDetails(e,r){const n={payment_method:e,customer_type:r};this.fireTrack(t.Event.onboardingClickUpdatePaymentDetails,n)}trackOnboardingCurrentStep(e,r){const n={onboarding_current_step:e,onboarding_previous_step:r};this.fireTrack(t.Event.onboardingActiveStep,n)}trackOnboardingBankAccountPendingVerification(e,r){const n={verification_type:e,plaid_session_id:r};this.fireTrack(t.Event.onboardingBankAccountPendingVerification,n)}trackOnboardingBankAccountVerified(e){const r={verification_type:e};this.fireTrack(t.Event.onboardingBankAccountVerified,r)}trackOnboardingBusinessVerificationCompleted(e,r){const n={document_kind:e,verification_type:r};this.fireTrack(t.Event.onboardingBusinessVerificationCompleted,n)}trackOnboardingBillingAddress(e){const r={billing_address_field:e};this.fireTrack(t.Event.onboardingBillingAddress,r)}trackOnboardingBillingAddressSave(e){const r={address:{street:e.street,suite:e.suite,city:e.city,state:e.state,country:e.country,postal_code:e.postalCode,secondary_info:e.secondaryInfo}};this.fireTrack(t.Event.onboardingBillingAddressSave,r)}trackOnboardingBack(e,r){const n={onboarding_current_step:e,onboarding_previous_step:r};this.fireTrack(t.Event.onboardingBack,n)}trackOnboardingNext(e,r){const n={onboarding_current_step:r,onboarding_previous_step:e};this.fireTrack(t.Event.onboardingNext,n)}trackSaveAddressClicked(e,r){const n={address:{street:r?.street??"",suite:r?.suite??"",city:r?.city??"",state:r?.state??"",country:r?.country??"",postal_code:r?.postalCode??"",secondary_info:r?.secondaryInfo??""}};this.fireTrack(e,n)}trackOnboardingCompanyOfficerSave(e,r,n){const o={company_officer_email:e.email,company_officer_birthday:e.birthday,company_officer_ownership:e.companyOwnership,company_officer_first_name:e.firstName,company_officer_last_name:e.lastName,company_officer_role:e.companyRole,company_officer_document_type_for_verification:e.documentTypeForVerification,company_officer_phone:e.phone,company_officer_address:e.formattedAddress,company_legal_name:r.legalName,completed_fields:n?.completedFields??[],completed_fields_status:n?.status??"not_started"};this.fireTrack(t.Event.onboardingCompanyOfficerSave,o)}trackOnboardingCompanyDetailsSave(e,r,n){const o={company_description:e.companyDescription,company_legal_name:e.legalName,company_industry:e.industry,company_phone:e.phone,company_website:e.website,company_address:e.formattedAddress,inc_date:e.incDate,primary_contact_first_name:n.firstName,primary_contact_last_name:n.lastName,primary_contact_email:n.email,completed_fields:r.completedFields,completed_fields_status:r.status};this.fireTrack(t.Event.onboardingCompanyDetailsSave,o)}trackOnboardingDashboardActivation(e){const r={time_since_quote_sign:e.timeSinceQuoteSign,time_since_quote_sign_in_minutes:e.timeSinceQuoteSignInMinutes,is_kyc_done:e.isKycDone,is_kyb_done:e.isKybDone,payment_type:e.paymentType,payment_source:e.paymentSource,qbo_connection_source:e.qboConnectionSource};this.fireTrack(t.Event.onboardingDashboardActivation,r)}trackOnboardingNewCustomerStarted(){this.fireTrack(t.Event.onboardingNewCustomerStarted)}trackOnboardingAiFinanceTeamAcknowledged(){this.fireTrack(t.Event.onboardingAiFinanceTeamAcknowledged)}trackOnboardingNewCustomerGroupCreationCheck(e,r){const n={company_email_domain:e.companyEmailDomain,primary_contact_email:e.primaryContactEmail,group_name:r.groupName,group_email:r.groupEmail,group_description:r.groupDescription,is_company_email_domain_available:r.isCompanyEmailDomainAvailable};this.fireTrack(t.Event.onboardingNewCustomerGroupCreationCheck,n)}trackOnboardingQBOConnectionSelected(e){const r={first_name:e.firstName,last_name:e.lastName,customer_email:e.customerEmail};e.isZeniOrCustomer==="customer"?this.fireTrack(t.Event.onboardingCustomerManagedQBOConnectionSelected,r):this.fireTrack(t.Event.onboardingZeniManagedQBOConnectionSelected,r)}trackOnboardingZeniManagedQBOConnection(e){const r={first_name:e.firstName,last_name:e.lastName,customer_email:e.customerEmail,qbo_connection_response_message:e.qboConnectionResponseMessage};e.isSuccess?this.fireTrack(t.Event.onboardingZeniManagedQBOConnectionSuccess,r):this.fireTrack(t.Event.onboardingZeniManagedQBOConnectionUnsuccess,r)}trackOnboardingSaveOrSendInvite(e,r,n,o){const s={company_domain:e.companyDomain,primary_contact_email:e.primaryContactEmail,group_name:r.groupName,group_email:r.groupEmail,group_description:r.groupDescription,first_name:n.firstName,last_name:n.lastName,customer_email:n.customerEmail,company_name:n.companyName,entitty_type:n.entittyType,qbo_realm_id:n.qboRealmId,hubspot_id:n.hubSpotId,chargebee_id:n.chargebeeId,products:n.products,is_zeni_managed_qbo_connection_selected:o.isZeniManagedQboConnectionSelected,is_customer_managed_qbo_connection_selected:o.isCustomerManagedQboConnectionSelected,qbo_connection_status:o.qboConnectionStatus,referrer_card:"Cockpit - Onboarding"};o.isSendInvite?o.isInviteAlreadySent?this.fireTrack(t.Event.onboardingResendInvite,s):this.fireTrack(t.Event.onboardingSendInvite,s):this.fireTrack(t.Event.onboardingSave,s)}trackOnboardingSendInvite(e,r,n){const o={company_id:e,company_name:n.companyName,company_domain:n.companyEmailDomain,customer_email:n.customerEmail,referrer_card:"Cockpit - Onboarding List"};this.fireTrack(r?t.Event.onboardingResendInvite:t.Event.onboardingSendInvite,o)}trackOnboardingInterimCard(e){const r={card_click:e};this.fireTrack(t.Event.onboardingInterimCardClick,r)}trackOnboardingLandingPageCardClick(e){const r={card_click:e};this.fireTrack(t.Event.onboardingLandingPageCardClick,r)}trackBusinessVerificationSave(e,r,n,o,s){const c={company_officer_email:e.email,company_officer_birthday:e.birthday,company_officer_ownership:e.companyOwnership,company_officer_first_name:e.firstName,company_officer_last_name:e.lastName,company_officer_role:e.companyRole,company_officer_document_type_for_verification:e.documentTypeForVerification,company_officer_phone:e.phone,company_officer_address:e.formattedAddress,company_description:r.companyDescription,company_legal_name:r.legalName,company_industry:r.industry,company_phone:r.phone,company_website:r.website,company_address:r.formattedAddress,inc_date:r.incDate,primary_contact_first_name:n.firstName,primary_contact_last_name:n.lastName,primary_contact_email:n.email,referrer_card:s};switch(o){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsBusinessVerificationSave,c);break;case"reimbursement":this.fireTrack(t.Event.reimbursementBusinessVerificationSave,c);break;case"onboarding":this.fireTrack(t.Event.onboardingSkipAndSave,c);break;case"charge_cards":this.fireTrack(t.Event.cardsBusinessVerification,c);break;default:this.fireTrack(t.Event.billPayBusinessVerificationSave,c);break}}trackBusinessVerificationSend(e,r,n,o,s){const c={company_officer_email:e.email,company_officer_birthday:e.birthday,company_officer_ownership:e.companyOwnership,company_officer_first_name:e.firstName,company_officer_last_name:e.lastName,company_officer_role:e.companyRole,company_officer_document_type_for_verification:e.documentTypeForVerification,company_officer_phone:e.phone,company_officer_address:e.formattedAddress,company_description:r.companyDescription,company_legal_name:r.legalName,company_industry:r.industry,company_phone:r.phone,company_website:r.website,company_address:r.formattedAddress,inc_date:r.incDate,primary_contact_first_name:n.firstName,primary_contact_last_name:n.lastName,primary_contact_email:n.email,referrer_card:s};switch(o){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsBusinessVerificationSend,c);break;case"reimbursement":this.fireTrack(t.Event.reimbursementBusinessVerificationSend,c);break;case"charge_cards":this.fireTrack(t.Event.cardsBusinessVerificationSend,c);break;default:this.fireTrack(t.Event.billPayBusinessVerificationSend,c);break}}onboardingConnectBankEventsByEventSource(e,r){if(r!=null&&e!=null)switch(r){case"link_bank_account":this.fireTrack(t.Event.onboardingLinkBankAccount,{referrer_card:e});break;case"switch_to_bank_account":this.fireTrack(t.Event.onboardingSwitchToBankAccount,{referrer_card:e});break;case"link_new_bank_account":this.fireTrack(t.Event.onboardingLinkANewBankAccount,{referrer_card:e});break}}onboardingConnectBankEventsByEventSourceSuccess(e,r,n,o,s,c){if(c!=null&&s!=null)switch(c){case"link_bank_account":this.fireTrack(t.Event.onboardingLinkBankAccountSuccess,{referrer_card:s,plaid_session_id:e,plaid_account_id:r,is_micro_deposit_verification_done:n??!1,plaid_institution_name:o});break;case"switch_to_bank_account":this.fireTrack(t.Event.onboardingSwitchToBankAccountSuccess,{referrer_card:s,plaid_session_id:e,plaid_account_id:r,is_micro_deposit_verification_done:n??!1,plaid_institution_name:o});break;case"link_new_bank_account":this.fireTrack(t.Event.onboardingLinkANewBankAccountSuccess,{referrer_card:s,plaid_session_id:e,plaid_account_id:r,is_micro_deposit_verification_done:n??!1,plaid_institution_name:o});break}}onboardingConnectBankEventsByEventSourceFailure(e,r,n,o,s,c,u){if(u!=null&&c!=null)switch(u){case"link_bank_account":this.fireTrack(t.Event.onboardingLinkBankAccountFailure,{referrer_card:c,error_description:e,error_code:s,plaid_session_id:r,plaid_request_id:n,plaid_institution_name:o});break;case"switch_to_bank_account":this.fireTrack(t.Event.onboardingSwitchToBankAccountFailure,{referrer_card:c,error_description:e,error_code:s,plaid_session_id:r,plaid_request_id:n,plaid_institution_name:o});break;case"link_new_bank_account":this.fireTrack(t.Event.onboardingLinkANewBankAccountFailure,{referrer_card:c,error_description:e,error_code:s,plaid_session_id:r,plaid_request_id:n,plaid_institution_name:o});break}}onboardingCreditCardEventsConnectByEventSource(e,r){if(r!=null&&e!=null)switch(r){case"switch_to_credit_card":this.fireTrack(t.Event.onboardingSwitchToCreditCard,{referrer_card:e});break;case"link_new_credit_card":this.fireTrack(t.Event.onboardingLinkNewCard,{referrer_card:e});break;case"link_credit_card":this.fireTrack(t.Event.onboardingLinkCreditCard,{referrer_card:e});break}}onboardingCreditCardConnectEventsByEventSourceSuccess(e,r){if(r!=null&&e!=null)switch(r){case"switch_to_credit_card":this.fireTrack(t.Event.onboardingSwitchToCreditCardSuccess,{referrer_card:e});break;case"link_new_credit_card":this.fireTrack(t.Event.onboardingLinkNewCardSuccess,{referrer_card:e});break;case"link_credit_card":this.fireTrack(t.Event.onboardingLinkCreditCardSuccess,{referrer_card:e});break}}onboardingCreditCardConnectEventsByEventSourceFailure(e,r,n,o){if(o!=null&&n!=null)switch(o){case"switch_to_credit_card":this.fireTrack(t.Event.onboardingSwitchToCreditCardFailure,{referrer_card:n,error_description:e,error_code:r});break;case"link_new_credit_card":this.fireTrack(t.Event.onboardingLinkNewCardFailure,{referrer_card:n,error_description:e,error_code:r});break;case"link_credit_card":this.fireTrack(t.Event.onboardingLinkCreditCardFailure,{referrer_card:n,error_description:e,error_code:r});break}}billingConnectBankEventsByEventSource(e,r){if(r!=null&&e!=null)switch(r){case"link_new_bank_account":this.fireTrack(t.Event.billingLinkNewBankAccount,{referrer_card:e});break;case"switch_to_bank_account":this.fireTrack(t.Event.billingSwitchToBankAccount,{referrer_card:e});break}}billingConnectBankEventsByEventSourceSuccess(e,r){if(r!=null&&e!=null)switch(r){case"link_new_bank_account":this.fireTrack(t.Event.billingLinkNewBankAccountSuccess,{referrer_card:e});break;case"switch_to_bank_account":this.fireTrack(t.Event.billingSwitchToBankAccountSuccess,{referrer_card:e});break}}billingConnectBankEventsByEventSourceFailure(e,r,n,o){if(o!=null&&n!=null)switch(o){case"link_new_bank_account":this.fireTrack(t.Event.billingLinkNewBankAccountFailure,{referrer_card:n,error_description:e,error_code:r});break;case"switch_to_bank_account":this.fireTrack(t.Event.billingSwitchToBankAccountFailure,{referrer_card:n,error_description:e,error_code:r});break}}billingConnectCreditCardEventsByEventSource(e,r){if(r!=null&&e!=null)switch(r){case"switch_to_credit_card":this.fireTrack(t.Event.billingSwitchToCreditCard,{referrer_card:e});break;case"link_new_credit_card":this.fireTrack(t.Event.billingLinkNewCard,{referrer_card:e});break}}billingConnectCreditCardEventsByEventSourceSuccess(e,r){if(r!=null&&e!=null)switch(r){case"switch_to_credit_card":this.fireTrack(t.Event.billingSwitchToCreditCardSuccess,{referrer_card:e});break;case"link_new_credit_card":this.fireTrack(t.Event.billingLinkNewCardSuccess,{referrer_card:e});break}}billingConnectCreditCardEventsByEventSourceFailure(e,r,n,o){if(o!=null&&n!=null)switch(o){case"switch_to_credit_card":this.fireTrack(t.Event.billingSwitchToCreditCardFailure,{referrer_card:n,error_description:e,error_code:r});break;case"link_new_credit_card":this.fireTrack(t.Event.billingLinkNewCardFailure,{referrer_card:n,error_description:e,error_code:r});break}}trackConnectBank(e,r,n){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBank,{referrer_card:r});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBank,{referrer_card:r});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBank,{referrer_card:r});break;case"onboarding":this.onboardingConnectBankEventsByEventSource(r,n);break;case"billing":this.billingConnectBankEventsByEventSource(r,n);break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBank,{referrer_card:r});break;default:this.fireTrack(t.Event.otherConnectionConnectBank,{referrer_card:r});break}}trackConnectBankSuccess(e,r,n,o,s,c,u){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankSuccess,{referrer_card:r});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankSuccess,{referrer_card:r});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankSuccess,{referrer_card:r});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceSuccess(o??null,s??null,c??null,u??null,r,n);break;case"billing":this.billingConnectBankEventsByEventSourceSuccess(r,n);break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankSuccess,{referrer_card:r});break;default:this.fireTrack(t.Event.otherConnectionConnectBankSuccess,{referrer_card:r});break}}trackConnectBankFailure(e,r,n,o,s,c,u,l){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankFailure,{error_code:s,error_description:r,referrer_card:n});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankFailure,{error_code:s,error_description:r,referrer_card:n});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankFailure,{error_code:s,error_description:r,referrer_card:n});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceFailure(r,c??null,u??null,l??null,s,n,o);break;case"billing":this.billingConnectBankEventsByEventSourceFailure(r,s,n,o);break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankFailure,{error_code:s,error_description:r,referrer_card:n});break;default:this.fireTrack(t.Event.otherConnectionConnectBankFailure,{error_code:s,error_description:r,referrer_card:n});break}}trackCreditCardConnect(e,r,n){if(n!=null&&r!=null)switch(e){case"onboarding":this.onboardingCreditCardEventsConnectByEventSource(n,r);break;case"billing":this.billingConnectCreditCardEventsByEventSource(n,r);break}}trackCreditCardConnectSuccess(e,r,n){if(r!=null&&n!=null)switch(e){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceSuccess(r,n);break;case"billing":this.billingConnectCreditCardEventsByEventSourceSuccess(r,n);break}}trackCreditCardConnectFailure(e,r,n,o,s){if(n!=null&&o!=null)switch(e){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceFailure(r,s,n,o);break;case"billing":this.billingConnectCreditCardEventsByEventSourceFailure(r,s,n,o);break}}trackConnectBankLink(e,r,n,o){switch(n){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankLink,{account_name:r,account_id:e,referrer_card:o});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankLink,{account_name:r,account_id:e,referrer_card:o});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankLink,{account_name:r,account_id:e,referrer_card:o});break;case"onboarding":this.fireTrack(t.Event.onboardingConnectBankLink,{account_name:r,account_id:e,referrer_card:o});break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankLink,{account_name:r,account_id:e,referrer_card:o});break;default:this.fireTrack(t.Event.otherConnectionsConnectBankLink,{account_name:r,account_id:e,referrer_card:o});break}}trackConnectBankGetBalance(e,r){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankGetBalance,{referrer_card:r});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankGetBalance,{referrer_card:r});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankGetBalance,{referrer_card:r});break;case"onboarding":this.fireTrack(t.Event.onboardingConnectBankGetBalance,{referrer_card:r});break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankGetBalance,{referrer_card:r});break;default:this.fireTrack(t.Event.otherConnectionConnectBankGetBalance,{referrer_card:r});break}}trackNeedHelp(e){switch(e){case"onboarding":this.fireTrack(t.Event.onboardingNeedHelp,{});break;case"onboarding_interim":this.fireTrack(t.Event.onboardingInterimNeedHelp,{});break;case"onboarding_landing":this.fireTrack(t.Event.onboardingLandingNeedHelp,{});break;case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsNeedHelp,{});break;case"charge_cards":this.fireTrack(t.Event.cardsNeedHelp,{});break;case"reimbursement":this.fireTrack(t.Event.reimbursementNeedHelp,{});break;default:this.fireTrack(t.Event.billPayNeedHelp,{});break}}trackAccountsListPageViewed(e,r,n,o,s){this.fireTrack(t.Event.accountsListPageViewed,{zeni_accounts_count:e,external_accounts_count:r,zeni_accounts_available_balance:n,total_yield_earned:o,current_average_yield:s})}trackAccountsListPageClicked(e,r,n){this.fireTrack(t.Event.accountsListPageClicked,{click_type:e,account_name:r,account_status:n})}trackAccountsPromoPageClicked(e){this.fireTrack(t.Event.accountsPromoPageClicked,{click_type:e})}trackTransferBetweenAccountsFormClicked(e,r,n,o,s,c,u,l){this.fireTrack(t.Event.zeniAccountsTransferFormClicked,{click_type:e,current_screen:r,transfer_from_bank_name:n,transfer_to_bank_name:o,amount:s,is_split_transfer:c,split_days_count:u,APY_slider_moved:l})}trackAccountsDepositCheckFormClicked(e,r,n,o,s,c){this.fireTrack(t.Event.accountsDepositCheckFormClicked,{click_type:e,amount:r,source_of_deposit:n,deposited_to:o,front_photo:s,back_photo:c})}trackAccountsDepositCheckFormViewed(){this.fireTrack(t.Event.accountsDepositCheckFormViewed)}trackZeniTransferBetweenAccountsFormViewed(){this.fireTrack(t.Event.zeniAccountsTransferFormViewed)}trackEnableZeniAccounts(){this.fireTrack(t.Event.enableZeniAccounts)}trackZeniAccountsPromoCardClick(e,r){this.fireTrack(t.Event.zeniAccountsPromoCardClick,{card_position:e,click_type:r})}trackZeniAccountsCashBalancePromoClicked(e){this.fireTrack(t.Event.zeniAccountsCashBalancePromoClicked,{click_type:e})}trackPlgPromoClicked(e,r){this.fireTrack(t.Event.plgPromoActionTaken,{page_name:e,clicked_on:r})}getBaseCardProperties(e,r,n,o){return{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,credit_account_id:n?.creditAccountId,credit_account_limit:n?.creditAccountLimit,credit_account_available_amount:n?.creditAccountAvailableAmount,credit_account_spent_amount:n?.creditAccountSpentAmount,credit_account_status:n?.creditAccountStatus,credit_account_outstanding_balance:n?.outstandingBalance,deposit_account_id:o?.debitAccountId,deposit_account_name:o?.debitAccountName,deposit_account_balance:o?.debitAccountBalance,debit_cards_spend:o?.debitCardsSpend,deposit_account_status:o?.debitAccountStatus}}getBaseCardPropertiesWithCashback(e,r,n,o,s){return{...this.getBaseCardProperties(e,r,o,s),credit_card_cashback_offer:n?.creditCardCashbackOffer,debit_card_cashback_offer:n?.debitCardCashbackOffer,total_earned_cashback:n?.totalEarnedCashback,redeemed_cashback:n?.redeemedCashback,available_cashback:n?.availableCashback,credit_card_cashback_redemption_mode:n?.creditCardCashbackRedemptionMode,debit_card_cashback_redemption_mode:n?.debitCardCashbackRedemptionMode}}getPaymentSourceProperties(e){return{is_zeni_checking_enabled:e.isZeniCheckingEnabled,is_zeni_checking_payment_source:e.isZeniCheckingPaymentSource,credit_card_payment_source_account_name:e.creditCardPaymentSourceAccountName,credit_card_payment_source_account_type:e.creditCardPaymentSourceAccountType,credit_card_payment_source_last_four_digits:e.creditCardPaymentSourceLastFourDigits,credit_card_payment_source_balance:e.creditCardPaymentSourceBalance}}getCardPaymentProperties(e){return{payment_amount:e.paymentAmount,payment_account_name:e.paymentAccountName,payment_account_type:e.paymentAccountType,payment_account_last_four_digits:e.paymentAccountLastFourDigits,payment_complete_eta:e.paymentCompleteEta,payment_initiated_date:e.paymentInitiatedDate}}trackCardsPromoPageClicked(e){this.fireTrack(t.Event.cardsPromoPageClick,{cards_click_type:e})}trackCardsListPageClicked(e){this.fireTrack(t.Event.cardsListPageClick,{cards_click_type:e})}trackCardsNewCardFormClicked(e,r,n,o,s){this.fireTrack(t.Event.cardsIssueNewCardFormClick,{cards_click_type:s,card_owner:e,card_name:r,amount:o,frequency:n})}trackCardsListRowClicked(e,r,n,o,s,c,u){this.fireTrack(t.Event.cardsListRowClick,{card_owner:e,card_name:r,department:n,utilisation:o,limit:s,frequency:c,is_self_card:u})}trackCardsDetailPageViewed(e,r,n,o,s,c,u,l){this.fireTrack(t.Event.cardsDetailPage,{card_id:e,is_self_card:l,card_owner:r,card_name:n,utilisation:o,limit:s,frequency:c,card_color:u})}trackCardsVerifyPopUpClick(e,r,n,o,s,c,u,l,d){this.fireTrack(t.Event.cardsVerifyPopUpClick,{cards_click_type:u,is_self_card:l,card_owner:r,card_name:n,utilisation:o,limit:s,frequency:c,card_id:e,selected_color:d})}trackCardsDetailPageClicked(e,r,n,o,s,c,u,l,d){this.fireTrack(t.Event.cardsDetailPageClick,{cards_click_type:u,is_self_card:l,card_owner:r,card_name:n,utilisation:o,limit:s,frequency:c,card_id:e,selected_color:d})}trackZeniCardsPromoCardClicked(e,r,n,o,s){this.fireTrack(t.Event.zeniCardsPromoCardClicked,{card_position:n,click_type:r,is_cards_setup:e,user_name:o,credit_limit:s??"NA"})}trackCardsSetupCardsClick(e,r,n){this.fireTrack(t.Event.cardsSetupCardsClick,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,page_name:n})}trackCardsPromoView(e,r,n,o,s){this.fireTrack(t.Event.cardsPromoView,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,promo_format:n,promo_product:o,page_name:s})}trackCardsEnableCardsClick(e,r,n){this.fireTrack(t.Event.cardsEnableCardsClick,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,page_name:n})}trackCardsScheduleDemoClick(e,r,n){this.fireTrack(t.Event.cardsScheduleDemoClick,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,page_name:n})}trackCardsCardListView(e,r,n,o,s){this.fireTrack(t.Event.cardsCardListView,{...this.getBaseCardPropertiesWithCashback(e,r,n,o,s)})}trackCardsCardListSearchClick(e,r,n,o,s){this.fireTrack(t.Event.cardsCardListSearchClick,{...this.getBaseCardPropertiesWithCashback(e,r,n,o,s)})}trackCardsCardListMoreMenuClick(e,r,n,o,s){this.fireTrack(t.Event.cardsCardListMoreMenuClick,{...this.getBaseCardPropertiesWithCashback(e,r,n,o,s)})}trackCardsSettingsClick(e,r,n,o,s){this.fireTrack(t.Event.cardsSettingsClick,{...this.getBaseCardPropertiesWithCashback(e,r,n,o,s)})}trackCardsCardSetupView(e,r,n){this.fireTrack(t.Event.cardsCardSetupView,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,source:n})}trackCardsVerifyIdentityCompanyDetailsClick(e,r,n){this.fireTrack(t.Event.cardsVerifyIdentityCompanyDetailsClick,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,status:n})}trackCardsPaymentAccountChangeClick(e,r,n){this.fireTrack(t.Event.cardsPaymentAccountChangeClick,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,old_payment_account_name:n.oldPaymentAccountName,old_payment_account_balance:n.oldPaymentAccountBalance,new_payment_account_name:n.newPaymentAccountName,new_payment_account_balance:n.newPaymentAccountBalance,is_old_payment_account_recommended:n.isOldPaymentAccountRecommended,is_new_payment_account_recommended:n.isNewPaymentAccountRecommended,old_payment_account_position:n.oldPaymentAccountPosition,new_payment_account_position:n.newPaymentAccountPosition,number_of_payment_accounts:n.numberOfPaymentAccounts})}trackCardsZeniCashAccountChangeClick(e,r,n){this.fireTrack(t.Event.cardsZeniCashAccountChangeClick,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,old_zeni_cash_account:n.oldZeniCashAccount,new_zeni_cash_account:n.newZeniCashAccount,old_zeni_cash_account_position:n.oldZeniCashAccountPosition,new_zeni_cash_account_position:n.newZeniCashAccountPosition,number_of_cash_accounts:n.numberOfCashAccounts})}trackCardsStatementsClick(e,r,n,o,s){this.fireTrack(t.Event.cardsStatementsClick,{...this.getBaseCardPropertiesWithCashback(e,r,n,o,s)})}trackCardsCreditCardStatementsView(e,r,n,o,s){this.fireTrack(t.Event.cardsCreditCardStatementsView,{...this.getBaseCardProperties(e,r,o,s),number_of_statements:n.numberOfStatements,oldest_statement_month_year:n.oldestStatementMonthYear,latest_statement_month_year:n.latestStatementMonthYear})}trackCardsDownloadClick(e,r,n,o,s,c,u,l){this.fireTrack(t.Event.cardsDownloadClick,{...this.getBaseCardPropertiesWithCashback(e,r,n,u,l),page_name:s,position:c,file_category:o.fileCategory,file_type:o.fileType,file_name:o.fileName,file_month_year:o.fileMonthYear})}trackCardsNewCardClick(e,r,n,o,s,c,u,l){this.fireTrack(t.Event.cardsNewCardClick,{...this.getBaseCardPropertiesWithCashback(e,r,n,u,l),click_item:o,action:s,page_name:c})}trackCardsCashbackOverviewClick(e,r,n,o,s,c,u){this.fireTrack(t.Event.cardsCashbackOverviewClick,{...this.getBaseCardPropertiesWithCashback(e,r,n,c,u),click_item:o,action:s})}trackCardsCardListRowClick(e,r,n,o,s,c,u,l,d){this.fireTrack(t.Event.cardsCardListRowClick,{...this.getBaseCardPropertiesWithCashback(e,r,u,l,d),click_item:n,action:o,position:s,card_name:c.cardName,card_owner:c.cardOwner,card_type:c.cardType,card_status:c.cardStatus,card_utilization_amount:c.cardUtilizationAmount,card_utilization_percent:c.cardUtilizationPercent,card_limit:c.cardLimit})}trackCardsCopyIconClick(e,r,n,o,s,c,u,l,d,f){this.fireTrack(t.Event.cardsCopyIconClick,{...this.getBaseCardPropertiesWithCashback(e,r,l,d,f),click_item:o,action:s,action_field:c,action_details:u,page_name:n})}trackCardsCardListSortClick(e,r,n,o,s,c,u,l,d,f){this.fireTrack(t.Event.cardsCardListSortClick,{...this.getBaseCardPropertiesWithCashback(e,r,n,d,f),click_item:o,action:s,action_field:c,action_details:u,page_name:l})}trackCardsCardDetailView(e,r,n,o,s,c,u){this.fireTrack(t.Event.cardsCardDetailView,{...this.getBaseCardProperties(e,r,c,u),card_name:n.cardName,card_type:n.cardType,card_category:n.cardCategory,card_limit:n.cardLimit,card_last_four_digits:n.cardLastFourDigits,card_status:n.cardStatus,card_utilization_percent:n.cardUtilizationPercent,card_id:n.cardId,card_assigned_date:n.cardAssignedDate,card_issued_date:n.cardIssuedDate,card_activated_date:n.cardActivatedDate,card_limit_frequency:n.cardLimitFrequency,card_spent_amount:n.cardSpentAmount,card_available_limit:n.cardAvailableLimit,card_utilization_amount:n.cardUtilizationAmount,total_number_of_declined_transactions:n.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:n.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:n.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:n.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:n.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:n.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:n.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:n.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:n.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:n.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:o.cardIssuedByName,card_issued_by_email:o.cardIssuedByEmail,card_issued_by_user_id:o.cardIssuedByUserId,card_issued_by_role:o.cardIssuedByRole,card_issued_by_department:o.cardIssuedByDepartment,cardholder_name:s.cardholderName,cardholder_email:s.cardholderEmail,cardholder_role:s.cardholderRole,cardholder_user_id:s.cardholderUserId,cardholder_department:s.cardholderDepartment})}trackCardsUpdateSpendLimitInitiated(e,r,n,o,s,c,u,l,d,f){this.fireTrack(t.Event.cardsUpdateSpendLimitInitiated,{...this.getBaseCardProperties(e,r,d,f),card_name:n.cardName,card_type:n.cardType,card_category:n.cardCategory,card_limit:n.cardLimit,card_last_four_digits:n.cardLastFourDigits,card_status:n.cardStatus,card_utilization_amount:n.cardUtilizationAmount,card_utilization_percent:n.cardUtilizationPercent,card_id:n.cardId,card_assigned_date:n.cardAssignedDate,card_issued_date:n.cardIssuedDate,card_activated_date:n.cardActivatedDate,card_limit_frequency:n.cardLimitFrequency,card_spent_amount:n.cardSpentAmount,card_available_limit:n.cardAvailableLimit,total_number_of_declined_transactions:n.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:n.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:n.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:n.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:n.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:n.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:n.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:n.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:n.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:n.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:o.cardIssuedByName,card_issued_by_email:o.cardIssuedByEmail,card_issued_by_user_id:o.cardIssuedByUserId,card_issued_by_role:o.cardIssuedByRole,card_issued_by_department:o.cardIssuedByDepartment,cardholder_name:s.cardholderName,cardholder_email:s.cardholderEmail,cardholder_role:s.cardholderRole,cardholder_user_id:s.cardholderUserId,cardholder_department:s.cardholderDepartment,page_name:c,source:u,recommended_limits:l})}trackCardsUpdateSpendLimitClick(e,r,n,o,s,c,u,l,d,f,m,_,g){this.fireTrack(t.Event.cardsUpdateSpendLimitClick,{...this.getBaseCardProperties(e,r,_,g),card_name:n.cardName,card_type:n.cardType,card_category:n.cardCategory,card_limit:n.cardLimit,card_last_four_digits:n.cardLastFourDigits,card_status:n.cardStatus,card_utilization_amount:n.cardUtilizationAmount,card_utilization_percent:n.cardUtilizationPercent,card_id:n.cardId,card_assigned_date:n.cardAssignedDate,card_issued_date:n.cardIssuedDate,card_activated_date:n.cardActivatedDate,card_limit_frequency:n.cardLimitFrequency,card_spent_amount:n.cardSpentAmount,card_available_limit:n.cardAvailableLimit,total_number_of_declined_transactions:n.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:n.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:n.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:n.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:n.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:n.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:n.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:n.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:n.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:n.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:o.cardIssuedByName,card_issued_by_email:o.cardIssuedByEmail,card_issued_by_user_id:o.cardIssuedByUserId,card_issued_by_role:o.cardIssuedByRole,card_issued_by_department:o.cardIssuedByDepartment,cardholder_name:s.cardholderName,cardholder_email:s.cardholderEmail,cardholder_role:s.cardholderRole,cardholder_user_id:s.cardholderUserId,cardholder_department:s.cardholderDepartment,click_item:u,current_limit:l,new_limit:m,recommended_limits:d,was_recommended_limit_selected:f,card_limit_updated_by_name:c.cardLimitUpdatedByName,card_limit_updated_by_email:c.cardLimitUpdatedByEmail,card_limit_updated_by_role:c.cardLimitUpdatedByRole,card_limit_updated_by_user_id:c.cardLimitUpdatedByUserId})}trackCardsAddToWalletClick(e,r,n,o,s,c,u,l,d){this.fireTrack(t.Event.cardsAddToWalletClick,{...this.getBaseCardProperties(e,r,l,d),card_id:n.cardId,card_name:n.cardName,card_type:n.cardType,card_category:n.cardCategory,card_limit:n.cardLimit,card_last_four_digits:n.cardLastFourDigits,card_status:n.cardStatus,card_assigned_date:n.cardAssignedDate,card_issued_date:n.cardIssuedDate,card_limit_frequency:n.cardLimitFrequency,card_issued_by_name:o.cardIssuedByName,card_issued_by_email:o.cardIssuedByEmail,card_issued_by_user_id:o.cardIssuedByUserId,card_issued_by_role:o.cardIssuedByRole,card_issued_by_department:o.cardIssuedByDepartment,cardholder_name:s.cardholderName,cardholder_email:s.cardholderEmail,cardholder_role:s.cardholderRole,cardholder_user_id:s.cardholderUserId,cardholder_department:s.cardholderDepartment,page_name:c,click_item:u})}trackCardsPayEarlyClick(e,r,n,o,s,c,u,l,d){this.fireTrack(t.Event.cardsPayEarlyClick,{...this.getBaseCardPropertiesWithCashback(e,r,n,l,d),...this.getPaymentSourceProperties(u),click_item:c,page_name:o,source:s})}trackCardsPayEarlyFormView(e,r,n,o,s,c,u,l,d){this.fireTrack(t.Event.cardsPayEarlyFormView,{...this.getBaseCardPropertiesWithCashback(e,r,n,l,d),...this.getPaymentSourceProperties(u),is_autopay_selected:s,payment_amount:c,page_name:o})}trackCardsPayEarlyFormClick(e,r,n,o,s,c,u,l,d){this.fireTrack(t.Event.cardsPayEarlyFormClick,{...this.getBaseCardPropertiesWithCashback(e,r,n,l,d),...this.getPaymentSourceProperties(u),is_autopay_selected:s,...this.getCardPaymentProperties(c),click_item:o})}trackCardsPayEarlyPayNowClick(e,r,n,o,s,c,u,l){this.fireTrack(t.Event.cardsPayEarlyPayNowClick,{...this.getBaseCardPropertiesWithCashback(e,r,n,u,l),...this.getPaymentSourceProperties(c),is_autopay_selected:o,...this.getCardPaymentProperties(s)})}trackEnableBillPay(){this.fireTrack(t.Event.enableBillPay)}trackEnableReimbursement(){this.fireTrack(t.Event.enableReimbursement)}trackUploadInvoice(e,r,n){switch(r){case"w9":this.fireTrack(t.Event.vendor1099W9DocumentUpload,{invoice_upload_method:e,vendor_legal_name:n??""});break;case"reimbursement":this.fireTrack(t.Event.reimbursementInvoiceUpload,{invoice_upload_method:e});break;default:this.fireTrack(t.Event.billPayInvoiceUpload,{invoice_upload_method:e});break}}trackInvoiceActionClick(e,r,n,o){this.fireTrack(t.Event.billPayInvoiceActionClick,{bill_stage:e,action_clicked:r,user_name:n,override_data_click:o})}trackBillPaySkipAutofill(){this.fireTrack(t.Event.billPaySkipAutofill)}trackReimbursementSkipAutofill(){this.fireTrack(t.Event.reimbursementSkipAutofill)}trackBillPayNewBill(){this.fireTrack(t.Event.billPayNewBill)}trackReimbursementNewReimbursement(){this.fireTrack(t.Event.reimbursementNewReimbursement)}trackBillPayEditBill(e,r){this.fireTrack(t.Event.billPayEditBill,{bill_id:e,is_recurring_bill:r})}trackReimbursementEditReimbursement(e){this.fireTrack(t.Event.reimbursementEditReimbursement,{reimbursement_id:e})}trackBillPayBillDetails(e,r){this.fireTrack(t.Event.billPayBillDetails,{bill_id:e,is_recurring_bill:r})}trackReimbursementReimbursementDetails(e){this.fireTrack(t.Event.reimbursementReimbursementDetails,{reimbursement_id:e})}trackBillPayReviewBill(e,r,n,o,s,c,u,l,d,f,m,_,g,p){const v={final_vendor_name:c,zeni_rec_vendor_name:u,document_ai_rec_vendor_name:l,bill_id:d,invoice_number:f,invoice_date:r,bill_due_date:m,memo:_,currency:n,collect_from_vendor:o,international_transfer_fee_bearer_payment_method:g,is_recurring_bill:s,payment_method:e};s&&p!=null&&(v.recurring_bill_config={bill_value:p.totalAmount,start_date:p.startDate,end_date:p.endDate,frequency:p.frequency,total_payment_cycles:p.totalPaymentCycles,is_approval_required:p.isApprovalRequired}),this.fireTrack(t.Event.billPayReviewBill,v)}trackReimbursementSubmitReimbursement(e,r,n,o){this.fireTrack(t.Event.reimbursementSubmitReimbursement,{create_date:e,currency:r,total_amount:n,reimbursement_id:o})}trackBillPaySendForApproval(e,r,n,o,s,c,u){const l={bill_id:s,payment_method:e,scheduled_date:r,collect_from_vendor:n,international_transfer_fee_bearer_payment_method:c,is_recurring_bill:o};o&&u!=null&&(l.recurring_bill_config={bill_value:u.totalAmount,start_date:u.startDate,end_date:u.endDate,frequency:u.frequency,total_payment_cycles:u.totalPaymentCycles,is_approval_required:u.isApprovalRequired,is_update_current_bill:u.updateCurrentBill,is_update_future_bills:u.updateFutureRecurringBills}),this.fireTrack(t.Event.billPaySendForApproval,l)}trackBillPayDeleteBill(e,r){this.fireTrack(t.Event.billPayDeleteBill,{bill_id:e,is_recurring_bill:r})}trackBillPayCancelBill(e){this.fireTrack(t.Event.billPayCancelBill,{bill_id:e})}trackBillPayCancelAndDeleteBill(e,r){this.fireTrack(t.Event.billPayCancelAndDeleteBill,{bill_id:e,is_recurring_bill:r})}trackReimbursementListSort(e,r){this.fireTrack(t.Event.reimbursementListSort,{sort_key:e,sort_order:r})}trackReimbursementDeleteReimbursement(e){this.fireTrack(t.Event.reimbursementDeleteReimbursement,{reimbursement_id:e})}trackReimbursementCancelReimbursement(e){this.fireTrack(t.Event.reimbursementCancelReimbursement,{reimbursement_id:e})}trackReimbursementCancelAndDeleteReimbursement(e){this.fireTrack(t.Event.reimbursementCancelAndDeleteReimbursement,{reimbursement_id:e})}trackReimbursementDeleteReimbursementLine(e,r){this.fireTrack(t.Event.reimbursementDeleteReimbursementLine,{reimbursement_id:r,line_id:e})}trackReimbursementSubmitAnywayDuplicateReimbursement(e,r){this.fireTrack(t.Event.reimbursementSubmitAnywayDuplicateReimbursement,{reimbursement_id:r,number_of_duplicate_expenses:e})}trackReimbursementViewDuplicateExpense(e,r){this.fireTrack(t.Event.reimbursementViewDuplicateExpense,{reimbursement_id:r,is_duplicate_within_transaction:e})}trackReimbursementReviewDuplicateReportReimbursement(e,r){this.fireTrack(t.Event.reimbursementReviewDuplicateReportReimbursement,{reimbursement_id:r,number_of_duplicate_expenses:e})}trackReimbursementBulkSelectAll(e,r,n){this.fireTrack(t.Event.reimbursementBulkSelectAll,{report_stage:e,report_status:r,report_type:n})}trackReimbursementBulkDeleted(e,r,n,o){this.fireTrack(t.Event.reimbursementBulkDeleted,{total_reports_deleted:e,report_stage:r,report_status:n,report_type:o})}trackReimbursementBulkSubmit(e,r,n){this.fireTrack(t.Event.reimbursementBulkSubmit,{operation_type:e,report_stage:r,report_status:n})}trackReimbursementBulkSelection(e,r,n,o){this.fireTrack(t.Event.reimbursementBulkSelection,{total_reports_selected:e,report_stage:r,report_status:n,report_type:o})}trackReimbursementBulkPopupConfirm(e,r,n,o){this.fireTrack(t.Event.reimbursementBulkPopupConfirm,{operation_type:e,report_stage:r,report_status:n,report_type:o})}trackBillPayNewVendor(e,r,n,o,s,c,u){this.fireTrack(t.Event.billPayNewVendor,{vendor_name:e,vendor_category:r,vendor_class_name:n,vendor_type:o,vendor_contact_email:s,venfor_contact_name:c,vendor_contact_phone:u})}trackBillPayEditVendor(e){this.fireTrack(t.Event.billPayEditVendor,{vendor_id:e})}trackBillPayExpandVendor(e){this.fireTrack(t.Event.billPayExpandVendor,{vendor_id:e})}trackBillPayChooseNewVendor(){this.fireTrack(t.Event.billPayChooseNewVendor)}trackBillPayCreateNewVendorFromRecDropdown(e){this.fireTrack(t.Event.billPayCreateNewVendorFromDropdown,{vendor_name:e})}trackBillPayMagicLinkPreviewEmail(e){this.fireTrack(t.Event.billPayMagicLinkPreviewEmail,{on_page:e})}trackBillPayMagicLinkSubmitBankAccountDetails(e){this.fireTrack(t.Event.billPayMagicLinkSubmitBankAccountDetails,{bill_id:e})}trackBillPayMagicLinkPageLoad(e,r,n,o,s,c,u){this.fireTrack(t.Event.billPayMagicLinkPageLoad,{tenant_email_domain:e,vendor_id:r,company_name:n,bill_id:o,payment_method:s,currency:c,total_amount:u})}trackBillPayAutoDateChange(e){this.fireTrack(t.Event.billPayAutoDateChange,{bill_id:e})}trackBillPayBulkSelectAll(e,r,n){this.fireTrack(t.Event.billPayBulkSelectAll,{bill_stage:e,bill_status:r,bill_type:n})}trackBillPayBulkDeleted(e,r,n,o){this.fireTrack(t.Event.billPayBulkDeleted,{total_bills_deleted:e,bill_stage:r,bill_status:n,bill_type:o})}trackBillPayBulkSubmit(e,r,n){this.fireTrack(t.Event.billPayBulkSubmit,{operation_type:e,bill_stage:r,bill_status:n})}trackBillPayBulkSelection(e,r,n,o){this.fireTrack(t.Event.billPayBulkSelection,{total_bills_selected:e,bill_stage:r,bill_status:n,bill_type:o})}trackBillPayBulkPopupConfirm(e,r,n,o){this.fireTrack(t.Event.billPayBulkPopupConfirm,{operation_type:e,bill_stage:r,bill_status:n,bill_type:o})}trackBillPayMarkAsPaid(e,r){this.fireTrack(t.Event.billPayMarkAsPaid,{bill_stage:e,bill_status:r})}trackBillPayMarkAsPaidSubmit(e,r,n){this.fireTrack(t.Event.billPayMarkAsPaidSubmit,{payment_mode:e,bill_stage:r,bill_status:n})}trackGroupBySwitch(e,r){this.fireTrack(t.Event.groupBySwitch,{view:e,parent_card:r})}trackUpdateBurnRateCalculatorSettings(e,r,n){this.fireTrack(t.Event.burnRateCalculatorSettings,{accounting_method:e,time_span_id_for_avg_net_burn:r,number_of_months_for_average:n})}trackTransactionDetailsSave(e,r,n,o,s,c,u,l){this.fireTrack(t.Event.transactionDetailsSave,{account_id:e,account_name:r,transaction_id:n,transaction_name:o,transaction_type:s,changed_line_item_count:c,transaction_memo:u,receipt_file_names:l})}trackTransactionTypeUpdateTriggered({amount:e,creditAccountGroup:r,creditAccountId:n,creditAccountName:o,creditAccountType:s,currentTransactionType:c,debitAccountGroup:u,debitAccountId:l,debitAccountName:d,debitAccountType:f,previousTransactionMemo:m,previousTransactionType:_,transactionId:g,updatedTransactionMemo:p}){this.fireTrack(t.Event.transactionTypeUpdateTriggered,{previous_transaction_type:_,current_transaction_type:c,previous_transaction_memo:m,updated_transaction_memo:p,debit_account_name:d,debit_account_id:l,debit_account_type:f,debit_account_group:u,credit_account_name:o,credit_account_id:n,credit_account_type:s,credit_account_group:r,amount:e,transaction_id:g})}trackVendorList(e,r,n,o,s){this.fireTrack(t.Event.vendorList,{vendor_count:n,sort_key:o,spend_trend_key:s,current_tab:e,previous_tab:r})}trackVendorListSort(e,r,n){this.fireTrack(t.Event.vendorListSort,{vendor_count:e,sort_key:r,spend_trend_key:n})}trackVendorListSearch(e){this.fireTrack(t.Event.vendorListSearch,{search_term:e})}trackVendorListSpendTrendSelection(e,r,n){this.fireTrack(t.Event.vendorListSpendTrendSelection,{vendor_count:e,sort_key:r,spend_trend_key:n})}trackVendorDetails(e,r,n,o,s,c,u,l,d,f){this.fireTrack(t.Event.vendorDetails,{vendor_id:e,vendor_name:r,referrer_card:n,vendor_category:o,vendor_class_name:s,spend_trend_indicator_value:u,vendor_spend_last_30days:l,vendor_spend_last_90days:d,vendor_spend_ytd:f,vendor_owner:c})}trackVendorDetailsSave(e,r,n,o,s,c,u,l,d,f,m,_){this.fireTrack(t.Event.vendorDetailsSave,{vendor_id:e,vendor_name:r,vendor_category:n,vendor_class_name:o,vendor_owner:s,saved_vendor_category:c,saved_vendor_class:u,saved_vendor_owner:l,is_recommended_category_selected:d,is_recommended_class_selected:f,category_recommendation_used:m,class_recommendation_used:_})}trackVendorDetailsCancel(e,r,n,o,s){this.fireTrack(t.Event.vendorDetailsCancel,{vendor_id:e,vendor_name:r,vendor_category:n,vendor_class_name:o,vendor_owner:s})}trackVendorDetailsSpendTrendHotlinkClicked(e,r,n,o,s){this.fireTrack(t.Event.vendorDetailsSpendTrendHotlinkClicked,{vendor_id:e,vendor_name:r,vendor_category:n,vendor_class_name:o,vendor_owner:s})}trackAgingReportDownloadClick(e,r,n){this.fireTrack(t.Event.download,{referrer_card:e,sort_key:r,sort_order:n})}trackAgingReportDateChange(e,r,n,o){this.fireTrack(t.Event.agingReportDateChange,{referrer_card:e,current_report_date:r,new_report_date:n,new_report_date_selection:o})}trackAgingReportSortChange(e,r,n){this.fireTrack(t.Event.sort,{referrer_card:e,sort_key:r,sort_order:n})}trackApAgingDetail(e,r,n,o){this.fireTrack(t.Event.apAgingDetail,{referrer_card:e,vendor_id:n,vendor_name:o,current_report_date:r})}trackArAgingDetail(e,r,n,o){this.fireTrack(t.Event.arAgingDetail,{referrer_card:e,customer_id:n,customer_name:o,current_report_date:r})}trackApAgingDetailReportSortChange(e,r,n,o,s){this.fireTrack(t.Event.sort,{referrer_card:"AP Aging Detail",sort_key:e,sort_order:r,vendor_id:o,vendor_name:s,current_report_date:n})}trackArAgingDetailReportSortChange(e,r,n,o,s){this.fireTrack(t.Event.sort,{referrer_card:"AR Aging Detail",sort_key:e,sort_order:r,customer_id:o,customer_name:s,current_report_date:n})}trackApAgingDetailReportDownload(e,r,n,o,s){this.fireTrack(t.Event.download,{referrer_card:"AP Aging Detail",sort_key:e,sort_order:r,vendor_id:o,vendor_name:s,current_report_date:n})}trackArAgingDetailReportDownload(e,r,n,o,s){this.fireTrack(t.Event.download,{referrer_card:"AR Aging Detail",sort_key:e,sort_order:r,customer_id:o,customer_name:s,current_report_date:n})}trackVendorReviewPage(e,r){this.fireTrack(t.Event.vendorReviewList,{vendor_review_source:e,vendor_review_count_total:r})}trackVendorReviewApproveRequested({reviewSource:e,tenantName:r,requestedVendorName:n,originalVendorName:o,approveVendorName:s,approveVendorNameSelectionSource:c,approveVendorReason:u,isGlobalVendorRequested:l,isNewCreatedVendorRequested:d,isVendorNameRecommendationSelected:f,isVendorNameChangedAndSelected:m,wasRecommendationAvailable:_,recommendedVendorName:g,recommendedVendorReason:p}){this.fireTrack(t.Event.vendorReviewGlobalApproveRequest,{vendor_review_source:e,vendor_review_tenant_name:r,old_vendor_name_requested:n,old_vendor_name_original:o,approve_vendor_name_requested:s,approve_vendor_name_recommendation_reason:u,approve_vendor_name_selection_source:c,vendor_name_recommendation:g,vendor_name_recommendation_reason:p,is_vendor_recommended:_,is_recommended_vendor_name_selected:f,is_vendor_renamed:m,is_global_vendor_selected:l,is_vendor_name_new_created_and_selected:d})}trackVendorReviewNewVendorRequested({reviewSource:e,tenantName:r,newRequestedVendorName:n,newRequestedVendorNameSource:o,isVendorNameRecommendationSelected:s,recommendedVendorName:c,recommendedVendorReason:u}){this.fireTrack(t.Event.vendorReviewGlobalNewVendorRequest,{vendor_review_source:e,vendor_review_tenant_name:r,new_vendor_name_requested:n,new_vendor_name_selection_source:o,new_vendor_recommendation_vendor_name:c,new_vendor_recommendation_vendor_name_reason:u,is_recommended_vendor_name_selected:s})}trackVendorReviewNewVendorSaved({reviewSource:e,saveRequestedVendorName:r,saveRequestedVendorSource:n,isVendorNameRecommendationSelected:o,tenantName:s,recommendedVendorName:c,recommendedVendorReason:u}){this.fireTrack(t.Event.vendorReviewGlobalNewVendorSave,{vendor_review_source:e,vendor_review_tenant_name:s,saved_vendor_name:r,saved_vendor_name_selection_source:n,new_vendor_recommendation_vendor_name:c,new_vendor_recommendation_vendor_name_reason:u,is_recommended_vendor_name_selected:o})}trackVendorReviewNewVendorCanceled({reviewSource:e,newRequestedVendorName:r,tenantName:n,recommendedVendorName:o,recommendedVendorReason:s}){this.fireTrack(t.Event.vendorReviewGlobalNewVendorCancel,{vendor_review_source:e,vendor_review_tenant_name:n,new_vendor_name_requested:r,new_vendor_recommendation_vendor_name:o,new_vendor_recommendation_vendor_name_reason:s})}trackVendorReviewSaveVendorRequested({reviewSource:e,vendorName:r,vendorReviewStatus:n,saveRequestedVendorName:o,saveRequestedVendorReason:s,saveRequestedVendorSource:c,isGlobalVendorRequested:u,isVendorNameRetainSelected:l,isVendorNameRecommendationSelected:d,isVendorNameChangedAndSelected:f,wasRecommendationAvailable:m,isVendorNameMarkedAsEmployee:_,isVendorNameMarkedAsLocalContractor:g,recommendedVendorName:p,recommendedVendorReason:v}){this.fireTrack(t.Event.vendorReviewTenantSave,{vendor_review_source:e,old_vendor_name:r,review_status:n,saved_vendor_name:o,save_vendor_name_recommendation_reason:s,saved_vendor_name_source:c,vendor_name_recommendation:p,vendor_name_recommendation_reason:v,is_vendor_name_retain_selected:l,is_recommended_vendor_name_selected:d,is_global_vendor_selected:u,is_vendor_renamed:f,is_vendor_recommended:m,is_vendor_employee:_,is_vendor_contractor:g})}trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:e,event:r,vendorName:n,vendorReviewStatus:o,saveRequestedVendorName:s,saveRequestedVendorReason:c,saveRequestedVendorSource:u,isVendorNameRetainSelected:l,isVendorNameRecommendationSelected:d,isVendorNameChangedAndSelected:f,wasRecommendationAvailable:m,recommendedVendorName:_,recommendedVendorReason:g}){this.fireTrack(r,{vendor_review_source:e,old_vendor_name:n,review_status:o,saved_vendor_name:s,save_vendor_name_recommendation_reason:c,saved_vendor_name_source:u,vendor_name_recommendation:_,vendor_name_recommendation_reason:g,is_vendor_name_retain_selected:l,is_recommended_vendor_name_selected:d,is_vendor_renamed:f,is_vendor_recommended:m})}trackVendorReviewRecommendationUpdateContinuedOrCanceled({reviewSource:e,event:r,vendorName:n,vendorReviewStatus:o,saveRequestedVendorName:s,saveRequestedVendorReason:c,saveRequestedVendorSource:u,isVendorNameRetainSelected:l,isVendorNameRecommendationSelected:d,isVendorNameChangedAndSelected:f,wasRecommendationAvailable:m,updatedRecommendedVendorName:_,updatedRecommendedVendorReason:g,recommendedVendorName:p,recommendedVendorReason:v}){this.fireTrack(r,{vendor_review_source:e,old_vendor_name:n,review_status:o,saved_vendor_name:s,save_vendor_name_recommendation_reason:c,saved_vendor_name_source:u,updated_recommendation_vendor_name:_,updated_recommendation_vendor_name_reason:g,vendor_name_recommendation:p,vendor_name_recommendation_reason:v,is_vendor_name_retain_selected:l,is_recommended_vendor_name_selected:d,is_vendor_renamed:f,is_vendor_recommended:m})}trackVendorReviewUpdateVendorCanceled({reviewSource:e,vendorName:r,vendorReviewStatus:n,wasRecommendationAvailable:o,recommendedVendorName:s,recommendedVendorReason:c}){this.fireTrack(t.Event.vendorReviewTenantUpdateCancel,{vendor_review_source:e,old_vendor_name:r,review_status:n,vendor_name_recommendation:s,vendor_name_recommendation_reason:c,is_vendor_recommended:o})}trackVendorReviewWebsiteOpened({reviewSource:e,vendorName:r,wasRecommendationAvailable:n,recommendedVendorName:o,recommendedVendorReason:s,vendorWebsite:c}){this.fireTrack(t.Event.vendorReviewTenantWebsiteOpened,{vendor_review_source:e,old_vendor_name:r,vendor_name_recommendation:o,vendor_name_recommendation_reason:s,is_vendor_recommended:n,vendor_website:c})}trackCockpitTabClicked(e){const r={tab_name:e};this.fireTrack(t.Event.cockpitTabClicked,r)}trackCockpitHealthMonitorRowClicked(e,r,n,o,s,c){const u={company_id:e,company_name:r,churn_percent:c,controller_name:n,nps:o,csat:s};this.fireTrack(t.Event.cockpitHealthMonitorRowClicked,u)}trackHealthMonitorFiltersApplied({filterSelection:e}){this.fireTrack(t.Event.healthMonitorFilterApplied,{parameter:e.parameter,condition:e.condition,logic:e.logic})}trackCockpitHealthMonitorNotificationAlertClicked(e){const r={company_id:e.companyId,company_name:e.companyName,churn_percent:e.churnProbability};this.fireTrack(t.Event.cockpitHealthMonitorNotificationAlertClicked,r)}trackCockpitHealthMonitorChurnFormClicked(e,r){const n={click_type:e,company_id:r.companyId,company_name:r.companyName,zeni_products_and_services:r.zeniProductAndServicesCount,days_to_renewal:r.daysToRenewal,nps:r.netPromoterScore,csat:r.customerSatisfactionScore,external_services_exposure:r.externalServicesExposure,runway_months:r.runwayMonths,dashboard_last_seen:r.dashBoardLastSeen,last_report_sent:r.lastReportSent,churn_percent:r.churnProbability};this.fireTrack(t.Event.cockpitHealthMonitorChurnFormClicked,n)}trackScheduleReviewListLoaded({scheduleType:e,scheduleTab:r,currentTab:n,previousTab:o,scheduleCountTotal:s,categories:c,startMonth:u,endMonth:l,controllerEmails:d,controllerUserIds:f}){this.fireTrack(t.Event.scheduleReviewList,{schedule_type:e,schedule_list_tab:r,schedule_count_total:s,current_tab:n,previous_tab:o,schedule_account_categories_selected:c,schedule_period_start_month:u,schedule_period_end_month:l,controller_emails:d,controller_user_ids:f})}trackScheduleDetailsLoaded({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:n,scheduledTransaction:o,vendorName:s,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f,scheduleCategory:m,scheduleClass:_,description:g}=r,{currentBalance:p,currentStatus:v,startMonth:y,endMonth:b,period:k}=o,{expenseCategory:w,expenseClass:S}=n;this.fireTrack(t.Event.scheduleDetailsPage,{schedule_type:e,vendor_name:s,transaction_date:d,transaction_amount:f,schedule_current_balance:p,schedule_category:m,schedule_class:_,schedule_description:g,schedule_current_status:v,schedule_start_month:y,schedule_end_month:b,schedule_number_of_months:k,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsSaved({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:n,scheduledTransaction:o,vendorName:s,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f,scheduleCategory:m,scheduleClass:_,description:g}=r,{currentBalance:p,currentStatus:v,startMonth:y,endMonth:b,period:k}=o,{expenseCategory:w,expenseClass:S}=n;this.fireTrack(t.Event.scheduleDetailsSave,{schedule_type:e,vendor_name:s,transaction_date:d,transaction_amount:f,schedule_current_balance:p,schedule_category:m,schedule_class:_,schedule_description:g,schedule_current_status:v,schedule_start_month:y,schedule_end_month:b,schedule_number_of_months:k,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsCanceled({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:n,scheduledTransaction:o,vendorName:s,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f,scheduleCategory:m,scheduleClass:_,description:g}=r,{currentBalance:p,currentStatus:v,startMonth:y,endMonth:b,period:k}=o,{expenseCategory:w,expenseClass:S}=n;this.fireTrack(t.Event.scheduleDetailsCancel,{schedule_type:e,vendor_name:s??"",transaction_date:d,transaction_amount:f,schedule_current_balance:p,schedule_category:m,schedule_class:_,schedule_description:g,schedule_current_status:v,schedule_start_month:y,schedule_end_month:b,schedule_number_of_months:k,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsLinkJournalEntry({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:n,journalEntryDetails:o,vendorName:s,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f,scheduleCategory:m,scheduleClass:_}=r,{journalEntryMonth:g,journalEntryPostingDate:p,journalEntryTransactionAmount:v,journalEntryPostingStatus:y,journalEntryMemo:b}=o,{expenseCategory:k,expenseClass:w}=n;this.fireTrack(t.Event.scheduleDetailsLinkJournalEntry,{schedule_type:e,vendor_name:s,transaction_date:d,transaction_amount:f,schedule_category:m,schedule_class:_,journal_entry_month:g,journal_entry_posting_date:p,journal_entry_transaction_amount:v,journal_entry_posting_status:y,journal_entry_memo:b,expense_category:k,expense_class:w,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsViewJournalEntry({scheduleType:e,scheduleExpenseCategoryAndClass:r,journalEntryDetails:n,fixedAssetsDetails:o,controllerEmails:s,controllerUserIds:c}){const{journalEntryMonth:u,journalEntryPostingDate:l,journalEntryTransactionAmount:d,journalEntryPostingStatus:f,journalEntryMemo:m}=n,{expenseCategory:_,expenseClass:g}=r;this.fireTrack(t.Event.scheduleDetailsViewJournalEntry,{schedule_type:e,journal_entry_month:u,journal_entry_posting_date:l,journal_entry_transaction_amount:d,journal_entry_posting_status:f,journal_entry_memo:m,expense_category:_,expense_class:g,accumulated_depreciation_category:o?.accumulatedDepreciationCategory??null,asset_id:o?.assetId??null,controller_emails:s,controller_user_ids:c})}trackScheduleDetailsDeleted({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:n,scheduledTransaction:o,vendorName:s,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f,scheduleCategory:m,scheduleClass:_,description:g}=r,{currentBalance:p,currentStatus:v,startMonth:y,endMonth:b,period:k}=o,{expenseCategory:w,expenseClass:S}=n;this.fireTrack(t.Event.scheduleDetailsDelete,{schedule_type:e,vendor_name:s,transaction_date:d,transaction_amount:f,schedule_current_balance:p,schedule_category:m,schedule_class:_,schedule_description:g,schedule_current_status:v,schedule_start_month:y,schedule_end_month:b,schedule_number_of_months:k,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsMarkedAsCompleted({scheduleType:e,transaction:r,scheduledTransaction:n,scheduleExpenseCategoryAndClass:o,vendorName:s,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f,scheduleCategory:m,scheduleClass:_,description:g}=r,{currentBalance:p,currentStatus:v,startMonth:y,endMonth:b,period:k}=n,{expenseCategory:w,expenseClass:S}=o;this.fireTrack(t.Event.scheduleDetailsMarkComplete,{schedule_type:e,vendor_name:s,transaction_date:d,transaction_amount:f,schedule_current_balance:p,schedule_category:m,schedule_class:_,schedule_description:g,schedule_current_status:v,schedule_start_month:y,schedule_end_month:b,schedule_number_of_months:k,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:n,journalEntryDetails:o,vendorName:s,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f}=r,{journalEntryMonth:m,journalEntryPostingDate:_,journalEntryTransactionAmount:g,journalEntryPostingStatus:p,journalEntryMemo:v,journalEntryQBOLink:y,wasRecommendationAvailable:b,wasRecommendationSelected:k}=o,{expenseCategory:w,expenseClass:S}=n;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkedSaved,{schedule_type:e,vendor_name:s,transaction_date:d,transaction_amount:f,journal_entry_month:m,journal_entry_posting_date:_,journal_entry_transaction_amount:g,journal_entry_posting_status:p,journal_entry_qbo_link:y,journal_entry_memo:v,is_vendor_recommended:b,was_recommendation_selected:k,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsJournalEntryQBOFetched({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:n,journalEntryDetails:o,vendorName:s,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f}=r,{journalEntryMonth:m,journalEntryPostingDate:_,journalEntryTransactionAmount:g,journalEntryPostingStatus:p,journalEntryMemo:v,wasRecommendationAvailable:y,wasRecommendationSelected:b,journalEntryQBOLink:k}=o,{expenseCategory:w,expenseClass:S}=n;this.fireTrack(t.Event.scheduleDetailsJournalEntryQBOFetched,{schedule_type:e,vendor_name:s,transaction_date:d,transaction_amount:f,journal_entry_month:m,journal_entry_posting_date:_,journal_entry_transaction_amount:g,journal_entry_posting_status:p,journal_entry_qbo_link:k,journal_entry_memo:v,is_vendor_recommended:y,was_recommendation_selected:b,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:n,journalEntryDetails:o,vendorName:s,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f}=r,{journalEntryMonth:m,journalEntryPostingDate:_,journalEntryTransactionAmount:g,journalEntryPostingStatus:p,journalEntryMemo:v,wasRecommendationAvailable:y,wasRecommendationSelected:b,journalEntryQBOLink:k}=o,{expenseCategory:w,expenseClass:S}=n;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkCancel,{schedule_type:e,vendor_name:s,transaction_date:d,transaction_amount:f,journal_entry_month:m,journal_entry_posting_date:_,journal_entry_transaction_amount:g,journal_entry_posting_status:p,journal_entry_qbo_link:k,journal_entry_memo:v,is_vendor_recommended:y,was_recommendation_selected:b,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleAccruedDetailsNewRequested({scheduleType:e}){this.fireTrack(t.Event.scheduleDetailsNewRequested,{schedule_type:e})}trackScheduleAccruedDetailsLoaded({scheduleType:e,scheduleExpenseCategoryAndClass:r,vendorName:n,controllerEmails:o,schedule:s,controllerUserIds:c}){const{startingBalance:u,scheduleAccountCategory:l,description:d,scheduleCreateDate:f,scheduleMonthlyAmount:m,runningBalance:_,currentStatus:g,startMonth:p,endMonth:v,period:y}=s,{expenseCategory:b,expenseClass:k}=r;this.fireTrack(t.Event.scheduleDetailsPage,{schedule_type:e,controller_emails:o,controller_user_ids:c,schedule_expense_category:b,schedule_expense_class:k,schedule_account_category:l,schedule_create_date:f,schedule_current_balance:_,schedule_current_status:g,schedule_description:d,schedule_end_month:v,schedule_monthly_amount:m,schedule_number_of_months:y,schedule_start_month:p,schedule_starting_balance:u,vendor_name:n})}trackScheduleAccruedDetailsSaved({scheduleType:e,scheduleExpenseCategoryAndClass:r,vendorName:n,controllerEmails:o,schedule:s,controllerUserIds:c}){const{startingBalance:u,scheduleAccountCategory:l,description:d,scheduleCreateDate:f,scheduleMonthlyAmount:m,runningBalance:_,currentStatus:g,startMonth:p,endMonth:v,period:y}=s,{expenseCategory:b,expenseClass:k}=r;this.fireTrack(t.Event.scheduleDetailsSave,{schedule_type:e,controller_emails:o,controller_user_ids:c,schedule_expense_category:b,schedule_expense_class:k,schedule_account_category:l,schedule_create_date:f,schedule_current_balance:_,schedule_current_status:g,schedule_description:d,schedule_end_month:v,schedule_monthly_amount:m,schedule_number_of_months:y,schedule_start_month:p,schedule_starting_balance:u,vendor_name:n})}trackScheduleAccruedDetailsCanceled({scheduleType:e,scheduleExpenseCategoryAndClass:r,vendorName:n,controllerEmails:o,schedule:s,controllerUserIds:c,lastPostedScheduleMonth:u}){const{startingBalance:l,scheduleAccountCategory:d,description:f,scheduleCreateDate:m,scheduleMonthlyAmount:_,runningBalance:g,currentStatus:p,startMonth:v,endMonth:y,period:b}=s,{expenseCategory:k,expenseClass:w}=r;this.fireTrack(t.Event.scheduleDetailsCancel,{schedule_type:e,controller_emails:o,controller_user_ids:c,schedule_expense_category:k,schedule_expense_class:w,schedule_account_category:d,schedule_create_date:m,schedule_current_balance:g,schedule_current_status:p,schedule_description:f,schedule_end_month:y,schedule_monthly_amount:_,schedule_number_of_months:b,schedule_start_month:v,schedule_starting_balance:l,vendor_name:n,schedule_last_month_with_posted_status:u})}trackScheduleAccruedDetailsDeleted({scheduleType:e,scheduleExpenseCategoryAndClass:r,vendorName:n,controllerEmails:o,schedule:s,controllerUserIds:c,scheduleNonPendingLastMonth:u,scheduleNonPendingLastMonthStatus:l}){const{startingBalance:d,scheduleAccountCategory:f,description:m,scheduleCreateDate:_,scheduleMonthlyAmount:g,runningBalance:p,currentStatus:v,startMonth:y,endMonth:b,period:k}=s,{expenseCategory:w,expenseClass:S}=r;this.fireTrack(t.Event.scheduleDetailsDelete,{schedule_type:e,controller_emails:o,controller_user_ids:c,schedule_expense_category:w,schedule_expense_class:S,schedule_account_category:f,schedule_create_date:_,schedule_current_balance:p,schedule_current_status:v,schedule_description:m,schedule_end_month:b,schedule_monthly_amount:g,schedule_number_of_months:k,schedule_start_month:y,schedule_starting_balance:d,vendor_name:n,schedule_non_pending_last_month:u,schedule_non_pending_last_month_status:l})}trackScheduleAccruedDetailsLinkJournalEntry({scheduleType:e,scheduleExpenseCategoryAndClass:r,schedule:n,vendorName:o,journalEntryDetails:s,controllerEmails:c,controllerUserIds:u}){const{journalEntryMonth:l,journalEntryAmount:d,journalEntryBalance:f,journalEntryPostingStatus:m}=s,{scheduleCreateDate:_,scheduleMonthlyAmount:g,currentStatus:p,description:v,endMonth:y,period:b,runningBalance:k,scheduleAccountCategory:w,startMonth:S,startingBalance:P}=n,{expenseCategory:I,expenseClass:E}=r;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkExpense,{schedule_type:e,schedule_create_date:_,vendor_name:o,schedule_monthly_amount:g,schedule_description:v,schedule_current_status:p,schedule_start_month:S,schedule_end_month:y,schedule_number_of_months:b,schedule_current_balance:k,schedule_starting_balance:P,schedule_account_category:w,schedule_entry_expense_link_amount:d,schedule_entry_expense_link_balance:f,schedule_entry_expense_link_month:l,schedule_entry_current_status:m,schedule_expense_category:I,schedule_expense_class:E,controller_emails:c,controller_user_ids:u})}trackScheduleAccruedDetailsViewJournalEntry({scheduleType:e,scheduleJournalEntryType:r,scheduleExpenseCategoryAndClass:n,schedule:o,vendorName:s,journalEntryDetails:c,controllerEmails:u,controllerUserIds:l}){const{journalEntryMonth:d,journalEntryAmount:f,journalEntryBalance:m,journalEntryPostingStatus:_}=c,{scheduleCreateDate:g,scheduleMonthlyAmount:p,currentStatus:v,description:y,endMonth:b,period:k,runningBalance:w,scheduleAccountCategory:S,startMonth:P,startingBalance:I}=o,{expenseCategory:E,expenseClass:L}=n;this.fireTrack(t.Event.scheduleDetailsViewJournalEntry,{schedule_type:e,schedule_journal_entry_type:r,schedule_create_date:g,vendor_name:s,schedule_monthly_amount:p,schedule_account_category:S,schedule_description:y,schedule_current_status:v,schedule_start_month:P,schedule_end_month:b,schedule_number_of_months:k,schedule_expense_category:E,schedule_expense_class:L,schedule_current_balance:w,schedule_starting_balance:I,schedule_entry_current_status:_,schedule_entry_expense_link_amount:f,schedule_entry_expense_link_balance:m,schedule_entry_expense_link_month:d,controller_emails:u,controller_user_ids:l})}trackScheduleAccruedDetailsJournalEntryViewLinkedExpense({scheduleType:e,scheduleExpenseCategoryAndClass:r,schedule:n,vendorName:o,journalEntryDetails:s,controllerEmails:c,controllerUserIds:u}){const{journalEntryMonth:l,journalEntryAmount:d,journalEntryBalance:f,journalEntryPostingStatus:m}=s,{scheduleCreateDate:_,scheduleMonthlyAmount:g,currentStatus:p,description:v,endMonth:y,period:b,runningBalance:k,scheduleAccountCategory:w,startMonth:S,startingBalance:P}=n,{expenseCategory:I,expenseClass:E}=r;this.fireTrack(t.Event.scheduleDetailsJournalEntryViewLinkedExpense,{schedule_type:e,schedule_create_date:_,vendor_name:o,schedule_monthly_amount:g,schedule_account_category:w,schedule_description:v,schedule_current_status:p,schedule_start_month:S,schedule_end_month:y,schedule_number_of_months:b,schedule_expense_category:I,schedule_expense_class:E,schedule_current_balance:k,schedule_starting_balance:P,schedule_entry_current_status:m,schedule_entry_expense_link_amount:d,schedule_entry_expense_link_balance:f,schedule_entry_expense_link_month:l,controller_emails:c,controller_user_ids:u})}trackScheduleAccruedDetailsJournalEntryLinkCanceled({scheduleType:e,scheduleExpenseCategoryAndClass:r,schedule:n,vendorName:o,journalEntryDetails:s,controllerEmails:c,controllerUserIds:u}){const{journalEntryMonth:l,journalEntryAmount:d,journalEntryBalance:f,journalEntryPostingStatus:m}=s,{scheduleCreateDate:_,scheduleMonthlyAmount:g,currentStatus:p,description:v,endMonth:y,period:b,runningBalance:k,scheduleAccountCategory:w,startMonth:S,startingBalance:P}=n,{expenseCategory:I,expenseClass:E}=r;this.fireTrack(t.Event.scheduleDetailsEntryCanceled,{schedule_type:e,schedule_create_date:_,vendor_name:o,schedule_monthly_amount:g,schedule_description:v,schedule_current_status:p,schedule_start_month:S,schedule_end_month:y,schedule_number_of_months:b,schedule_current_balance:k,schedule_starting_balance:P,schedule_account_category:w,schedule_entry_expense_link_month:l,schedule_expense_category:I,schedule_expense_class:E,schedule_entry_current_status:m,schedule_entry_expense_link_amount:d,schedule_entry_expense_link_balance:f,controller_emails:c,controller_user_ids:u})}trackScheduleAccruedDetailsJournalEntryLinkedLoaded({scheduleType:e,scheduleExpenseCategoryAndClass:r,schedule:n,vendorName:o,journalEntryDetails:s,controllerEmails:c,controllerUserIds:u}){const{currentStatus:l,description:d,endMonth:f,period:m,runningBalance:_,scheduleAccountCategory:g,scheduleCreateDate:p,scheduleMonthlyAmount:v,startMonth:y,startingBalance:b}=n,{wasRecommendationAvailable:k,journalEntryPostingStatus:w}=s,{expenseCategory:S,expenseClass:P}=r;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkExpenseLoaded,{schedule_type:e,vendor_name:o,schedule_create_date:p,schedule_monthly_amount:v,schedule_description:d,schedule_current_status:l,schedule_start_month:y,schedule_end_month:f,schedule_number_of_months:m,schedule_current_balance:_,schedule_starting_balance:b,schedule_account_category:g,schedule_expense_category:S,schedule_expense_class:P,controller_emails:c,schedule_entry_current_status:w,controller_user_ids:u,is_vendor_recommended:k})}trackScheduleAccruedDetailsJournalEntryLinkedSaved({scheduleType:e,scheduleExpenseCategoryAndClass:r,schedule:n,vendorName:o,transactionDetails:s,journalEntryDetails:c,controllerEmails:u,controllerUserIds:l}){const{currentStatus:d,description:f,endMonth:m,period:_,runningBalance:g,scheduleAccountCategory:p,scheduleCreateDate:v,scheduleMonthlyAmount:y,startMonth:b,startingBalance:k}=n,{wasRecommendationAvailable:w,wasRecommendationSelected:S,journalEntryPostingStatus:P}=c,{linkedTransactionAmount:I,linkedTransactionDate:E,linkedTransactionDescription:L,linkedTransactionType:x}=s,{expenseCategory:F,expenseClass:J}=r;this.fireTrack(t.Event.scheduleDetailsJounralEntryLinkExpenseSaved,{schedule_type:e,vendor_name:o,schedule_create_date:v,schedule_monthly_amount:y,schedule_description:f,schedule_current_status:d,schedule_start_month:b,schedule_end_month:m,schedule_number_of_months:_,schedule_current_balance:g,schedule_starting_balance:k,schedule_account_category:p,schedule_expense_category:F,schedule_expense_class:J,controller_emails:u,controller_user_ids:l,is_vendor_recommended:w,was_recommendation_selected:S,linked_transaction_amount:I,linked_transaction_date:E,schedule_entry_current_status:P,linked_transaction_description:L,linked_transaction_type:x})}trackScheduleAccruedDetailsJournalEntryLinkedCanceled({scheduleType:e,scheduleExpenseCategoryAndClass:r,schedule:n,vendorName:o,journalEntryDetails:s,controllerEmails:c,controllerUserIds:u}){const{currentStatus:l,description:d,endMonth:f,period:m,runningBalance:_,scheduleAccountCategory:g,scheduleCreateDate:p,scheduleMonthlyAmount:v,startMonth:y,startingBalance:b}=n,{wasRecommendationAvailable:k,journalEntryPostingStatus:w}=s,{expenseCategory:S,expenseClass:P}=r;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkExpenseCanceled,{schedule_type:e,vendor_name:o,schedule_create_date:p,schedule_monthly_amount:v,schedule_description:d,schedule_current_status:l,schedule_start_month:y,schedule_end_month:f,schedule_number_of_months:m,schedule_current_balance:_,schedule_starting_balance:b,schedule_account_category:g,schedule_expense_category:S,schedule_expense_class:P,controller_emails:c,controller_user_ids:u,schedule_entry_current_status:w,is_vendor_recommended:k})}trackCockpitTaskCardClicked({tenantName:e,tenantId:r,user:n,controllerEmails:o}){this.fireTrack(t.Event.cockpitTaskCardClicked,{tenant_name:e,tenant_id:r,user_name:n.name,user_email:n.email,user_role:n.role,controller_emails:o})}trackTaskEdited({tenantName:e,taskId:r,activity:n,createdBy:o,commentsCreated:s}){const{name:c,description:u,status:l,priority:d,assignees:f,numberOfAttachments:m,tags:_,dueDate:g}=n.details;this.fireTrack(t.Event.taskEdited,{tenant_name:e,task_id:r,created_by:o,activity_count:n.count,activity_type:{name:c,description:u,status:l,priority:d,assignees:f,file_attached_count:m,tags:_,due_date:g},activity_by_user:n.byUser,comment_created:s})}trackTaskCreated({tenantName:e,taskId:r,newButtonClicked:n,activity:o,createdBy:s}){const{name:c,description:u,status:l,priority:d,assignees:f,numberOfAttachments:m,tags:_,dueDate:g}=o.details;this.fireTrack(t.Event.newTaskRequested,{tenant_name:e,task_id:r,created_by:s,new_task_button_clicked:n,file_attached_count:m,assignees:f,priority_set:d,task_name:c,task_description:u,task_status:l,tag_name:_?_.join(","):null,task_due_date:g})}trackRewardsPageClicked(e){this.fireTrack(t.Event.rewardsPageClicked,{click_type:e})}trackDashboardCardClicked(e,r){this.fireTrack(t.Event.dashboardCardClicked,{click_type:e,card_position:r})}trackInviteEmailClicked(e,r,n,o){this.fireTrack(t.Event.inviteEmailClicked,{click_type:e,referred_company:r,referred_email:n,invitee_count:o})}trackGetAuditScore(e,r,n,o,s){this.fireTrack(t.Event.getAuditScore,{clicked:e,tenant:r,report_month:n,controller_name:o,report_timestamp:s})}trackAuditScorePercentage(e,r,n,o,s,c,u,l){this.fireTrack(t.Event.auditScorePercentage,{report_timestamp:e,report_month:r,score_percentage:n,issue_type:s,tenant:o,controller_name:u,customer_group:l,no_of_issues:c})}trackAuditIssuesClicked(e,r,n,o){this.fireTrack(t.Event.auditIssuesClicked,{clicked_issue:e,tenant:r,controller_name:n,created_at:o})}trackZeniAssistClick(e,r,n,o,s){this.fireTrack(t.Event.zeniAssistClick,{bill_stage:r,bill_status:e,bill_type:o,error_description:n,invoice_number:s})}trackRetryClick(e,r,n,o,s){this.fireTrack(t.Event.retryClick,{bill_stage:r,bill_status:e,bill_type:o,error_description:n,invoice_number:s})}trackRetryConfirmClick(e,r,n,o,s){this.fireTrack(t.Event.retryConfirmClick,{bill_stage:r,bill_status:e,bill_type:o,error_description:n,invoice_number:s})}trackRefundClick(e,r,n,o,s){this.fireTrack(t.Event.refundClick,{bill_stage:r,bill_status:e,bill_type:o,error_description:n,invoice_number:s})}trackRefundConfirmClick(e,r,n,o,s){this.fireTrack(t.Event.refundConfirmClick,{bill_stage:r,bill_status:e,bill_type:o,error_description:n,invoice_number:s})}trackVendor1099DetailSave(e){this.fireTrack(t.Event.vendor1099DetailsSave,{vendor_legal_name:e})}trackVendor1099ReportDownload(e){this.fireTrack(t.Event.vendor1099ReportDownload,{report:e.includes("All")?"All":e.toUpperCase()})}trackEnableIntlWire(e){this.fireTrack(t.Event.enableIntlWire,{local_currency_enabled:e})}trackSubmitIntlWire(e){this.fireTrack(t.Event.submitIntlWire,{local_currency_enabled:e})}trackIntlWirePaymentSelect(e,r,n,o,s){this.fireTrack(t.Event.intlWirePaymentMethod,{bill_stage:e,bill_status:r,bill_type:n,invoice_number:o,local_currency_enabled:s})}trackMonthEndCloseClicked(e,r,n){this.fireTrack(t.Event.monthCloseClicked,{month_year:`${e}-${r}`,source:n})}trackMonthCloseAuditPage(e,r,n,o,s,c){this.fireTrack(t.Event.monthCloseAuditPage,{month_year:`${e}-${r}`,audit_score:o,refresh_clicked:s,status:n,source:c})}trackTransactionsReviewPage(e,r,n,o,s,c){this.fireTrack(t.Event.transactionsReview,{month_year:`${e}-${r}`,refresh_clicked:s,number_of_transactions:n,transaction_updates:o,source:c})}trackTransactionsAutoCategorisedPage(e,r,n,o,s,c){this.fireTrack(t.Event.transactionsAutoCategorised,{month_year:`${e}-${r}`,refresh_clicked:s,number_of_transactions:n,transaction_updates:o,source:c})}trackMonthCloseScheduleListPage(e,r,n,o,s,c){this.fireTrack(t.Event.monthCloseScheduleList,{month_year:`${e}-${r}`,refresh_clicked:n,number_of_recommendations:o,failed_postings:s,source:c})}trackFluxAnalysisPage(e,r,n,o,s){this.fireTrack(t.Event.fluxAnalysis,{month_year:`${e}-${r}`,refresh_clicked:n,open_items:o,source:s})}trackFluxAnalysisReviewed(e,r,n,o){this.fireTrack(t.Event.fluxAnalysisReviewed,{month_year:`${e}-${r}`,number_of_items_reviewed:o.length,is_bulk_update:n})}trackMissingReceiptsPage(e,r,n,o,s){this.fireTrack(t.Event.missingReceipts,{month_year:`${e}-${r}`,number_of_transactions:o,refresh_clicked:n,source:s})}trackMissingReceiptAttached(e,r){this.fireTrack(t.Event.missingReceipts,{month_year:`${e}-${r}`,is_attached:!0})}trackInsightsEmailPage(e,r,n,o,s,c,u){this.fireTrack(t.Event.insightsEmail,{month_year:`${e}-${r}`,refresh_clicked:n,email_status:o,audit_score:s,date:c,source:u})}trackMonthEndEmailSentFromCockpit(e,r,n){this.fireTrack(t.Event.monthEndEmailSentFromCockpit,{month_year:`${e}-${r}`,recipient_count:n})}trackCommentAdded(e,r,n,o,s,c){this.fireTrack(t.Event.commentAdded,{page_name:e,commented_on:r,comment_type:n,tenant:o,controller_name:s,created_by:c})}trackCommentActivity(e,r,n,o,s,c,u){this.fireTrack(t.Event.commentActivity,{page_name:e,comment_activity_type:r,tenant:n,controller_name:o,status:s,created_by:c,comment_activity_source:u})}trackSendMoneyClick(){this.fireTrack(t.Event.sendMoneyClick)}trackExpressPayNextClick(e){this.fireTrack(t.Event.expressPayNextClick,{stage:e})}trackExpressPayScheduleClick(){this.fireTrack(t.Event.expressPayScheduleClick)}trackLowBalanceAccountSelected(e,r,n,o,s,c){this.fireTrack(t.Event.lowBalanceAccountSelected,{bill_stage:e,bill_status:r,bill_type:n,invoice_number:o,user_name:s,account_type:c})}trackLowBalanceAccountSentForApproval(e,r,n,o,s,c){this.fireTrack(t.Event.lowBalanceAccountSentForApproval,{bill_stage:e,bill_status:r,bill_type:n,invoice_number:o,user_name:s,account_type:c})}trackLowBalanceAccountApprove(e,r,n,o,s,c){this.fireTrack(t.Event.lowBalanceAccountApprove,{bill_stage:e,bill_status:r,bill_type:n,invoice_number:o,user_name:s,account_type:c})}trackLowBalanceAccountReject(e,r,n,o,s,c){this.fireTrack(t.Event.lowBalanceAccountReject,{bill_stage:e,bill_status:r,bill_type:n,invoice_number:o,user_name:s,account_type:c})}trackLowBalanceAccountChange(e,r,n,o,s,c){this.fireTrack(t.Event.lowBalanceAccountChange,{bill_stage:e,bill_status:r,bill_type:n,invoice_number:o,user_name:s,account_type:c})}trackLowBalanceAccountSchedule(e,r,n,o,s,c){this.fireTrack(t.Event.lowBalanceAccountSchedule,{bill_stage:e,bill_status:r,bill_type:n,invoice_number:o,user_name:s,account_type:c})}trackVendorOperatingExpenses(e,r){this.fireTrack(t.Event.vendorOperatingExpenses,{current_tab:e,previous_tab:r})}trackVendorOperatingExpensesPageLoaded(e){this.fireTrack(t.Event.vendorOperatingExpensesPageLoaded,{source:e})}trackAICFOChatScreenStateChanged(e,r,n,o){this.fireTrack(t.Event.aiCFOChatScreenStateChanged,{action:e,chat_source:r,chat_session_id:n,chat_session_title:o})}trackAICFOChatSessionChanged(e,r,n,o){this.fireTrack(t.Event.aiCFOChatSessionChanged,{action:e,chat_source:r,chat_session_id:n,chat_session_title:o})}trackAICFOChatSubmitted(e,r,n,o,s,c){this.fireTrack(t.Event.aiCFOChatSubmitted,{question_text:e,chat_source:r,chat_session_id:n,chat_message_id:s,chat_session_title:o,index:c})}trackAICFOChatFeedbackGiven(e,r,n,o,s){this.fireTrack(t.Event.aiCFOChatFeedbackGiven,{feedback_type:e,question_text:r,chat_session_id:n,chat_message_id:s,chat_session_title:o})}trackAICFOChatResponseGenerated(e,r,n,o,s,c){this.fireTrack(t.Event.aiCFOChatResponseGenerated,{response_type:e,question_text:r,response_text:n,chat_session_id:o,chat_message_id:c,chat_session_title:s})}trackAICFOChatAnswerGenerated(e,r,n,o,s,c,u,l,d,f){this.fireTrack(t.Event.aiCFOChatAnswerGenerated,{has_visualization:c,visualization_type:u,has_follow_up_questions:n,has_assumptions:o,response_text:e,has_insights:s,question_text:r,chat_session_id:l,chat_message_id:f,chat_session_title:d})}trackAICFOOnboardingScreenStateChanged(e,r){this.fireTrack(t.Event.aiCFOOnboardingScreenStateChanged,{action:e,ai_cfo_onboarding_source:r})}trackAICFOPrivacyPolicy(){this.fireTrack(t.Event.aiCFOPrivacyPolicy)}trackAICFOAgreement(){this.fireTrack(t.Event.aiCFOAgreement)}trackTreasuryNavPromoClick(e){this.fireTrack(t.Event.treasuryNavPromoClick,{clicked_on:e})}trackTreasuryPromoView(e){this.fireTrack(t.Event.treasuryPromoView,{page_name:e})}trackTreasurySetupActionClick(e){this.fireTrack(t.Event.treasurySetupActionClick,{action_type:e})}trackTreasuryProspectusClick(e,r,n){this.fireTrack(t.Event.treasuryProspectusClick,{fund_name:e,fund_ticker:r,page_name:n})}trackTreasuryCalculatorClick(e,r){this.fireTrack(t.Event.treasuryCalculatorClick,{page_name:e,amount:r})}trackTreasuryAgreementView(){this.fireTrack(t.Event.treasuryAgreementView)}trackTreasuryAllocationAction(e,r){this.fireTrack(t.Event.treasuryAllocationAction,{action_type:e,fund_percentage:r})}trackTreasuryRiskAction(e,r,n){this.fireTrack(t.Event.treasuryRiskAction,{action_type:e,risk_score:r,fund_percentage:n})}trackTreasuryVerificationNavigation(e,r){this.fireTrack(t.Event.treasuryVerificationNavigation,{clicked_on:e,verification_status:r})}trackTreasuryTransferAction(e,r,n,o,s,c){this.fireTrack(t.Event.treasuryTransferAction,{clicked_on:e,from_account:r,to_account:n,amount:o,fund_percentage:s,page_name:c})}trackTreasuryDashboardInteraction(e){this.fireTrack(t.Event.treasuryDashboardInteraction,{clicked_on:e})}trackTreasuryPortfolioConfirm(e,r){this.fireTrack(t.Event.treasuryPortfolioConfirm,{risk_score:e,fund_percentage:r})}trackTreasuryPromoCards(e){this.fireTrack(t.Event.treasuryPromoCards,{card_clicked:e})}trackTreasuryPromoVideo(e){this.fireTrack(t.Event.treasuryPromoVideo,{page_name:e})}trackInvoicingActionClick(e,r){this.fireTrack(e,{invoicing_invoice_id:r?.invoiceId,invoicing_customer_id:r?.customerId,invoicing_subscription_id:r?.subscriptionId,invoicing_transaction_id:r?.transactionId,invoicing_coupon_id:r?.couponId,invoicing_credit_note_id:r?.creditNoteId,invoicing_case_id:r?.caseId,invoicing_item_id:r?.itemId,invoicing_session_id:r?.sessionId,invoicing_entity_id:r?.entityId,invoicing_action:r?.action,invoicing_mode:r?.mode,invoicing_status:r?.status,invoicing_item_type:r?.itemType,invoicing_entity:r?.entity,invoicing_tab:r?.tab,invoicing_payment_method:r?.paymentMethod,invoicing_amount:r?.amount,invoicing_line_item_count:r?.lineItemCount,invoicing_linked_invoice_count:r?.linkedInvoiceCount,invoicing_is_recurring:r?.isRecurring,invoicing_fields_changed:r?.fieldsChanged,invoicing_from_screen:r?.fromScreen,invoicing_to_screen:r?.toScreen})}trackTransactionCotView({recommendationFor:e,currentValue:r,recommendation:n,recommendationCot:o,isRecommendationCotAvailable:s,recommendationReason:c,recommendationConfidenceLevel:u,alternativeRecommendation:l,alternativeRecommendationCot:d,isAlternativeRecommendationCotAvailable:f,alternativeRecommendationReason:m,alternativeRecommendationConfidenceLevel:_,transactionPage:g,transactionCurrentStatus:p,recommendationConfidencePercentage:v,alternativeRecommendationConfidencePercentage:y}){this.fireTrack(t.Event.transactionCotView,{recommendation_for:e,current_value:r,recommendation:n,recommendation_cot:o,is_recommendation_cot_available:s,recommendation_reason:c,recommendation_confidence_percentage:v,recommendation_confidence_level:u,alternative_recommendation:l,alternative_recommendation_cot:d,is_alternative_recommendation_cot_available:f,alternative_recommendation_reason:m,alternative_recommendation_confidence_percentage:y,alternative_recommendation_confidence_level:_,transaction_page:g,transaction_current_status:p})}trackTransactionCotDropdownView({recommendationType:e,recommendationFor:r,currentValue:n,recommendation:o,recommendationCot:s,isRecommendationCotAvailable:c,recommendationReason:u,recommendationConfidenceLevel:l,transactionPage:d,transactionCurrentStatus:f,recommendationConfidencePercentage:m}){this.fireTrack(t.Event.transactionCotDropdownView,{recommendation_type:e,recommendation_for:r,current_value:n,recommendation:o,recommendation_cot:s,is_recommendation_cot_available:c,recommendation_reason:u,recommendation_confidence_percentage:m,recommendation_confidence_level:l,transaction_current_status:f,transaction_page:d})}trackTransactionCotViewAlternative({alternativeRecommendationFor:e,alternativeRecommendation:r,alternativeRecommendationCot:n,isAlternativeRecommendationCotAvailable:o,alternativeRecommendationReason:s,alternativeRecommendationConfidenceLevel:c,transactionPage:u,transactionCurrentStatus:l,alternativeRecommendationConfidencePercentage:d}){this.fireTrack(t.Event.transactionCotViewAlternative,{alternative_recommendation_for:e,alternative_recommendation:r,alternative_recommendation_cot:n,is_alternative_recommendation_cot_available:o,alternative_recommendation_reason:s,alternative_recommendation_confidence_percentage:d,alternative_recommendation_confidence_level:c,transaction_current_status:l,transaction_page:u})}trackTransactionCotViewRecommended({recommendationFor:e,currentValue:r,recommendation:n,recommendationCot:o,isRecommendationCotAvailable:s,recommendationReason:c,recommendationConfidenceLevel:u,recommendationConfidencePercentage:l}){this.fireTrack(t.Event.transactionCotViewRecommended,{recommendation_for:e,current_value:r,recommendation:n,recommendation_cot:o,is_recommendation_cot_available:s,recommendation_reason:c,recommendation_confidence_percentage:l,recommendation_confidence_level:u})}trackAIPerfHome(e){this.fireTrack(t.Event.aiPerfHome,{perf_snapshot:e})}trackAIPerfRefresh(e){this.fireTrack(t.Event.aiPerfRefresh,{perf_snapshot:e})}trackAIPerfTimePeriodSelect(e){this.fireTrack(t.Event.aiPerfTimePeriodSelect,{perf_snapshot:e})}trackAutoTransferRuleIconClick(e){this.fireTrack(t.Event.autoTransferRuleIconClick,{page_name:e})}trackAutoTransferRuleClick(e){this.fireTrack(t.Event.autoTransferRuleClick,{rule_name:e})}trackAutoTransferRuleReviewClick(e,r,n,o,s){this.fireTrack(t.Event.autoTransferRuleReviewClick,{rule_name:e,amount:r,withdrawal_bank:n,deposit_bank:o,frequency:s})}trackAutoTransferRuleCreateClick(e,r,n,o,s){this.fireTrack(t.Event.autoTransferRuleCreateClick,{rule_name:e,amount:r,withdrawal_bank:n,deposit_bank:o,frequency:s})}trackAutoTransferRuleMoreClick(e,r,n,o,s){this.fireTrack(t.Event.autoTransferRuleMoreClick,{rule_name:e,amount:r,withdrawal_bank:n,deposit_bank:o,frequency:s})}trackAutoTransferRuleActionClick(e,r,n,o,s,c){this.fireTrack(t.Event.autoTransferRuleActionClick,{rule_name:e,action_clicked:r,amount:n,withdrawal_bank:o,deposit_bank:s,frequency:c})}trackAutoTransferRuleActionConfirm(e,r,n,o,s,c,u){this.fireTrack(t.Event.autoTransferRuleActionConfirm,{rule_name:e,action_clicked:r,amount:n,withdrawal_bank:o,deposit_bank:s,frequency:c,update_log:u})}trackAutoTransferRuleActionCancel(e,r,n,o,s,c){this.fireTrack(t.Event.autoTransferRuleActionCancel,{rule_name:e,action_clicked:r,amount:n,withdrawal_bank:o,deposit_bank:s,frequency:c})}fireTrack(e,r){if(t.EVENTS_WITHOUT_SUPER_PROPERTIES.has(e)===!0){this.provider.track(e,r);return}const n=Object.assign({},this.superProperties,r);this.provider.track(e,n)}}return _r.Analytics=i,_r}var Xr={},Vo;function id(){if(Vo)return Xr;Vo=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.extractUtmParamsFromUrl=t;function t(i){if(i==null&&typeof window>"u")return{};const a=i??new URLSearchParams(window.location.search),e={};for(const[r,n]of a.entries())r.startsWith("utm_")&&(e[r]=n);return e}return Xr}var zo;function sv(){return zo||(zo=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extractUtmParamsFromUrl=t.EVENTS_WITHOUT_SUPER_PROPERTIES=t.Event=t.Analytics=void 0;const i=rd();Object.defineProperty(t,"Analytics",{enumerable:!0,get:function(){return i.Analytics}});const a=pc();Object.defineProperty(t,"EVENTS_WITHOUT_SUPER_PROPERTIES",{enumerable:!0,get:function(){return a.EVENTS_WITHOUT_SUPER_PROPERTIES}}),Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return a.Event}});const e=id();Object.defineProperty(t,"extractUtmParamsFromUrl",{enumerable:!0,get:function(){return e.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(t,i){(i==null||i>t.length)&&(i=t.length);for(var a=0,e=new Array(i);a<i;a++)e[a]=t[a];return e}function Go(t,i,a,e,r,n,o){try{var s=t[n](o),c=s.value}catch(u){a(u);return}s.done?i(c):Promise.resolve(c).then(e,r)}function Ga(t){return function(){var i=this,a=arguments;return new Promise(function(e,r){var n=t.apply(i,a);function o(c){Go(n,e,r,o,s,"next",c)}function s(c){Go(n,e,r,o,s,"throw",c)}o(void 0)})}}function Si(t,i,a){return _c()?Si=Reflect.construct:Si=function(r,n,o){var s=[null];s.push.apply(s,n);var c=Function.bind.apply(r,s),u=new c;return o&&Ir(u,o.prototype),u},Si.apply(null,arguments)}function nd(t,i){for(var a=0;a<i.length;a++){var e=i[a];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function ve(t,i,a){return i&&nd(t.prototype,i),t}function H(){return H=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&(t[e]=a[e])}return t},H.apply(this,arguments)}function Yn(t){return Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},Yn(t)}function Ce(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&Ir(t,i)}function M(t,i){return i!=null&&typeof Symbol<"u"&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](t):t instanceof i}function ad(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Pr(t,i){if(t==null)return{};var a={},e=Object.keys(t),r,n;for(n=0;n<e.length;n++)r=e[n],!(i.indexOf(r)>=0)&&(a[r]=t[r]);return a}function Ir(t,i){return Ir=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},Ir(t,i)}function $(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function od(t,i){if(t){if(typeof t=="string")return Wo(t,i);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.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(t,i)}}function xi(t){var i=typeof Map=="function"?new Map:void 0;return xi=function(e){if(e===null||!ad(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof i<"u"){if(i.has(e))return i.get(e);i.set(e,r)}function r(){return Si(e,arguments,Yn(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ir(r,e)},xi(t)}function _c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_c=function(){return!!t})()}function R(t,i){var a=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a)return(a=a.call(t)).next.bind(a);if(Array.isArray(t)||(a=od(t))||i){a&&(t=a);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}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(t,i){var a,e,r,n,o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(u){return function(l){return c([u,l])}}function c(u){if(a)throw new TypeError("Generator is already executing.");for(;o;)try{if(a=1,e&&(r=u[0]&2?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[u[0]&2,r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,e=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!(r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(u[0]===6&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(l){u=[6,l],e=0}finally{a=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function mc(t){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&t[i],e=0;if(a)return a.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}var sd=Object.defineProperty,cd=function(t,i,a){return i in t?sd(t,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[i]=a},T=function(t,i,a){return cd(t,(typeof i>"u"?"undefined":$(i))!=="symbol"?i+"":i,a)},jo,ud=Object.defineProperty,ld=function(t,i,a){return i in t?ud(t,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[i]=a},Ho=function(t,i,a){return ld(t,(typeof i>"u"?"undefined":$(i))!=="symbol"?i+"":i,a)},_e=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(_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(t){if(Qr[t])return Qr[t];var i=globalThis[t],a=i.prototype,e=t in Jo?Jo[t]:void 0,r=!!(e&&e.every(function(l){var d,f;return!!((f=(d=Object.getOwnPropertyDescriptor(a,l))==null?void 0:d.get)!=null&&f.toString().includes("[native code]"))})),n=t in Zo?Zo[t]:void 0,o=!!(n&&n.every(function(l){var d;return typeof a[l]=="function"&&((d=a[l])==null?void 0:d.toString().includes("[native code]"))}));if(r&&o&&!dd())return Qr[t]=i.prototype,i.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var c=s.contentWindow;if(!c)return i.prototype;var u=c[t].prototype;return document.body.removeChild(s),u?Qr[t]=u:a}catch{return a}}var Rn={};function dt(t,i,a){var e,r=t+"."+String(a);if(Rn[r])return Rn[r].call(i);var n=ja(t),o=(e=Object.getOwnPropertyDescriptor(n,a))==null?void 0:e.get;return o?(Rn[r]=o,o.call(i)):i[a]}var Pn={};function gc(t,i,a){var e=t+"."+String(a);if(Pn[e])return Pn[e].bind(i);var r=ja(t),n=r[a];return typeof n!="function"?i[a]:(Pn[e]=n,n.bind(i))}function fd(t){return dt("Node",t,"childNodes")}function hd(t){return dt("Node",t,"parentNode")}function pd(t){return dt("Node",t,"parentElement")}function _d(t){return dt("Node",t,"textContent")}function md(t,i){return gc("Node",t,"contains")(i)}function gd(t){return gc("Node",t,"getRootNode")()}function vd(t){return!t||!("host"in t)?null:dt("ShadowRoot",t,"host")}function yd(t){return t.styleSheets}function bd(t){return!t||!("shadowRoot"in t)?null:dt("Element",t,"shadowRoot")}function Cd(t,i){return dt("Element",t,"querySelector")(i)}function kd(t,i){return dt("Element",t,"querySelectorAll")(i)}function wd(){return ja("MutationObserver").constructor}function Sd(t,i,a){try{if(!(i in t))return function(){};var e=t[i],r=a(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[i]=r,function(){t[i]=e}}catch{return function(){}}}var be={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(t){return t.nodeType===t.ELEMENT_NODE}function Cr(t){var i=t&&"host"in t&&"mode"in t&&be.host(t)||null;return!!(i&&"shadowRoot"in i&&be.shadowRoot(i)===t)}function kr(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function Ad(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function Td(t){var i=t.cssText;if(i.split('"').length<3)return i;var a=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?a.push("layer"):t.layerName&&a.push("layer("+t.layerName+")"),t.supportsText&&a.push("supports("+t.supportsText+")"),t.media.length&&a.push(t.media.mediaText),a.join(" ")+";"}function Kn(t){try{var i=t.rules||t.cssRules;if(!i)return null;var a=t.href;!a&&t.ownerNode&&t.ownerNode.ownerDocument&&(a=t.ownerNode.ownerDocument.location.href);var e=Array.from(i,function(r){return yc(r,a)}).join("");return Ad(e)}catch{return null}}function yc(t,i){if(Pd(t)){var a;try{a=Kn(t.styleSheet)||Td(t)}catch{a=t.cssText}return t.styleSheet.href?Bi(a,t.styleSheet.href):a}else{var e=t.cssText;return Id(t)&&t.selectorText.includes(":")&&(e=Rd(e)),i?Bi(e,i):e}}function Rd(t){var i=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(i,"$1\\$2")}function Pd(t){return"styleSheet"in t}function Id(t){return"selectorText"in t}var bc=(function(){function t(){Ho(this,"idNodeMap",new Map),Ho(this,"nodeMetaMap",new WeakMap)}var i=t.prototype;return i.getId=function(e){var r;if(!e)return-1;var n=(r=this.getMeta(e))==null?void 0:r.id;return n??-1},i.getNode=function(e){return this.idNodeMap.get(e)||null},i.getIds=function(){return Array.from(this.idNodeMap.keys())},i.getMeta=function(e){return this.nodeMetaMap.get(e)||null},i.removeNodeFromMap=function(e){var r=this,n=this.getId(e);this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach(function(o){return r.removeNodeFromMap(o)})},i.has=function(e){return this.idNodeMap.has(e)},i.hasNode=function(e){return this.nodeMetaMap.has(e)},i.add=function(e,r){var n=r.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,r)},i.replace=function(e,r){var n=this.getNode(e);if(n){var o=this.nodeMetaMap.get(n);o&&this.nodeMetaMap.set(r,o)}this.idNodeMap.set(e,r)},i.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t})();function Ed(){return new bc}function Mi(t){var i=t.element,a=t.maskInputOptions,e=t.tagName,r=t.type,n=t.value,o=t.maskInputFn,s=n||"",c=r&&Et(r);return(a[e.toLowerCase()]||c&&a[c])&&(o?s=o(s,i):s="*".repeat(s.length)),s}function Et(t){return t.toLowerCase()}var Yo="__rrweb_original__";function Od(t){var i=t.getContext("2d");if(!i)return!0;for(var a=50,e=0;e<t.width;e+=a)for(var r=0;r<t.height;r+=a){var n=i.getImageData,o=Yo in n?n[Yo]:n,s=new Uint32Array(o.call(i,e,r,Math.min(a,t.width-e),Math.min(a,t.height-r)).data.buffer);if(s.some(function(c){return c!==0}))return!1}return!0}function Di(t){var i=t.type;return t.hasAttribute("data-rr-is-password")?"password":i?Et(i):null}function Cc(t,i){var a;try{a=new URL(t,i??window.location.href)}catch{return null}var e=/\.([0-9a-z]+)(?:$)/i,r=a.pathname.match(e),n;return(n=r?.[1])!=null?n:null}function xd(t){var i="";return t.indexOf("//")>-1?i=t.split("/").slice(0,3).join("/"):i=t.split("/")[0],i=i.split("?")[0],i}var Md=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Dd=/^(?:[a-z+]+:)?\/\//i,Bd=/^www\..*/i,Ld=/^(data:)([^,]*),(.*)/i;function Bi(t,i){return(t||"").replace(Md,function(a,e,r,n,o,s){var c=r||o||s,u=e||n||"";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(i)+c)+u+")";var l=i.split("/"),d=c.split("/");l.pop();for(var f=R(d),m;!(m=f()).done;){var _=m.value;_!=="."&&(_===".."?l.pop():l.push(_))}return"url("+u+l.join("/")+u+")"})}function ei(t,i){return i===void 0&&(i=!1),i?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Nd(t,i,a){a===void 0&&(a=!1);var e=Array.from(i.childNodes),r=[],n=0;if(e.length>1&&t&&typeof t=="string"){for(var o=ei(t,a),s=o.length/t.length,c=1;c<e.length;c++)if(e[c].textContent&&typeof e[c].textContent=="string"){for(var u=ei(e[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),m=o.split(f),_=-1;if(m.length===2)_=m[0].length;else if(m.length>2&&m[0]===""&&e[c-1].textContent!=="")_=o.indexOf(f,1);else if(m.length===1){if(f=f.substring(0,f.length-1),m=o.split(f),m.length<=1)return r.push(t),r;d=l+1}else d===u.length-1&&(_=o.indexOf(f));if(m.length>=2&&d>l){var g=e[c-1].textContent;if(g&&typeof g=="string"){var p=ei(g).length;_=o.indexOf(f,p)}_===-1&&(_=m[0].length)}if(_!==-1){for(var v=Math.floor(_/s);v>0&&v<t.length;){if(n+=1,n>50*e.length)return r.push(t),r;var y=ei(t.substring(0,v),a);if(y.length===_){r.push(t.substring(0,v)),t=t.substring(v),o=o.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 r.push(t),r}function Fd(t,i){return Nd(t,i).join("/* rr_split */")}var $d=1,Ud=new RegExp("[^a-z0-9-_:]"),Or=-2;function kc(){return $d++}function Vd(t){if(M(t,HTMLFormElement))return"form";var i=Et(t.tagName);return Ud.test(i)?"div":i}var Vt,Ko,zd=/^[^ \t\n\r\u000c]+/,qd=/^[, \t\n\r\u000c]+/;function Wd(t,i){if(i.trim()==="")return i;var a=0;function e(u){var l,d=u.exec(i.substring(a));return d?(l=d[0],a+=l.length,l):""}for(var r=[];e(qd),!(a>=i.length);){var n=e(zd);if(n.slice(-1)===",")n=jt(t,n.substring(0,n.length-1)),r.push(n);else{var o="";n=jt(t,n);for(var s=!1;;){var c=i.charAt(a);if(c===""){r.push((n+o).trim());break}else if(s)c===")"&&(s=!1);else if(c===","){a+=1,r.push((n+o).trim());break}else c==="("&&(s=!0);o+=c,a+=1}}}return r.join(", ")}var Xo=new WeakMap;function jt(t,i){return!i||i.trim()===""?i:Ha(t,i)}function Gd(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Ha(t,i){var a=Xo.get(t);if(a||(a=t.createElement("a"),Xo.set(t,a)),!i)i="";else if(i.startsWith("blob:")||i.startsWith("data:"))return i;return a.setAttribute("href",i),a.href}function wc(t,i,a,e){return e&&(a==="src"||a==="href"&&!(i==="use"&&e[0]==="#")||a==="xlink:href"&&e[0]!=="#"||a==="background"&&(i==="table"||i==="td"||i==="th")?jt(t,e):a==="srcset"?Wd(t,e):a==="style"?Bi(e,Ha(t)):i==="object"&&a==="data"?jt(t,e):e)}function Sc(t,i,a){return(t==="video"||t==="audio")&&i==="autoplay"}function jd(t,i,a){try{if(typeof i=="string"){if(t.classList.contains(i))return!0}else for(var e=t.classList.length;e--;){var r=t.classList[e];if(i.test(r))return!0}if(a)return t.matches(a)}catch{}return!1}function Li(t,i,a){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return a?Li(be.parentNode(t),i,a):!1;for(var e=t.classList.length;e--;){var r=t.classList[e];if(i.test(r))return!0}return a?Li(be.parentNode(t),i,a):!1}function Ac(t,i,a,e){var r;if(vc(t)){if(r=t,!be.childNodes(r).length)return!1}else{if(be.parentElement(t)===null)return!1;r=be.parentElement(t)}try{if(typeof i=="string"){if(e){if(r.closest("."+i))return!0}else if(r.classList.contains(i))return!0}else if(Li(r,i,e))return!0;if(a){if(e){if(r.closest(a))return!0}else if(r.matches(a))return!0}}catch{}return!1}function Hd(t,i,a){var e=t.contentWindow;if(e){var r=!1,n;try{n=e.document.readyState}catch{return}if(n!=="complete"){var o=setTimeout(function(){r||(i(),r=!0)},a);t.addEventListener("load",function(){clearTimeout(o),r=!0,i()});return}var s="about:blank";if(e.location.href!==s||t.src===s||t.src==="")return setTimeout(i,0),t.addEventListener("load",i);t.addEventListener("load",i)}}function Jd(t,i,a){var e=!1,r;try{r=t.sheet}catch{return}if(!r){var n=setTimeout(function(){e||(i(),e=!0)},a);t.addEventListener("load",function(){clearTimeout(n),e=!0,i()})}}function Zd(t,i){var a=i.doc,e=i.mirror,r=i.blockClass,n=i.blockSelector,o=i.needsMask,s=i.inlineStylesheet,c=i.maskInputOptions,u=c===void 0?{}:c,l=i.maskTextFn,d=i.maskInputFn,f=i.dataURLOptions,m=f===void 0?{}:f,_=i.inlineImages,g=i.recordCanvas,p=i.keepIframeSrcFn,v=i.newlyAddedElement,y=v===void 0?!1:v,b=i.cssCaptured,k=b===void 0?!1:b,w=Yd(a,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:_e.Document,childNodes:[],compatMode:t.compatMode}:{type:_e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:_e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:return Xd(t,{doc:a,blockClass:r,blockSelector:n,inlineStylesheet:s,maskInputOptions:u,maskInputFn:d,dataURLOptions:m,inlineImages:_,recordCanvas:g,keepIframeSrcFn:p,newlyAddedElement:y,rootId:w});case t.TEXT_NODE:return Kd(t,{doc:a,needsMask:o,maskTextFn:l,rootId:w,cssCaptured:k});case t.CDATA_SECTION_NODE:return{type:_e.CDATA,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:_e.Comment,textContent:be.textContent(t)||"",rootId:w};default:return!1}}function Yd(t,i){if(i.hasNode(t)){var a=i.getId(t);return a===1?void 0:a}}function Kd(t,i){var a=i.needsMask,e=i.maskTextFn,r=i.rootId,n=i.cssCaptured,o=be.parentNode(t),s=o&&o.tagName,c="",u=s==="STYLE"?!0:void 0,l=s==="SCRIPT"?!0:void 0;return l?c="SCRIPT_PLACEHOLDER":n||(c=be.textContent(t),u&&c&&(c=Bi(c,Ha(i.doc)))),!u&&!l&&c&&a&&(c=e?e(c,be.parentElement(t)):c.replace(/[\S]/g,"*")),{type:_e.Text,textContent:c||"",rootId:r}}function Xd(t,i){for(var a=i.doc,e=i.blockClass,r=i.blockSelector,n=i.inlineStylesheet,o=i.maskInputOptions,s=o===void 0?{}:o,c=i.maskInputFn,u=i.dataURLOptions,l=u===void 0?{}:u,d=i.inlineImages,f=i.recordCanvas,m=i.keepIframeSrcFn,_=i.newlyAddedElement,g=_===void 0?!1:_,p=i.rootId,v=jd(t,e,r),y=Vd(t),b={},k=t.attributes.length,w=0;w<k;w++){var S=t.attributes[w];Sc(y,S.name,S.value)||(b[S.name]=wc(a,y,Et(S.name),S.value))}if(y==="link"&&n){var P=Array.from(a.styleSheets).find(function(Oe){return Oe.href===t.href}),I=null;P&&(I=Kn(P)),I&&(delete b.rel,delete b.href,b._cssText=I)}if(y==="style"&&t.sheet){var E=Kn(t.sheet);E&&(t.childNodes.length>1&&(E=Fd(E,t)),b._cssText=E)}if(y==="input"||y==="textarea"||y==="select"){var L=t.value,x=t.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&L?b.value=Mi({element:t,type:Di(t),tagName:y,value:L,maskInputOptions:s,maskInputFn:c}):x&&(b.checked=x)}if(y==="option"&&(t.selected&&!s.select?b.selected=!0:delete b.selected),y==="dialog"&&t.open&&(b.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),y==="canvas"&&f){if(t.__context==="2d")Od(t)||(b.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){var F=t.toDataURL(l.type,l.quality),J=a.createElement("canvas");J.width=t.width,J.height=t.height;var Te=J.toDataURL(l.type,l.quality);F!==Te&&(b.rr_dataURL=F)}}if(y==="img"&&d){Vt||(Vt=a.createElement("canvas"),Ko=Vt.getContext("2d"));var Y=t,Ie=Y.currentSrc||Y.getAttribute("src")||"<unknown-src>",ke=Y.crossOrigin,se=function(){Y.removeEventListener("load",se);try{Vt.width=Y.naturalWidth,Vt.height=Y.naturalHeight,Ko.drawImage(Y,0,0),b.rr_dataURL=Vt.toDataURL(l.type,l.quality)}catch(Oe){if(Y.crossOrigin!=="anonymous"){Y.crossOrigin="anonymous",Y.complete&&Y.naturalWidth!==0?se():Y.addEventListener("load",se);return}else console.warn("Cannot inline img src="+Ie+"! Error: "+Oe)}Y.crossOrigin==="anonymous"&&(ke?b.crossOrigin=ke:Y.removeAttribute("crossorigin"))};Y.complete&&Y.naturalWidth!==0?se():Y.addEventListener("load",se)}if(y==="audio"||y==="video"){var ge=b;ge.rr_mediaState=t.paused?"paused":"played",ge.rr_mediaCurrentTime=t.currentTime,ge.rr_mediaPlaybackRate=t.playbackRate,ge.rr_mediaMuted=t.muted,ge.rr_mediaLoop=t.loop,ge.rr_mediaVolume=t.volume}if(g||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),v){var Ee=t.getBoundingClientRect(),yt=Ee.width,$e=Ee.height;b={class:b.class,rr_width:""+yt+"px",rr_height:""+$e+"px"}}y==="iframe"&&!m(b.src)&&(t.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(t)||void 0,needBlock:v,rootId:p,isCustom:Nt}}function ee(t){return t==null?"":t.toLowerCase()}function Qd(t,i){if(i.comment&&t.type===_e.Comment)return!0;if(t.type===_e.Element){if(i.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&Cc(t.attributes.href)==="js"))return!0;if(i.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(ee(t.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(t.attributes.name)==="application-name"||ee(t.attributes.rel)==="icon"||ee(t.attributes.rel)==="apple-touch-icon"||ee(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(i.headMetaDescKeywords&&ee(t.attributes.name).match(/^description|keywords$/))return!0;if(i.headMetaSocial&&(ee(t.attributes.property).match(/^(og|twitter|fb):/)||ee(t.attributes.name).match(/^(og|twitter):/)||ee(t.attributes.name)==="pinterest"))return!0;if(i.headMetaRobots&&(ee(t.attributes.name)==="robots"||ee(t.attributes.name)==="googlebot"||ee(t.attributes.name)==="bingbot"))return!0;if(i.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(i.headMetaAuthorship&&(ee(t.attributes.name)==="author"||ee(t.attributes.name)==="generator"||ee(t.attributes.name)==="framework"||ee(t.attributes.name)==="publisher"||ee(t.attributes.name)==="progid"||ee(t.attributes.property).match(/^article:/)||ee(t.attributes.property).match(/^product:/)))return!0;if(i.headMetaVerification&&(ee(t.attributes.name)==="google-site-verification"||ee(t.attributes.name)==="yandex-verification"||ee(t.attributes.name)==="csrf-token"||ee(t.attributes.name)==="p:domain_verify"||ee(t.attributes.name)==="verify-v1"||ee(t.attributes.name)==="verification"||ee(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ht(t,i){var a=i.doc,e=i.mirror,r=i.blockClass,n=i.blockSelector,o=i.maskTextClass,s=i.maskTextSelector,c=i.skipChild,u=c===void 0?!1:c,l=i.inlineStylesheet,d=l===void 0?!0:l,f=i.maskInputOptions,m=f===void 0?{}:f,_=i.maskTextFn,g=i.maskInputFn,p=i.slimDOMOptions,v=i.dataURLOptions,y=v===void 0?{}:v,b=i.inlineImages,k=b===void 0?!1:b,w=i.recordCanvas,S=w===void 0?!1:w,P=i.onSerialize,I=i.onIframeLoad,E=i.iframeLoadTimeout,L=E===void 0?5e3:E,x=i.onStylesheetLoad,F=i.stylesheetLoadTimeout,J=F===void 0?5e3:F,Te=i.keepIframeSrcFn,Y=Te===void 0?function(){return!1}:Te,Ie=i.newlyAddedElement,ke=Ie===void 0?!1:Ie,se=i.cssCaptured,ge=se===void 0?!1:se,Ee=i.needsMask,yt=i.preserveWhiteSpace,$e=yt===void 0?!0:yt;if(!Ee){var Nt=Ee===void 0;Ee=Ac(t,o,s,Nt)}var Oe=Zd(t,{doc:a,mirror:e,blockClass:r,blockSelector:n,needsMask:Ee,inlineStylesheet:d,maskInputOptions:m,maskTextFn:_,maskInputFn:g,dataURLOptions:y,inlineImages:k,recordCanvas:S,keepIframeSrcFn:Y,newlyAddedElement:ke,cssCaptured:ge});if(!Oe)return console.warn(t,"not serialized"),null;var bt;e.hasNode(t)?bt=e.getId(t):Qd(Oe,p)||!$e&&Oe.type===_e.Text&&!Oe.textContent.replace(/^\s+|\s+$/gm,"").length?bt=Or:bt=kc();var Z=Object.assign(Oe,{id:bt});if(e.add(t,Z),bt===Or)return null;P&&P(t);var Ct=!u;if(Z.type===_e.Element){Ct=Ct&&!Z.needBlock,delete Z.needBlock;var kt=be.shadowRoot(t);kt&&kr(kt)&&(Z.isShadowHost=!0)}if((Z.type===_e.Document||Z.type===_e.Element)&&Ct){p.headWhitespace&&Z.type===_e.Element&&Z.tagName==="head"&&($e=!1);var Ft={doc:a,mirror:e,blockClass:r,blockSelector:n,needsMask:Ee,maskTextClass:o,maskTextSelector:s,skipChild:u,inlineStylesheet:d,maskInputOptions:m,maskTextFn:_,maskInputFn:g,slimDOMOptions:p,dataURLOptions:y,inlineImages:k,recordCanvas:S,preserveWhiteSpace:$e,onSerialize:P,onIframeLoad:I,iframeLoadTimeout:L,onStylesheetLoad:x,stylesheetLoadTimeout:J,keepIframeSrcFn:Y,cssCaptured:!1};if(!(Z.type===_e.Element&&Z.tagName==="textarea"&&Z.attributes.value!==void 0)){Z.type===_e.Element&&Z.attributes._cssText!==void 0&&typeof Z.attributes._cssText=="string"&&(Ft.cssCaptured=!0);for(var dr=R(Array.from(be.childNodes(t))),fr;!(fr=dr()).done;){var wn=fr.value,Yr=Ht(wn,Ft);Yr&&Z.childNodes.push(Yr)}}var it=null;if(vc(t)&&(it=be.shadowRoot(t)))for(var wt=R(Array.from(be.childNodes(it))),$t;!($t=wt()).done;){var hr=$t.value,Ut=Ht(hr,Ft);Ut&&(kr(it)&&(Ut.isShadow=!0),Z.childNodes.push(Ut))}}var St=be.parentNode(t);return St&&Cr(St)&&kr(St)&&(Z.isShadow=!0),Z.type===_e.Element&&Z.tagName==="iframe"&&Hd(t,function(){var He=t.contentDocument;if(He&&I){var At=Ht(He,{doc:He,mirror:e,blockClass:r,blockSelector:n,needsMask:Ee,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:m,maskTextFn:_,maskInputFn:g,slimDOMOptions:p,dataURLOptions:y,inlineImages:k,recordCanvas:S,preserveWhiteSpace:$e,onSerialize:P,onIframeLoad:I,iframeLoadTimeout:L,onStylesheetLoad:x,stylesheetLoadTimeout:J,keepIframeSrcFn:Y});At&&I(t,At)}},L),Z.type===_e.Element&&Z.tagName==="link"&&typeof Z.attributes.rel=="string"&&(Z.attributes.rel==="stylesheet"||Z.attributes.rel==="preload"&&typeof Z.attributes.href=="string"&&Cc(Z.attributes.href)==="css")&&Jd(t,function(){if(x){var He=Ht(t,{doc:a,mirror:e,blockClass:r,blockSelector:n,needsMask:Ee,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:m,maskTextFn:_,maskInputFn:g,slimDOMOptions:p,dataURLOptions:y,inlineImages:k,recordCanvas:S,preserveWhiteSpace:$e,onSerialize:P,onIframeLoad:I,iframeLoadTimeout:L,onStylesheetLoad:x,stylesheetLoadTimeout:J,keepIframeSrcFn:Y});He&&x(t,He)}},J),Z}function ef(t,i){var a=i||{},e=a.mirror,r=e===void 0?new bc:e,n=a.blockClass,o=n===void 0?"rr-block":n,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,m=a.inlineStylesheet,_=m===void 0?!0:m,g=a.inlineImages,p=g===void 0?!1:g,v=a.recordCanvas,y=v===void 0?!1:v,b=a.maskAllInputs,k=b===void 0?!1:b,w=a.maskTextFn,S=a.maskInputFn,P=a.slimDOM,I=P===void 0?!1:P,E=a.dataURLOptions,L=a.preserveWhiteSpace,x=a.onSerialize,F=a.onIframeLoad,J=a.iframeLoadTimeout,Te=a.onStylesheetLoad,Y=a.stylesheetLoadTimeout,Ie=a.keepIframeSrcFn,ke=Ie===void 0?function(){return!1}:Ie,se=k===!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}:k===!1?{password:!0}:k,ge=I===!0||I==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:I==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:I===!1?{}:I;return Ht(t,{doc:t,mirror:r,blockClass:o,blockSelector:c,maskTextClass:l,maskTextSelector:f,skipChild:!1,inlineStylesheet:_,maskInputOptions:se,maskTextFn:w,maskInputFn:S,slimDOMOptions:ge,dataURLOptions:E,inlineImages:p,recordCanvas:y,preserveWhiteSpace:L,onSerialize:x,onIframeLoad:F,iframeLoadTimeout:J,onStylesheetLoad:Te,stylesheetLoadTimeout:Y,keepIframeSrcFn:ke,newlyAddedElement:!1})}function tf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function rf(t){if(t.__esModule)return t;var i=t.default;if(typeof i=="function"){var a=function e(){return M(this,e)?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};a.prototype=i.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),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(t){Ce(i,t);function i(e,r,n,o,s,c){var u;return u=t.call(this,e)||this,u.name="CssSyntaxError",u.reason=e,s&&(u.file=s),o&&(u.source=o),c&&(u.plugin=c),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(u.line=r,u.column=n):(u.line=r.line,u.column=r.column,u.endLine=n.line,u.endColumn=n.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,i),u}var a=i.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(r){var n=this;if(!this.source)return"";var o=this.source;r==null&&(r=Qo.isColorSupported),es&&r&&(o=es(o));var s=o.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(r){var m=Qo.createColors(!0),_=m.bold,g=m.gray,p=m.red;d=function(v){return _(p(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,k=" "+(" "+b).slice(-l)+" | ";if(b===n.line){var w=f(k.replace(/\d/g," "))+v.slice(0,n.column-1).replace(/[^\t]/g," ");return d(">")+f(k)+v+`
|
|
2
|
-
`+w+d("^")}return" "+f(k)+v}).join(`
|
|
3
|
-
`)},a.toString=function(){var r=this.showSourceCode();return r&&(r=`
|
|
4
|
-
|
|
5
|
-
`+r+`
|
|
6
|
-
`),this.name+": "+this.message+r},i})(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(t){return t[0].toUpperCase()+t.slice(1)}var Qn=(function(){function t(a){this.builder=a}var i=t.prototype;return i.atrule=function(e,r){var n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{var s=(e.raws.between||"")+(r?";":"");this.builder(n+o+s,e)}},i.beforeAfter=function(e,r){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");for(var o=e.parent,s=0;o&&o.type!=="root";)s+=1,o=o.parent;if(n.includes(`
|
|
12
|
-
`)){var c=this.raw(e,null,"indent");if(c.length)for(var u=0;u<s;u++)n+=c}return n},i.block=function(e,r){var n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");var o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")},i.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var n=this.raw(e,"semicolon"),o=0;o<e.nodes.length;o++){var s=e.nodes[o],c=this.raw(s,"before");c&&this.builder(c),this.stringify(s,r!==o||n)}},i.comment=function(e){var r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)},i.decl=function(e,r){var n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)},i.document=function(e){this.body(e)},i.raw=function(e,r,n){var o;if(n||(n=r),r&&(o=e.raws[r],typeof o<"u"))return o;var s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return ts[n];var c=e.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[n]<"u")return c.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);var u="raw"+sf(n);return this[u]?o=this[u](c,e):c.walk(function(l){if(o=l.raws[r],typeof o<"u")return!1}),typeof o>"u"&&(o=ts[n]),c.rawCache[n]=o,o},i.rawBeforeClose=function(e){var r;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
|
|
13
|
-
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},i.rawBeforeComment=function(e,r){var n;return e.walkComments(function(o){if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
14
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,r){var n;return e.walkDecls(function(o){if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
15
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var r;return e.walk(function(n){if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r},i.rawBeforeRule=function(e){var r;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
16
|
-
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},i.rawColon=function(e){var r;return e.walkDecls(function(n){if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r},i.rawEmptyBody=function(e){var r;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(n){var o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof n.raws.before<"u"){var s=n.raws.before.split(`
|
|
17
|
-
`);return r=s[s.length-1],r=r.replace(/\S/g,""),!1}}),r},i.rawSemicolon=function(e){var r;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r},i.rawValue=function(e,r){var n=e[r],o=e.raws[r];return o&&o.value===n?o.raw:n},i.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},i.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},i.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Rc=Qn;Qn.default=Qn;var cf=Rc;function ea(t,i){var a=new cf(i);a.stringify(t)}var sn=ea;ea.default=ea;var ti=ft.isClean,uf=ft.my,lf=Za,df=Rc,ff=sn;function ta(t,i){var a=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],n=typeof r>"u"?"undefined":$(r);e==="parent"&&n==="object"?i&&(a[e]=i):e==="source"?a[e]=r:Array.isArray(r)?a[e]=r.map(function(o){return ta(o,a)}):(n==="object"&&r!==null&&(r=ta(r)),a[e]=r)}return a}var ra=(function(){function t(a){a===void 0&&(a={}),this.raws={},this[ti]=!1,this[uf]=!0;for(var e in a)if(e==="nodes"){this.nodes=[];for(var r=R(a[e]),n;!(n=r()).done;){var o=n.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[e]=a[e]}var i=t.prototype;return i.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},i.before=function(e){return this.parent.insertBefore(this,e),this},i.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},i.clone=function(e){e===void 0&&(e={});var r=ta(this);for(var n in e)r[n]=e[n];return r},i.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},i.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},i.error=function(e,r){if(r===void 0&&(r={}),this.source){var n=this.rangeBy(r),o=n.end,s=n.start;return this.source.input.error(e,{column:s.column,line:s.line},{column:o.column,line:o.line},r)}return new lf(e)},i.getProxyProcessor=function(){return{get:function(r,n){return n==="proxyOf"?r:n==="root"?function(){return r.root().toProxy()}:r[n]},set:function(r,n,o){return r[n]===o||(r[n]=o,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&r.markDirty()),!0}}},i.markDirty=function(){if(this[ti]){this[ti]=!1;for(var e=this;e=e.parent;)e[ti]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,r){var n=this.source.start;if(e.index)n=this.positionInside(e.index,r);else if(e.word){r=this.toString();var o=r.indexOf(e.word);o!==-1&&(n=this.positionInside(o,r))}return n},i.positionInside=function(e,r){for(var n=r||this.toString(),o=this.source.start.column,s=this.source.start.line,c=0;c<e;c++)n[c]===`
|
|
18
|
-
`?(o=1,s+=1):o+=1;return{column:o,line:s}},i.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},i.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var o=this.toString(),s=o.indexOf(e.word);s!==-1&&(r=this.positionInside(s,o),n=this.positionInside(s+e.word.length,o))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line}),{end:n,start:r}},i.raw=function(e,r){var n=new df;return n.raw(this,e,r)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(this.parent){for(var o=this,s=!1,c=R(r),u;!(u=c()).done;){var l=u.value;l===this?s=!0:s?(this.parent.insertAfter(o,l),o=l):this.parent.insertBefore(o,l)}s||this.remove()}return this},i.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},i.toJSON=function(e,r){var n={},o=r==null;r=r||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))n[c]=u.map(function(d){return(typeof d>"u"?"undefined":$(d))==="object"&&d.toJSON?d.toJSON(null,r):d});else if((typeof u>"u"?"undefined":$(u))==="object"&&u.toJSON)n[c]=u.toJSON(null,r);else if(c==="source"){var l=r.get(u.input);l==null&&(l=s,r.set(u.input,s),s++),n[c]={end:u.end,inputId:l,start:u.start}}else n[c]=u}return o&&(n.inputs=[].concat(r.keys()).map(function(d){return d.toJSON()})),n},i.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},i.toString=function(e){e===void 0&&(e=ff),e.stringify&&(e=e.stringify);var r="";return e(this,function(n){r+=n}),r},i.warn=function(e,r,n){var o={node:this};for(var s in n)o[s]=n[s];return e.warn(r,o)},ve(t,[{key:"proxyOf",get:function(){return this}}]),t})(),cn=ra;ra.default=ra;var hf=cn,ia=(function(t){Ce(i,t);function i(a){var e;return a&&typeof a.value<"u"&&typeof a.value!="string"&&(a=H({},a,{value:String(a.value)})),e=t.call(this,a)||this,e.type="decl",e}return ve(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i})(hf),un=ia;ia.default=ia;var pf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_f=function(t){t===void 0&&(t=21);for(var i="",a=t;a--;)i+=pf[Math.random()*64|0];return i},mf={nanoid:_f},rs=le.SourceMapConsumer,is=le.SourceMapGenerator,gf=le.existsSync,vf=le.readFileSync,In=le.dirname,yf=le.join;function bf(t){return ct?ct.from(t,"base64").toString():window.atob(t)}var na=(function(){function t(a,e){if(e.map!==!1){this.loadAnnotation(a),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,n=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=In(this.mapFile)),n&&(this.text=n)}}var i=t.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new rs(this.text)),this.consumerCache},i.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(o.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||n.test(e))return bf(e.substr(RegExp.lastMatch.length));var c=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)},i.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},i.isMap=function(e){return(typeof e>"u"?"undefined":$(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var n=e.lastIndexOf(r.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}},i.loadFile=function(e){if(this.root=In(e),gf(e))return this.mapFile=e,vf(e,"utf-8").toString().trim()},i.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var n=r(e);if(n){var o=this.loadFile(n);if(!o)throw new Error("Unable to load previous source map: "+n.toString());return o}}else{if(M(r,rs))return is.fromSourceMap(r).toString();if(M(r,is))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return e&&(s=yf(In(e),s)),this.loadFile(s)}}},i.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),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 t(a,e){if(e===void 0&&(e={}),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,e.from&&(!os||/^\w+:\/\//.test(e.from)||aa(e.from)?this.file=e.from:this.file=oa(e.from)),os&&Af){var r=new Sf(this.css,e);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+wf(6)+">"),this.map&&(this.map.file=this.from)}var i=t.prototype;return i.error=function(e,r,n,o){o===void 0&&(o={});var s,c,u;if(r&&(typeof r>"u"?"undefined":$(r))==="object"){var l=r,d=n;if(typeof l.offset=="number"){var f=this.fromOffset(l.offset);r=f.line,n=f.col}else r=l.line,n=l.column;if(typeof d.offset=="number"){var m=this.fromOffset(d.offset);c=m.line,u=m.col}else c=d.line,u=d.column}else if(!n){var _=this.fromOffset(r);r=_.line,n=_.col}var g=this.origin(r,n,c,u);return g?s=new as(e,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,o.plugin):s=new as(e,c===void 0?r:{column:n,line:r},c===void 0?n:{column:u,line:c},this.css,this.file,o.plugin),s.input={column:n,endColumn:u,endLine:c,line:r,source:this.css},this.file&&(ri&&(s.input.url=ri(this.file).toString()),s.input.file=this.file),s},i.fromOffset=function(e){var r,n;if(this[On])n=this[On];else{var o=this.css.split(`
|
|
19
|
-
`);n=new Array(o.length);for(var s=0,c=0,u=o.length;c<u;c++)n[c]=s,s+=o[c].length+1;this[On]=n}r=n[n.length-1];var l=0;if(e>=r)l=n.length-1;else for(var d=n.length-2,f;l<d;)if(f=l+(d-l>>1),e<n[f])d=f-1;else if(e>=n[f+1])l=f+1;else{l=f;break}return{col:e-n[l]+1,line:l+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:oa(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,r,n,o){if(!this.map)return!1;var s=this.map.consumer(),c=s.originalPositionFor({column:r,line:e});if(!c.source)return!1;var u;typeof n=="number"&&(u=s.originalPositionFor({column:o,line:n}));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},i.toJSON=function(){for(var e={},r=0,n=["hasBOM","css","file","id"];r<n.length;r++){var o=n[r];this[o]!=null&&(e[o]=this[o])}return this.map&&(e.map=H({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ve(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),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 t(a,e,r,n){this.stringify=a,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var i=t.prototype;return i.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r=`
|
|
20
|
-
`;this.css.includes(`\r
|
|
21
|
-
`)&&(r=`\r
|
|
22
|
-
`),this.css+=r+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=R(this.previous()),r;!(r=e()).done;){var n=r.value,o=this.toUrl(this.path(n.file)),s=n.root||Ti(n.file),c=void 0;this.mapOpts.sourcesContent===!1?(c=new Ic(n.text),c.sourcesContent&&(c.sourcesContent=null)):c=n.consumer(),this.map.applySourceMap(c,o,this.toUrl(this.path(s)))}},i.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),Pf&&Rf&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},i.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ai.fromSourceMap(e,{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]},i.generateString=function(){var e=this;this.css="",this.map=new Ai({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,n=1,o="<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(e.css+=l,d&&f!=="end"&&(s.generated.line=r,s.generated.column=n-1,d.source&&d.source.start?(s.source=e.sourcePath(d),s.original.line=d.source.start.line,s.original.column=d.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),c=l.match(/\n/g),c?(r+=c.length,u=l.lastIndexOf(`
|
|
23
|
-
`),n=l.length-u):n+=l.length,d&&f!=="start"){var m=d.parent||{raws:{}},_=d.type==="decl"||d.type==="atrule"&&!d.nodes;(!_||d!==m.last||m.raws.semicolon)&&(d.source&&d.source.end?(s.source=e.sourcePath(d),s.original.line=d.source.end.line,s.original.column=d.source.end.column-1,s.generated.line=r,s.generated.column=n-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,e.map.addMapping(s)))}})},i.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},i.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},i.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},i.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},i.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},i.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var n=this.opts.to?Ti(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Ti(Oc(n,this.mapOpts.annotation)));var o=Ec(n,e);return this.memoizedPaths.set(e,o),o},i.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(n){if(n.source&&n.source.input.map){var o=n.source.input.map;e.previousMaps.includes(o)||e.previousMaps.push(o)}});else{var r=new Tf(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(o){if(o.source){var s=o.source.input.from;if(s&&!r[s]){r[s]=!0;var c=e.usesFileUrls?e.toFileUrl(s):e.toUrl(e.path(s));e.map.setSourceContent(c,o.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},i.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},i.toBase64=function(e){return ct?ct.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},i.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(ss){var n=ss(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")},i.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;xc==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},t})(),Mc=If,Ef=cn,sa=(function(t){Ce(i,t);function i(a){var e;return e=t.call(this,a)||this,e.type="comment",e}return i})(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(t){return t.map(function(i){return i.nodes&&(i.nodes=Uc(i.nodes)),delete i.source,i})}function Vc(t){if(t[Dc]=!1,t.proxyOf.nodes)for(var i=R(t.proxyOf.nodes),a;!(a=i()).done;){var e=a.value;Vc(e)}}var Ke=(function(t){Ce(i,t);function i(){return t.apply(this,arguments)||this}var a=i.prototype;return a.append=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];for(var s=R(n),c;!(c=s()).done;)for(var u=c.value,l=this.normalize(u,this.last),d=R(l),f;!(f=d()).done;){var m=f.value;this.proxyOf.nodes.push(m)}return this.markDirty(),this},a.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var n=R(this.nodes),o;!(o=n()).done;){var s=o.value;s.cleanRaws(r)}},a.each=function(r){if(this.proxyOf.nodes){for(var n=this.getIterator(),o,s;this.indexes[n]<this.proxyOf.nodes.length&&(o=this.indexes[n],s=r(this.proxyOf.nodes[o],o),s!==!1);)this.indexes[n]+=1;return delete this.indexes[n],s}},a.every=function(r){return this.nodes.every(r)},a.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},a.getProxyProcessor=function(){return{get:function(n,o){return o==="proxyOf"?n:n[o]?o==="each"||typeof o=="string"&&o.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=n)[o].apply(l,[].concat(c.map(function(d){return typeof d=="function"?function(f,m){return d(f.toProxy(),m)}:d})))}:o==="every"||o==="some"?function(s){return n[o](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))})}:o==="root"?function(){return n.root().toProxy()}:o==="nodes"?n.nodes.map(function(s){return s.toProxy()}):o==="first"||o==="last"?n[o].toProxy():n[o]:n[o]},set:function(n,o,s){return n[o]===s||(n[o]=s,(o==="name"||o==="params"||o==="selector")&&n.markDirty()),!0}}},a.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},a.insertAfter=function(r,n){var o=this.index(r),s=this.normalize(n,this.proxyOf.nodes[o]).reverse();o=this.index(r);for(var c=R(s),u;!(u=c()).done;){var l=u.value;this.proxyOf.nodes.splice(o+1,0,l)}var d;for(var f in this.indexes)d=this.indexes[f],o<d&&(this.indexes[f]=d+s.length);return this.markDirty(),this},a.insertBefore=function(r,n){var o=this.index(r),s=o===0?"prepend":!1,c=this.normalize(n,this.proxyOf.nodes[o],s).reverse();o=this.index(r);for(var u=R(c),l;!(l=u()).done;){var d=l.value;this.proxyOf.nodes.splice(o,0,d)}var f;for(var m in this.indexes)f=this.indexes[m],o<=f&&(this.indexes[m]=f+c.length);return this.markDirty(),this},a.normalize=function(r,n){var o=this;if(typeof r=="string")r=Uc(Fc(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var s=R(r),c;!(c=s()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=R(r),d;!(d=l()).done;){var f=d.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Lc(r)]}else if(r.selector)r=[new Ya(r)];else if(r.name)r=[new Ka(r)];else if(r.text)r=[new Nc(r)];else throw new Error("Unknown node type in node creation");var m=r.map(function(_){return _[Bc]||i.rebuild(_),_=_.proxyOf,_.parent&&_.parent.removeChild(_),_[Dc]&&Vc(_),typeof _.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(_.raws.before=n.raws.before.replace(/\S/g,"")),_.parent=o.proxyOf,_});return m},a.prepend=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];n=n.reverse();for(var s=R(n),c;!(c=s()).done;){for(var u=c.value,l=this.normalize(u,this.first,"prepend").reverse(),d=R(l),f;!(f=d()).done;){var m=f.value;this.proxyOf.nodes.unshift(m)}for(var _ in this.indexes)this.indexes[_]=this.indexes[_]+l.length}return this.markDirty(),this},a.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},a.removeAll=function(){for(var r=R(this.proxyOf.nodes),n;!(n=r()).done;){var o=n.value;o.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},a.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var n;for(var o in this.indexes)n=this.indexes[o],n>=r&&(this.indexes[o]=n-1);return this.markDirty(),this},a.replaceValues=function(r,n,o){return o||(o=n,n={}),this.walkDecls(function(s){n.props&&!n.props.includes(s.prop)||n.fast&&!s.value.includes(n.fast)||(s.value=s.value.replace(r,o))}),this.markDirty(),this},a.some=function(r){return this.nodes.some(r)},a.walk=function(r){return this.each(function(n,o){var s;try{s=r(n,o)}catch(c){throw n.addToError(c)}return s!==!1&&n.walk&&(s=n.walk(r)),s})},a.walkAtRules=function(r,n){return n?M(r,RegExp)?this.walk(function(o,s){if(o.type==="atrule"&&r.test(o.name))return n(o,s)}):this.walk(function(o,s){if(o.type==="atrule"&&o.name===r)return n(o,s)}):(n=r,this.walk(function(o,s){if(o.type==="atrule")return n(o,s)}))},a.walkComments=function(r){return this.walk(function(n,o){if(n.type==="comment")return r(n,o)})},a.walkDecls=function(r,n){return n?M(r,RegExp)?this.walk(function(o,s){if(o.type==="decl"&&r.test(o.prop))return n(o,s)}):this.walk(function(o,s){if(o.type==="decl"&&o.prop===r)return n(o,s)}):(n=r,this.walk(function(o,s){if(o.type==="decl")return n(o,s)}))},a.walkRules=function(r,n){return n?M(r,RegExp)?this.walk(function(o,s){if(o.type==="rule"&&r.test(o.selector))return n(o,s)}):this.walk(function(o,s){if(o.type==="rule"&&o.selector===r)return n(o,s)}):(n=r,this.walk(function(o,s){if(o.type==="rule")return n(o,s)}))},ve(i,[{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]}}]),i})(Of);Ke.registerParse=function(t){Fc=t};Ke.registerRule=function(t){Ya=t};Ke.registerAtRule=function(t){Ka=t};Ke.registerRoot=function(t){$c=t};var Mt=Ke;Ke.default=Ke;Ke.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Ka.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ya.prototype):t.type==="decl"?Object.setPrototypeOf(t,Lc.prototype):t.type==="comment"?Object.setPrototypeOf(t,Nc.prototype):t.type==="root"&&Object.setPrototypeOf(t,$c.prototype),t[Bc]=!0,t.nodes&&t.nodes.forEach(function(i){Ke.rebuild(i)})};var xf=Mt,zc,qc,xr=(function(t){Ce(i,t);function i(e){var r;return r=t.call(this,H({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var a=i.prototype;return a.toResult=function(r){r===void 0&&(r={});var n=new zc(new qc,this,r);return n.stringify()},i})(xf);xr.registerLazyResult=function(t){zc=t};xr.registerProcessor=function(t){qc=t};var Xa=xr;xr.default=xr;var ca=(function(){function t(a,e){if(e===void 0&&(e={}),this.type="warning",this.text=a,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in e)this[n]=e[n]}var i=t.prototype;return i.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},t})(),Wc=ca;ca.default=ca;var Mf=Wc,ua=(function(){function t(a,e,r){this.processor=a,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var i=t.prototype;return i.toString=function(){return this.css},i.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var n=new Mf(e,r);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ve(t,[{key:"content",get:function(){return this.css}}]),t})(),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(i,a){a===void 0&&(a={});var e=i.css.valueOf(),r=a.ignoreErrors,n,o,s,c,u,l,d,f,m,_,g=e.length,p=0,v=[],y=[];function b(){return p}function k(I){throw i.error("Unclosed "+I,p)}function w(){return y.length===0&&p>=g}function S(I){if(y.length)return y.pop();if(!(p>=g)){var E=I?I.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case ni:case mr:case oi:case si:case ai:{o=p;do o+=1,n=e.charCodeAt(o);while(n===mr||n===ni||n===oi||n===si||n===ai);_=["space",e.slice(p,o)],p=o-1;break}case Df:case Bf:case Ff:case $f:case zf:case Uf:case Nf:{var L=String.fromCharCode(n);_=[L,L,p];break}case Lf:{if(f=v.length?v.pop()[1]:"",m=e.charCodeAt(p+1),f==="url"&&m!==xn&&m!==cs&&m!==mr&&m!==ni&&m!==oi&&m!==ai&&m!==si){o=p;do{if(l=!1,o=e.indexOf(")",o+1),o===-1)if(r||E){o=p;break}else k("bracket");for(d=o;e.charCodeAt(d-1)===ii;)d-=1,l=!l}while(l);_=["brackets",e.slice(p,o+1),p,o],p=o}else o=e.indexOf(")",p+1),c=e.slice(p,o+1),o===-1||Wf.test(c)?_=["(","(",p]:(_=["brackets",c,p,o],p=o);break}case xn:case cs:{s=n===xn?"'":'"',o=p;do{if(l=!1,o=e.indexOf(s,o+1),o===-1)if(r||E){o=p+1;break}else k("string");for(d=o;e.charCodeAt(d-1)===ii;)d-=1,l=!l}while(l);_=["string",e.slice(p,o+1),p,o],p=o;break}case qf:{ci.lastIndex=p+1,ci.test(e),ci.lastIndex===0?o=e.length-1:o=ci.lastIndex-2,_=["at-word",e.slice(p,o+1),p,o],p=o;break}case ii:{for(o=p,u=!0;e.charCodeAt(o+1)===ii;)o+=1,u=!u;if(n=e.charCodeAt(o+1),u&&n!==us&&n!==mr&&n!==ni&&n!==oi&&n!==si&&n!==ai&&(o+=1,ls.test(e.charAt(o)))){for(;ls.test(e.charAt(o+1));)o+=1;e.charCodeAt(o+1)===mr&&(o+=1)}_=["word",e.slice(p,o+1),p,o],p=o;break}default:{n===us&&e.charCodeAt(p+1)===Vf?(o=e.indexOf("*/",p+2)+1,o===0&&(r||E?o=e.length:k("comment")),_=["comment",e.slice(p,o+1),p,o],p=o):(ui.lastIndex=p+1,ui.test(e),ui.lastIndex===0?o=e.length-1:o=ui.lastIndex-2,_=["word",e.slice(p,o+1),p,o],v.push(_),p=o);break}}return p++,_}}function P(I){y.push(I)}return{back:P,endOfFile:w,nextToken:S,position:b}},Gc=Mt,Fi=(function(t){Ce(i,t);function i(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var a=i.prototype;return a.append=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=t.prototype.append).call.apply(s,[].concat([this],n))},a.prepend=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=t.prototype.prepend).call.apply(s,[].concat([this],n))},i})(Gc),eo=Fi;Fi.default=Fi;Gc.registerAtRule(Fi);var jc=Mt,Hc,Jc,Xt=(function(t){Ce(i,t);function i(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var a=i.prototype;return a.normalize=function(r,n,o){var s=t.prototype.normalize.call(this,r);if(n){if(o==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var c=R(s),u;!(u=c()).done;){var l=u.value;l.raws.before=n.raws.before}}return s},a.removeChild=function(r,n){var o=this.index(r);return!n&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),t.prototype.removeChild.call(this,r)},a.toResult=function(r){r===void 0&&(r={});var n=new Hc(new Jc,this,r);return n.stringify()},i})(jc);Xt.registerLazyResult=function(t){Hc=t};Xt.registerProcessor=function(t){Jc=t};var jr=Xt;Xt.default=Xt;jc.registerRoot(Xt);var Mr={comma:function(i){return Mr.split(i,[","],!0)},space:function(i){var a=[" ",`
|
|
24
|
-
`," "];return Mr.split(i,a)},split:function(i,a,e){for(var r=[],n="",o=!1,s=0,c=!1,u="",l=!1,d=R(i),f;!(f=d()).done;){var m=f.value;l?l=!1:m==="\\"?l=!0:c?m===u&&(c=!1):m==='"'||m==="'"?(c=!0,u=m):m==="("?s+=1:m===")"?s>0&&(s-=1):s===0&&a.includes(m)&&(o=!0),o?(n!==""&&r.push(n.trim()),n="",o=!1):n+=m}return(e||n!=="")&&r.push(n.trim()),r}},Zc=Mr;Mr.default=Mr;var Yc=Mt,jf=Zc,$i=(function(t){Ce(i,t);function i(a){var e;return e=t.call(this,a)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ve(i,[{key:"selectors",get:function(){return jf.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(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(t){for(var i=t.length-1;i>=0;i--){var a=t[i],e=a[3]||a[2];if(e)return e}}var Qf=(function(){function t(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 i=t.prototype;return i.atrule=function(e){var r=new Yf;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var n,o,s,c=!1,u=!1,l=[],d=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?d.push(n==="("?")":"]"):n==="{"&&d.length>0?d.push("}"):n===d[d.length-1]&&d.pop(),d.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){u=!0;break}else if(n==="}"){if(l.length>0){for(s=l.length-1,o=l[s];o&&o[0]==="space";)o=l[--s];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){c=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),c&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),u&&(r.nodes=[],this.current=r)},i.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var n=0,o,s=r-1;s>=0&&(o=e[s],!(o[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},i.colon=function(e){for(var r=0,n,o,s,c=R(e.entries()),u;!(u=c()).done;){var l=u.value,d=l[0],f=l[1];if(n=f,o=n[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!s)this.doubleColon(n);else{if(s[0]==="word"&&s[1]==="progid")continue;return d}s=n}return!1},i.comment=function(e){var r=new Zf;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{var o=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}},i.createTokenizer=function(){this.tokenizer=Jf(this.input)},i.decl=function(e,r){var n=new Hf;this.init(n,e[0][2]);var o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||Xf(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var s=e[0][0];if(s===":"||s==="space"||s==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var c;e.length;)if(c=e.shift(),c[0]===":"){n.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),n.raws.between+=c[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var u=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(var d=e.length-1;d>=0;d--){if(c=e[d],c[1].toLowerCase()==="!important"){n.important=!0;var f=this.stringFrom(e,d);f=this.spacesFromEnd(e)+f,f!==" !important"&&(n.raws.important=f);break}else if(c[1].toLowerCase()==="important"){for(var m=e.slice(0),_="",g=d;g>0;g--){var p=m[g][0];if(_.trim().indexOf("!")===0&&p!=="space")break;_=m.pop()[1]+_}_.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=_,e=m)}if(c[0]!=="space"&&c[0]!=="comment")break}var v=e.some(function(y){return y[0]!=="space"&&y[0]!=="comment"});v&&(n.raws.between+=u.map(function(y){return y[1]}).join(""),u=[]),this.raw(n,"value",u.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var r=new ds;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},i.end=function(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},i.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())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},i.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var r=!1,n=null,o=!1,s=null,c=[],u=e[1].startsWith("--"),l=[],d=e;d;){if(n=d[0],l.push(d),n==="("||n==="[")s||(s=d),c.push(n==="("?")":"]");else if(u&&o&&n==="{")s||(s=d),c.push("}");else if(c.length===0)if(n===";")if(o){this.decl(l,u);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),r=!0;break}else n===":"&&(o=!0);else n===c[c.length-1]&&(c.pop(),c.length===0&&(s=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),c.length>0&&this.unclosedBracket(s),r&&o){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)},i.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},i.precheckMissedSemicolon=function(){},i.raw=function(e,r,n,o){for(var s,c,u=n.length,l="",d=!0,f,m,_=0;_<u;_+=1)s=n[_],c=s[0],c==="space"&&_===u-1&&!o?d=!1:c==="comment"?(m=n[_-1]?n[_-1][0]:"empty",f=n[_+1]?n[_+1][0]:"empty",!fs[m]&&!fs[f]?l.slice(-1)===","?d=!1:l+=s[1]:d=!1):l+=s[1];if(!d){var g=n.reduce(function(p,v){return p+v[1]},"");e.raws[r]={raw:g,value:l}}e[r]=l},i.rule=function(e){e.pop();var r=new ds;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},i.spacesAndCommentsFromEnd=function(e){for(var r,n="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var r,n="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var r,n="";e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,r){for(var n="",o=r;o<e.length;o++)n+=e[o][1];return e.splice(r,e.length-r),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),eh=Qf,th=Mt,rh=eh,ih=ln;function Ui(t,i){var a=new ih(t,i),e=new rh(a);try{e.parse()}catch(r){throw r}return e.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(t){return(typeof t>"u"?"undefined":$(t))==="object"&&typeof t.then=="function"}function Kc(t){var i=!1,a=dh[t.type];return t.type==="decl"?i=t.prop.toLowerCase():t.type==="atrule"&&(i=t.name.toLowerCase()),i&&t.append?[a,a+"-"+i,Qt,a+"Exit",a+"Exit-"+i]:i?[a,a+"-"+i,a+"Exit",a+"Exit-"+i]:t.append?[a,Qt,a+"Exit"]:[a,a+"Exit"]}function ps(t){var i;return t.type==="document"?i=["Document",Qt,"DocumentExit"]:t.type==="root"?i=["Root",Qt,"RootExit"]:i=Kc(t),{eventIndex:0,events:i,iterator:0,node:t,visitorIndex:0,visitors:[]}}function la(t){return t[Ue]=!1,t.nodes&&t.nodes.forEach(function(i){return la(i)}),t}var da={},er=(function(){function t(a,e,r){var n=this;this.stringified=!1,this.processed=!1;var o;if((typeof e>"u"?"undefined":$(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))o=la(e);else if(M(e,t)||M(e,hs))o=la(e.root),e.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var s=uh;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{o=s(e,r)}catch(c){this.processed=!0,this.error=c}o&&!o[nh]&&sh.rebuild(o)}this.result=new hs(a,o,r),this.helpers=H({},da,{postcss:da,result:this.result}),this.plugins=this.processor.plugins.map(function(c){return(typeof c>"u"?"undefined":$(c))==="object"&&c.prepare?H({},c,c.prepare(n.result)):c})}var i=t.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,r){var n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion)var o,s,c,u,l}catch(d){console&&console.error&&console.error(d)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,d,f){e.listeners[d]||(e.listeners[d]=[]),e.listeners[d].push([l,f])},n=R(this.plugins),o;!(o=n()).done;){var s=o.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==="*"?r(s,c,s[c][u]):r(s,c+"-"+u.toLowerCase(),s[c][u]);else typeof s[c]=="function"&&r(s,c,s[c])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return Ga(function(){var r,n,o,s,c,u,l,d,f,m,_,g;return Er(this,function(p){switch(p.label){case 0:e.plugin=0,r=0,p.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(n=e.plugins[r],o=e.runOnRoot(n),!gr(o))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,o];case 3:return p.sent(),[3,5];case 4:throw s=p.sent(),e.handleError(s);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];c=e.result.root,p.label=7;case 7:if(c[Ue])return[3,14];c[Ue]=!0,u=[ps(c)],p.label=8;case 8:if(!(u.length>0))return[3,13];if(l=e.visitTick(u),!gr(l))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,l];case 10:return p.sent(),[3,12];case 11:throw d=p.sent(),f=u[u.length-1].node,e.handleError(d,f);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];m=function(){var v,y,b,k,w;return Er(this,function(S){switch(S.label){case 0:v=g.value,y=v[0],b=v[1],e.result.lastPlugin=y,S.label=1;case 1:return S.trys.push([1,6,,7]),c.type!=="document"?[3,3]:(k=c.nodes.map(function(P){return b(P,e.helpers)}),[4,Promise.all(k)]);case 2:return S.sent(),[3,5];case 3:return[4,b(c,e.helpers)];case 4:S.sent(),S.label=5;case 5:return[3,7];case 6:throw w=S.sent(),e.handleError(w);case 7:return[2]}})},_=R(e.listeners.OnceExit),p.label=15;case 15:return(g=_()).done?[3,18]:[5,mc(m())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e>"u"?"undefined":$(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(o){return e.Once(o,r.helpers)});return gr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(o){throw this.handleError(o)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=oh;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var n=new ah(r,this.result.root,this.result.opts),o=n.generate();return this.result.css=o[0],this.result.map=o[1],this.result},i.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 e=R(this.plugins),r;!(r=e()).done;){var n=r.value,o=this.runOnRoot(n);if(gr(o))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=R(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},i.then=function(e,r){return this.async().then(e,r)},i.toString=function(){return this.css},i.visitSync=function(e,r){for(var n=R(e),o;!(o=n()).done;){var s=o.value,c=s[0],u=s[1];this.result.lastPlugin=c;var l=void 0;try{l=u(r,this.helpers)}catch(d){throw this.handleError(d,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(gr(l))throw this.getAsyncError()}},i.visitTick=function(e){var r=e[e.length-1],n=r.node,o=r.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){var s=o[r.visitorIndex],c=s[0],u=s[1];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=c;try{return u(n.toProxy(),this.helpers)}catch(_){throw this.handleError(_,n)}}if(r.iterator!==0){for(var l=r.iterator,d;d=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!d[Ue]){d[Ue]=!0,e.push(ps(d));return}r.iterator=0,delete n.indexes[l]}for(var f=r.events;r.eventIndex<f.length;){var m=f[r.eventIndex];if(r.eventIndex+=1,m===Qt){n.nodes&&n.nodes.length&&(n[Ue]=!0,r.iterator=n.getIterator());return}else if(this.listeners[m]){r.visitors=this.listeners[m];return}}e.pop()},i.walkSync=function(e){var r=this;e[Ue]=!0;for(var n=Kc(e),o=R(n),s;!(s=o()).done;){var c=s.value;if(c===Qt)e.nodes&&e.each(function(l){l[Ue]||r.walkSync(l)});else{var u=this.listeners[c];if(u&&this.visitSync(u,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},ve(t,[{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"}}]),t})();er.registerPostcss=function(t){da=t};var Xc=er;er.default=er;lh.registerLazyResult(er);ch.registerLazyResult(er);var ph=Mc,_h=sn,mh=ro,gh=Qa,fa=(function(){function t(a,e,r){e=e.toString(),this.stringified=!1,this._processor=a,this._css=e,this._opts=r,this._map=void 0;var n,o=_h;this.result=new gh(this._processor,n,this._opts),this.result.css=e;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var c=new ph(o,n,this._opts,e);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 i=t.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,r){return this.async().then(e,r)},i.toString=function(){return this._css},i.warnings=function(){return[]},ve(t,[{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 e,r=mh;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),vh=fa;fa.default=fa;var yh=vh,bh=Xc,Ch=Xa,kh=jr,Dr=(function(){function t(a){a===void 0&&(a=[]),this.version="8.4.38",this.plugins=this.normalize(a)}var i=t.prototype;return i.normalize=function(e){for(var r=[],n=R(e),o;!(o=n()).done;){var s=o.value;if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),(typeof s>"u"?"undefined":$(s))==="object"&&Array.isArray(s.plugins))r=r.concat(s.plugins);else if((typeof s>"u"?"undefined":$(s))==="object"&&s.postcssPlugin)r.push(s);else if(typeof s=="function")r.push(s);else if(!((typeof s>"u"?"undefined":$(s))==="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin")}return r},i.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new yh(this,e,r):new bh(this,e,r)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),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(t,i){if(Array.isArray(t))return t.map(function(d){return Br(d)});var a=t.inputs,e=Pr(t,["inputs"]);if(a){i=[];for(var r=R(a),n;!(n=r()).done;){var o=n.value,s=H({},o,{__proto__:Ph.prototype});s.map&&(s.map=H({},s.map,{__proto__:Ah.prototype})),i.push(s)}}if(e.nodes&&(e.nodes=t.nodes.map(function(d){return Br(d,i)})),e.source){var c=e.source,u=c.inputId,l=Pr(c,["inputId"]);e.source=l,u!=null&&(e.source.input=i[u])}if(e.type==="root")return new Ih(e);if(e.type==="decl")return new Sh(e);if(e.type==="rule")return new Eh(e);if(e.type==="comment")return new Th(e);if(e.type==="atrule")return new Rh(e);throw new Error("Unknown node type: "+t.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 t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new io(i)}X.plugin=function(i,a){var e=!1;function r(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];console&&console.warn&&!e&&(e=!0,console.warn(i+`: postcss.plugin was deprecated. Migration guide:
|
|
25
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Oi.LANG&&Oi.LANG.startsWith("cn")&&console.warn(i+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
26
|
-
https://www.w3ctech.com/topic/2226`));var u=a.apply(void 0,[].concat(s));return u.postcssPlugin=i,u.postcssVersion=new io().version,u}var n;return Object.defineProperty(r,"postcss",{get:function(){return n||(n=r()),n}}),r.process=function(o,s,c){return X([r(c)]).process(o,s)},r};X.stringify=Bh;X.parse=Uh;X.fromJSON=Lh;X.list=Vh;X.comment=function(t){return new tu(t)};X.atRule=function(t){return new ru(t)};X.decl=function(t){return new Qc(t)};X.rule=function(t){return new iu(t)};X.root=function(t){return new nu(t)};X.document=function(t){return new eu(t)};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(t,i,a){return i in t?Wh(t,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[i]=a},xe=function(t,i,a){return Gh(t,(typeof i>"u"?"undefined":$(i))!=="symbol"?i+"":i,a)};function jh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Hh(t){if(t.__esModule)return t;var i=t.default;if(typeof i=="function"){var a=function e(){return M(this,e)?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};a.prototype=i.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),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(t){Ce(i,t);function i(e,r,n,o,s,c){var u;return u=t.call(this,e)||this,u.name="CssSyntaxError",u.reason=e,s&&(u.file=s),o&&(u.source=o),c&&(u.plugin=c),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(u.line=r,u.column=n):(u.line=r.line,u.column=r.column,u.endLine=n.line,u.endColumn=n.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,i),u}var a=i.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(r){var n=this;if(!this.source)return"";var o=this.source;r==null&&(r=_s.isColorSupported),ms&&r&&(o=ms(o));var s=o.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(r){var m=_s.createColors(!0),_=m.bold,g=m.gray,p=m.red;d=function(v){return _(p(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,k=" "+(" "+b).slice(-l)+" | ";if(b===n.line){var w=f(k.replace(/\d/g," "))+v.slice(0,n.column-1).replace(/[^\t]/g," ");return d(">")+f(k)+v+`
|
|
27
|
-
`+w+d("^")}return" "+f(k)+v}).join(`
|
|
28
|
-
`)},a.toString=function(){var r=this.showSourceCode();return r&&(r=`
|
|
29
|
-
|
|
30
|
-
`+r+`
|
|
31
|
-
`),this.name+": "+this.message+r},i})(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(t){return t[0].toUpperCase()+t.slice(1)}var pa=(function(){function t(a){this.builder=a}var i=t.prototype;return i.atrule=function(e,r){var n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{var s=(e.raws.between||"")+(r?";":"");this.builder(n+o+s,e)}},i.beforeAfter=function(e,r){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");for(var o=e.parent,s=0;o&&o.type!=="root";)s+=1,o=o.parent;if(n.includes(`
|
|
37
|
-
`)){var c=this.raw(e,null,"indent");if(c.length)for(var u=0;u<s;u++)n+=c}return n},i.block=function(e,r){var n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");var o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")},i.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var n=this.raw(e,"semicolon"),o=0;o<e.nodes.length;o++){var s=e.nodes[o],c=this.raw(s,"before");c&&this.builder(c),this.stringify(s,r!==o||n)}},i.comment=function(e){var r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)},i.decl=function(e,r){var n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)},i.document=function(e){this.body(e)},i.raw=function(e,r,n){var o;if(n||(n=r),r&&(o=e.raws[r],typeof o<"u"))return o;var s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return gs[n];var c=e.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[n]<"u")return c.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);var u="raw"+Kh(n);return this[u]?o=this[u](c,e):c.walk(function(l){if(o=l.raws[r],typeof o<"u")return!1}),typeof o>"u"&&(o=gs[n]),c.rawCache[n]=o,o},i.rawBeforeClose=function(e){var r;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
|
|
38
|
-
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},i.rawBeforeComment=function(e,r){var n;return e.walkComments(function(o){if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
39
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,r){var n;return e.walkDecls(function(o){if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
40
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var r;return e.walk(function(n){if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r},i.rawBeforeRule=function(e){var r;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
41
|
-
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},i.rawColon=function(e){var r;return e.walkDecls(function(n){if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r},i.rawEmptyBody=function(e){var r;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(n){var o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof n.raws.before<"u"){var s=n.raws.before.split(`
|
|
42
|
-
`);return r=s[s.length-1],r=r.replace(/\S/g,""),!1}}),r},i.rawSemicolon=function(e){var r;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r},i.rawValue=function(e,r){var n=e[r],o=e.raws[r];return o&&o.value===n?o.raw:n},i.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},i.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},i.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),ou=pa;pa.default=pa;var Xh=ou;function _a(t,i){var a=new Xh(i);a.stringify(t)}var fn=_a;_a.default=_a;var li=ht.isClean,Qh=ht.my,ep=ao,tp=ou,rp=fn;function ma(t,i){var a=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],n=typeof r>"u"?"undefined":$(r);e==="parent"&&n==="object"?i&&(a[e]=i):e==="source"?a[e]=r:Array.isArray(r)?a[e]=r.map(function(o){return ma(o,a)}):(n==="object"&&r!==null&&(r=ma(r)),a[e]=r)}return a}var ga=(function(){function t(a){a===void 0&&(a={}),this.raws={},this[li]=!1,this[Qh]=!0;for(var e in a)if(e==="nodes"){this.nodes=[];for(var r=R(a[e]),n;!(n=r()).done;){var o=n.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[e]=a[e]}var i=t.prototype;return i.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},i.before=function(e){return this.parent.insertBefore(this,e),this},i.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},i.clone=function(e){e===void 0&&(e={});var r=ma(this);for(var n in e)r[n]=e[n];return r},i.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},i.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},i.error=function(e,r){if(r===void 0&&(r={}),this.source){var n=this.rangeBy(r),o=n.end,s=n.start;return this.source.input.error(e,{column:s.column,line:s.line},{column:o.column,line:o.line},r)}return new ep(e)},i.getProxyProcessor=function(){return{get:function(r,n){return n==="proxyOf"?r:n==="root"?function(){return r.root().toProxy()}:r[n]},set:function(r,n,o){return r[n]===o||(r[n]=o,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&r.markDirty()),!0}}},i.markDirty=function(){if(this[li]){this[li]=!1;for(var e=this;e=e.parent;)e[li]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,r){var n=this.source.start;if(e.index)n=this.positionInside(e.index,r);else if(e.word){r=this.toString();var o=r.indexOf(e.word);o!==-1&&(n=this.positionInside(o,r))}return n},i.positionInside=function(e,r){for(var n=r||this.toString(),o=this.source.start.column,s=this.source.start.line,c=0;c<e;c++)n[c]===`
|
|
43
|
-
`?(o=1,s+=1):o+=1;return{column:o,line:s}},i.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},i.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var o=this.toString(),s=o.indexOf(e.word);s!==-1&&(r=this.positionInside(s,o),n=this.positionInside(s+e.word.length,o))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line}),{end:n,start:r}},i.raw=function(e,r){var n=new tp;return n.raw(this,e,r)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(this.parent){for(var o=this,s=!1,c=R(r),u;!(u=c()).done;){var l=u.value;l===this?s=!0:s?(this.parent.insertAfter(o,l),o=l):this.parent.insertBefore(o,l)}s||this.remove()}return this},i.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},i.toJSON=function(e,r){var n={},o=r==null;r=r||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))n[c]=u.map(function(d){return(typeof d>"u"?"undefined":$(d))==="object"&&d.toJSON?d.toJSON(null,r):d});else if((typeof u>"u"?"undefined":$(u))==="object"&&u.toJSON)n[c]=u.toJSON(null,r);else if(c==="source"){var l=r.get(u.input);l==null&&(l=s,r.set(u.input,s),s++),n[c]={end:u.end,inputId:l,start:u.start}}else n[c]=u}return o&&(n.inputs=[].concat(r.keys()).map(function(d){return d.toJSON()})),n},i.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},i.toString=function(e){e===void 0&&(e=rp),e.stringify&&(e=e.stringify);var r="";return e(this,function(n){r+=n}),r},i.warn=function(e,r,n){var o={node:this};for(var s in n)o[s]=n[s];return e.warn(r,o)},ve(t,[{key:"proxyOf",get:function(){return this}}]),t})(),hn=ga;ga.default=ga;var ip=hn,va=(function(t){Ce(i,t);function i(a){var e;return a&&typeof a.value<"u"&&typeof a.value!="string"&&(a=H({},a,{value:String(a.value)})),e=t.call(this,a)||this,e.type="decl",e}return ve(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i})(ip),pn=va;va.default=va;var np="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ap=function(t){t===void 0&&(t=21);for(var i="",a=t;a--;)i+=np[Math.random()*64|0];return i},op={nanoid:ap},vs=de.SourceMapConsumer,ys=de.SourceMapGenerator,sp=de.existsSync,cp=de.readFileSync,Mn=de.dirname,up=de.join;function lp(t){return ct?ct.from(t,"base64").toString():window.atob(t)}var ya=(function(){function t(a,e){if(e.map!==!1){this.loadAnnotation(a),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,n=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Mn(this.mapFile)),n&&(this.text=n)}}var i=t.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new vs(this.text)),this.consumerCache},i.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(o.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||n.test(e))return lp(e.substr(RegExp.lastMatch.length));var c=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)},i.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},i.isMap=function(e){return(typeof e>"u"?"undefined":$(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var n=e.lastIndexOf(r.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}},i.loadFile=function(e){if(this.root=Mn(e),sp(e))return this.mapFile=e,cp(e,"utf-8").toString().trim()},i.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var n=r(e);if(n){var o=this.loadFile(n);if(!o)throw new Error("Unable to load previous source map: "+n.toString());return o}}else{if(M(r,vs))return ys.fromSourceMap(r).toString();if(M(r,ys))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return e&&(s=up(Mn(e),s)),this.loadFile(s)}}},i.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),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 t(a,e){if(e===void 0&&(e={}),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,e.from&&(!ks||/^\w+:\/\//.test(e.from)||ba(e.from)?this.file=e.from:this.file=Ca(e.from)),ks&&_p){var r=new pp(this.css,e);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+hp(6)+">"),this.map&&(this.map.file=this.from)}var i=t.prototype;return i.error=function(e,r,n,o){o===void 0&&(o={});var s,c,u;if(r&&(typeof r>"u"?"undefined":$(r))==="object"){var l=r,d=n;if(typeof l.offset=="number"){var f=this.fromOffset(l.offset);r=f.line,n=f.col}else r=l.line,n=l.column;if(typeof d.offset=="number"){var m=this.fromOffset(d.offset);c=m.line,u=m.col}else c=d.line,u=d.column}else if(!n){var _=this.fromOffset(r);r=_.line,n=_.col}var g=this.origin(r,n,c,u);return g?s=new Cs(e,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,o.plugin):s=new Cs(e,c===void 0?r:{column:n,line:r},c===void 0?n:{column:u,line:c},this.css,this.file,o.plugin),s.input={column:n,endColumn:u,endLine:c,line:r,source:this.css},this.file&&(di&&(s.input.url=di(this.file).toString()),s.input.file=this.file),s},i.fromOffset=function(e){var r,n;if(this[Bn])n=this[Bn];else{var o=this.css.split(`
|
|
44
|
-
`);n=new Array(o.length);for(var s=0,c=0,u=o.length;c<u;c++)n[c]=s,s+=o[c].length+1;this[Bn]=n}r=n[n.length-1];var l=0;if(e>=r)l=n.length-1;else for(var d=n.length-2,f;l<d;)if(f=l+(d-l>>1),e<n[f])d=f-1;else if(e>=n[f+1])l=f+1;else{l=f;break}return{col:e-n[l]+1,line:l+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ca(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,r,n,o){if(!this.map)return!1;var s=this.map.consumer(),c=s.originalPositionFor({column:r,line:e});if(!c.source)return!1;var u;typeof n=="number"&&(u=s.originalPositionFor({column:o,line:n}));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},i.toJSON=function(){for(var e={},r=0,n=["hasBOM","css","file","id"];r<n.length;r++){var o=n[r];this[o]!=null&&(e[o]=this[o])}return this.map&&(e.map=H({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ve(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),_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 t(a,e,r,n){this.stringify=a,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var i=t.prototype;return i.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r=`
|
|
45
|
-
`;this.css.includes(`\r
|
|
46
|
-
`)&&(r=`\r
|
|
47
|
-
`),this.css+=r+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=R(this.previous()),r;!(r=e()).done;){var n=r.value,o=this.toUrl(this.path(n.file)),s=n.root||Pi(n.file),c=void 0;this.mapOpts.sourcesContent===!1?(c=new cu(n.text),c.sourcesContent&&(c.sourcesContent=null)):c=n.consumer(),this.map.applySourceMap(c,o,this.toUrl(this.path(s)))}},i.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),vp&&gp&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},i.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ri.fromSourceMap(e,{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]},i.generateString=function(){var e=this;this.css="",this.map=new Ri({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,n=1,o="<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(e.css+=l,d&&f!=="end"&&(s.generated.line=r,s.generated.column=n-1,d.source&&d.source.start?(s.source=e.sourcePath(d),s.original.line=d.source.start.line,s.original.column=d.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),c=l.match(/\n/g),c?(r+=c.length,u=l.lastIndexOf(`
|
|
48
|
-
`),n=l.length-u):n+=l.length,d&&f!=="start"){var m=d.parent||{raws:{}},_=d.type==="decl"||d.type==="atrule"&&!d.nodes;(!_||d!==m.last||m.raws.semicolon)&&(d.source&&d.source.end?(s.source=e.sourcePath(d),s.original.line=d.source.end.line,s.original.column=d.source.end.column-1,s.generated.line=r,s.generated.column=n-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,e.map.addMapping(s)))}})},i.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},i.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},i.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},i.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},i.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},i.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var n=this.opts.to?Pi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Pi(lu(n,this.mapOpts.annotation)));var o=uu(n,e);return this.memoizedPaths.set(e,o),o},i.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(n){if(n.source&&n.source.input.map){var o=n.source.input.map;e.previousMaps.includes(o)||e.previousMaps.push(o)}});else{var r=new mp(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(o){if(o.source){var s=o.source.input.from;if(s&&!r[s]){r[s]=!0;var c=e.usesFileUrls?e.toFileUrl(s):e.toUrl(e.path(s));e.map.setSourceContent(c,o.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},i.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},i.toBase64=function(e){return ct?ct.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},i.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(ws){var n=ws(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")},i.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;du==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},t})(),fu=yp,bp=hn,ka=(function(t){Ce(i,t);function i(a){var e;return e=t.call(this,a)||this,e.type="comment",e}return i})(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(t){return t.map(function(i){return i.nodes&&(i.nodes=yu(i.nodes)),delete i.source,i})}function bu(t){if(t[hu]=!1,t.proxyOf.nodes)for(var i=R(t.proxyOf.nodes),a;!(a=i()).done;){var e=a.value;bu(e)}}var Xe=(function(t){Ce(i,t);function i(){return t.apply(this,arguments)||this}var a=i.prototype;return a.append=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];for(var s=R(n),c;!(c=s()).done;)for(var u=c.value,l=this.normalize(u,this.last),d=R(l),f;!(f=d()).done;){var m=f.value;this.proxyOf.nodes.push(m)}return this.markDirty(),this},a.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var n=R(this.nodes),o;!(o=n()).done;){var s=o.value;s.cleanRaws(r)}},a.each=function(r){if(this.proxyOf.nodes){for(var n=this.getIterator(),o,s;this.indexes[n]<this.proxyOf.nodes.length&&(o=this.indexes[n],s=r(this.proxyOf.nodes[o],o),s!==!1);)this.indexes[n]+=1;return delete this.indexes[n],s}},a.every=function(r){return this.nodes.every(r)},a.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},a.getProxyProcessor=function(){return{get:function(n,o){return o==="proxyOf"?n:n[o]?o==="each"||typeof o=="string"&&o.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=n)[o].apply(l,[].concat(c.map(function(d){return typeof d=="function"?function(f,m){return d(f.toProxy(),m)}:d})))}:o==="every"||o==="some"?function(s){return n[o](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))})}:o==="root"?function(){return n.root().toProxy()}:o==="nodes"?n.nodes.map(function(s){return s.toProxy()}):o==="first"||o==="last"?n[o].toProxy():n[o]:n[o]},set:function(n,o,s){return n[o]===s||(n[o]=s,(o==="name"||o==="params"||o==="selector")&&n.markDirty()),!0}}},a.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},a.insertAfter=function(r,n){var o=this.index(r),s=this.normalize(n,this.proxyOf.nodes[o]).reverse();o=this.index(r);for(var c=R(s),u;!(u=c()).done;){var l=u.value;this.proxyOf.nodes.splice(o+1,0,l)}var d;for(var f in this.indexes)d=this.indexes[f],o<d&&(this.indexes[f]=d+s.length);return this.markDirty(),this},a.insertBefore=function(r,n){var o=this.index(r),s=o===0?"prepend":!1,c=this.normalize(n,this.proxyOf.nodes[o],s).reverse();o=this.index(r);for(var u=R(c),l;!(l=u()).done;){var d=l.value;this.proxyOf.nodes.splice(o,0,d)}var f;for(var m in this.indexes)f=this.indexes[m],o<=f&&(this.indexes[m]=f+c.length);return this.markDirty(),this},a.normalize=function(r,n){var o=this;if(typeof r=="string")r=yu(gu(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var s=R(r),c;!(c=s()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=R(r),d;!(d=l()).done;){var f=d.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new _u(r)]}else if(r.selector)r=[new oo(r)];else if(r.name)r=[new so(r)];else if(r.text)r=[new mu(r)];else throw new Error("Unknown node type in node creation");var m=r.map(function(_){return _[pu]||i.rebuild(_),_=_.proxyOf,_.parent&&_.parent.removeChild(_),_[hu]&&bu(_),typeof _.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(_.raws.before=n.raws.before.replace(/\S/g,"")),_.parent=o.proxyOf,_});return m},a.prepend=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];n=n.reverse();for(var s=R(n),c;!(c=s()).done;){for(var u=c.value,l=this.normalize(u,this.first,"prepend").reverse(),d=R(l),f;!(f=d()).done;){var m=f.value;this.proxyOf.nodes.unshift(m)}for(var _ in this.indexes)this.indexes[_]=this.indexes[_]+l.length}return this.markDirty(),this},a.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},a.removeAll=function(){for(var r=R(this.proxyOf.nodes),n;!(n=r()).done;){var o=n.value;o.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},a.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var n;for(var o in this.indexes)n=this.indexes[o],n>=r&&(this.indexes[o]=n-1);return this.markDirty(),this},a.replaceValues=function(r,n,o){return o||(o=n,n={}),this.walkDecls(function(s){n.props&&!n.props.includes(s.prop)||n.fast&&!s.value.includes(n.fast)||(s.value=s.value.replace(r,o))}),this.markDirty(),this},a.some=function(r){return this.nodes.some(r)},a.walk=function(r){return this.each(function(n,o){var s;try{s=r(n,o)}catch(c){throw n.addToError(c)}return s!==!1&&n.walk&&(s=n.walk(r)),s})},a.walkAtRules=function(r,n){return n?M(r,RegExp)?this.walk(function(o,s){if(o.type==="atrule"&&r.test(o.name))return n(o,s)}):this.walk(function(o,s){if(o.type==="atrule"&&o.name===r)return n(o,s)}):(n=r,this.walk(function(o,s){if(o.type==="atrule")return n(o,s)}))},a.walkComments=function(r){return this.walk(function(n,o){if(n.type==="comment")return r(n,o)})},a.walkDecls=function(r,n){return n?M(r,RegExp)?this.walk(function(o,s){if(o.type==="decl"&&r.test(o.prop))return n(o,s)}):this.walk(function(o,s){if(o.type==="decl"&&o.prop===r)return n(o,s)}):(n=r,this.walk(function(o,s){if(o.type==="decl")return n(o,s)}))},a.walkRules=function(r,n){return n?M(r,RegExp)?this.walk(function(o,s){if(o.type==="rule"&&r.test(o.selector))return n(o,s)}):this.walk(function(o,s){if(o.type==="rule"&&o.selector===r)return n(o,s)}):(n=r,this.walk(function(o,s){if(o.type==="rule")return n(o,s)}))},ve(i,[{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]}}]),i})(Cp);Xe.registerParse=function(t){gu=t};Xe.registerRule=function(t){oo=t};Xe.registerAtRule=function(t){so=t};Xe.registerRoot=function(t){vu=t};var Dt=Xe;Xe.default=Xe;Xe.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,so.prototype):t.type==="rule"?Object.setPrototypeOf(t,oo.prototype):t.type==="decl"?Object.setPrototypeOf(t,_u.prototype):t.type==="comment"?Object.setPrototypeOf(t,mu.prototype):t.type==="root"&&Object.setPrototypeOf(t,vu.prototype),t[pu]=!0,t.nodes&&t.nodes.forEach(function(i){Xe.rebuild(i)})};var kp=Dt,Cu,ku,Lr=(function(t){Ce(i,t);function i(e){var r;return r=t.call(this,H({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var a=i.prototype;return a.toResult=function(r){r===void 0&&(r={});var n=new Cu(new ku,this,r);return n.stringify()},i})(kp);Lr.registerLazyResult=function(t){Cu=t};Lr.registerProcessor=function(t){ku=t};var co=Lr;Lr.default=Lr;var wa=(function(){function t(a,e){if(e===void 0&&(e={}),this.type="warning",this.text=a,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in e)this[n]=e[n]}var i=t.prototype;return i.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},t})(),wu=wa;wa.default=wa;var wp=wu,Sa=(function(){function t(a,e,r){this.processor=a,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var i=t.prototype;return i.toString=function(){return this.css},i.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var n=new wp(e,r);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ve(t,[{key:"content",get:function(){return this.css}}]),t})(),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(i,a){a===void 0&&(a={});var e=i.css.valueOf(),r=a.ignoreErrors,n,o,s,c,u,l,d,f,m,_,g=e.length,p=0,v=[],y=[];function b(){return p}function k(I){throw i.error("Unclosed "+I,p)}function w(){return y.length===0&&p>=g}function S(I){if(y.length)return y.pop();if(!(p>=g)){var E=I?I.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case hi:case vr:case _i:case mi:case pi:{o=p;do o+=1,n=e.charCodeAt(o);while(n===vr||n===hi||n===_i||n===mi||n===pi);_=["space",e.slice(p,o)],p=o-1;break}case Sp:case Ap:case Pp:case Ip:case xp:case Ep:case Rp:{var L=String.fromCharCode(n);_=[L,L,p];break}case Tp:{if(f=v.length?v.pop()[1]:"",m=e.charCodeAt(p+1),f==="url"&&m!==Ln&&m!==Ss&&m!==vr&&m!==hi&&m!==_i&&m!==pi&&m!==mi){o=p;do{if(l=!1,o=e.indexOf(")",o+1),o===-1)if(r||E){o=p;break}else k("bracket");for(d=o;e.charCodeAt(d-1)===fi;)d-=1,l=!l}while(l);_=["brackets",e.slice(p,o+1),p,o],p=o}else o=e.indexOf(")",p+1),c=e.slice(p,o+1),o===-1||Dp.test(c)?_=["(","(",p]:(_=["brackets",c,p,o],p=o);break}case Ln:case Ss:{s=n===Ln?"'":'"',o=p;do{if(l=!1,o=e.indexOf(s,o+1),o===-1)if(r||E){o=p+1;break}else k("string");for(d=o;e.charCodeAt(d-1)===fi;)d-=1,l=!l}while(l);_=["string",e.slice(p,o+1),p,o],p=o;break}case Mp:{gi.lastIndex=p+1,gi.test(e),gi.lastIndex===0?o=e.length-1:o=gi.lastIndex-2,_=["at-word",e.slice(p,o+1),p,o],p=o;break}case fi:{for(o=p,u=!0;e.charCodeAt(o+1)===fi;)o+=1,u=!u;if(n=e.charCodeAt(o+1),u&&n!==As&&n!==vr&&n!==hi&&n!==_i&&n!==mi&&n!==pi&&(o+=1,Ts.test(e.charAt(o)))){for(;Ts.test(e.charAt(o+1));)o+=1;e.charCodeAt(o+1)===vr&&(o+=1)}_=["word",e.slice(p,o+1),p,o],p=o;break}default:{n===As&&e.charCodeAt(p+1)===Op?(o=e.indexOf("*/",p+2)+1,o===0&&(r||E?o=e.length:k("comment")),_=["comment",e.slice(p,o+1),p,o],p=o):(vi.lastIndex=p+1,vi.test(e),vi.lastIndex===0?o=e.length-1:o=vi.lastIndex-2,_=["word",e.slice(p,o+1),p,o],v.push(_),p=o);break}}return p++,_}}function P(I){y.push(I)}return{back:P,endOfFile:w,nextToken:S,position:b}},Su=Dt,zi=(function(t){Ce(i,t);function i(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var a=i.prototype;return a.append=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=t.prototype.append).call.apply(s,[].concat([this],n))},a.prepend=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=t.prototype.prepend).call.apply(s,[].concat([this],n))},i})(Su),lo=zi;zi.default=zi;Su.registerAtRule(zi);var Au=Dt,Tu,Ru,tr=(function(t){Ce(i,t);function i(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var a=i.prototype;return a.normalize=function(r,n,o){var s=t.prototype.normalize.call(this,r);if(n){if(o==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var c=R(s),u;!(u=c()).done;){var l=u.value;l.raws.before=n.raws.before}}return s},a.removeChild=function(r,n){var o=this.index(r);return!n&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),t.prototype.removeChild.call(this,r)},a.toResult=function(r){r===void 0&&(r={});var n=new Tu(new Ru,this,r);return n.stringify()},i})(Au);tr.registerLazyResult=function(t){Tu=t};tr.registerProcessor=function(t){Ru=t};var Hr=tr;tr.default=tr;Au.registerRoot(tr);var Nr={comma:function(i){return Nr.split(i,[","],!0)},space:function(i){var a=[" ",`
|
|
49
|
-
`," "];return Nr.split(i,a)},split:function(i,a,e){for(var r=[],n="",o=!1,s=0,c=!1,u="",l=!1,d=R(i),f;!(f=d()).done;){var m=f.value;l?l=!1:m==="\\"?l=!0:c?m===u&&(c=!1):m==='"'||m==="'"?(c=!0,u=m):m==="("?s+=1:m===")"?s>0&&(s-=1):s===0&&a.includes(m)&&(o=!0),o?(n!==""&&r.push(n.trim()),n="",o=!1):n+=m}return(e||n!=="")&&r.push(n.trim()),r}},Pu=Nr;Nr.default=Nr;var Iu=Dt,Lp=Pu,qi=(function(t){Ce(i,t);function i(a){var e;return e=t.call(this,a)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ve(i,[{key:"selectors",get:function(){return Lp.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(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(t){for(var i=t.length-1;i>=0;i--){var a=t[i],e=a[3]||a[2];if(e)return e}}var qp=(function(){function t(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 i=t.prototype;return i.atrule=function(e){var r=new Up;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var n,o,s,c=!1,u=!1,l=[],d=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?d.push(n==="("?")":"]"):n==="{"&&d.length>0?d.push("}"):n===d[d.length-1]&&d.pop(),d.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){u=!0;break}else if(n==="}"){if(l.length>0){for(s=l.length-1,o=l[s];o&&o[0]==="space";)o=l[--s];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){c=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),c&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),u&&(r.nodes=[],this.current=r)},i.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var n=0,o,s=r-1;s>=0&&(o=e[s],!(o[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},i.colon=function(e){for(var r=0,n,o,s,c=R(e.entries()),u;!(u=c()).done;){var l=u.value,d=l[0],f=l[1];if(n=f,o=n[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!s)this.doubleColon(n);else{if(s[0]==="word"&&s[1]==="progid")continue;return d}s=n}return!1},i.comment=function(e){var r=new $p;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{var o=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}},i.createTokenizer=function(){this.tokenizer=Fp(this.input)},i.decl=function(e,r){var n=new Np;this.init(n,e[0][2]);var o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||zp(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var s=e[0][0];if(s===":"||s==="space"||s==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var c;e.length;)if(c=e.shift(),c[0]===":"){n.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),n.raws.between+=c[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var u=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(var d=e.length-1;d>=0;d--){if(c=e[d],c[1].toLowerCase()==="!important"){n.important=!0;var f=this.stringFrom(e,d);f=this.spacesFromEnd(e)+f,f!==" !important"&&(n.raws.important=f);break}else if(c[1].toLowerCase()==="important"){for(var m=e.slice(0),_="",g=d;g>0;g--){var p=m[g][0];if(_.trim().indexOf("!")===0&&p!=="space")break;_=m.pop()[1]+_}_.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=_,e=m)}if(c[0]!=="space"&&c[0]!=="comment")break}var v=e.some(function(y){return y[0]!=="space"&&y[0]!=="comment"});v&&(n.raws.between+=u.map(function(y){return y[1]}).join(""),u=[]),this.raw(n,"value",u.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var r=new Rs;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},i.end=function(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},i.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())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},i.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var r=!1,n=null,o=!1,s=null,c=[],u=e[1].startsWith("--"),l=[],d=e;d;){if(n=d[0],l.push(d),n==="("||n==="[")s||(s=d),c.push(n==="("?")":"]");else if(u&&o&&n==="{")s||(s=d),c.push("}");else if(c.length===0)if(n===";")if(o){this.decl(l,u);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),r=!0;break}else n===":"&&(o=!0);else n===c[c.length-1]&&(c.pop(),c.length===0&&(s=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),c.length>0&&this.unclosedBracket(s),r&&o){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)},i.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},i.precheckMissedSemicolon=function(){},i.raw=function(e,r,n,o){for(var s,c,u=n.length,l="",d=!0,f,m,_=0;_<u;_+=1)s=n[_],c=s[0],c==="space"&&_===u-1&&!o?d=!1:c==="comment"?(m=n[_-1]?n[_-1][0]:"empty",f=n[_+1]?n[_+1][0]:"empty",!Ps[m]&&!Ps[f]?l.slice(-1)===","?d=!1:l+=s[1]:d=!1):l+=s[1];if(!d){var g=n.reduce(function(p,v){return p+v[1]},"");e.raws[r]={raw:g,value:l}}e[r]=l},i.rule=function(e){e.pop();var r=new Rs;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},i.spacesAndCommentsFromEnd=function(e){for(var r,n="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var r,n="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var r,n="";e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,r){for(var n="",o=r;o<e.length;o++)n+=e[o][1];return e.splice(r,e.length-r),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Wp=qp,Gp=Dt,jp=Wp,Hp=_n;function Wi(t,i){var a=new Hp(t,i),e=new jp(a);try{e.parse()}catch(r){throw r}return e.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(t){return(typeof t>"u"?"undefined":$(t))==="object"&&typeof t.then=="function"}function Eu(t){var i=!1,a=t_[t.type];return t.type==="decl"?i=t.prop.toLowerCase():t.type==="atrule"&&(i=t.name.toLowerCase()),i&&t.append?[a,a+"-"+i,rr,a+"Exit",a+"Exit-"+i]:i?[a,a+"-"+i,a+"Exit",a+"Exit-"+i]:t.append?[a,rr,a+"Exit"]:[a,a+"Exit"]}function Es(t){var i;return t.type==="document"?i=["Document",rr,"DocumentExit"]:t.type==="root"?i=["Root",rr,"RootExit"]:i=Eu(t),{eventIndex:0,events:i,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Aa(t){return t[Ve]=!1,t.nodes&&t.nodes.forEach(function(i){return Aa(i)}),t}var Ta={},ir=(function(){function t(a,e,r){var n=this;this.stringified=!1,this.processed=!1;var o;if((typeof e>"u"?"undefined":$(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))o=Aa(e);else if(M(e,t)||M(e,Is))o=Aa(e.root),e.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var s=Qp;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{o=s(e,r)}catch(c){this.processed=!0,this.error=c}o&&!o[Jp]&&Kp.rebuild(o)}this.result=new Is(a,o,r),this.helpers=H({},Ta,{postcss:Ta,result:this.result}),this.plugins=this.processor.plugins.map(function(c){return(typeof c>"u"?"undefined":$(c))==="object"&&c.prepare?H({},c,c.prepare(n.result)):c})}var i=t.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,r){var n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion)var o,s,c,u,l}catch(d){console&&console.error&&console.error(d)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,d,f){e.listeners[d]||(e.listeners[d]=[]),e.listeners[d].push([l,f])},n=R(this.plugins),o;!(o=n()).done;){var s=o.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==="*"?r(s,c,s[c][u]):r(s,c+"-"+u.toLowerCase(),s[c][u]);else typeof s[c]=="function"&&r(s,c,s[c])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return Ga(function(){var r,n,o,s,c,u,l,d,f,m,_,g;return Er(this,function(p){switch(p.label){case 0:e.plugin=0,r=0,p.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(n=e.plugins[r],o=e.runOnRoot(n),!yr(o))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,o];case 3:return p.sent(),[3,5];case 4:throw s=p.sent(),e.handleError(s);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];c=e.result.root,p.label=7;case 7:if(c[Ve])return[3,14];c[Ve]=!0,u=[Es(c)],p.label=8;case 8:if(!(u.length>0))return[3,13];if(l=e.visitTick(u),!yr(l))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,l];case 10:return p.sent(),[3,12];case 11:throw d=p.sent(),f=u[u.length-1].node,e.handleError(d,f);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];m=function(){var v,y,b,k,w;return Er(this,function(S){switch(S.label){case 0:v=g.value,y=v[0],b=v[1],e.result.lastPlugin=y,S.label=1;case 1:return S.trys.push([1,6,,7]),c.type!=="document"?[3,3]:(k=c.nodes.map(function(P){return b(P,e.helpers)}),[4,Promise.all(k)]);case 2:return S.sent(),[3,5];case 3:return[4,b(c,e.helpers)];case 4:S.sent(),S.label=5;case 5:return[3,7];case 6:throw w=S.sent(),e.handleError(w);case 7:return[2]}})},_=R(e.listeners.OnceExit),p.label=15;case 15:return(g=_()).done?[3,18]:[5,mc(m())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e>"u"?"undefined":$(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(o){return e.Once(o,r.helpers)});return yr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(o){throw this.handleError(o)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Yp;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var n=new Zp(r,this.result.root,this.result.opts),o=n.generate();return this.result.css=o[0],this.result.map=o[1],this.result},i.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 e=R(this.plugins),r;!(r=e()).done;){var n=r.value,o=this.runOnRoot(n);if(yr(o))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=R(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},i.then=function(e,r){return this.async().then(e,r)},i.toString=function(){return this.css},i.visitSync=function(e,r){for(var n=R(e),o;!(o=n()).done;){var s=o.value,c=s[0],u=s[1];this.result.lastPlugin=c;var l=void 0;try{l=u(r,this.helpers)}catch(d){throw this.handleError(d,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(yr(l))throw this.getAsyncError()}},i.visitTick=function(e){var r=e[e.length-1],n=r.node,o=r.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){var s=o[r.visitorIndex],c=s[0],u=s[1];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=c;try{return u(n.toProxy(),this.helpers)}catch(_){throw this.handleError(_,n)}}if(r.iterator!==0){for(var l=r.iterator,d;d=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!d[Ve]){d[Ve]=!0,e.push(Es(d));return}r.iterator=0,delete n.indexes[l]}for(var f=r.events;r.eventIndex<f.length;){var m=f[r.eventIndex];if(r.eventIndex+=1,m===rr){n.nodes&&n.nodes.length&&(n[Ve]=!0,r.iterator=n.getIterator());return}else if(this.listeners[m]){r.visitors=this.listeners[m];return}}e.pop()},i.walkSync=function(e){var r=this;e[Ve]=!0;for(var n=Eu(e),o=R(n),s;!(s=o()).done;){var c=s.value;if(c===rr)e.nodes&&e.each(function(l){l[Ve]||r.walkSync(l)});else{var u=this.listeners[c];if(u&&this.visitSync(u,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},ve(t,[{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"}}]),t})();ir.registerPostcss=function(t){Ta=t};var Ou=ir;ir.default=ir;e_.registerLazyResult(ir);Xp.registerLazyResult(ir);var n_=fu,a_=fn,o_=ho,s_=uo,Ra=(function(){function t(a,e,r){e=e.toString(),this.stringified=!1,this._processor=a,this._css=e,this._opts=r,this._map=void 0;var n,o=a_;this.result=new s_(this._processor,n,this._opts),this.result.css=e;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var c=new n_(o,n,this._opts,e);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 i=t.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,r){return this.async().then(e,r)},i.toString=function(){return this._css},i.warnings=function(){return[]},ve(t,[{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 e,r=o_;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),c_=Ra;Ra.default=Ra;var u_=c_,l_=Ou,d_=co,f_=Hr,Fr=(function(){function t(a){a===void 0&&(a=[]),this.version="8.4.38",this.plugins=this.normalize(a)}var i=t.prototype;return i.normalize=function(e){for(var r=[],n=R(e),o;!(o=n()).done;){var s=o.value;if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),(typeof s>"u"?"undefined":$(s))==="object"&&Array.isArray(s.plugins))r=r.concat(s.plugins);else if((typeof s>"u"?"undefined":$(s))==="object"&&s.postcssPlugin)r.push(s);else if(typeof s=="function")r.push(s);else if(!((typeof s>"u"?"undefined":$(s))==="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin")}return r},i.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new u_(this,e,r):new l_(this,e,r)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),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(t,i){if(Array.isArray(t))return t.map(function(d){return $r(d)});var a=t.inputs,e=Pr(t,["inputs"]);if(a){i=[];for(var r=R(a),n;!(n=r()).done;){var o=n.value,s=H({},o,{__proto__:v_.prototype});s.map&&(s.map=H({},s.map,{__proto__:__.prototype})),i.push(s)}}if(e.nodes&&(e.nodes=t.nodes.map(function(d){return $r(d,i)})),e.source){var c=e.source,u=c.inputId,l=Pr(c,["inputId"]);e.source=l,u!=null&&(e.source.input=i[u])}if(e.type==="root")return new y_(e);if(e.type==="decl")return new p_(e);if(e.type==="rule")return new b_(e);if(e.type==="comment")return new m_(e);if(e.type==="atrule")return new g_(e);throw new Error("Unknown node type: "+t.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 t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new po(i)}Q.plugin=function(i,a){var e=!1;function r(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];console&&console.warn&&!e&&(e=!0,console.warn(i+`: postcss.plugin was deprecated. Migration guide:
|
|
50
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Oi.LANG&&Oi.LANG.startsWith("cn")&&console.warn(i+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
51
|
-
https://www.w3ctech.com/topic/2226`));var u=a.apply(void 0,[].concat(s));return u.postcssPlugin=i,u.postcssVersion=new po().version,u}var n;return Object.defineProperty(r,"postcss",{get:function(){return n||(n=r()),n}}),r.process=function(o,s,c){return Q([r(c)]).process(o,s)},r};Q.stringify=A_;Q.parse=E_;Q.fromJSON=T_;Q.list=O_;Q.comment=function(t){return new Du(t)};Q.atRule=function(t){return new Bu(t)};Q.decl=function(t){return new xu(t)};Q.rule=function(t){return new Lu(t)};Q.root=function(t){return new Nu(t)};Q.document=function(t){return new Mu(t)};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 t(){for(var a=arguments.length,e=new Array(a),r=0;r<a;r++)e[r]=arguments[r];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 i=t.prototype;return i.contains=function(e){if(M(e,t)){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},i.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},i.insertBefore=function(e,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},i.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},i.toString=function(){return"RRNode"},ve(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.nextSibling;return e}}]),t})(),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(t){if(yi[t])return yi[t];var i=globalThis[t],a=i.prototype,e=t in Os?Os[t]:void 0,r=!!(e&&e.every(function(l){var d,f;return!!((f=(d=Object.getOwnPropertyDescriptor(a,l))==null?void 0:d.get)!=null&&f.toString().includes("[native code]"))})),n=t in xs?xs[t]:void 0,o=!!(n&&n.every(function(l){var d;return typeof a[l]=="function"&&((d=a[l])==null?void 0:d.toString().includes("[native code]"))}));if(r&&o&&!B_())return yi[t]=i.prototype,i.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var c=s.contentWindow;if(!c)return i.prototype;var u=c[t].prototype;return document.body.removeChild(s),u?yi[t]=u:a}catch{return a}}var Nn={};function pt(t,i,a){var e,r=t+"."+String(a);if(Nn[r])return Nn[r].call(i);var n=_o(t),o=(e=Object.getOwnPropertyDescriptor(n,a))==null?void 0:e.get;return o?(Nn[r]=o,o.call(i)):i[a]}var Fn={};function Fu(t,i,a){var e=t+"."+String(a);if(Fn[e])return Fn[e].bind(i);var r=_o(t),n=r[a];return typeof n!="function"?i[a]:(Fn[e]=n,n.bind(i))}function L_(t){return pt("Node",t,"childNodes")}function N_(t){return pt("Node",t,"parentNode")}function F_(t){return pt("Node",t,"parentElement")}function $_(t){return pt("Node",t,"textContent")}function U_(t,i){return Fu("Node",t,"contains")(i)}function V_(t){return Fu("Node",t,"getRootNode")()}function z_(t){return!t||!("host"in t)?null:pt("ShadowRoot",t,"host")}function q_(t){return t.styleSheets}function W_(t){return!t||!("shadowRoot"in t)?null:pt("Element",t,"shadowRoot")}function G_(t,i){return pt("Element",t,"querySelector")(i)}function j_(t,i){return pt("Element",t,"querySelectorAll")(i)}function $u(){return _o("MutationObserver").constructor}function Bt(t,i,a){try{if(!(i in t))return function(){};var e=t[i],r=a(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[i]=r,function(){t[i]=e}}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 we(t,i,a){a===void 0&&(a=document);var e={capture:!0,passive:!0};return a.addEventListener(t,i,e),function(){return a.removeEventListener(t,i,e)}}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(i,a,e){return a==="map"&&console.error(Wt),Reflect.get(i,a,e)}}));function Ur(t,i,a){a===void 0&&(a={});var e=null,r=0;return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];var c=Date.now();!r&&a.leading===!1&&(r=c);var u=i-(c-r),l=this;u<=0||u>i?(e&&(clearTimeout(e),e=null),r=c,t.apply(l,o)):!e&&a.trailing!==!1&&(e=setTimeout(function(){r=a.leading===!1?0:Date.now(),e=null,t.apply(l,o)},u))}}function gn(t,i,a,e,r){r===void 0&&(r=window);var n=r.Object.getOwnPropertyDescriptor(t,i);return r.Object.defineProperty(t,i,e?a:{set:function(s){var c=this;setTimeout(function(){a.set.call(c,s)},0),n&&n.set&&n.set.call(this,s)}}),function(){return gn(t,i,n||{},!0)}}var Gi=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Gi=function(){return new Date().getTime()});function Uu(t){var i,a,e,r,n=t.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:n.documentElement.scrollLeft||n?.body&&((i=q.parentElement(n.body))==null?void 0:i.scrollLeft)||((a=n?.body)==null?void 0:a.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:n?.documentElement.scrollTop||n?.body&&((e=q.parentElement(n.body))==null?void 0:e.scrollTop)||((r=n?.body)==null?void 0:r.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(t){if(!t)return null;var i=t.nodeType===t.ELEMENT_NODE?t:q.parentElement(t);return i}function Se(t,i,a,e){if(!t)return!1;var r=qu(t);if(!r)return!1;try{if(typeof i=="string"){if(r.classList.contains(i)||e&&r.closest("."+i)!==null)return!0}else if(Li(r,i,e))return!0}catch{}return!!(a&&(r.matches(a)||e&&r.closest(a)!==null))}function H_(t,i){return i.getId(t)!==-1}function $n(t,i,a){return t.tagName==="TITLE"&&a.headTitleMutations?!0:i.getId(t)===Or}function Wu(t,i){if(Cr(t))return!1;var a=i.getId(t);if(!i.has(a))return!0;var e=q.parentNode(t);return e&&e.nodeType===t.DOCUMENT_NODE?!1:e?Wu(e,i):!0}function Pa(t){return!!t.changedTouches}function J_(t){t===void 0&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Gu(t,i){return!!(t.nodeName==="IFRAME"&&i.getMeta(t))}function ju(t,i){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&i.getMeta(t))}function Ia(t){return t?M(t,D_)&&"shadowRoot"in t?!!t.shadowRoot:!!q.shadowRoot(t):!1}var Z_=(function(){function t(){T(this,"id",1),T(this,"styleIDMap",new WeakMap),T(this,"idStyleMap",new Map)}var i=t.prototype;return i.getId=function(e){var r;return(r=this.styleIDMap.get(e))!=null?r:-1},i.has=function(e){return this.styleIDMap.has(e)},i.add=function(e,r){if(this.has(e))return this.getId(e);var n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n},i.getStyle=function(e){return this.idStyleMap.get(e)||null},i.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},i.generateId=function(){return this.id++},t})();function Hu(t){var i,a=null;return"getRootNode"in t&&((i=q.getRootNode(t))==null?void 0:i.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&q.host(q.getRootNode(t))&&(a=q.host(q.getRootNode(t))),a}function Y_(t){for(var i=t,a;a=Hu(i);)i=a;return i}function K_(t){var i=t.ownerDocument;if(!i)return!1;var a=Y_(t);return q.contains(i,a)}function Ju(t){var i=t.ownerDocument;return i?q.contains(i,t)||K_(t):!1}var W=(function(t){return t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t})(W||{}),D=(function(t){return t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t})(D||{}),Pe=(function(t){return t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t})(Pe||{}),Je=(function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t})(Je||{}),nr=(function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t})(nr||{}),Gt=(function(t){return t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t})(Gt||{}),Zu=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Zu||{});function Ds(t){return"__ln"in t}var X_=(function(){function t(){T(this,"length",0),T(this,"head",null),T(this,"tail",null)}var i=t.prototype;return i.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var r=this.head,n=0;n<e;n++)r=r?.next||null;return r},i.addNode=function(e){var r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&Ds(e.previousSibling)){var n=e.previousSibling.__ln.next;r.next=n,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(e.nextSibling&&Ds(e.nextSibling)&&e.nextSibling.__ln.previous){var o=e.nextSibling.__ln.previous;r.previous=o,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,o&&(o.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},i.removeNode=function(e){var r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},t})(),Bs=function(t,i){return t+"@"+i},Q_=(function(){function t(){var a=this;T(this,"frozen",!1),T(this,"locked",!1),T(this,"texts",[]),T(this,"attributes",[]),T(this,"attributeMap",new WeakMap),T(this,"removes",[]),T(this,"mapRemoves",[]),T(this,"movedMap",{}),T(this,"addedSet",new Set),T(this,"movedSet",new Set),T(this,"droppedSet",new Set),T(this,"removesSubTreeCache",new Set),T(this,"mutationCb"),T(this,"blockClass"),T(this,"blockSelector"),T(this,"maskTextClass"),T(this,"maskTextSelector"),T(this,"inlineStylesheet"),T(this,"maskInputOptions"),T(this,"maskTextFn"),T(this,"maskInputFn"),T(this,"keepIframeSrcFn"),T(this,"recordCanvas"),T(this,"inlineImages"),T(this,"slimDOMOptions"),T(this,"dataURLOptions"),T(this,"doc"),T(this,"mirror"),T(this,"iframeManager"),T(this,"stylesheetManager"),T(this,"shadowDomManager"),T(this,"canvasManager"),T(this,"processedNodeManager"),T(this,"unattachedDoc"),T(this,"processMutations",function(e){e.forEach(a.processMutation),a.emit()}),T(this,"emit",function(){if(!(a.frozen||a.locked)){for(var e=[],r=new Set,n=new X_,o=function(x){for(var F=x,J=Or;J===Or;)F=F&&F.nextSibling,J=F&&a.mirror.getId(F);return J},s=function(x){var F=q.parentNode(x);if(!(!F||!Ju(x))){var J=!1;if(x.nodeType===Node.TEXT_NODE){var Te=F.tagName;if(Te==="TEXTAREA")return;Te==="STYLE"&&a.addedSet.has(F)&&(J=!0)}var Y=Cr(F)?a.mirror.getId(Hu(x)):a.mirror.getId(F),Ie=o(x);if(Y===-1||Ie===-1)return n.addNode(x);var ke=Ht(x,{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(x)&&a.shadowDomManager.addShadowRoot(q.shadowRoot(x),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});ke&&(e.push({parentId:Y,nextId:Ie,node:ke}),r.add(ke.id))}};a.mapRemoves.length;)a.mirror.removeNodeFromMap(a.mapRemoves.shift());for(var c=R(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=R(a.addedSet),f;!(f=d()).done;){var m=f.value;!Ns(a.droppedSet,m)&&!Ls(a.removesSubTreeCache,m,a.mirror)||Ns(a.movedSet,m)?s(m):a.droppedSet.add(m)}for(var _=null;n.length;){var g=null;if(_){var p=a.mirror.getId(q.parentNode(_.value)),v=o(_.value);p!==-1&&v!==-1&&(g=_)}if(!g)for(var y=n.tail;y;){var b=y;if(y=y.previous,b){var k=a.mirror.getId(q.parentNode(b.value)),w=o(b.value);if(w===-1)continue;if(k!==-1){g=b;break}else{var S=b.value,P=q.parentNode(S);if(P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var I=q.host(P),E=a.mirror.getId(I);if(E!==-1){g=b;break}}}}}if(!g){for(;n.head;)n.removeNode(n.head.value);break}_=g.previous,n.removeNode(g.value),s(g.value)}var L={texts:a.texts.map(function(x){var F=x.node,J=q.parentNode(F);return J&&J.tagName==="TEXTAREA"&&a.genTextAreaValueMutation(J),{id:a.mirror.getId(F),value:x.value}}).filter(function(x){return!r.has(x.id)}).filter(function(x){return a.mirror.has(x.id)}),attributes:a.attributes.map(function(x){var F=x.attributes;if(typeof F.style=="string"){var J=JSON.stringify(x.styleDiff),Te=JSON.stringify(x._unchangedStyles);J.length<F.style.length&&(J+Te).split("var(").length===F.style.split("var(").length&&(F.style=x.styleDiff)}return{id:a.mirror.getId(x.node),attributes:F}}).filter(function(x){return!r.has(x.id)}).filter(function(x){return a.mirror.has(x.id)}),removes:a.removes,adds:e};!L.texts.length&&!L.attributes.length&&!L.removes.length&&!L.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(L))}}),T(this,"genTextAreaValueMutation",function(e){var r=a.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},a.attributes.push(r),a.attributeMap.set(e,r));var n=Array.from(q.childNodes(e),function(o){return q.textContent(o)||""}).join("");r.attributes.value=Mi({element:e,maskInputOptions:a.maskInputOptions,tagName:e.tagName,type:Di(e),value:n,maskInputFn:a.maskInputFn})}),T(this,"processMutation",function(e){if(!$n(e.target,a.mirror,a.slimDOMOptions))switch(e.type){case"characterData":{var r=q.textContent(e.target);!Se(e.target,a.blockClass,a.blockSelector,!1)&&r!==e.oldValue&&a.texts.push({value:Ac(e.target,a.maskTextClass,a.maskTextSelector,!0)&&r?a.maskTextFn?a.maskTextFn(r,qu(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{var n=e.target,o=e.attributeName,s=e.target.getAttribute(o);if(o==="value"){var c=Di(n);s=Mi({element:n,maskInputOptions:a.maskInputOptions,tagName:n.tagName,type:c,value:s,maskInputFn:a.maskInputFn})}if(Se(e.target,a.blockClass,a.blockSelector,!1)||s===e.oldValue)return;var u=a.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&o==="src"&&!a.keepIframeSrcFn(s))if(!n.contentDocument)o="rr_src";else return;if(u||(u={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},a.attributes.push(u),a.attributeMap.set(e.target,u)),o==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Sc(n.tagName,o))if(u.attributes[o]=wc(a.doc,Et(n.tagName),Et(o),s),o==="style"){if(!a.unattachedDoc)try{a.unattachedDoc=document.implementation.createHTMLDocument()}catch{a.unattachedDoc=a.doc}var l=a.unattachedDoc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue);for(var d=R(Array.from(n.style)),f;!(f=d()).done;){var m=f.value,_=n.style.getPropertyValue(m),g=n.style.getPropertyPriority(m);_!==l.style.getPropertyValue(m)||g!==l.style.getPropertyPriority(m)?g===""?u.styleDiff[m]=_:u.styleDiff[m]=[_,g]:u._unchangedStyles[m]=[_,g]}for(var p=R(Array.from(l.style)),v;!(v=p()).done;){var y=v.value;n.style.getPropertyValue(y)===""&&(u.styleDiff[y]=!1)}}else o==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?u.attributes.rr_open_mode="modal":u.attributes.rr_open_mode="non-modal");break}case"childList":{if(Se(e.target,a.blockClass,a.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){a.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return a.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var k=a.mirror.getId(b),w=Cr(e.target)?a.mirror.getId(q.host(e.target)):a.mirror.getId(e.target);Se(e.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(e.target)&&k===-1||Wu(e.target,a.mirror)||(a.movedSet.has(b)&&a.movedMap[Bs(k,w)]?Ea(a.movedSet,b):(a.removes.push({parentId:w,id:k,isShadow:Cr(e.target)&&kr(e.target)?!0:void 0}),em(b,a.removesSubTreeCache))),a.mapRemoves.push(b))});break}}}),T(this,"genAdds",function(e,r){if(!a.processedNodeManager.inOtherBuffer(e,a)&&!(a.addedSet.has(e)||a.movedSet.has(e))){if(a.mirror.hasNode(e)){if($n(e,a.mirror,a.slimDOMOptions))return;a.movedSet.add(e);var n=null;r&&a.mirror.hasNode(r)&&(n=a.mirror.getId(r)),n&&n!==-1&&(a.movedMap[Bs(a.mirror.getId(e),n)]=!0)}else a.addedSet.add(e),a.droppedSet.delete(e);Se(e,a.blockClass,a.blockSelector,!1)||(q.childNodes(e).forEach(function(o){return a.genAdds(o)}),Ia(e)&&q.childNodes(q.shadowRoot(e)).forEach(function(o){a.processedNodeManager.add(o,a),a.genAdds(o,e)}))}})}var i=t.prototype;return i.init=function(e){var r=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(n){r[n]=e[n]})},i.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},i.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},i.isFrozen=function(){return this.frozen},i.lock=function(){this.locked=!0,this.canvasManager.lock()},i.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},i.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t})();function Ea(t,i){t.delete(i),q.childNodes(i).forEach(function(a){return Ea(t,a)})}function em(t,i){for(var a=[t];a.length;){var e=a.pop();i.has(e)||(i.add(e),q.childNodes(e).forEach(function(r){return a.push(r)}))}}function Ls(t,i,a){return t.size===0?!1:tm(t,i)}function tm(t,i,a){var e=q.parentNode(i);return e?t.has(e):!1}function Ns(t,i){return t.size===0?!1:Yu(t,i)}function Yu(t,i){var a=q.parentNode(i);return a?t.has(a)?!0:Yu(t,a):!1}var wr;function rm(t){wr=t}function im(){wr=void 0}var j=function(t){if(!wr)return t;var i=function(){for(var a=arguments.length,e=new Array(a),r=0;r<a;r++)e[r]=arguments[r];try{return t.apply(void 0,[].concat(e))}catch(n){if(wr&&wr(n)===!0)return;throw n}};return i},It=[];function Jr(t){try{if("composedPath"in t){var i=t.composedPath();if(i.length)return i[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function Ku(t,i){var a=new Q_;It.push(a),a.init(t);var e=new($u())(j(a.processMutations.bind(a)));return e.observe(i,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function nm(t){var i=t.mousemoveCb,a=t.sampling,e=t.doc,r=t.mirror;if(a.mousemove===!1)return function(){};var n=typeof a.mousemove=="number"?a.mousemove:50,o=typeof a.mousemoveCallback=="number"?a.mousemoveCallback:500,s=[],c,u=Ur(j(function(f){var m=Date.now()-c;i(s.map(function(_){return _.timeOffset-=m,_}),f),s=[],c=null}),o),l=j(Ur(j(function(f){var m=Jr(f),_=Pa(f)?f.changedTouches[0]:f,g=_.clientX,p=_.clientY;c||(c=Gi()),s.push({x:g,y:p,id:r.getId(m),timeOffset:Gi()-c}),u(typeof DragEvent<"u"&&M(f,DragEvent)?D.Drag:M(f,MouseEvent)?D.MouseMove:D.TouchMove)}),n,{trailing:!1})),d=[we("mousemove",l,e),we("touchmove",l,e),we("drag",l,e)];return j(function(){d.forEach(function(f){return f()})})}function am(t){var i=t.mouseInteractionCb,a=t.doc,e=t.mirror,r=t.blockClass,n=t.blockSelector,o=t.sampling;if(o.mouseInteraction===!1)return function(){};var s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[],u=null,l=function(d){return function(f){var m=Jr(f);if(!Se(m,r,n,!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?Pe[d]===Pe.MouseDown?g="TouchStart":Pe[d]===Pe.MouseUp&&(g="TouchEnd"):Je.Pen}else Pa(f)&&(_=Je.Touch);_!==null?(u=_,(g.startsWith("Touch")&&_===Je.Touch||g.startsWith("Mouse")&&_===Je.Mouse)&&(_=null)):Pe[d]===Pe.Click&&(_=u,u=null);var p=Pa(f)?f.changedTouches[0]:f;if(p){var v=e.getId(m),y=p.clientX,b=p.clientY;j(i)(H({type:Pe[g],id:v,x:y,y:b},_!==null&&{pointerType:_}))}}}};return Object.keys(Pe).filter(function(d){return Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&s[d]!==!1}).forEach(function(d){var f=Et(d),m=l(d);if(window.PointerEvent)switch(Pe[d]){case Pe.MouseDown:case Pe.MouseUp:f=f.replace("mouse","pointer");break;case Pe.TouchStart:case Pe.TouchEnd:return}c.push(we(f,m,a))}),j(function(){c.forEach(function(d){return d()})})}function Xu(t){var i=t.scrollCb,a=t.doc,e=t.mirror,r=t.blockClass,n=t.blockSelector,o=t.sampling,s=j(Ur(j(function(c){var u=Jr(c);if(!(!u||Se(u,r,n,!0))){var l=e.getId(u);if(u===a&&a.defaultView){var d=Uu(a.defaultView);i({id:l,x:d.left,y:d.top})}else i({id:l,x:u.scrollLeft,y:u.scrollTop})}}),o.scroll||100));return we("scroll",s,a)}function om(t,i){var a=t.viewportResizeCb,e=i.win,r=-1,n=-1,o=j(Ur(j(function(){var s=Vu(),c=zu();(r!==s||n!==c)&&(a({width:Number(c),height:Number(s)}),r=s,n=c)}),200));return we("resize",o,e)}var sm=["INPUT","TEXTAREA","SELECT"],Fs=new WeakMap;function cm(t){var i=t.inputCb,a=t.doc,e=t.mirror,r=t.blockClass,n=t.blockSelector,o=t.ignoreClass,s=t.ignoreSelector,c=t.maskInputOptions,u=t.maskInputFn,l=t.sampling,d=t.userTriggeredOnInput;function f(k){var w=Jr(k),S=k.isTrusted,P=w&&w.tagName;if(w&&P==="OPTION"&&(w=q.parentElement(w)),!(!w||!P||sm.indexOf(P)<0||Se(w,r,n,!0))&&!(w.classList.contains(o)||s&&w.matches(s))){var I=w.value,E=!1,L=Di(w)||"";L==="radio"||L==="checkbox"?E=w.checked:(c[P.toLowerCase()]||c[L])&&(I=Mi({element:w,maskInputOptions:c,tagName:P,type:L,value:I,maskInputFn:u})),m(w,d?{text:I,isChecked:E,userTriggered:S}:{text:I,isChecked:E});var x=w.name;L==="radio"&&x&&E&&a.querySelectorAll('input[type="radio"][name="'+x+'"]').forEach(function(F){if(F!==w){var J=F.value;m(F,d?{text:J,isChecked:!E,userTriggered:!1}:{text:J,isChecked:!E})}})}}function m(k,w){var S=Fs.get(k);if(!S||S.text!==w.text||S.isChecked!==w.isChecked){Fs.set(k,w);var P=e.getId(k);j(i)(H({},w,{id:P}))}}var _=l.input==="last"?["change"]:["input","change"],g=_.map(function(k){return we(k,j(f),a)}),p=a.defaultView;if(!p)return function(){g.forEach(function(k){return k()})};var v=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),y=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];if(v&&v.set){var b;(b=g).push.apply(b,[].concat(y.map(function(k){return gn(k[0],k[1],{set:function(){j(f)({target:this,isTrusted:!1})}},!1,p)})))}return j(function(){g.forEach(function(k){return k()})})}function ji(t){var i=[];function a(e,r){if(bi("CSSGroupingRule")&&M(e.parentRule,CSSGroupingRule)||bi("CSSMediaRule")&&M(e.parentRule,CSSMediaRule)||bi("CSSSupportsRule")&&M(e.parentRule,CSSSupportsRule)||bi("CSSConditionRule")&&M(e.parentRule,CSSConditionRule)){var n=Array.from(e.parentRule.cssRules),o=n.indexOf(e);r.unshift(o)}else if(e.parentStyleSheet){var s=Array.from(e.parentStyleSheet.cssRules),c=s.indexOf(e);r.unshift(c)}return r}return a(t,i)}function nt(t,i,a){var e,r;return t?(t.ownerNode?e=i.getId(t.ownerNode):r=a.getId(t),{styleId:r,id:e}):{}}function um(t,i){var a=t.styleSheetRuleCb,e=t.mirror,r=t.stylesheetManager,n=i.win;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return function(){};var o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:j(function(f,m,_){var g=_[0],p=_[1],v=nt(m,e,r.styleMirror),y=v.id,b=v.styleId;return(y&&y!==-1||b&&b!==-1)&&a({id:y,styleId:b,adds:[{rule:g,index:p}]}),f.apply(m,_)})}),n.CSSStyleSheet.prototype.addRule=function(f,m,_){_===void 0&&(_=this.cssRules.length);var g=f+" { "+m+" }";return n.CSSStyleSheet.prototype.insertRule.apply(this,[g,_])};var s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:j(function(f,m,_){var g=_[0],p=nt(m,e,r.styleMirror),v=p.id,y=p.styleId;return(v&&v!==-1||y&&y!==-1)&&a({id:v,styleId:y,removes:[{index:g}]}),f.apply(m,_)})}),n.CSSStyleSheet.prototype.removeRule=function(f){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[f])};var c;n.CSSStyleSheet.prototype.replace&&(c=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:j(function(f,m,_){var g=_[0],p=nt(m,e,r.styleMirror),v=p.id,y=p.styleId;return(v&&v!==-1||y&&y!==-1)&&a({id:v,styleId:y,replace:g}),f.apply(m,_)})}));var u;n.CSSStyleSheet.prototype.replaceSync&&(u=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:j(function(f,m,_){var g=_[0],p=nt(m,e,r.styleMirror),v=p.id,y=p.styleId;return(v&&v!==-1||y&&y!==-1)&&a({id:v,styleId:y,replaceSync:g}),f.apply(m,_)})}));var l={};Ci("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(Ci("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),Ci("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),Ci("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));var d={};return Object.entries(l).forEach(function(f){var m=f[0],_=f[1];d[m]={insertRule:_.prototype.insertRule,deleteRule:_.prototype.deleteRule},_.prototype.insertRule=new Proxy(d[m].insertRule,{apply:j(function(g,p,v){var y=v[0],b=v[1],k=nt(p.parentStyleSheet,e,r.styleMirror),w=k.id,S=k.styleId;return(w&&w!==-1||S&&S!==-1)&&a({id:w,styleId:S,adds:[{rule:y,index:[].concat(ji(p),[b||0])}]}),g.apply(p,v)})}),_.prototype.deleteRule=new Proxy(d[m].deleteRule,{apply:j(function(g,p,v){var y=v[0],b=nt(p.parentStyleSheet,e,r.styleMirror),k=b.id,w=b.styleId;return(k&&k!==-1||w&&w!==-1)&&a({id:k,styleId:w,removes:[{index:[].concat(ji(p),[y])}]}),g.apply(p,v)})})}),j(function(){n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=s,c&&(n.CSSStyleSheet.prototype.replace=c),u&&(n.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach(function(f){var m=f[0],_=f[1];_.prototype.insertRule=d[m].insertRule,_.prototype.deleteRule=d[m].deleteRule})})}function Qu(t,i){var a=t.mirror,e=t.stylesheetManager,r,n,o,s=null;i.nodeName==="#document"?s=a.getId(i):s=a.getId(q.host(i));var c=i.nodeName==="#document"?(r=i.defaultView)==null?void 0:r.Document:(o=(n=i.ownerDocument)==null?void 0:n.defaultView)==null?void 0:o.ShadowRoot,u=c?.prototype?Object.getOwnPropertyDescriptor(c?.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!c||!u?function(){}:(Object.defineProperty(i,"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,m=(f=u.set)==null?void 0:f.call(this,d);if(s!==null&&s!==-1)try{e.adoptStyleSheets(d,s)}catch{}return m}}),j(function(){Object.defineProperty(i,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}))}function lm(t,i){var a=t.styleDeclarationCb,e=t.mirror,r=t.ignoreCSSAttributes,n=t.stylesheetManager,o=i.win,s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:j(function(u,l,d){var f,m=d[0],_=d[1],g=d[2];if(r.has(m))return s.apply(l,[m,_,g]);var p=nt((f=l.parentRule)==null?void 0:f.parentStyleSheet,e,n.styleMirror),v=p.id,y=p.styleId;return(v&&v!==-1||y&&y!==-1)&&a({id:v,styleId:y,set:{property:m,value:_,priority:g},index:ji(l.parentRule)}),u.apply(l,d)})});var c=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:j(function(u,l,d){var f,m=d[0];if(r.has(m))return c.apply(l,[m]);var _=nt((f=l.parentRule)==null?void 0:f.parentStyleSheet,e,n.styleMirror),g=_.id,p=_.styleId;return(g&&g!==-1||p&&p!==-1)&&a({id:g,styleId:p,remove:{property:m},index:ji(l.parentRule)}),u.apply(l,d)})}),j(function(){o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=c})}function dm(t){var i=t.mediaInteractionCb,a=t.blockClass,e=t.blockSelector,r=t.mirror,n=t.sampling,o=t.doc,s=j(function(u){return Ur(j(function(l){var d=Jr(l);if(!(!d||Se(d,a,e,!0))){var f=d.currentTime,m=d.volume,_=d.muted,g=d.playbackRate,p=d.loop;i({type:u,id:r.getId(d),currentTime:f,volume:m,muted:_,playbackRate:g,loop:p})}}),n.media||500)}),c=[we("play",s(Gt.Play),o),we("pause",s(Gt.Pause),o),we("seeked",s(Gt.Seeked),o),we("volumechange",s(Gt.VolumeChange),o),we("ratechange",s(Gt.RateChange),o)];return j(function(){c.forEach(function(u){return u()})})}function fm(t){var i=t.fontCb,a=t.doc,e=a.defaultView;if(!e)return function(){};var r=[],n=new WeakMap,o=e.FontFace;e.FontFace=function(u,l,d){var f=new o(u,l,d);return n.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(j(function(){var l=n.get(u);l&&(i(l),n.delete(u))}),0),c.apply(this,[u])}});return r.push(function(){e.FontFace=o}),r.push(s),j(function(){r.forEach(function(c){return c()})})}function hm(t){var i=t.doc,a=t.mirror,e=t.blockClass,r=t.blockSelector,n=t.selectionCb,o=!0,s=j(function(){var c=i.getSelection();if(!(!c||o&&c?.isCollapsed)){o=c.isCollapsed||!1;for(var u=[],l=c.rangeCount||0,d=0;d<l;d++){var f=c.getRangeAt(d),m=f.startContainer,_=f.startOffset,g=f.endContainer,p=f.endOffset,v=Se(m,e,r,!0)||Se(g,e,r,!0);v||u.push({start:a.getId(m),startOffset:_,end:a.getId(g),endOffset:p})}n({ranges:u})}});return s(),we("selectionchange",s)}function pm(t){var i=t.doc,a=t.customElementCb,e=i.defaultView;if(!e||!e.customElements)return function(){};var r=Bt(e.customElements,"define",function(n){return function(o,s,c){try{a({define:{name:o}})}catch{console.warn("Custom element callback failed for "+o)}return n.apply(this,[o,s,c])}});return r}function _m(t,i){var a=t.mutationCb,e=t.mousemoveCb,r=t.mouseInteractionCb,n=t.scrollCb,o=t.viewportResizeCb,s=t.inputCb,c=t.mediaInteractionCb,u=t.styleSheetRuleCb,l=t.styleDeclarationCb,d=t.canvasMutationCb,f=t.fontCb,m=t.selectionCb,_=t.customElementCb;t.mutationCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.mutation){var y;(y=i).mutation.apply(y,[].concat(p))}a.apply(void 0,[].concat(p))},t.mousemoveCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.mousemove){var y;(y=i).mousemove.apply(y,[].concat(p))}e.apply(void 0,[].concat(p))},t.mouseInteractionCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.mouseInteraction){var y;(y=i).mouseInteraction.apply(y,[].concat(p))}r.apply(void 0,[].concat(p))},t.scrollCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.scroll){var y;(y=i).scroll.apply(y,[].concat(p))}n.apply(void 0,[].concat(p))},t.viewportResizeCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.viewportResize){var y;(y=i).viewportResize.apply(y,[].concat(p))}o.apply(void 0,[].concat(p))},t.inputCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.input){var y;(y=i).input.apply(y,[].concat(p))}s.apply(void 0,[].concat(p))},t.mediaInteractionCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.mediaInteaction){var y;(y=i).mediaInteaction.apply(y,[].concat(p))}c.apply(void 0,[].concat(p))},t.styleSheetRuleCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.styleSheetRule){var y;(y=i).styleSheetRule.apply(y,[].concat(p))}u.apply(void 0,[].concat(p))},t.styleDeclarationCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.styleDeclaration){var y;(y=i).styleDeclaration.apply(y,[].concat(p))}l.apply(void 0,[].concat(p))},t.canvasMutationCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.canvasMutation){var y;(y=i).canvasMutation.apply(y,[].concat(p))}d.apply(void 0,[].concat(p))},t.fontCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.font){var y;(y=i).font.apply(y,[].concat(p))}f.apply(void 0,[].concat(p))},t.selectionCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.selection){var y;(y=i).selection.apply(y,[].concat(p))}m.apply(void 0,[].concat(p))},t.customElementCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(i.customElement){var y;(y=i).customElement.apply(y,[].concat(p))}_.apply(void 0,[].concat(p))}}function mm(t,i){i===void 0&&(i={});var a=t.doc.defaultView;if(!a)return function(){};_m(t,i);var e;t.recordDOM&&(e=Ku(t,t.doc));var r=nm(t),n=am(t),o=Xu(t),s=om(t,{win:a}),c=cm(t),u=dm(t),l=function(){},d=function(){},f=function(){},m=function(){};t.recordDOM&&(l=um(t,{win:a}),d=Qu(t,t.doc),f=lm(t,{win:a}),t.collectFonts&&(m=fm(t)));for(var _=hm(t),g=pm(t),p=[],v=R(t.plugins),y;!(y=v()).done;){var b=y.value;p.push(b.observer(b.callback,a,b.options))}return j(function(){It.forEach(function(k){return k.reset()}),e?.disconnect(),r(),n(),o(),s(),c(),u(),l(),d(),f(),m(),_(),g(),p.forEach(function(k){return k()})})}function bi(t){return typeof window[t]<"u"}function Ci(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}var $s=(function(){function t(a){T(this,"iframeIdToRemoteIdMap",new WeakMap),T(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=a}var i=t.prototype;return i.getId=function(e,r,n,o){var s=n||this.getIdToRemoteIdMap(e),c=o||this.getRemoteIdToIdMap(e),u=s.get(r);return u||(u=this.generateIdFn(),s.set(r,u),c.set(u,r)),u},i.getIds=function(e,r){var n=this,o=this.getIdToRemoteIdMap(e),s=this.getRemoteIdToIdMap(e);return r.map(function(c){return n.getId(e,c,o,s)})},i.getRemoteId=function(e,r,n){var o=n||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var s=o.get(r);return s||-1},i.getRemoteIds=function(e,r){var n=this,o=this.getRemoteIdToIdMap(e);return r.map(function(s){return n.getRemoteId(e,s,o)})},i.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},i.getIdToRemoteIdMap=function(e){var r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r},i.getRemoteIdToIdMap=function(e){var r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r},t})(),gm=(function(){function t(a){T(this,"iframes",new WeakMap),T(this,"crossOriginIframeMap",new WeakMap),T(this,"crossOriginIframeMirror",new $s(kc)),T(this,"crossOriginIframeStyleMirror"),T(this,"crossOriginIframeRootIdMap",new WeakMap),T(this,"mirror"),T(this,"mutationCb"),T(this,"wrappedEmit"),T(this,"loadListener"),T(this,"stylesheetManager"),T(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 i=t.prototype;return i.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},i.addLoadListener=function(e){this.loadListener=e},i.attachIframe=function(e,r){var n,o;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(o=this.loadListener)==null||o.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},i.handleMessage=function(e){var r=e;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var n=e.source;if(n){var o=this.crossOriginIframeMap.get(e.source);if(o){var s=this.transformCrossOriginEvent(o,r.data.event);s&&this.wrappedEmit(s,r.data.isCheckout)}}}},i.transformCrossOriginEvent=function(e,r){var n=this,o;switch(r.type){case W.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);var s=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,s),this.patchRootIdOnNode(r.data.node,s),{timestamp:r.timestamp,type:W.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case W.Meta:case W.Load:case W.DomContentLoaded:return!1;case W.Plugin:return r;case W.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case W.IncrementalSnapshot:switch(r.data.source){case D.Mutation:return r.data.adds.forEach(function(c){n.replaceIds(c,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(c.node,e);var u=n.crossOriginIframeRootIdMap.get(e);u&&n.patchRootIdOnNode(c.node,u)}),r.data.removes.forEach(function(c){n.replaceIds(c,e,["parentId","id"])}),r.data.attributes.forEach(function(c){n.replaceIds(c,e,["id"])}),r.data.texts.forEach(function(c){n.replaceIds(c,e,["id"])}),r;case D.Drag:case D.TouchMove:case D.MouseMove:return r.data.positions.forEach(function(c){n.replaceIds(c,e,["id"])}),r;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(r.data,e,["id"]),r;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case D.Font:return r;case D.Selection:return r.data.ranges.forEach(function(c){n.replaceIds(c,e,["start","end"])}),r;case D.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(o=r.data.styles)==null||o.forEach(function(c){n.replaceStyleIds(c,e,["styleId"])}),r}}return!1},i.replace=function(e,r,n,o){for(var s=R(o),c;!(c=s()).done;){var u=c.value;!Array.isArray(r[u])&&typeof r[u]!="number"||(Array.isArray(r[u])?r[u]=e.getIds(n,r[u]):r[u]=e.getId(n,r[u]))}return r},i.replaceIds=function(e,r,n){return this.replace(this.crossOriginIframeMirror,e,r,n)},i.replaceStyleIds=function(e,r,n){return this.replace(this.crossOriginIframeStyleMirror,e,r,n)},i.replaceIdOnNode=function(e,r){var n=this;this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(o){n.replaceIdOnNode(o,r)})},i.patchRootIdOnNode=function(e,r){var n=this;e.type!==Zu.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(o){n.patchRootIdOnNode(o,r)})},t})(),vm=(function(){function t(a){T(this,"shadowDoms",new WeakSet),T(this,"mutationCb"),T(this,"scrollCb"),T(this,"bypassOptions"),T(this,"mirror"),T(this,"restoreHandlers",[]),this.mutationCb=a.mutationCb,this.scrollCb=a.scrollCb,this.bypassOptions=a.bypassOptions,this.mirror=a.mirror,this.init()}var i=t.prototype;return i.init=function(){this.reset(),this.patchAttachShadow(Element,document)},i.addShadowRoot=function(e,r){var n=this;if(kr(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var o=Ku(H({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return o.disconnect()}),this.restoreHandlers.push(Xu(H({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(q.host(e))),n.restoreHandlers.push(Qu({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e))},0)}},i.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},i.patchAttachShadow=function(e,r){var n=this;this.restoreHandlers.push(Bt(e.prototype,"attachShadow",function(o){return function(s){var c=o.call(this,s),u=q.shadowRoot(this);return u&&Ju(this)&&n.addShadowRoot(u,r),c}}))},i.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t})(),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(i){var a=new Uint8Array(i),e,r=a.length,n="";for(e=0;e<r;e+=3)n+=Jt[a[e]>>2],n+=Jt[(a[e]&3)<<4|a[e+1]>>4],n+=Jt[(a[e+1]&15)<<2|a[e+2]>>6],n+=Jt[a[e+2]&63];return r%3===2?n=n.substring(0,n.length-1)+"=":r%3===1&&(n=n.substring(0,n.length-2)+"=="),n},Us=new Map;function Cm(t,i){var a=Us.get(t);return a||(a=new Map,Us.set(t,a)),a.has(i)||a.set(i,[]),a.get(i)}var el=function(t,i,a){if(!(!t||!(rl(t,i)||(typeof t>"u"?"undefined":$(t))==="object"))){var e=t.constructor.name,r=Cm(a,e),n=r.indexOf(t);return n===-1&&(n=r.length,r.push(t)),n}};function Ii(t,i,a){if(M(t,Array))return t.map(function(_){return Ii(_,i,a)});if(t===null)return t;if(M(t,Float32Array)||M(t,Float64Array)||M(t,Int32Array)||M(t,Uint32Array)||M(t,Uint8Array)||M(t,Uint16Array)||M(t,Int16Array)||M(t,Int8Array)||M(t,Uint8ClampedArray)){var e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(M(t,ArrayBuffer)){var r=t.constructor.name,n=bm(t);return{rr_type:r,base64:n}}else if(M(t,DataView)){var o=t.constructor.name;return{rr_type:o,args:[Ii(t.buffer,i,a),t.byteOffset,t.byteLength]}}else if(M(t,HTMLImageElement)){var s=t.constructor.name,c=t.src;return{rr_type:s,src:c}}else if(M(t,HTMLCanvasElement)){var u="HTMLImageElement",l=t.toDataURL();return{rr_type:u,src:l}}else if(M(t,ImageData)){var d=t.constructor.name;return{rr_type:d,args:[Ii(t.data,i,a),t.width,t.height]}}else if(rl(t,i)||(typeof t>"u"?"undefined":$(t))==="object"){var f=t.constructor.name,m=el(t,i,a);return{rr_type:f,index:m}}return t}var tl=function(t,i,a){return t.map(function(e){return Ii(e,i,a)})},rl=function(t,i){var a=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=a.filter(function(r){return typeof i[r]=="function"});return!!e.find(function(r){return M(t,i[r])})};function km(t,i,a,e){for(var r=function(){var u=c.value;try{if(typeof i.CanvasRenderingContext2D.prototype[u]!="function")return"continue";var l=Bt(i.CanvasRenderingContext2D.prototype,u,function(f){return function(){for(var m=this,_=arguments.length,g=new Array(_),p=0;p<_;p++)g[p]=arguments[p];return Se(this.canvas,a,e,!0)||setTimeout(function(){var v=tl(g,i,m);t(m.canvas,{type:nr["2D"],property:u,args:v})},0),f.apply(this,g)}});n.push(l)}catch{var d=gn(i.CanvasRenderingContext2D.prototype,u,{set:function(_){t(this.canvas,{type:nr["2D"],property:u,args:[_],setter:!0})}});n.push(d)}},n=[],o=Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype),s=R(o),c;!(c=s()).done;)r();return function(){n.forEach(function(u){return u()})}}function wm(t){return t==="experimental-webgl"?"webgl":t}function Vs(t,i,a,e){var r=[];try{var n=Bt(t.HTMLCanvasElement.prototype,"getContext",function(o){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(!Se(this,i,a,!0)){var d=wm(s);if("__context"in this||(this.__context=d),e&&["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 o.apply(this,[].concat([s],u))}});r.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(o){return o()})}}function zs(t,i,a,e,r,n){for(var o=function(){var d=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))return"continue";try{if(typeof t[d]!="function")return"continue";var f=Bt(t,d,function(_){return function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];var y=_.apply(this,p);if(el(y,n,this),"tagName"in this.canvas&&!Se(this.canvas,e,r,!0)){var b=tl(p,n,this),k={type:i,property:d,args:b};a(this.canvas,k)}return y}});s.push(f)}catch{var m=gn(t,d,{set:function(p){a(this.canvas,{type:i,property:d,args:[p],setter:!0})}});s.push(m)}},s=[],c=Object.getOwnPropertyNames(t),u=R(c),l;!(l=u()).done;)o();return s}function Sm(t,i,a,e){var r,n=[];if((r=n).push.apply(r,[].concat(zs(i.WebGLRenderingContext.prototype,nr.WebGL,t,a,e,i))),typeof i.WebGL2RenderingContext<"u"){var o;(o=n).push.apply(o,[].concat(zs(i.WebGL2RenderingContext.prototype,nr.WebGL2,t,a,e,i)))}return function(){n.forEach(function(s){return s()})}}var il="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Am=function(t){return Uint8Array.from(atob(t),function(i){return i.charCodeAt(0)})},qs=typeof window<"u"&&window.Blob&&new Blob([Am(il)],{type:"text/javascript;charset=utf-8"});function Tm(t){var i;try{if(i=qs&&(window.URL||window.webkitURL).createObjectURL(qs),!i)throw"";var a=new Worker(i,{name:t?.name});return a.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(i)}),a}catch{return new Worker("data:text/javascript;base64,"+il,{name:t?.name})}finally{i&&(window.URL||window.webkitURL).revokeObjectURL(i)}}var Rm=(function(){function t(a){var e=this;T(this,"pendingCanvasMutations",new Map),T(this,"rafStamps",{latestId:0,invokeId:null}),T(this,"mirror"),T(this,"mutationCb"),T(this,"resetObservers"),T(this,"frozen",!1),T(this,"locked",!1),T(this,"processMutation",function(d,f){var m=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(m||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(d)||e.pendingCanvasMutations.set(d,[]),e.pendingCanvasMutations.get(d).push(f)});var r=a.sampling,n=r===void 0?"all":r,o=a.win,s=a.blockClass,c=a.blockSelector,u=a.recordCanvas,l=a.dataURLOptions;this.mutationCb=a.mutationCb,this.mirror=a.mirror,u&&n==="all"&&this.initCanvasMutationObserver(o,s,c),u&&typeof n=="number"&&this.initCanvasFPSObserver(n,o,s,c,{dataURLOptions:l})}var i=t.prototype;return i.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},i.freeze=function(){this.frozen=!0},i.unfreeze=function(){this.frozen=!1},i.lock=function(){this.locked=!0},i.unlock=function(){this.locked=!1},i.initCanvasFPSObserver=function(e,r,n,o,s){var c=this,u=Vs(r,n,o,!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,k=b.base64,w=b.type,S=b.width,P=b.height;c.mutationCb({id:y,type:nr["2D"],commands:[{property:"clearRect",args:[0,0,S,P]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:k}],type:w}]},0,0]}]})}};var f=1e3/e,m=0,_,g=function(){var v=[];return r.document.querySelectorAll("canvas").forEach(function(y){Se(y,n,o,!0)||v.push(y)}),v},p=function(v){if(m&&v-m<f){_=requestAnimationFrame(p);return}m=v;var y=c;g().forEach(Ga(function(b){var k,w,S,P;return Er(this,function(I){switch(I.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),((k=S?.getContextAttributes())==null?void 0:k.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return P=I.sent(),d.postMessage({id:w,bitmap:P,width:b.width,height:b.height,dataURLOptions:s.dataURLOptions},[P]),[2]}})})),_=requestAnimationFrame(p)};_=requestAnimationFrame(p),this.resetObservers=function(){u(),cancelAnimationFrame(_)}},i.initCanvasMutationObserver=function(e,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var o=Vs(e,r,n,!1),s=km(this.processMutation.bind(this),e,r,n),c=Sm(this.processMutation.bind(this),e,r,n);this.resetObservers=function(){o(),s(),c()}},i.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},i.startRAFTimestamping=function(){var e=this,r=function(n){e.rafStamps.latestId=n,requestAnimationFrame(r)};requestAnimationFrame(r)},i.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(r,n){var o=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,o)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},i.flushPendingCanvasMutationFor=function(e,r){if(!(this.frozen||this.locked)){var n=this.pendingCanvasMutations.get(e);if(!(!n||r===-1)){var o=n.map(function(c){c.type;var u=Pr(c,["type"]);return u}),s=n[0].type;this.mutationCb({id:r,type:s,commands:o}),this.pendingCanvasMutations.delete(e)}}},t})(),Pm=(function(){function t(a){T(this,"trackedLinkElements",new WeakSet),T(this,"mutationCb"),T(this,"adoptedStyleSheetCb"),T(this,"styleMirror",new Z_),this.mutationCb=a.mutationCb,this.adoptedStyleSheetCb=a.adoptedStyleSheetCb}var i=t.prototype;return i.attachLinkElement=function(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)},i.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},i.adoptStyleSheets=function(e,r){var n,o=function(){var d=l.value,f=void 0;n.styleMirror.has(d)?f=n.styleMirror.getId(d):(f=n.styleMirror.add(d),c.push({styleId:f,rules:Array.from(d.rules||CSSRule,function(m,_){return{rule:yc(m,d.href),index:_}})})),s.styleIds.push(f)};if(e.length!==0){for(var s={id:r,styleIds:[]},c=[],u=R(e),l;!(l=u()).done;)n=this,o();c.length>0&&(s.styles=c),this.adoptedStyleSheetCb(s)}},i.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},i.trackStylesheetInLinkElement=function(e){},t})(),Im=(function(){function t(){T(this,"nodeMap",new WeakMap),T(this,"active",!1)}var i=t.prototype;return i.inOtherBuffer=function(e,r){var n=this.nodeMap.get(e);return n&&Array.from(n).some(function(o){return o!==r})},i.add=function(e,r){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))},i.destroy=function(){},t})(),ue,Ei,Un,Hi=!1;try{if(Array.from([1],function(t){return t*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(t){console.debug("Unable to override Array.from",t)}var Le=Ed();function _t(t){t===void 0&&(t={});var i=t.emit,a=t.checkoutEveryNms,e=t.checkoutEveryNth,r=t.blockClass,n=r===void 0?"rr-block":r,o=t.blockSelector,s=o===void 0?null:o,c=t.ignoreClass,u=c===void 0?"rr-ignore":c,l=t.ignoreSelector,d=l===void 0?null:l,f=t.maskTextClass,m=f===void 0?"rr-mask":f,_=t.maskTextSelector,g=_===void 0?null:_,p=t.inlineStylesheet,v=p===void 0?!0:p,y=t.maskAllInputs,b=t.maskInputOptions,k=t.slimDOMOptions,w=t.maskInputFn,S=t.maskTextFn,P=t.hooks,I=t.packFn,E=t.sampling,L=E===void 0?{}:E,x=t.dataURLOptions,F=x===void 0?{}:x,J=t.mousemoveWait,Te=t.recordDOM,Y=Te===void 0?!0:Te,Ie=t.recordCanvas,ke=Ie===void 0?!1:Ie,se=t.recordCrossOriginIframes,ge=se===void 0?!1:se,Ee=t.recordAfter,yt=Ee===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":Ee,$e=t.userTriggeredOnInput,Nt=$e===void 0?!1:$e,Oe=t.collectFonts,bt=Oe===void 0?!1:Oe,Z=t.inlineImages,Ct=Z===void 0?!1:Z,kt=t.plugins,Ft=t.keepIframeSrcFn,dr=Ft===void 0?function(){return!1}:Ft,fr=t.ignoreCSSAttributes,wn=fr===void 0?new Set([]):fr,Yr=t.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&&!i)throw new Error("emit function is required");if(!it&&!wt)return function(){};J!==void 0&&L.mousemove===void 0&&(L.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=k===!0||k==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:k==="all",headMetaDescKeywords:k==="all",headTitleMutations:k==="all"}:k||{};J_();var Ut,St=0,He=function(K){for(var Re=R(kt||[]),O;!(O=Re()).done;){var ce=O.value;ce.eventProcessor&&(K=ce.eventProcessor(K))}return I&&!wt&&(K=I(K)),K};ue=function(K,Re){var O,ce=K;if(ce.timestamp=Gi(),(O=It[0])!=null&&O.isFrozen()&&ce.type!==W.FullSnapshot&&!(ce.type===W.IncrementalSnapshot&&ce.data.source===D.Mutation)&&It.forEach(function(td){return td.unfreeze()}),it)i?.(He(ce),Re);else if(wt){var Xl={type:"rrweb",event:He(ce),origin:window.location.origin,isCheckout:Re};window.parent.postMessage(Xl,"*")}if(ce.type===W.FullSnapshot)Ut=ce,St=0;else if(ce.type===W.IncrementalSnapshot){if(ce.data.source===D.Mutation&&ce.data.isAttachIframe)return;St++;var Ql=e&&St>=e,ed=a&&ce.timestamp-Ut.timestamp>a;(Ql||ed)&&Ei(!0)}};for(var At=function(K){ue({type:W.IncrementalSnapshot,data:H({source:D.Mutation},K)})},Do=function(K){return ue({type:W.IncrementalSnapshot,data:H({source:D.Scroll},K)})},Bo=function(K){return ue({type:W.IncrementalSnapshot,data:H({source:D.CanvasMutation},K)})},Yl=function(K){return ue({type:W.IncrementalSnapshot,data:H({source:D.AdoptedStyleSheet},K)})},Tt=new Pm({mutationCb:At,adoptedStyleSheetCb:Yl}),Rt=new gm({mirror:Le,mutationCb:At,stylesheetManager:Tt,recordCrossOriginIframes:ge,wrappedEmit:ue}),Kl=R(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:ke,mutationCb:Bo,win:window,blockClass:n,blockSelector:s,mirror:Le,sampling:L.canvas,dataURLOptions:F});var Kr=new vm({mutationCb:At,scrollCb:Do,bypassOptions:{blockClass:n,blockSelector:s,maskTextClass:m,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:$t,dataURLOptions:F,maskTextFn:S,maskInputFn:w,recordCanvas:ke,inlineImages:Ct,sampling:L,slimDOMOptions:hr,iframeManager:Rt,stylesheetManager:Tt,canvasManager:Un,keepIframeSrcFn:dr,processedNodeManager:Sn},mirror:Le});Ei=function(K){if(K===void 0&&(K=!1),!!Y){ue({type:W.Meta,data:{href:window.location.href,width:zu(),height:Vu()}},K),Tt.reset(),Kr.init(),It.forEach(function(O){return O.lock()});var Re=ef(document,{mirror:Le,blockClass:n,blockSelector:s,maskTextClass:m,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:$t,maskTextFn:S,maskInputFn:w,slimDOM:hr,dataURLOptions:F,recordCanvas:ke,inlineImages:Ct,onSerialize:function(O){Gu(O,Le)&&Rt.addIframe(O),ju(O,Le)&&Tt.trackLinkElement(O),Ia(O)&&Kr.addShadowRoot(q.shadowRoot(O),document)},onIframeLoad:function(O,ce){Rt.attachIframe(O,ce),Kr.observeAttachShadow(O)},onStylesheetLoad:function(O,ce){Tt.attachLinkElement(O,ce)},keepIframeSrcFn:dr});if(!Re)return console.warn("Failed to snapshot the document");ue({type:W.FullSnapshot,data:{node:Re,initialOffset:Uu(window)}},K),It.forEach(function(O){return O.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Tt.adoptStyleSheets(document.adoptedStyleSheets,Le.getId(document))}};try{var pr=[],Fo=function(K){var Re;return j(mm)({mutationCb:At,mousemoveCb:function(O,ce){return ue({type:W.IncrementalSnapshot,data:{source:ce,positions:O}})},mouseInteractionCb:function(O){return ue({type:W.IncrementalSnapshot,data:H({source:D.MouseInteraction},O)})},scrollCb:Do,viewportResizeCb:function(O){return ue({type:W.IncrementalSnapshot,data:H({source:D.ViewportResize},O)})},inputCb:function(O){return ue({type:W.IncrementalSnapshot,data:H({source:D.Input},O)})},mediaInteractionCb:function(O){return ue({type:W.IncrementalSnapshot,data:H({source:D.MediaInteraction},O)})},styleSheetRuleCb:function(O){return ue({type:W.IncrementalSnapshot,data:H({source:D.StyleSheetRule},O)})},styleDeclarationCb:function(O){return ue({type:W.IncrementalSnapshot,data:H({source:D.StyleDeclaration},O)})},canvasMutationCb:Bo,fontCb:function(O){return ue({type:W.IncrementalSnapshot,data:H({source:D.Font},O)})},selectionCb:function(O){ue({type:W.IncrementalSnapshot,data:H({source:D.Selection},O)})},customElementCb:function(O){ue({type:W.IncrementalSnapshot,data:H({source:D.CustomElement},O)})},blockClass:n,ignoreClass:u,ignoreSelector:d,maskTextClass:m,maskTextSelector:g,maskInputOptions:$t,inlineStylesheet:v,sampling:L,recordDOM:Y,recordCanvas:ke,inlineImages:Ct,userTriggeredOnInput:Nt,collectFonts:bt,doc:K,maskInputFn:w,maskTextFn:S,keepIframeSrcFn:dr,blockSelector:s,slimDOMOptions:hr,dataURLOptions:F,mirror:Le,iframeManager:Rt,stylesheetManager:Tt,shadowDomManager:Kr,processedNodeManager:Sn,canvasManager:Un,ignoreCSSAttributes:wn,plugins:((Re=kt?.filter(function(O){return O.observer}))==null?void 0:Re.map(function(O){return{observer:O.observer,options:O.options,callback:function(ce){return ue({type:W.Plugin,data:{plugin:O.name,payload:ce}})}}}))||[]},P)};Rt.addLoadListener(function(K){try{pr.push(Fo(K.contentDocument))}catch(Re){console.warn(Re)}});var An=function(){Ei(),pr.push(Fo(document)),Hi=!0};return document.readyState==="interactive"||document.readyState==="complete"?An():(pr.push(we("DOMContentLoaded",function(){ue({type:W.DomContentLoaded,data:{}}),yt==="DOMContentLoaded"&&An()})),pr.push(we("load",function(){ue({type:W.Load,data:{}}),yt==="load"&&An()},window))),function(){pr.forEach(function(K){try{K()}catch(O){var Re=String(O).toLowerCase();Re.includes("cross-origin")||console.warn(O)}}),Sn.destroy(),Hi=!1,im()}}catch(K){console.warn(K)}}_t.addCustomEvent=function(t,i){if(!Hi)throw new Error("please add custom event after start recording");ue({type:W.Custom,data:{tag:t,payload:i}})};_t.freezePage=function(){It.forEach(function(t){return t.freeze()})};_t.takeFullSnapshot=function(t){if(!Hi)throw new Error("please take full snapshot after start recording");Ei(t)};_t.mirror=Le;var Ws;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Ws||(Ws={}));_t.addCustomEvent;_t.freezePage;_t.takeFullSnapshot;var Em=Object.defineProperty,Om=function(t,i,a){return i in t?Em(t,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[i]=a},wi=function(t,i,a){return Om(t,(typeof i>"u"?"undefined":$(i))!=="symbol"?i+"":i,a)};function xm(t,i,a){try{if(!(i in t))return function(){};var e=t[i],r=a(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[i]=r,function(){t[i]=e}}catch{return function(){}}}var zt=(function(){function t(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 i=t.prototype;return i.toString=function(){var e=this.lineNumber||"",r=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+r+")":this.fileName+":"+e+":"+r},t})(),Mm=/(^|@)\S+:\d+/,Gs=/^\s*at .*(\S+:\d+|\(native\))/m,Dm=/^(eval@)?(\[native code])?$/,zn={parse:function(i){return i?typeof i.stacktrace<"u"||typeof i["opera#sourceloc"]<"u"?this.parseOpera(i):i.stack&&i.stack.match(Gs)?this.parseV8OrIE(i):i.stack?this.parseFFOrSafari(i):(console.warn("[console-record-plugin]: Failed to parse error object:",i),[]):[]},extractLocation:function(i){if(i.indexOf(":")===-1)return[i];var a=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=a.exec(i.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+i);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(i){var a=i.stack.split(`
|
|
54
|
-
`).filter(function(e){return!!e.match(Gs)},this);return a.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var r=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=r.match(/ (\((.+):(\d+):(\d+)\)$)/);r=n?r.replace(n[0],""):r;var o=r.split(/\s+/).slice(1),s=this.extractLocation(n?n[1]:o.pop()),c=o.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(i){var a=i.stack.split(`
|
|
55
|
-
`).filter(function(e){return!e.match(Dm)},this);return a.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),e.indexOf("@")===-1&&e.indexOf(":")===-1)return new zt({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(r),o=n&&n[1]?n[1]:void 0,s=this.extractLocation(e.replace(r,""));return new zt({functionName:o,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)},parseOpera:function(i){return!i.stacktrace||i.message.indexOf(`
|
|
56
|
-
`)>-1&&i.message.split(`
|
|
57
|
-
`).length>i.stacktrace.split(`
|
|
58
|
-
`).length?this.parseOpera9(i):i.stack?this.parseOpera11(i):this.parseOpera10(i)},parseOpera9:function(i){for(var a=/Line (\d+).*script (?:in )?(\S+)/i,e=i.message.split(`
|
|
59
|
-
`),r=[],n=2,o=e.length;n<o;n+=2){var s=a.exec(e[n]);s&&r.push(new zt({fileName:s[2],lineNumber:parseFloat(s[1])}))}return r},parseOpera10:function(i){for(var a=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=i.stacktrace.split(`
|
|
60
|
-
`),r=[],n=0,o=e.length;n<o;n+=2){var s=a.exec(e[n]);s&&r.push(new zt({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return r},parseOpera11:function(i){var a=i.stack.split(`
|
|
61
|
-
`).filter(function(e){return!!e.match(Mm)&&!e.match(/^Error created at/)},this);return a.map(function(e){var r=e.split("@"),n=this.extractLocation(r.pop()),o=r.shift()||"",s=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new zt({functionName:s,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function Bm(t){if(!t||!t.outerHTML)return"";for(var i="";t.parentElement;){var a=t.localName;if(!a)break;a=a.toLowerCase();var e=t.parentElement,r=[];if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var o=e.children[n];o.localName&&o.localName.toLowerCase&&o.localName.toLowerCase()===a&&r.push(o)}r.length>1&&(a+=":eq("+r.indexOf(t)+")"),i=a+(i?">"+i:""),t=e}return i}function Oa(t){return Object.prototype.toString.call(t)==="[object Object]"}function nl(t,i){if(i===0)return!0;for(var a=Object.keys(t),e=R(a),r;!(r=e()).done;){var n=r.value;if(Oa(t[n])&&nl(t[n],i-1))return!0}return!1}function qt(t,i){var a={numOfKeysLimit:50,depthOfLimit:4};Object.assign(a,i);var e=[],r=[];return JSON.stringify(t,function(s,c){if(e.length>0){var u=e.indexOf(this);~u?e.splice(u+1):e.push(this),~u?r.splice(u,1/0,s):r.push(s),~e.indexOf(c)&&(e[0]===c?c="[Circular ~]":c="[Circular ~."+r.slice(0,e.indexOf(c)).join(".")+"]")}else e.push(c);if(c===null)return c;if(c===void 0)return"undefined";if(n(c))return o(c);if((typeof c>"u"?"undefined":$(c))==="bigint")return c.toString()+"n";if(M(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(M(c,Node))return M(c,HTMLElement)?c?c.outerHTML:"":c.nodeName;if(M(c,Error))return c.stack?c.stack+`
|
|
62
|
-
End of stack for Error object`:c.name+": "+c.message}return c});function n(s){return!!(Oa(s)&&Object.keys(s).length>a.numOfKeysLimit||typeof s=="function"||Oa(s)&&nl(s,a.depthOfLimit))}function o(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(t,i,a){var e=a?Object.assign({},js,a):js,r=e.logger;if(!r)return function(){};var n;typeof r=="string"?n=i[r]:n=r;var o=0,s=!1,c=[];if(e.level.includes("error")){var u=function(g){var p=g.message,v=g.error,y=zn.parse(v).map(function(k){return k.toString()}),b=[qt(p,e.stringifyOptions)];t({level:"error",trace:y,payload:b})};i.addEventListener("error",u),c.push(function(){i.removeEventListener("error",u)});var l=function(g){var p,v;M(g.reason,Error)?(p=g.reason,v=[qt("Uncaught (in promise) "+p.name+": "+p.message,e.stringifyOptions)]):(p=new Error,v=[qt("Uncaught (in promise)",e.stringifyOptions),qt(g.reason,e.stringifyOptions)]);var y=zn.parse(p).map(function(b){return b.toString()});t({level:"error",trace:y,payload:v})};i.addEventListener("unhandledrejection",l),c.push(function(){i.removeEventListener("unhandledrejection",l)})}for(var d=R(e.level),f;!(f=d()).done;){var m=f.value;c.push(_(n,m))}return function(){c.forEach(function(g){return g()})};function _(g,p){var v=this;return g[p]?xm(g,p,function(y){var b=v;return function(){for(var k=arguments.length,w=new Array(k),S=0;S<k;S++)w[S]=arguments[S];if(y.apply(b,w),!(p==="assert"&&w[0])&&!s){s=!0;try{var P=zn.parse(new Error).map(function(L){return L.toString()}).splice(1),I=p==="assert"?w.slice(1):w,E=I.map(function(L){return qt(L,e.stringifyOptions)});o++,o<e.lengthThreshold?t({level:p,trace:P,payload:E}):o===e.lengthThreshold&&t({level:"warn",trace:[],payload:[qt("The number of log records reached the threshold.")]})}catch(L){y.apply(void 0,[].concat(["rrweb logger error:",L],w))}finally{s=!1}}}}):function(){}}}var Nm="rrweb/console@1",Fm=function(t){return{name:Nm,observer:Lm,options:t}},Hs=A.setImmediate,ut,xa,Ma,al=Object.prototype.toString,$m=typeof Hs<"u"?function(i){return Hs(i)}:setTimeout;try{Object.defineProperty({},"x",{}),ut=function(i,a,e,r){return Object.defineProperty(i,a,{value:e,writable:!0,configurable:r!==!1})}}catch{ut=function(a,e,r){return a[e]=r,a}}Ma=(function(){var i,a,e;function r(n,o){this.fn=n,this.self=o,this.next=void 0}return{add:function(o,s){e=new r(o,s),a?a.next=e:i=e,a=e,e=void 0},drain:function(){var o=i;for(i=a=xa=void 0;o;)o.fn.call(o.self),o=o.next}}})();function Ji(t,i){Ma.add(t,i),xa||(xa=$m(Ma.drain))}function ol(t){var i,a=typeof t;return t!==null&&(a==="object"||a==="function")&&(i=t.then),typeof i=="function"?i:!1}function mo(){for(var t=0;t<this.chain.length;t++)Um(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function Um(t,i,a){var e,r;try{i===!1?a.reject(t.msg):(i===!0?e=t.msg:e=i.call(void 0,t.msg),e===a.promise?a.reject(TypeError("Promise-chain cycle")):(r=ol(e))?r.call(e,a.resolve,a.reject):a.resolve(e))}catch(n){a.reject(n)}}function sl(t){var i,a=this;if(!a.triggered){a.triggered=!0,a.def&&(a=a.def);try{(i=ol(t))?Ji(function(){var e=new Js(a);try{i.call(t,function(){sl.apply(e,arguments)},function(){Sr.apply(e,arguments)})}catch(r){Sr.call(e,r)}}):(a.msg=t,a.state=1,a.chain.length>0&&Ji(mo,a))}catch(e){Sr.call(new Js(a),e)}}}function Sr(t){var i=this;i.triggered||(i.triggered=!0,i.def&&(i=i.def),i.msg=t,i.state=2,i.chain.length>0&&Ji(mo,i))}function cl(t,i,a,e){for(var r=0;r<i.length;r++)(function(o){t.resolve(i[o]).then(function(c){a(o,c)},e)})(r)}function Js(t){this.def=t,this.triggered=!1}function Vm(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function mt(t){if(typeof t!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var i=new Vm(this);this.then=function(e,r){var n={success:typeof e=="function"?e:!0,failure:typeof r=="function"?r:!1};return n.promise=new this.constructor(function(s,c){if(typeof s!="function"||typeof c!="function")throw TypeError("Not a function");n.resolve=s,n.reject=c}),i.chain.push(n),i.state!==0&&Ji(mo,i),n.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){sl.call(i,e)},function(e){Sr.call(i,e)})}catch(a){Sr.call(i,a)}}var ul=ut({},"constructor",mt,!1);mt.prototype=ul;ut(ul,"__NPO__",0,!1);ut(mt,"resolve",function(i){var a=this;return i&&typeof i=="object"&&i.__NPO__===1?i:new a(function(r,n){if(typeof r!="function"||typeof n!="function")throw TypeError("Not a function");r(i)})});ut(mt,"reject",function(i){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(i)})});ut(mt,"all",function(i){var a=this;return al.call(i)!=="[object Array]"?a.reject(TypeError("Not an array")):i.length===0?a.resolve([]):new a(function(r,n){if(typeof r!="function"||typeof n!="function")throw TypeError("Not a function");var o=i.length,s=Array(o),c=0;cl(a,i,function(l,d){s[l]=d,++c===o&&r(s)},n)})});ut(mt,"race",function(i){var a=this;return al.call(i)!=="[object Array]"?a.reject(TypeError("Not an array")):new a(function(r,n){if(typeof r!="function"||typeof n!="function")throw TypeError("Not a function");cl(a,i,function(s,c){r(c)},n)})});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,B=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(t){return t.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(i){he.log(i)})}},warn:function(){if(De.DEBUG&&!h.isUndefined(he)&&he){var t=["Mixpanel warning:"].concat(h.toArray(arguments));try{he.warn.apply(he,t)}catch{h.each(t,function(a){he.warn(a)})}}},error:function(){if(De.DEBUG&&!h.isUndefined(he)&&he){var t=["Mixpanel error:"].concat(h.toArray(arguments));try{he.error.apply(he,t)}catch{h.each(t,function(a){he.error(a)})}}},critical:function(){if(!h.isUndefined(he)&&he){var t=["Mixpanel error:"].concat(h.toArray(arguments));try{he.error.apply(he,t)}catch{h.each(t,function(a){he.error(a)})}}}},Gn=function(t,i){return function(){return arguments[0]="["+i+"] "+arguments[0],t.apply(V,arguments)}},Lt=function(t){return{log:Gn(V.log,t),error:Gn(V.error,t),critical:Gn(V.critical,t)}},Vr=function(t){return function(){try{return t.apply(this,arguments)}catch(i){V.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),De.DEBUG&&V.critical(i)}}},dl=function(t){var i=t.prototype;for(var a in i)typeof i[a]=="function"&&(i[a]=Vr(i[a]))};h.bind=function(t,i){var a,e;if(Wn&&t.bind===Wn)return Wn.apply(t,at.call(arguments,1));if(!h.isFunction(t))throw new TypeError;return a=at.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(i,a.concat(at.call(arguments)));var r={};r.prototype=t.prototype;var n=new r;r.prototype=null;var o=t.apply(n,a.concat(at.call(arguments)));return Object(o)===o?o:n},e};h.each=function(t,i,a){if(t!=null){if(Ys&&t.forEach===Ys)t.forEach(i,a);else if(t.length===+t.length){for(var e=0,r=t.length;e<r;e++)if(e in t&&i.call(a,t[e],e,t)===Da)return}else for(var n in t)if(yn.call(t,n)&&i.call(a,t[n],n,t)===Da)return}};h.extend=function(t){return h.each(at.call(arguments,1),function(i){for(var a in i)i[a]!==void 0&&(t[a]=i[a])}),t};h.isArray=qm||function(t){return Zr.call(t)==="[object Array]"};h.isFunction=function(t){try{return/^\s*\bfunction\b/.test(t)}catch{return!1}};h.isArguments=function(t){return!!(t&&yn.call(t,"callee"))};h.toArray=function(t){return t?t.toArray?t.toArray():h.isArray(t)||h.isArguments(t)?at.call(t):h.values(t):[]};h.map=function(t,i,a){if(Xs&&t.map===Xs)return t.map(i,a);var e=[];return h.each(t,function(r){e.push(i.call(a,r))}),e};h.keys=function(t){var i=[];return t===null||h.each(t,function(a,e){i[i.length]=e}),i};h.values=function(t){var i=[];return t===null||h.each(t,function(a){i[i.length]=a}),i};h.include=function(t,i){var a=!1;return t===null?a:Ks&&t.indexOf===Ks?t.indexOf(i)!=-1:(h.each(t,function(e){if(a||(a=e===i))return Da}),a)};h.includes=function(t,i){return t.indexOf(i)!==-1};h.inherit=function(t,i){return t.prototype=new i,t.prototype.constructor=t,t.superclass=i.prototype,t};h.isObject=function(t){return t===Object(t)&&!h.isArray(t)};h.isEmptyObject=function(t){if(h.isObject(t)){for(var i in t)if(yn.call(t,i))return!1;return!0}return!1};h.isUndefined=function(t){return t===void 0};h.isString=function(t){return Zr.call(t)=="[object String]"};h.isDate=function(t){return Zr.call(t)=="[object Date]"};h.isNumber=function(t){return Zr.call(t)=="[object Number]"};h.isElement=function(t){return!!(t&&t.nodeType===1)};h.encodeDates=function(t){return h.each(t,function(i,a){h.isDate(i)?t[a]=h.formatDate(i):h.isObject(i)&&(t[a]=h.encodeDates(i))}),t};h.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};h.formatDate=function(t){function i(a){return a<10?"0"+a:a}return t.getUTCFullYear()+"-"+i(t.getUTCMonth()+1)+"-"+i(t.getUTCDate())+"T"+i(t.getUTCHours())+":"+i(t.getUTCMinutes())+":"+i(t.getUTCSeconds())};h.strip_empty_properties=function(t){var i={};return h.each(t,function(a,e){h.isString(a)&&a.length>0&&(i[e]=a)}),i};h.truncate=function(t,i){var a;return typeof t=="string"?a=t.slice(0,i):h.isArray(t)?(a=[],h.each(t,function(e){a.push(h.truncate(e,i))})):h.isObject(t)?(a={},h.each(t,function(e,r){a[r]=h.truncate(e,i)})):a=t,a};h.JSONEncode=(function(){return function(t){var i=t,a=function(r){var n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return n.lastIndex=0,n.test(r)?'"'+r.replace(n,function(s){var c=o[s];return typeof c=="string"?c:"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},e=function(r,n){var o="",s=" ",c=0,u="",l="",d=0,f=o,m=[],_=n[r];switch(_&&typeof _=="object"&&typeof _.toJSON=="function"&&(_=_.toJSON(r)),typeof _){case"string":return a(_);case"number":return isFinite(_)?String(_):"null";case"boolean":case"null":return String(_);case"object":if(!_)return"null";if(o+=s,m=[],Zr.apply(_)==="[object Array]"){for(d=_.length,c=0;c<d;c+=1)m[c]=e(c,_)||"null";return l=m.length===0?"[]":o?`[
|
|
63
|
-
`+o+m.join(`,
|
|
64
|
-
`+o)+`
|
|
65
|
-
`+f+"]":"["+m.join(",")+"]",o=f,l}for(u in _)yn.call(_,u)&&(l=e(u,_),l&&m.push(a(u)+(o?": ":":")+l));return l=m.length===0?"{}":o?"{"+m.join(",")+f+"}":"{"+m.join(",")+"}",o=f,l}};return e("",{"":i})}})();h.JSONDecode=(function(){var t,i,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
66
|
-
`,r:"\r",t:" "},e,r=function(m){var _=new SyntaxError(m);throw _.at=t,_.text=e,_},n=function(m){return m&&m!==i&&r("Expected '"+m+"' instead of '"+i+"'"),i=e.charAt(t),t+=1,i},o=function(){var m,_="";for(i==="-"&&(_="-",n("-"));i>="0"&&i<="9";)_+=i,n();if(i===".")for(_+=".";n()&&i>="0"&&i<="9";)_+=i;if(i==="e"||i==="E")for(_+=i,n(),(i==="-"||i==="+")&&(_+=i,n());i>="0"&&i<="9";)_+=i,n();if(m=+_,!isFinite(m))r("Bad number");else return m},s=function(){var m,_,g="",p;if(i==='"')for(;n();){if(i==='"')return n(),g;if(i==="\\")if(n(),i==="u"){for(p=0,_=0;_<4&&(m=parseInt(n(),16),!!isFinite(m));_+=1)p=p*16+m;g+=String.fromCharCode(p)}else if(typeof a[i]=="string")g+=a[i];else break;else g+=i}r("Bad string")},c=function(){for(;i&&i<=" ";)n()},u=function(){switch(i){case"t":return n("t"),n("r"),n("u"),n("e"),!0;case"f":return n("f"),n("a"),n("l"),n("s"),n("e"),!1;case"n":return n("n"),n("u"),n("l"),n("l"),null}r('Unexpected "'+i+'"')},l,d=function(){var m=[];if(i==="["){if(n("["),c(),i==="]")return n("]"),m;for(;i;){if(m.push(l()),c(),i==="]")return n("]"),m;n(","),c()}}r("Bad array")},f=function(){var m,_={};if(i==="{"){if(n("{"),c(),i==="}")return n("}"),_;for(;i;){if(m=s(),c(),n(":"),Object.hasOwnProperty.call(_,m)&&r('Duplicate key "'+m+'"'),_[m]=l(),c(),i==="}")return n("}"),_;n(","),c()}}r("Bad object")};return l=function(){switch(c(),i){case"{":return f();case"[":return d();case'"':return s();case"-":return o();default:return i>="0"&&i<="9"?o():u()}},function(m){var _;return e=m,t=0,i=" ",_=l(),c(),i&&r("Syntax error"),_}})();h.base64Encode=function(t){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a,e,r,n,o,s,c,u,l=0,d=0,f="",m=[];if(!t)return t;t=h.utf8Encode(t);do a=t.charCodeAt(l++),e=t.charCodeAt(l++),r=t.charCodeAt(l++),u=a<<16|e<<8|r,n=u>>18&63,o=u>>12&63,s=u>>6&63,c=u&63,m[d++]=i.charAt(n)+i.charAt(o)+i.charAt(s)+i.charAt(c);while(l<t.length);switch(f=m.join(""),t.length%3){case 1:f=f.slice(0,-2)+"==";break;case 2:f=f.slice(0,-1)+"=";break}return f};h.utf8Encode=function(t){t=(t+"").replace(/\r\n/g,`
|
|
67
|
-
`).replace(/\r/g,`
|
|
68
|
-
`);var i="",a,e,r=0,n;for(a=e=0,r=t.length,n=0;n<r;n++){var o=t.charCodeAt(n),s=null;o<128?e++:o>127&&o<2048?s=String.fromCharCode(o>>6|192,o&63|128):s=String.fromCharCode(o>>12|224,o>>6&63|128,o&63|128),s!==null&&(e>a&&(i+=t.substring(a,e)),i+=s,a=e=n+1)}return e>a&&(i+=t.substring(a,t.length)),i};h.UUID=function(){try{return A.crypto.randomUUID()}catch{for(var t=new Array(36),i=0;i<36;i++)t[i]=Math.floor(Math.random()*16);return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]="-",h.map(t,function(e){return e.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(t){var i;for(t=t.toLowerCase(),i=0;i<Qs.length;i++)if(t.indexOf(Qs[i])!==-1)return!0;return!1};h.HTTPBuildQuery=function(t,i){var a,e,r=[];return h.isUndefined(i)&&(i="&"),h.each(t,function(n,o){a=encodeURIComponent(n.toString()),e=encodeURIComponent(o),r[r.length]=e+"="+a}),r.join(i)};h.getQueryParam=function(t,i){i=i.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var a="[\\?&]"+i+"=([^&#]*)",e=new RegExp(a),r=e.exec(t);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch{V.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")};h.cookie={get:function(t){for(var i=t+"=",a=B.cookie.split(";"),e=0;e<a.length;e++){for(var r=a[e];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(i)===0)return decodeURIComponent(r.substring(i.length,r.length))}return null},parse:function(t){var i;try{i=h.JSONDecode(h.cookie.get(t))||{}}catch{}return i},set_seconds:function(t,i,a,e,r,n,o){var s="",c="",u="";if(o)s="; domain="+o;else if(e){var l=ec(B.location.hostname);s=l?"; domain=."+l:""}if(a){var d=new Date;d.setTime(d.getTime()+a*1e3),c="; expires="+d.toGMTString()}n&&(r=!0,u="; SameSite=None"),r&&(u+="; secure"),B.cookie=t+"="+encodeURIComponent(i)+c+"; path=/"+s+u},set:function(t,i,a,e,r,n,o){var s="",c="",u="";if(o)s="; domain="+o;else if(e){var l=ec(B.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()}n&&(r=!0,u="; SameSite=None"),r&&(u+="; secure");var f=t+"="+encodeURIComponent(i)+c+"; path=/"+s+u;return B.cookie=f,f},remove:function(t,i,a){h.cookie.set(t,"",-1,i,!1,!1,a)}};var fl=function(t){var i=!0;try{var a="__mplss_"+go(8),e="xyz";t.setItem(a,e),t.getItem(a)!==e&&(i=!1),t.removeItem(a)}catch{i=!1}return i},jn=null,zr=function(t,i){return jn!==null&&!i?jn:jn=fl(t||A.localStorage)},Hn=null,Wm=function(t,i){return Hn!==null&&!i?Hn:Hn=fl(t||A.sessionStorage)};function hl(t,i,a){var e=function(r){V.error(i+" error: "+r)};return{is_supported:function(r){var n=a(t,r);return n||V.error(i+" unsupported"),n},error:e,get:function(r){try{return t.getItem(r)}catch(n){e(n)}return null},parse:function(r){try{return h.JSONDecode(t.getItem(r))||{}}catch{}return null},set:function(r,n){try{t.setItem(r,n)}catch(o){e(o)}},remove:function(r){try{t.removeItem(r)}catch(n){e(n)}}}}h.localStorage=hl(A.localStorage,"localStorage",zr);h.sessionStorage=hl(A.sessionStorage,"sessionStorage",Wm);h.register_event=(function(){var t=function(e,r,n,o,s){if(!e){V.error("No valid element provided to register_event");return}if(e.addEventListener&&!o)e.addEventListener(r,n,!!s);else{var c="on"+r,u=e[c];e[c]=i(e,n,u)}};function i(e,r,n){var o=function(s){if(s=s||a(A.event),!!s){var c=!0,u,l;return h.isFunction(n)&&(u=n(s)),l=r.call(e,s),(u===!1||l===!1)&&(c=!1),c}};return o}function a(e){return e&&(e.preventDefault=a.preventDefault,e.stopPropagation=a.stopPropagation),e}return a.preventDefault=function(){this.returnValue=!1},a.stopPropagation=function(){this.cancelBubble=!0},t})();var Gm=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');h.dom_query=(function(){function t(r){return r.all?r.all:r.getElementsByTagName("*")}var i=/[\t\r\n]/g;function a(r,n){var o=" "+n+" ";return(" "+r.className+" ").replace(i," ").indexOf(o)>=0}function e(r){if(!B.getElementsByTagName)return[];var n=r.split(" "),o,s,c,u,l,d,f,m,_,g,p=[B];for(d=0;d<n.length;d++){if(o=n[d].replace(/^\s+/,"").replace(/\s+$/,""),o.indexOf("#")>-1){s=o.split("#"),c=s[0];var v=s[1],y=B.getElementById(v);if(!y||c&&y.nodeName.toLowerCase()!=c)return[];p=[y];continue}if(o.indexOf(".")>-1){s=o.split("."),c=s[0];var b=s[1];for(c||(c="*"),u=[],l=0,f=0;f<p.length;f++)for(c=="*"?_=t(p[f]):_=p[f].getElementsByTagName(c),m=0;m<_.length;m++)u[l++]=_[m];for(p=[],g=0,f=0;f<u.length;f++)u[f].className&&h.isString(u[f].className)&&a(u[f],b)&&(p[g++]=u[f]);continue}var k=o.match(Gm);if(k){c=k[1];var w=k[2],S=k[3],P=k[4];for(c||(c="*"),u=[],l=0,f=0;f<p.length;f++)for(c=="*"?_=t(p[f]):_=p[f].getElementsByTagName(c),m=0;m<_.length;m++)u[l++]=_[m];p=[],g=0;var I;switch(S){case"=":I=function(E){return E.getAttribute(w)==P};break;case"~":I=function(E){return E.getAttribute(w).match(new RegExp("\\b"+P+"\\b"))};break;case"|":I=function(E){return E.getAttribute(w).match(new RegExp("^"+P+"-?"))};break;case"^":I=function(E){return E.getAttribute(w).indexOf(P)===0};break;case"$":I=function(E){return E.getAttribute(w).lastIndexOf(P)==E.getAttribute(w).length-P.length};break;case"*":I=function(E){return E.getAttribute(w).indexOf(P)>-1};break;default:I=function(E){return E.getAttribute(w)}}for(p=[],g=0,f=0;f<u.length;f++)I(u[f])&&(p[g++]=u[f]);continue}for(c=o,u=[],l=0,f=0;f<p.length;f++)for(_=p[f].getElementsByTagName(c),m=0;m<_.length;m++)u[l++]=_[m];p=u}return p}return function(r){return h.isElement(r)?[r]:h.isObject(r)&&!h.isUndefined(r.length)?r:e.call(this,r)}})();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(t){var i="",a={};return h.each(jm,function(e){i=h.getQueryParam(B.URL,e),i.length?a[e]=i:t!==void 0&&(a[e]=t)}),a},clickParams:function(){var t="",i={};return h.each(Hm,function(a){t=h.getQueryParam(B.URL,a),t.length&&(i[a]=t)}),i},marketingParams:function(){return h.extend(h.info.campaignParams(),h.info.clickParams())},searchEngine:function(t){return t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(t){var i=h.info.searchEngine(t),a=i!="yahoo"?"q":"p",e={};if(i!==null){e.$search_engine=i;var r=h.getQueryParam(t,a);r.length&&(e.mp_keyword=r)}return e},browser:function(t,i,a){return i=i||"",a||h.includes(t," OPR/")?h.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":h.includes(t,"IEMobile")||h.includes(t,"WPDesktop")?"Internet Explorer Mobile":h.includes(t,"SamsungBrowser/")?"Samsung Internet":h.includes(t,"Edge")||h.includes(t,"Edg/")?"Microsoft Edge":h.includes(t,"FBIOS")?"Facebook Mobile":h.includes(t,"Whale/")?"Whale Browser":h.includes(t,"Chrome")?"Chrome":h.includes(t,"CriOS")?"Chrome iOS":h.includes(t,"UCWEB")||h.includes(t,"UCBrowser")?"UC Browser":h.includes(t,"FxiOS")?"Firefox iOS":h.includes(i,"Apple")?h.includes(t,"Mobile")?"Mobile Safari":"Safari":h.includes(t,"Android")?"Android Mobile":h.includes(t,"Konqueror")?"Konqueror":h.includes(t,"Firefox")?"Firefox":h.includes(t,"MSIE")||h.includes(t,"Trident/")?"Internet Explorer":h.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,i,a){var e=h.info.browser(t,i,a),r={"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+)?)/},n=r[e];if(n===void 0)return null;var o=t.match(n);return o?parseFloat(o[o.length-2]):null},os:function(){var t=ze;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""},referringDomain:function(t){var i=t.split("/");return i.length>=3?i[2]:""},currentUrl:function(){return A.location.href},properties:function(t){return typeof t!="object"&&(t={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(ze,Ze.vendor,br),$referrer:B.referrer,$referring_domain:h.info.referringDomain(B.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(t))},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:B.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(t,i){var a=null,e=[];return function(r){var n=this;return e.push(r),a||(a=new G(function(o){setTimeout(function(){var s=t.apply(n,[e]);a=null,e=[],o(s)},i)})),a}},go=function(t){var i=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?i.substring(0,t):i},Zm=function(){var t=h.UUID().replace(/-/g,""),i=h.UUID().replace(/-/g,"").substring(0,16),a="01";return"00-"+t+"-"+i+"-"+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(t){var i=Km,a=t.split("."),e=a[a.length-1];(e.length>4||e==="com"||e==="org")&&(i=Ym);var r=t.match(i);return r?r[0]:""},Xm=function(){var t=A.navigator.onLine;return h.isUndefined(t)||t},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(t,i,a){if(!A.CompressionStream)return!1;var e=h.info.browser(t,i,a),r=h.info.browserVersion(t,i,a);return!((e==="Safari"||e==="Mobile Safari")&&r>=16.4&&r<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(t){this.dbPromise=null,this.storeName=t};Fe.prototype._openDb=function(){return new G(function(t,i){var a=A.indexedDB.open(eg,tg);a.onerror=function(){i(a.error)},a.onsuccess=function(){t(a.result)},a.onupgradeneeded=function(e){var r=e.target.result;rg.forEach(function(n){r.createObjectStore(n)})}})};Fe.prototype.init=function(){return A.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof A.IDBDatabase?G.resolve():G.reject(t)})):G.reject("indexedDB is not supported in this browser")};Fe.prototype.isInitialized=function(){return!!this.dbPromise};Fe.prototype.makeTransaction=function(t,i){var a=this.storeName,e=function(r){return new G(function(n,o){var s=r.transaction(a,t);s.oncomplete=function(){n(s)},s.onabort=s.onerror=function(){o(s.error)},i(s.objectStore(a))})};return this.dbPromise.then(e).catch((function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):G.reject(r)}).bind(this))};Fe.prototype.setItem=function(t,i){return this.makeTransaction("readwrite",function(a){a.put(i,t)})};Fe.prototype.getItem=function(t){var i;return this.makeTransaction("readonly",function(a){i=a.get(t)}).then(function(){return i.result})};Fe.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(i){i.delete(t)})};Fe.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(i){t=i.getAll()}).then(function(){return t.result})};var ig="__mp_opt_in_out_";function ng(t,i){gl(!0,t,i)}function ag(t,i){gl(!1,t,i)}function og(t,i){return ml(t,i)==="1"}function _l(t,i){if(cg(i))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(t,i)==="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(t){return Co(t,function(i){return this.get_config(i)})}function vt(t){return Co(t,function(i){return this._get_config(i)})}function cr(t){return Co(t,function(i){return this._get_config(i)})}function sg(t,i){i=i||{},yo(i).remove(bo(t,i),!!i.crossSubdomainCookie,i.cookieDomain)}function yo(t){return t=t||{},t.persistenceType==="localStorage"?h.localStorage:h.cookie}function bo(t,i){return i=i||{},(i.persistencePrefix||ig)+t}function ml(t,i){return yo(i).get(bo(t,i))}function cg(t){if(t&&t.ignoreDnt)return!1;var i=t&&t.window||A,a=i.navigator||{},e=!1;return h.each([a.doNotTrack,a.msDoNotTrack,i.doNotTrack],function(r){h.includes([!0,1,"1","yes"],r)&&(e=!0)}),e}function gl(t,i,a){if(!h.isString(i)||!i.length){V.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token");return}a=a||{},yo(a).set(bo(i,a),t?1:0,h.isNumber(a.cookieExpiration)?a.cookieExpiration:null,!!a.crossSubdomainCookie,!!a.secureCookie,!!a.crossSiteCookie,a.cookieDomain),a.track&&t&&a.track(a.trackEventName||"$opt_in",a.trackProperties,{send_immediately:!0})}function Co(t,i){return function(){var a=!1;try{var e=i.call(this,"token"),r=i.call(this,"ignore_dnt"),n=i.call(this,"opt_out_tracking_persistence_type"),o=i.call(this,"opt_out_tracking_cookie_prefix"),s=i.call(this,"window");e&&(a=_l(e,{ignoreDnt:r,persistenceType:n,persistencePrefix:o,window:s}))}catch(u){V.error("Unexpected error when checking tracking opt-out status: "+u)}if(!a)return t.apply(this,arguments);var c=arguments[arguments.length-1];typeof c=="function"&&c(0)}}var ug=Lt("lock"),vl=function(t,i){i=i||{},this.storageKey=t,this.storage=i.storage||A.localStorage,this.pollIntervalMS=i.pollIntervalMS||100,this.timeoutMS=i.timeoutMS||2e3,this.promiseImpl=i.promiseImpl||G};vl.prototype.withLock=function(t,i){var a=this.promiseImpl;return new a(h.bind(function(e,r){var n=i||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,c=this.pollIntervalMS,u=this.timeoutMS,l=this.storage,d=s+":X",f=s+":Y",m=s+":Z",_=function(b){if(new Date().getTime()-o>u){ug.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+n+"]"),l.removeItem(m),l.removeItem(f),v();return}setTimeout(function(){try{b()}catch(k){r(k)}},c*(Math.random()+.1))},g=function(b,k){b()?k():_(function(){g(b,k)})},p=function(){var b=l.getItem(f);return b&&b!==n?!1:(l.setItem(f,n),l.getItem(f)===n?!0:(zr(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},v=function(){l.setItem(d,n),g(p,function(){if(l.getItem(d)===n){y();return}_(function(){if(l.getItem(f)!==n){v();return}g(function(){return!l.getItem(m)},y)})})},y=function(){l.setItem(m,"1");var b=function(){l.removeItem(m),l.getItem(f)===n&&l.removeItem(f),l.getItem(d)===n&&l.removeItem(d)};t().then(function(k){b(),e(k)}).catch(function(k){b(),r(k)})};try{if(zr(l,!0))v();else throw new Error("localStorage support check failed")}catch(b){r(b)}},this))};var ur=function(t){this.storage=t||A.localStorage};ur.prototype.init=function(){return G.resolve()};ur.prototype.isInitialized=function(){return!0};ur.prototype.setItem=function(t,i){return new G(h.bind(function(a,e){try{this.storage.setItem(t,ar(i))}catch(r){e(r)}a()},this))};ur.prototype.getItem=function(t){return new G(h.bind(function(i,a){var e;try{e=Zi(this.storage.getItem(t))}catch(r){a(r)}i(e)},this))};ur.prototype.removeItem=function(t){return new G(h.bind(function(i,a){try{this.storage.removeItem(t)}catch(e){a(e)}i()},this))};var tc=Lt("batch"),Ge=function(t,i){i=i||{},this.storageKey=t,this.usePersistence=i.usePersistence,this.usePersistence&&(this.queueStorage=i.queueStorage||new ur,this.lock=new vl(t,{storage:i.sharedLockStorage||A.localStorage,timeoutMS:i.sharedLockTimeoutMS})),this.reportError=i.errorReporter||h.bind(tc.error,tc),this.pid=i.pid||null,this.memQueue=[],this.initialized=!1,i.enqueueThrottleMs?this.enqueuePersisted=Jm(h.bind(this._enqueuePersisted,this),i.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(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1},this))};Ge.prototype.enqueue=function(t,i){var a={id:go(),flushAfter:new Date().getTime()+i*2,payload:t};return this.usePersistence?this.enqueuePersisted(a):(this.memQueue.push(a),G.resolve(!0))};Ge.prototype._enqueuePersisted=function(t){var i=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(a){return this.saveToStorage(a.concat(t))},this)).then(h.bind(function(a){return a&&(this.memQueue=this.memQueue.concat(t)),a},this)).catch(h.bind(function(a){return this.reportError("Error enqueueing items",a,t),!1},this))},this);return this.lock.withLock(i,this.pid).catch(h.bind(function(a){return this.reportError("Error acquiring storage lock",a),!1},this))};Ge.prototype.fillBatch=function(t){var i=this.memQueue.slice(0,t);return this.usePersistence&&i.length<t?this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(a){if(a.length){var e={};h.each(i,function(o){e[o.id]=!0});for(var r=0;r<a.length;r++){var n=a[r];if(new Date().getTime()>n.flushAfter&&!e[n.id]&&(n.orphaned=!0,i.push(n),i.length>=t))break}}return i},this)):G.resolve(i)};var rc=function(t,i){var a=[];return h.each(t,function(e){e.id&&!i[e.id]&&a.push(e)}),a};Ge.prototype.removeItemsByID=function(t){var i={};if(h.each(t,function(e){i[e]=!0}),this.memQueue=rc(this.memQueue,i),this.usePersistence){var a=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(e){return e=rc(e,i),this.saveToStorage(e)},this)).then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&i[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(h.bind(function(e){return this.reportError("Error removing items",e,t),!1},this))},this);return this.lock.withLock(a,this.pid).catch(h.bind(function(e){return this.reportError("Error acquiring storage lock",e),zr(this.lock.storage,!0)?!1:a().then(h.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(h.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return G.resolve(!0)};var ic=function(t,i){var a=[];return h.each(t,function(e){var r=e.id;if(r in i){var n=i[r];n!==null&&(e.payload=n,a.push(e))}else a.push(e)}),a};Ge.prototype.updatePayloads=function(t){return this.memQueue=ic(this.memQueue,t),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,t),this.saveToStorage(a)},this)).catch(h.bind(function(a){return this.reportError("Error updating items",t,a),!1},this))},this),this.pid).catch(h.bind(function(i){return this.reportError("Error acquiring storage lock",i),!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(t){return t&&(h.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]},this)).catch(h.bind(function(t){return this.reportError("Error retrieving queue",t),[]},this))};Ge.prototype.saveToStorage=function(t){return this.ensureInit().then(h.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(h.bind(function(i){return this.reportError("Error saving queue",i),!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(t,i){this.errorReporter=i.errorReporter,this.queue=new Ge(t,{errorReporter:h.bind(this.reportError,this),queueStorage:i.queueStorage,sharedLockStorage:i.sharedLockStorage,sharedLockTimeoutMS:i.sharedLockTimeoutMS,usePersistence:i.usePersistence,enqueueThrottleMs:i.enqueueThrottleMs}),this.libConfig=i.libConfig,this.sendRequest=i.sendRequestFunc,this.beforeSendHook=i.beforeSendHook,this.stopAllBatching=i.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=i.flushOnlyOnInterval||!1,this._flushPromise=null};Be.prototype.enqueue=function(t){return this.queue.enqueue(t,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(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))};Be.prototype.sendRequestPromise=function(t,i){return new G(h.bind(function(a){this.sendRequest(t,i,a)},this))};Be.prototype.flush=function(t){if(this.requestInProgress)return Tr.log("Flush: Request already in progress"),G.resolve();this.requestInProgress=!0,t=t||{};var i=this.libConfig.batch_request_timeout_ms,a=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(h.bind(function(r){var n=r.length===e,o=[],s={};if(h.each(r,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 m=!0,_=d.id;_?(this.itemIdsSentSuccessfully[_]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:d,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[_]}),m=!1):this.reportError("[dupe] found item with no ID",{item:d}),m&&o.push(f)}s[d.id]=f},this),o.length<1)return this.requestInProgress=!1,this.resetFlush(),G.resolve();var c=h.bind(function(){return this.queue.removeItemsByID(h.map(r,function(d){return d.id})).then(h.bind(function(d){return h.each(r,h.bind(function(f){var m=f.id;m?(this.itemIdsSentSuccessfully[m]=this.itemIdsSentSuccessfully[m]||0,this.itemIdsSentSuccessfully[m]++,this.itemIdsSentSuccessfully[m]>5&&this.reportError("[dupe] item ID sent too many times",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[m]})):this.reportError("[dupe] found item with no ID while removing",{item:f})},this)),d?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!n?(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(t.unloading)return this.queue.updatePayloads(s);if(h.isObject(d)&&d.error==="timeout"&&new Date().getTime()-a>=i)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(r.length>1){var m=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,m,r.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",r),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:i};return t.unloading&&(l.transport="sendBeacon"),Tr.log("MIXPANEL REQUEST:",o),this.sendRequestPromise(o,l).then(u)},this)).catch(h.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))};Be.prototype.reportError=function(t,i){if(Tr.error.apply(Tr.error,arguments),this.errorReporter)try{i instanceof Error||(i=new Error(t)),this.errorReporter(t,i)}catch(a){Tr.error(a)}};var ko=function(t){var i=Date.now();return!t||i>t.maxExpires||i>t.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([D.MouseMove,D.MouseInteraction,D.Scroll,D.ViewportResize,D.Input,D.TouchMove,D.MediaInteraction,D.Drag,D.Selection]);function _g(t){return t.type===W.IncrementalSnapshot&&pg.has(t.data.source)}var me=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||st,this._onMaxLengthReached=t.onMaxLengthReached||st,this._onBatchSent=t.onBatchSent||st,this._rrwebRecord=t.rrwebRecord||null,this._stopRecording=null,this.replayId=t.replayId,this.batchStartUrl=t.batchStartUrl||null,this.replayStartUrl=t.replayStartUrl||null,this.idleExpires=t.idleExpires||null,this.maxExpires=t.maxExpires||null,this.replayStartTime=t.replayStartTime||null,this.lastEventTimestamp=t.lastEventTimestamp||null,this.seqNo=t.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Ar,this.recordMinMs=0;var i=zr(t.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:t.sharedLockStorage,usePersistence:i,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:dg,sharedLockTimeoutMS:10*1e3})};me.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var t={distinct_id:String(this._mixpanel.get_distinct_id())},i=this._mixpanel.get_property("$device_id");i&&(t.$device_id=i);var a=this._mixpanel.get_property("$user_id");return a&&(t.$user_id=a),t};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(t){return this._mixpanel.get_config(t)};me.prototype.get_config=function(t){return this.getConfig(t)};me.prototype.startRecording=function(t){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()),t||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var i=(function(){clearTimeout(this.idleTimeoutId);var r=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,r),this.idleExpires=new Date().getTime()+r}).bind(this);i();var a=this.getConfig("record_block_selector");(a===""||a===null)&&(a=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(r){if(this.idleExpires&&this.idleExpires<r.timestamp){this._onIdleTimeout();return}_g(r)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),i()),this.__enqueuePromise=this.batcher.enqueue(r),(this.lastEventTimestamp===null||r.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=r.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(r){this.reportError("Unexpected error when starting rrweb recording.",r)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var e=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),e)};me.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(a){this.reportError("Error with rrweb stopRecording",a)}this._stopRecording=null}var i;return this.batcher.stopped?i=this.batcher.clear():t||(i=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),i};me.prototype.isRrwebStopped=function(){return this._stopRecording===null};me.prototype.flushEventsWithOptOut=function(t,i,a){var e=(function(r){r===0&&(this.stopRecording(),a({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(t,i,a,e)};me.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(i){this.reportError("Error getting tab ID for serialization ",i),t=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:t}};me.deserialize=function(t,i){var a=new me(h.extend({},i,{replayId:t.replayId,batchStartUrl:t.batchStartUrl,replayStartUrl:t.replayStartUrl,idleExpires:t.idleExpires,maxExpires:t.maxExpires,replayStartTime:t.replayStartTime,lastEventTimestamp:t.lastEventTimestamp,seqNo:t.seqNo,sharedLockStorage:i.sharedLockStorage}));return a};me.prototype._sendRequest=function(t,i,a,e){var r=(function(o,s){o.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:o.status,responseBody:s,retryAfter:o.headers.get("Retry-After")})}).bind(this),n=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");A.fetch(n+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(i),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:a}).then(function(o){o.json().then(function(s){r(o,s)}).catch(function(s){e({error:s})})}).catch(function(o){e({error:o,httpStatusCode:0})})};me.prototype._flushEvents=gt(function(t,i,a){var e=t.length;if(e>0){for(var r=this.replayId,n=1/0,o=-1/0,s=!1,c=0;c<e;c++)n=Math.min(n,t[c].timestamp),o=Math.max(o,t[c].timestamp),t[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=n}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=n);var u=o-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:De.LIB_VERSION,batch_start_time:n/1e3,mp_lib:"web",replay_id:r,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},d=JSON.stringify(t);if(Object.assign(l,this.getUserIdInfo()),Qm(ze,Ze.vendor,br)){var f=new Blob([d],{type:"application/json"}).stream(),m=f.pipeThrough(new fg("gzip"));new Response(m).blob().then((function(_){l.format="gzip",this._sendRequest(r,l,_,a)}).bind(this))}else l.format="body",this._sendRequest(r,l,d,a)}});me.prototype.reportError=function(t,i){Yt.error.apply(Yt.error,arguments);try{!i&&!(t instanceof Error)&&(t=new Error(t)),this.getConfig("error_reporter")(t,i)}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 t=this.getConfig("record_min_ms");return t>qn?(Yt.critical("record_min_ms cannot be greater than "+qn+"ms. Capping value."),qn):t};var et=function(t){this.idb=new Fe(vo),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};et.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")};et.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)};et.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return G.resolve();var i=t.tabId;return i?this.idb.init().then((function(){return this.idb.setItem(i,t)}).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(t){return ko(t)?null:t}).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(t){if(t)return t.maxExpires=0,this.setActiveRecording(t)}).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(t){var i=t.filter(function(a){return ko(a)}).map((function(a){var e=me.deserialize(a,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then((function(){return this.idb.removeItem(a.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return G.all(i)}).bind(this)).catch(this.handleError.bind(this)):G.resolve([])};var Rr=Lt("recorder"),tt=function(t,i,a){this.mixpanelInstance=t,this.rrwebRecord=i||_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(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Rr.log("Recording already in progress, skipping startRecording.");return}var i=(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),e=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:i,onMaxLengthReached:a,replayId:h.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=me.deserialize(t.activeSerializedRecording,r):this.activeRecording=new me(r),this.activeRecording.startRecording(t.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(t,i){if(this.activeRecording){var a=this.activeRecording.stopRecording(t);return i&&(this.activeRecording=null),a}return G.resolve()};tt.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),G.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(i){return i&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:i}):t?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(t){for(var i={},a=yl(t).split(" "),e=0;e<a.length;e++){var r=a[e];r&&(i[r]=!0)}return i}function yl(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function Ag(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!bl(t));return t}function lc(t,i,a,e,r,n){var o={$classes:yl(t).split(" "),$tag_name:t.tagName.toLowerCase()},s=t.id;s&&(o.$id=s),So(t,i,r,n)&&h.each(bg.concat(e),function(d){if(t.hasAttribute(d)&&!a[d]){var f=t.getAttribute(d);Ki(f)&&(o["$attr-"+d]=f)}});for(var c=1,u=1,l=t;l=Ag(l);)c++,l.tagName===t.tagName&&u++;return o.$nth_child=c,o.$nth_of_type=u,o}function Tg(t,i){var a=i.allowElementCallback,e=i.allowSelectors||[],r=i.blockAttrs||[],n=i.blockElementCallback,o=i.blockSelectors||[],s=i.captureTextContent||!1,c=i.captureExtraAttrs||[],u=i.capturedForHeatMap||!1,l={};h.each(r,function(w){l[w]=!0});var d=null,f=typeof t.target>"u"?t.srcElement:t.target;if(Cl(f)&&(f=f.parentNode),Eg(f,t)&&Fa(f,t,a,e)&&!Jn(f,t,n,o)){for(var m=[f],_=f;_.parentNode&&!qe(_,"body");)m.push(_.parentNode),_=_.parentNode;var g=[],p,v=!1;if(h.each(m,function(w){var S=So(w,t,a,e);!l.href&&w.tagName.toLowerCase()==="a"&&(p=w.getAttribute("href"),p=S&&Ki(p)&&p),Jn(w,t,n,o)&&(v=!0),g.push(lc(w,t,l,c,a,e))},this),!v){var y=B.documentElement;if(d={$event_type:t.type,$host:A.location.host,$pathname:A.location.pathname,$elements:g,$el_attr__href:p,$viewportHeight:Math.max(y.clientHeight,A.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,A.innerWidth||0),$pageHeight:B.body.offsetHeight||0,$pageWidth:B.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,t,a,e),b&&b.length&&(d.$el_text=b)),t.type===Qe&&(h.each(yg,function(w){w in t&&(d["$"+w]=t[w])}),u&&(d.$captured_for_heatmap=!0),f=Rg(t)),s){var b=dc(f,t,a,e);b&&b.length&&(d.$el_text=b)}if(f){if(!Fa(f,t,a,e)||Jn(f,t,n,o))return null;var k=lc(f,t,l,c,a,e);d.$target=k,d.$el_classes=k.$classes,h.extend(d,h.strip_empty_properties({$el_id:k.$id,$el_tag_name:k.$tag_name}))}}}return d}function dc(t,i,a,e){var r="";return So(t,i,a,e)&&t.childNodes&&t.childNodes.length&&h.each(t.childNodes,function(n){Cl(n)&&n.textContent&&(r+=h.trim(n.textContent).split(/(\s+)/).filter(Ki).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(r)}function Rg(t){for(var i=t.target,a=t.composedPath(),e=0;e<a.length;e++){var r=a[e];if(qe(r,"a")||qe(r,"button")||qe(r,"input")||qe(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){i=r;break}if(r===i)break}return i}function Fa(t,i,a,e){if(a)try{if(!a(t,i))return!1}catch(o){return te.critical("Error while checking element in allowElementCallback",o),!1}if(!e.length)return!0;for(var r=0;r<e.length;r++){var n=e[r];try{if(t.matches(n))return!0}catch(o){te.critical("Error while checking selector: "+n,o)}}return!1}function Jn(t,i,a,e){var r;if(a)try{if(a(t,i))return!0}catch(s){return te.critical("Error while checking element in blockElementCallback",s),!0}if(e&&e.length)for(r=0;r<e.length;r++){var n=e[r];try{if(t.matches(n))return!0}catch(s){te.critical("Error while checking selector: "+n,s)}}var o=Na(t);for(r=0;r<La.length;r++)if(o[La[r]])return!0;return!1}function bl(t){return t&&t.nodeType===1}function qe(t,i){return t&&t.tagName&&t.tagName.toLowerCase()===i.toLowerCase()}function Cl(t){return t&&t.nodeType===3}function Pg(){try{var t=B.createElement("div");return!!t.matches}catch{return!1}}function Ig(){return typeof WeakSet<"u"}function Eg(t,i){if(!t||qe(t,"html")||!bl(t))return!1;var a=t.tagName.toLowerCase();switch(a){case"form":return i.type===Yi;case"input":return["button","submit"].indexOf(t.getAttribute("type"))===-1?i.type===qr:i.type===Qe;case"select":case"textarea":return i.type===qr;default:return i.type===Qe}}function So(t,i,a,e){var r;if(!Fa(t,i,a,e))return!1;for(var n=t;n.parentNode&&!qe(n,"body");n=n.parentNode){var o=Na(n);for(r=0;r<cc.length;r++)if(o[cc[r]])return!1}var s=Na(t);for(r=0;r<sc.length;r++)if(s[sc[r]])return!0;if(qe(t,"input")||qe(t,"select")||qe(t,"textarea")||t.getAttribute("contenteditable")==="true")return!1;var c=t.type||"";if(typeof c=="string")switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}var u=t.name||t.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(t){if(t===null||h.isUndefined(t))return!1;if(typeof t=="string"){t=h.trim(t);var i=/^(?:(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(i.test((t||"").replace(/[- ]/g,"")))return!1;var a=/(^\d{3}-?\d{2}-?\d{4}$)/;if(a.test(t))return!1}return!0}function kl(t){var i="onscrollend"in A,a=Vr(t),e=bn;if(!i){var r=null,n=100;a=Vr(function(){clearTimeout(r),r=setTimeout(t,n)}),e=wo}return{listener:a,eventType:e}}function Og(t){for(var i=0;i<uc.length;i++)if(t.hasAttribute(uc[i]))return!0;return!1}function xg(t){var i=t.getAttribute("role");if(!i)return!1;var a=i.trim().split(/\s+/)[0].toLowerCase();return Cg[a]}function Zn(t){var i=t.tagName.toLowerCase();return!!(i==="button"||i==="input"||i==="select"||i==="textarea"||i==="details"||i==="dialog"||t.isContentEditable||t.onclick||t.onmousedown||t.onmouseup||t.ontouchstart||t.ontouchend||Og(t)||xg(t)||i==="a"&&t.hasAttribute("href")||t.hasAttribute("tabindex"))}function wl(t){if(!t||!t.tagName)return!0;var i=t.tagName.toLowerCase();if(kg[i])return!0;if(Zn(t))return!1;for(var a=t.parentElement,e=0;a&&e<Sg;){if(Zn(a))return!1;if(a.getRootNode&&a.getRootNode()!==B){var r=a.getRootNode();if(r.host&&Zn(r.host))return!1}a=a.parentElement,e++}return!!wg[i]}function Sl(t){return"composedPath"in t?t.composedPath():[]}function Al(t){var i=Sl(t);return i&&i.length>0?i[0]:t.target||t.srcElement}var Mg=30,Dg=1e3,Bg=4,Lg=!1;function Tl(){this.clicks=[]}Tl.prototype.isRageClick=function(t,i){i=i||{};var a=i.threshold_px||Mg,e=i.timeout_ms||Dg,r=i.click_count||Bg,n=i.interactive_elements_only||Lg;if(n){var o=Al(t);if(!o||wl(o))return!1}var s=Date.now(),c=t.pageX,u=t.pageY,l=this.clicks[this.clicks.length-1];if(l&&s-l.timestamp<e&&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>=r)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:s}];return!1};function lr(t,i){this.changeCallback=t||function(){},this.observerConfig=i,this.observedShadowRoots=null,this.shadowObservers=[]}lr.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return Al(t)};lr.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var i=Sl(t),a=0;a<i.length;a++){var e=i[a];e&&e.shadowRoot&&this.observeShadowRoot(e.shadowRoot)}};lr.prototype.observeShadowRoot=function(t){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(t))){var i=this;try{this.observedShadowRoots.add(t);var a=new window.MutationObserver(function(){i.changeCallback()});a.observe(t,this.observerConfig),this.shadowObservers.push(a)}catch(e){te.critical("Error while observing shadow root",e)}}};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 t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(i){te.critical("Error while disconnecting shadow DOM observer",i)}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(t){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=t,this.processingActive=!1,this.processingTimeout=null}je.prototype.addClick=function(t){var i=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return i||(i=t.target||t.srcElement),!i||wl(i)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:i,event:t,timestamp:Date.now()}),!0)};je.prototype.trackClick=function(t,i){if(!this.isTracking)return!1;var a=this.addClick(t);return a&&this.triggerProcessing(i),a};je.prototype.getDeadClicks=function(t){if(this.pendingClicks.length===0)return[];var i=t.timeout_ms,a=Date.now(),e=this.pendingClicks.slice();this.pendingClicks=[];for(var r=[],n=0;n<e.length;n++){var o=e[n];a-o.timestamp>=i?this.hasChangesAfter(o.timestamp)||r.push(o):this.pendingClicks.push(o)}return r};je.prototype.hasChangesAfter=function(t){return this.lastChangeEventTimestamp>=t-100};je.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()};je.prototype.triggerProcessing=function(t){this.processingActive||(this.processingActive=!0,this.processRecursively(t))};je.prototype.processRecursively=function(t){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var i=t.timeout_ms,a=this;this.processingTimeout=setTimeout(function(){if(a.processingActive){for(var e=a.getDeadClicks(t),r=0;r<e.length;r++)a.onDeadClickCallback(e[r].event);a.pendingClicks.length>0?a.processRecursively(t):a.processingActive=!1}},i)};je.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;Fg.forEach(function(a){var e=function(){t.recordChangeEvent()};document.addEventListener(a,e,{capture:!0,passive:!0}),t.eventListeners.push({target:document,event:a,handler:e,options:{capture:!0,passive:!0}})}),Ug.forEach(function(a){var e=function(){t.recordChangeEvent()};window.addEventListener(a,e),t.eventListeners.push({target:window,event:a,handler:e})}),$g.forEach(function(a){var e=function(){t.recordChangeEvent()};window.addEventListener(a,e,{passive:!0}),t.eventListeners.push({target:window,event:a,handler:e,options:{passive:!0}})});var i=function(){t.recordChangeEvent()};if(document.addEventListener("selectionchange",i),t.eventListeners.push({target:document,event:"selectionchange",handler:i}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){t.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(){t.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 t=0;t<this.eventListeners.length;t++){var i=this.eventListeners[t];try{i.target.removeEventListener(i.event,i.handler,i.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(t){this.mp=t,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 t=this.mp.get_config(Rl);return t?h.isObject(t)?h.extend({},pe,t):pe:{}};fe.prototype.getConfig=function(t){return this.getFullConfig()[t]};fe.prototype.currentUrlBlocked=function(){var t,i=h.info.currentUrl(),a=this.getConfig(El)||[];if(a.length){var e=!1;for(t=0;t<a.length;t++){var r=a[t];try{if(i.match(r)){e=!0;break}}catch(o){return te.critical("Error while checking block URL regex: "+r,o),!0}}if(!e)return!0}var n=this.getConfig(Dl)||[];if(!n||!n.length)return!1;for(t=0;t<n.length;t++)try{if(i.match(n[t]))return!0}catch(o){return te.critical("Error while checking block URL regex: "+n[t],o),!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(t,i){if(!this.currentUrlBlocked()){var a=this.mp.is_recording_heatmap_data()&&(i===Ul&&!this.getConfig(Xi)||i===zl&&!this._getClickTrackingConfig(en)||i===Vl&&!this._getClickTrackingConfig(Qi)),e=Tg(t,{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});e&&(h.extend(e,Wr),this.mp.track(i,e))}};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 t=A.history.pushState;typeof t=="function"&&(A.history.pushState=function(a,e,r){t.call(A.history,a,e,r),A.dispatchEvent(new Event(ot))});var i=A.history.replaceState;typeof i=="function"&&(A.history.replaceState=function(a,e,r){i.call(A.history,a,e,r),A.dispatchEvent(new Event(ot))})}};fe.prototype._getClickTrackingConfig=function(t){var i=this.getConfig(t);return i?i===!0?{}:typeof i=="object"?i:{}:null};fe.prototype._trackPageLeave=function(t,i,a){if(!this.hasTrackedScrollSession&&!(!this.getConfig(Cn)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var e=Math.max(B.documentElement.clientHeight,A.innerHeight||0),r=Math.round(Math.max(this.maxScrollViewDepth-e,0)/(a-e)*100),n=Math.round(e/a*100);a<=e&&(r=100,n=100);var o=h.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:r,$fold_line_percentage:n,$scroll_height:a,$event_type:t.type,$current_url:i||h.info.currentUrl(),$viewportHeight:e,$viewportWidth:Math.max(B.documentElement.clientWidth,A.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Wr);this.mp.track(Jg,o,{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(B.documentElement.clientHeight,A.innerHeight||0);var t=(function(){if(!this.currentUrlBlocked()){var a=Math.max(B.documentElement.clientHeight,A.innerHeight||0)+A.scrollY;a>this.maxScrollViewDepth&&(this.maxScrollViewDepth=a),this.previousScrollHeight=B.body.scrollHeight}}).bind(this),i=kl(t);this.listenerScrollDepth=i.listener,A.addEventListener(i.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(t){!this.getConfig(Xi)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(t,Ul)}).bind(this),A.addEventListener(Qe,this.listenerClick))};fe.prototype.initDeadClickTracking=function(){var t=this._getClickTrackingConfig(Qi);if(!t&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}te.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new je((function(i){this.trackDomEvent(i,Vl)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(i){var a=this._getClickTrackingConfig(Qi);if(!(!a&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=a||{};e.timeout_ms||(e.timeout_ms=Ng),this._deadClickTracker.trackClick(i,e)}}).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(t){this.getConfig($a)&&this.trackDomEvent(t,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 t="",i=!1;this.currentUrlBlocked()||(i=this.mp.track_pageview(Wr)),i&&(t=h.info.currentUrl()),this.listenerLocationchange=Vr((function(){if(!this.currentUrlBlocked()){var a=h.info.currentUrl(),e=!1,r=a.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],n=this.pageviewTrackingConfig();if(n===Pl?e=a!==t:n===zg?e=a.split("#")[0]!==t.split("#")[0]:n===qg&&(e=r),e){var o=this.mp.track_pageview(Wr);o&&(t=a),r&&(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 t=this._getClickTrackingConfig(en);!t&&!this.mp.get_config("record_heatmap_data")||(te.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Tl),this.listenerRageClick=(function(i){var a=this._getClickTrackingConfig(en);!a&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(i,a)&&this.trackDomEvent(i,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 t=(function(){if(this.getConfig(Ua)&&!this.currentUrlBlocked()){var a=this.getConfig(Nl),e=(this.getConfig(Fl)||[]).slice().sort(function(l,d){return l-d}),r=A.scrollY,n=h.extend({$scroll_top:r},Wr);try{var o=B.body.scrollHeight,s=Math.round(r/(o-A.innerHeight)*100);if(n.$scroll_height=o,n.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var c=0;c<e.length;c++){var u=e[c];s>=u&&this.lastScrollCheckpoint<u&&(n.$scroll_checkpoint=u,this.lastScrollCheckpoint=u,a=!0)}}catch(l){te.critical("Error while calculating scroll percentage",l)}a&&this.mp.track(jg,n)}}).bind(this),i=kl(t);this.listenerScroll=i.listener,A.addEventListener(i.eventType,this.listenerScroll)}};fe.prototype.initSubmitTracking=function(){A.removeEventListener(Yi,this.listenerSubmit),this.getConfig(Va)&&(te.log("Initializing submit tracking"),this.listenerSubmit=(function(t){this.getConfig(Va)&&this.trackDomEvent(t,Hg)}).bind(this),A.addEventListener(Yi,this.listenerSubmit))};fe.prototype.initPageLeaveTracking=function(){if(B.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 t=h.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=B.body.scrollHeight}).bind(this),A.addEventListener(nc,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Vr((function(i){if(!this.currentUrlBlocked()){var a=h.info.currentUrl(),e=a!==t;e&&(this._trackPageLeave(i,t,this.previousScrollHeight),t=a,this.maxScrollViewDepth=Math.max(B.documentElement.clientHeight,A.innerHeight||0),this.previousScrollHeight=B.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),A.addEventListener(ot,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(i){B.hidden&&this._trackPageLeave(i,t,this.previousScrollHeight)}).bind(this),B.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 Ae=Lt("flags"),tn="flags",rn="context",za={};za[rn]={};var z=function(t){this.fetch=A.fetch,this.getFullApiRoute=t.getFullApiRoute,this.getMpConfig=t.getConfigFunc,this.setMpConfig=t.setConfigFunc,this.getMpProperty=t.getPropertyFunc,this.track=t.trackingFunc};z.prototype.init=function(){if(!this.minApisSupported()){Ae.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set};z.prototype.getFullConfig=function(){var t=this.getMpConfig(tn);return t?h.isObject(t)?h.extend({},za,t):za:{}};z.prototype.getConfig=function(t){return this.getFullConfig()[t]};z.prototype.isSystemEnabled=function(){return!!this.getMpConfig(tn)};z.prototype.updateContext=function(t,i){if(!this.isSystemEnabled())return Ae.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var a=this.getMpConfig(tn);h.isObject(a)||(a={});var e=i&&i.replace?{}:this.getConfig(rn);return a[rn]=h.extend({},e,t),this.setMpConfig(tn,a),this.fetchFlags()};z.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Ae.error("Feature Flags not enabled"),!!this.flags};z.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this.getMpProperty("distinct_id"),i=this.getMpProperty("$device_id"),a=Zm();Ae.log("Fetching flags for distinct ID: "+t);var e=h.extend({distinct_id:t,device_id:i},this.getConfig(rn)),r=new URLSearchParams;r.set("context",JSON.stringify(e)),r.set("token",this.getMpConfig("token")),r.set("mp_lib","web"),r.set("$lib_version",De.LIB_VERSION);var n=this.getFullApiRoute()+"?"+r.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(A,n,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:a}}).then((function(o){return this.markFetchComplete(),o.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(),Ae.error(s)}).bind(this))}).bind(this)).catch((function(o){this.markFetchComplete(),Ae.error(o)}).bind(this)),this.fetchPromise};z.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){Ae.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(t,i){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(t,i)}).bind(this)).catch(function(a){return Ae.error(a),i}):new Promise(function(a){Ae.critical("Feature Flags not initialized"),a(i)})};z.prototype.getVariantSync=function(t,i){if(!this.areFlagsReady())return Ae.log("Flags not loaded yet"),i;var a=this.flags.get(t);return a?(this.trackFeatureCheck(t,a),a):(Ae.log('No flag found: "'+t+'"'),i)};z.prototype.getVariantValue=function(t,i){return this.getVariant(t,{value:i}).then(function(a){return a.value}).catch(function(a){return Ae.error(a),i})};z.prototype.getFeatureData=function(t,i){return Ae.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(t,i)};z.prototype.getVariantValueSync=function(t,i){return this.getVariantSync(t,{value:i}).value};z.prototype.isEnabled=function(t,i){return this.getVariantValue(t).then((function(){return this.isEnabledSync(t,i)}).bind(this)).catch(function(a){return Ae.error(a),i})};z.prototype.isEnabledSync=function(t,i){i=i||!1;var a=this.getVariantValueSync(t,i);return a!==!0&&a!==!1&&(Ae.error('Feature flag "'+t+'" value: '+a+" is not a boolean; returning fallback value: "+i),a=i),a};z.prototype.trackFeatureCheck=function(t,i){if(!this.trackedFeatures.has(t)){this.trackedFeatures.add(t);var a={"Experiment name":t,"Variant name":i.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};i.experiment_id!=="undefined"&&(a.$experiment_id=i.experiment_id),i.is_experiment_active!=="undefined"&&(a.$is_experiment_active=i.is_experiment_active),i.is_qa_tester!=="undefined"&&(a.$is_qa_tester=i.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(t){return this.mp=t,this};rt.prototype.track=function(t,i,a,e){var r=this,n=h.dom_query(t);if(n.length===0){V.error("The DOM query ("+t+") returned 0 elements");return}return h.each(n,function(o){h.register_event(o,this.override_event,function(s){var c={},u=r.create_properties(a,this),l=r.mp.get_config("track_links_timeout");r.event_handler(s,this,c),window.setTimeout(r.track_callback(e,u,c,!0),l),r.mp.track(i,u,r.track_callback(e,u,c))})},this),!0};rt.prototype.track_callback=function(t,i,a,e){e=e||!1;var r=this;return function(){a.callback_fired||(a.callback_fired=!0,!(t&&t(e,i)===!1)&&r.after_track_handler(i,a,e))}};rt.prototype.create_properties=function(t,i){var a;return typeof t=="function"?a=t(i):a=h.extend({},t),a};var or=function(){this.override_event="click"};h.inherit(or,rt);or.prototype.create_properties=function(t,i){var a=or.superclass.create_properties.apply(this,arguments);return i.href&&(a.url=i.href),a};or.prototype.event_handler=function(t,i,a){a.new_tab=t.which===2||t.metaKey||t.ctrlKey||i.target==="_blank",a.href=i.href,a.new_tab||t.preventDefault()};or.prototype.after_track_handler=function(t,i){i.new_tab||setTimeout(function(){window.location=i.href},0)};var kn=function(){this.override_event="submit"};h.inherit(kn,rt);kn.prototype.event_handler=function(t,i,a){a.element=i,t.preventDefault()};kn.prototype.after_track_handler=function(t,i){setTimeout(function(){i.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(t,i){var a={},e={};return h.isObject(t)?h.each(t,function(r,n){this._is_reserved_property(n)||(e[n]=r)},this):e[t]=i,a[lt]=e,a},unset_action:function(t){var i={},a=[];return h.isArray(t)||(t=[t]),h.each(t,function(e){this._is_reserved_property(e)||a.push(e)},this),i[Ne]=a,i},set_once_action:function(t,i){var a={},e={};return h.isObject(t)?h.each(t,function(r,n){this._is_reserved_property(n)||(e[n]=r)},this):e[t]=i,a[sr]=e,a},union_action:function(t,i){var a={},e={};return h.isObject(t)?h.each(t,function(r,n){this._is_reserved_property(n)||(e[n]=h.isArray(r)?r:[r])},this):e[t]=h.isArray(i)?i:[i],a[xt]=e,a},append_action:function(t,i){var a={},e={};return h.isObject(t)?h.each(t,function(r,n){this._is_reserved_property(n)||(e[n]=r)},this):e[t]=i,a[We]=e,a},remove_action:function(t,i){var a={},e={};return h.isObject(t)?h.each(t,function(r,n){this._is_reserved_property(n)||(e[n]=r)},this):e[t]=i,a[Ye]=e,a},delete_action:function(){var t={};return t[Zg]="",t}},ne=function(){};h.extend(ne.prototype,ql);ne.prototype._init=function(t,i,a){this._mixpanel=t,this._group_key=i,this._group_id=a};ne.prototype.set=cr(function(t,i,a){var e=this.set_action(t,i);return h.isObject(t)&&(a=i),this._send_request(e,a)});ne.prototype.set_once=cr(function(t,i,a){var e=this.set_once_action(t,i);return h.isObject(t)&&(a=i),this._send_request(e,a)});ne.prototype.unset=cr(function(t,i){var a=this.unset_action(t);return this._send_request(a,i)});ne.prototype.union=cr(function(t,i,a){h.isObject(t)&&(a=i);var e=this.union_action(t,i);return this._send_request(e,a)});ne.prototype.delete=cr(function(t){var i=this.delete_action();return this._send_request(i,t)});ne.prototype.remove=cr(function(t,i,a){var e=this.remove_action(t,i);return this._send_request(e,a)});ne.prototype._send_request=function(t,i){t.$group_key=this._group_key,t.$group_id=this._group_id,t.$token=this._get_config("token");var a=h.encodeDates(t);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},i)};ne.prototype._is_reserved_property=function(t){return t==="$group_key"||t==="$group_id"};ne.prototype._get_config=function(t){return this._mixpanel.get_config(t)};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 N=function(){};h.extend(N.prototype,ql);N.prototype._init=function(t){this._mixpanel=t};N.prototype.set=vt(function(t,i,a){var e=this.set_action(t,i);return h.isObject(t)&&(a=i),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),e[lt]=h.extend({},h.info.people_properties(),e[lt]),this._send_request(e,a)});N.prototype.set_once=vt(function(t,i,a){var e=this.set_once_action(t,i);return h.isObject(t)&&(a=i),this._send_request(e,a)});N.prototype.unset=vt(function(t,i){var a=this.unset_action(t);return this._send_request(a,i)});N.prototype.increment=vt(function(t,i,a){var e={},r={};return h.isObject(t)?(h.each(t,function(n,o){if(!this._is_reserved_property(o))if(isNaN(parseFloat(n))){V.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[o]=n},this),a=i):(h.isUndefined(i)&&(i=1),r[t]=i),e[Ot]=r,this._send_request(e,a)});N.prototype.append=vt(function(t,i,a){h.isObject(t)&&(a=i);var e=this.append_action(t,i);return this._send_request(e,a)});N.prototype.remove=vt(function(t,i,a){h.isObject(t)&&(a=i);var e=this.remove_action(t,i);return this._send_request(e,a)});N.prototype.union=vt(function(t,i,a){h.isObject(t)&&(a=i);var e=this.union_action(t,i);return this._send_request(e,a)});N.prototype.track_charge=vt(function(){V.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")});N.prototype.clear_charges=function(t){return this.set("$transactions",[],t)};N.prototype.delete_user=function(){if(!this._identify_called()){V.error("mixpanel.people.delete_user() requires you to call identify() first");return}var t={$delete:this._mixpanel.get_distinct_id()};return this._send_request(t)};N.prototype.toString=function(){return this._mixpanel.toString()+".people"};N.prototype._send_request=function(t,i){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var a=this._mixpanel.get_property("$device_id"),e=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");a&&(t.$device_id=a),e&&(t.$user_id=e),r&&(t.$had_persisted_distinct_id=r);var n=h.encodeDates(t);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:n,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},i):(this._enqueue(t),h.isUndefined(i)||(this._get_config("verbose")?i({status:-1,error:null}):i(-1)),h.truncate(n,255))};N.prototype._get_config=function(t){return this._mixpanel.get_config(t)};N.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};N.prototype._enqueue=function(t){lt in t?this._mixpanel.persistence._add_to_people_queue(lt,t):sr in t?this._mixpanel.persistence._add_to_people_queue(sr,t):Ne in t?this._mixpanel.persistence._add_to_people_queue(Ne,t):Ot in t?this._mixpanel.persistence._add_to_people_queue(Ot,t):We in t?this._mixpanel.persistence._add_to_people_queue(We,t):Ye in t?this._mixpanel.persistence._add_to_people_queue(Ye,t):xt in t?this._mixpanel.persistence._add_to_people_queue(xt,t):V.error("Invalid call to _enqueue():",t)};N.prototype._flush_one_queue=function(t,i,a,e){var r=this,n=h.extend({},this._mixpanel.persistence.load_queue(t)),o=n;!h.isUndefined(n)&&h.isObject(n)&&!h.isEmptyObject(n)&&(r._mixpanel.persistence._pop_from_people_queue(t,n),r._mixpanel.persistence.save(),e&&(o=e(n)),i.call(r,o,function(s,c){s===0&&r._mixpanel.persistence._add_to_people_queue(t,n),h.isUndefined(a)||a(s,c)}))};N.prototype._flush=function(t,i,a,e,r,n,o){var s=this;this._flush_one_queue(lt,this.set,t),this._flush_one_queue(sr,this.set_once,e),this._flush_one_queue(Ne,this.unset,n,function(p){return h.keys(p)}),this._flush_one_queue(Ot,this.increment,i),this._flush_one_queue(xt,this.union,r);var c=this._mixpanel.persistence.load_queue(We);if(!h.isUndefined(c)&&h.isArray(c)&&c.length)for(var u,l=function(p,v){p===0&&s._mixpanel.persistence._add_to_people_queue(We,u),h.isUndefined(a)||a(p,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 m,_=function(p,v){p===0&&s._mixpanel.persistence._add_to_people_queue(Ye,m),h.isUndefined(o)||o(p,v)},g=f.length-1;g>=0;g--)f=this._mixpanel.persistence.load_queue(Ye),m=f.pop(),s._mixpanel.persistence.save(),h.isEmptyObject(m)||s.remove(m,_)};N.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"};N.prototype.set=N.prototype.set;N.prototype.set_once=N.prototype.set_once;N.prototype.unset=N.prototype.unset;N.prototype.increment=N.prototype.increment;N.prototype.append=N.prototype.append;N.prototype.remove=N.prototype.remove;N.prototype.union=N.prototype.union;N.prototype.track_charge=N.prototype.track_charge;N.prototype.clear_charges=N.prototype.clear_charges;N.prototype.delete_user=N.prototype.delete_user;N.prototype.toString=N.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(t){this.props={},this.campaign_params_saved=!1,t.persistence_name?this.name="mp_"+t.persistence_name:this.name="mp_"+t.token+"_mixpanel";var i=t.persistence;i!=="cookie"&&i!=="localStorage"&&(V.critical("Unknown persistence type "+i+"; falling back to cookie"),i=t.persistence="cookie"),i==="localStorage"&&h.localStorage.is_supported()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};U.prototype.properties=function(){var t={};return this.load(),h.each(this.props,function(i,a){h.include(Yg,a)||(t[a]=i)}),t};U.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=h.extend({},t))}};U.prototype.upgrade=function(){var t,i;this.storage===h.localStorage?(t=h.cookie.parse(this.name),h.cookie.remove(this.name),h.cookie.remove(this.name,!0),t&&this.register_once(t)):this.storage===h.cookie&&(i=h.localStorage.parse(this.name),h.localStorage.remove(this.name),i&&this.register_once(i))};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(t){return this.load(),this.props[t]};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(t,i,a){return h.isObject(t)?(typeof i>"u"&&(i="None"),this.expire_days=typeof a>"u"?this.default_expiry:a,this.load(),h.each(t,function(e,r){(!this.props.hasOwnProperty(r)||this.props[r]===i)&&(this.props[r]=e)},this),this.save(),!0):!1};U.prototype.register=function(t,i){return h.isObject(t)?(this.expire_days=typeof i>"u"?this.default_expiry:i,this.load(),h.extend(this.props,t),this.save(),!0):!1};U.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())};U.prototype.update_search_keyword=function(t){this.register(h.info.searchInfo(t))};U.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:h.info.referringDomain(t)||"$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(t){this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cookie_domain(t.cookie_domain),this.set_cross_site(t.cross_site_cookie),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie)};U.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()};U.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())};U.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())};U.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())};U.prototype.get_cross_subdomain=function(){return this.cross_subdomain};U.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())};U.prototype._add_to_people_queue=function(t,i){var a=this._get_queue_key(t),e=i[t],r=this._get_or_create_queue(lt),n=this._get_or_create_queue(sr),o=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(r,e),this._pop_from_people_queue(Ot,e),this._pop_from_people_queue(xt,e),this._pop_from_people_queue(Ne,e)):a===To?(h.each(e,function(d,f){f in n||(n[f]=d)}),this._pop_from_people_queue(Ne,e)):a===Ro?h.each(e,function(d){h.each([r,n,s,c],function(f){d in f&&delete f[d]}),h.each(l,function(f){d in f&&delete f[d]}),o[d]=!0}):a===Po?(h.each(e,function(d,f){f in r?r[f]+=d:(f in s||(s[f]=0),s[f]+=d)},this),this._pop_from_people_queue(Ne,e)):a===Oo?(h.each(e,function(d,f){h.isArray(d)&&(f in c||(c[f]=[]),h.each(d,function(m){h.include(c[f],m)||c[f].push(m)}))}),this._pop_from_people_queue(Ne,e)):a===Eo?(u.push(e),this._pop_from_people_queue(We,e)):a===Io&&(l.push(e),this._pop_from_people_queue(Ne,e)),V.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),V.log(i),this.save()};U.prototype._pop_from_people_queue=function(t,i){var a=this.props[this._get_queue_key(t)];h.isUndefined(a)||h.each(i,function(e,r){t===We||t===Ye?h.each(a,function(n){n[r]===e&&delete n[r]}):delete a[r]},this)};U.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))};U.prototype._get_queue_key=function(t){if(t===lt)return Ao;if(t===sr)return To;if(t===Ne)return Ro;if(t===Ot)return Po;if(t===We)return Io;if(t===Ye)return Eo;if(t===xt)return Oo;V.error("Invalid queue:",t)};U.prototype._get_or_create_queue=function(t,i){var a=this._get_queue_key(t);return i=h.isUndefined(i)?{}:i,this.props[a]||(this.props[a]=i)};U.prototype.set_event_timer=function(t,i){var a=this.load_prop(Gr)||{};a[t]=i,this.props[Gr]=a,this.save()};U.prototype.remove_event_timer=function(t){var i=this.load_prop(Gr)||{},a=i[t];return h.isUndefined(a)||(delete this.props[Gr][t],this.save()),a};var an,Gl=function(t,i){throw new Error(t+" not available in this build.")},ye,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,C=function(){},Wa=function(t,i,a){var e,r=a===Me?ye:ye[a];if(r&&an===qa)e=r;else{if(r&&!h.isArray(r)){V.error("You have already initialized "+a);return}e=new C}if(e._cached_groups={},e._init(t,i,a),e.people=new N,e.people._init(e),!e.get_config("skip_first_touch_marketing")){var n=h.info.campaignParams(null),o={},s=!1;h.each(n,function(u,l){o["initial_"+l]=u,u&&(s=!0)}),s&&e.people.set_once(o)}De.DEBUG=De.DEBUG||e.get_config("debug");var c=an===qa?"module":"snippet";return A.dispatchEvent(new A.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:e,source:c,token:t,name:a,info:h.info}})),!h.isUndefined(r)&&h.isArray(r)&&(e._execute_array.call(e.people,r.people),e._execute_array(r)),e};C.prototype.init=function(t,i,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 e=Wa(t,i,a);return ye[a]=e,e._loaded(),e};C.prototype._init=function(t,i,a){i=i||{},this.__loaded=!0,this.config={};var e={};if(!("api_payload_format"in i)){var r=i.api_host||hc.api_host;r.match(/\.mixpanel\.com/)&&(e.api_payload_format=Xg)}if(this.hooks={},this.set_config(h.extend({},hc,e,i,{name:a,token:t,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 n=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);A.addEventListener("pagehide",function(s){s.persisted&&n()}),A.addEventListener("visibilitychange",function(){B.visibilityState==="hidden"&&n()})}}this.persistence=this.cookie=new U(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=h.UUID();this.get_distinct_id()||this.register_once({distinct_id:xo+o,$device_id:o},""),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()};C.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 t=this.get_config("name")+"_"+this.get_config("token"),i="mp_tab_id_"+t,a="mp_gen_new_tab_id_"+t;(h.sessionStorage.get(a)||!h.sessionStorage.get(i))&&h.sessionStorage.set(i,"$tab-"+h.UUID()),h.sessionStorage.set(a,"1"),this.tab_id=h.sessionStorage.get(i),A.addEventListener("beforeunload",function(){h.sessionStorage.remove(a)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")};C.prototype.get_tab_id=function(){return this.tab_id||null};C.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 t=new Fe(vo),i=this.get_tab_id();return t.init().then(function(){return t.getAll()}).then(function(a){for(var e=0;e<a.length;e++)if(ko(a[e])||a[e].tabId===i)return!0;return!1}).catch(h.bind(function(a){this.report_error("Error checking recording registry",a)},this))};C.prototype._check_and_start_session_recording=gt(function(t){if(!A.MutationObserver){V.critical("Browser does not support MutationObserver; skipping session recording");return}var i=h.bind(function(e){var r=h.bind(function(){this._recorder=this._recorder||new A.__mp_recorder(this),this._recorder.resumeRecording(e)},this);h.isUndefined(A.__mp_recorder)?Gl(this.get_config("recorder_src"),r):r()},this),a=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");t||a?i(!0):this._should_load_recorder().then(function(e){e&&i(!1)})});C.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)};C.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()};C.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()};C.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()};C.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")};C.prototype.get_session_recording_properties=function(){var t={},i=this._get_session_replay_id();return i&&(t.$mp_replay_id=i),t};C.prototype.get_session_replay_url=function(){var t=null,i=this._get_session_replay_id();if(i){var a=h.HTTPBuildQuery({replay_id:i,distinct_id:this.get_distinct_id(),token:this.get_config("token")});t="https://mixpanel.com/projects/replay-redirect?"+a}return t};C.prototype._get_session_replay_id=function(){var t=null;return this._recorder&&(t=this._recorder.replayId),t||null};C.prototype.__get_recorder=function(){return this._recorder};C.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 t=h.info.campaignParams(null);h.each(t,(function(i,a){this.unregister(a)}).bind(this))}};C.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(B.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(B.referrer)};C.prototype._dom_loaded=function(){h.each(this.__dom_loaded_queue,function(t){this._track_dom.apply(this,t)},this),this.has_opted_out_tracking()||h.each(this.__request_queue,function(t){this._send_request.apply(this,t)},this),delete this.__dom_loaded_queue,delete this.__request_queue};C.prototype._track_dom=function(t,i){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([t,i]),!1;var a=new t().init(this);return a.track.apply(a,i)};C.prototype._prepare_callback=function(t,i){if(h.isUndefined(t))return null;if(Kt){var a=function(o){t(o,i)};return a}else{var e=this._jsc,r=""+Math.floor(Math.random()*1e8),n=this.get_config("callback_fn")+"["+r+"]";return e[r]=function(o){delete e[r],t(o,i)},n}};C.prototype._send_request=function(t,i,a,e){var r=!0;if(Hl)return this.__request_queue.push(arguments),r;var n={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},o=null;!e&&(h.isFunction(a)||typeof a=="string")&&(e=a,a=null),a=h.extend(n,a||{}),Kt||(a.method="GET");var s=a.method==="POST",c=on&&s&&a.transport.toLowerCase()==="sendbeacon",u=a.verbose;i.verbose&&(u=!0),this.get_config("test")&&(i.test=1),u&&(i.verbose=1),this.get_config("img")&&(i.img=1),Kt||(e?i.callback=e:(u||this.get_config("test"))&&(i.callback="(function(){})")),i.ip=this.get_config("ip")?1:0,i._=new Date().getTime().toString(),s&&(o="data="+encodeURIComponent(i.data),delete i.data),h.extend(i,this.get_config("api_extra_query_params")),t+="?"+h.HTTPBuildQuery(i);var l=this;if("img"in i){var d=B.createElement("img");d.src=t,B.body.appendChild(d)}else if(c){try{r=on(t,o)}catch(v){l.report_error(v),r=!1}try{e&&e(r?1:0)}catch(v){l.report_error(v)}}else if(Kt)try{var f=new XMLHttpRequest;f.open(a.method,t,!0);var m=this.get_config("xhr_headers");if(s&&(m["Content-Type"]="application/x-www-form-urlencoded"),h.each(m,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(e)if(u){var v;try{v=h.JSONDecode(f.responseText)}catch(k){if(l.report_error(k),a.ignore_json_errors)v=f.responseText;else return}e(v)}else e(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),e)if(u){var b=f.responseHeaders||{};e({status:0,httpStatusCode:f.status,error:y,retryAfter:b["Retry-After"]})}else e(0)}},f.send(o)}catch(v){l.report_error(v),r=!1}else{var g=B.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=t;var p=B.getElementsByTagName("script")[0];p.parentNode.insertBefore(g,p)}return r};C.prototype._execute_array=function(t){var i,a=[],e=[],r=[];h.each(t,function(o){o&&(i=o[0],h.isArray(i)?r.push(o):typeof o=="function"?o.call(this):h.isArray(o)&&i==="alias"?a.push(o):h.isArray(o)&&i.indexOf("track")!==-1&&typeof this[i]=="function"?r.push(o):e.push(o))},this);var n=function(o,s){h.each(o,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)};n(a,this),n(e,this),n(r,this)};C.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};C.prototype.get_batcher_configs=function(){var t="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:t+"_ev"},people:{type:"people",api_name:"engage",queue_key:t+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:t+"_gr"}},this._batcher_configs};C.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var t=h.bind(function(a){return new Be(a.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(e,r,n){var o=this.get_config("api_routes");this._send_request(this.get_api_host(a.api_name)+"/"+o[a.api_name],this._encode_data_for_request(e),r,this._prepare_callback(n,e))},this),beforeSendHook:h.bind(function(e){var r=this._run_hook("before_send_"+a.type,e);return r?r[0]:null},this),stopAllBatchingFunc:h.bind(this.stop_batch_senders,this),usePersistence:!0})},this),i=this.get_batcher_configs();this.request_batchers={events:t(i.events),people:t(i.people),groups:t(i.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()};C.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,h.each(this.request_batchers,function(t){t.start()}))};C.prototype.stop_batch_senders=function(){this._batch_requests=!1,h.each(this.request_batchers,function(t){t.stop(),t.clear()})};C.prototype.push=function(t){this._execute_array([t])};C.prototype.disable=function(t){typeof t>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)};C.prototype._encode_data_for_request=function(t){var i=ar(t);return this.get_config("api_payload_format")===jl&&(i=h.base64Encode(i)),{data:i}};C.prototype._track_or_batch=function(t,i){var a=h.truncate(t.data,255),e=t.endpoint,r=t.batcher,n=t.should_send_immediately,o=t.send_request_options||{};i=i||st;var s=!0,c=h.bind(function(){return o.skip_hooks||(a=this._run_hook("before_send_"+t.type,a),a&&(a=a[0])),a?(V.log("MIXPANEL REQUEST:"),V.log(a),this._send_request(e,this._encode_data_for_request(a),o,this._prepare_callback(i,a))):null},this);return this._batch_requests&&!n?r.enqueue(a).then(function(u){u?i(1,a):c()}):s=c(),s&&a};C.prototype.track=gt(function(t,i,a,e){var r;if(!(a&&a.skip_hooks)){if(r=this._run_hook("before_track",t,i),r===null)return;t=r[0],i=r[1]}!e&&typeof a=="function"&&(e=a,a=null),a=a||{};var n=a.transport;n&&(a.transport=n);var o=a.send_immediately;if(typeof e!="function"&&(e=st),h.isUndefined(t)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(t)){e(0);return}i=h.extend({},i),i.token=this.get_config("token");var s=this.persistence.remove_event_timer(t);if(!h.isUndefined(s)){var c=new Date().getTime()-s;i.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?h.info.marketingParams():{};i=h.extend({},h.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),i);var l=this.get_config("property_blacklist");h.isArray(l)?h.each(l,function(f){delete i[f]}):this.report_error("Invalid value for property_blacklist config: "+l);var d={event:t,properties:i};return r=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:o,send_request_options:a},e),r});C.prototype.set_group=gt(function(t,i,a){h.isArray(i)||(i=[i]);var e={};return e[t]=i,this.register(e),this.people.set(t,i,a)});C.prototype.add_group=gt(function(t,i,a){var e=this.get_property(t),r={};return e===void 0?(r[t]=[i],this.register(r)):e.indexOf(i)===-1&&(e.push(i),r[t]=e,this.register(r)),this.people.union(t,i,a)});C.prototype.remove_group=gt(function(t,i,a){var e=this.get_property(t);if(e!==void 0){var r=e.indexOf(i);r>-1&&(e.splice(r,1),this.register({group_key:e})),e.length===0&&this.unregister(t)}return this.people.remove(t,i,a)});C.prototype.track_with_groups=gt(function(t,i,a,e){var r=h.extend({},i||{});return h.each(a,function(n,o){n!=null&&(r[o]=n)}),this.track(t,r,e)});C.prototype._create_map_key=function(t,i){return t+"_"+JSON.stringify(i)};C.prototype._remove_group_from_cache=function(t,i){delete this._cached_groups[this._create_map_key(t,i)]};C.prototype.get_group=function(t,i){var a=this._create_map_key(t,i),e=this._cached_groups[a];return(e===void 0||e._group_key!==t||e._group_id!==i)&&(e=new ne,e._init(this,t,i),this._cached_groups[a]=e),e};C.prototype.track_pageview=gt(function(t,i){typeof t!="object"&&(t={}),i=i||{};var a=i.event_name||"$mp_web_page_view",e=h.extend(h.info.mpPageViewProperties(),h.info.campaignParams(),h.info.clickParams()),r=h.extend({},e,t);return this.track(a,r)});C.prototype.track_links=function(){return this._track_dom.call(this,or,arguments)};C.prototype.track_forms=function(){return this._track_dom.call(this,kn,arguments)};C.prototype.time_event=function(t){if(h.isUndefined(t)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(t)||this.persistence.set_event_timer(t,new Date().getTime())};var Qg={persistent:!0},Mo=function(t){var i;return h.isObject(t)?i=t:h.isUndefined(t)?i={}:i={days:t},h.extend({},Qg,i)};C.prototype.register=function(t,i){var a=this._run_hook("before_register",t,i);if(a!==null){t=a[0],i=a[1];var e=Mo(i);e.persistent?this.persistence.register(t,e.days):h.extend(this.unpersisted_superprops,t)}};C.prototype.register_once=function(t,i,a){var e=this._run_hook("before_register_once",t,i,a);if(e!==null){t=e[0],i=e[1],a=e[2];var r=Mo(a);r.persistent?this.persistence.register_once(t,i,r.days):(typeof i>"u"&&(i="None"),h.each(t,function(n,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===i)&&(this.unpersisted_superprops[o]=n)},this))}};C.prototype.unregister=function(t,i){var a=this._run_hook("before_unregister",t,i);a!==null&&(t=a[0],i=a[1],i=Mo(i),i.persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])};C.prototype._register_single=function(t,i){var a={};a[t]=i,this.register(a)};C.prototype.identify=function(t,i,a,e,r,n,o,s){var c=this._run_hook("before_identify",t);if(c===null)return-1;t=c[0];var u=this.get_distinct_id();if(t&&u!==t){if(typeof t=="string"&&t.indexOf(xo)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:t})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}t!==u&&t!==this.get_property(nn)&&(this.unregister(nn),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(i,a,e,r,n,o,s),t!==u&&this.track("$identify",{distinct_id:t,$anon_distinct_id:u},{skip_hooks:!0}),t!==u&&this.flags.fetchFlags()};C.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var t=h.UUID();this.register_once({distinct_id:xo+t,$device_id:t},""),this._check_and_start_session_recording()};C.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};C.prototype.alias=function(t,i){if(t===this.get_property(Wl))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var a=this;return h.isUndefined(i)&&(i=this.get_distinct_id()),t!==i?(this._register_single(nn,t),this.track("$create_alias",{alias:t,distinct_id:i},{skip_hooks:!0},function(){a.identify(t)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)};C.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)};C.prototype.set_config=function(t){if(h.isObject(t)){h.extend(this.config,t);var i=t.batch_size;i&&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 t||"record_heatmap_data"in t)&&this.autocapture&&this.autocapture.init(),h.isObject(t.hooks)&&(this.hooks={},h.each(t.hooks,function(a,e){if(h.isFunction(a))this.hooks[e]=[a];else if(h.isArray(a)){this.hooks[e]=[];for(var r=0;r<a.length;r++)h.isFunction(a[r])||V.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(a[r])}else V.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}};C.prototype.get_config=function(t){return this.config[t]};C.prototype._run_hook=function(t){var i=at.call(arguments,1);return h.each(this.hooks[t],function(a){if(i===null)return null;var e=a.apply(this,i);typeof e>"u"?(this.report_error(t+" hook did not return a valid value"),i=null):(h.isArray(e)||(e=[e]),i.splice.apply(i,[0,e.length].concat(e)))},this),i};C.prototype.get_property=function(t){return this.persistence.load_prop([t])};C.prototype.get_api_host=function(t){return this.get_config("api_hosts")[t]||this.get_config("api_host")};C.prototype.toString=function(){var t=this.get_config("name");return t!==Me&&(t=Me+"."+t),t};C.prototype._event_is_disabled=function(t){return h.isBlockedUA(ze)||this._flags.disable_all_events||h.include(this.__disabled_events,t)};C.prototype._gdpr_init=function(){var t=this.get_config("opt_out_tracking_persistence_type")==="localStorage";t&&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")}))};C.prototype._gdpr_update_persistence=function(t){var i;if(t&&t.clear_persistence)i=!0;else if(t&&t.enable_persistence)i=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==i&&this.persistence.set_disabled(i),i?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()};C.prototype._gdpr_call_func=function(t,i){return i=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")},i),h.localStorage.is_supported()||(i.persistence_type="cookie"),t(this.get_config("token"),{track:i.track,trackEventName:i.track_event_name,trackProperties:i.track_properties,persistenceType:i.persistence_type,persistencePrefix:i.cookie_prefix,cookieDomain:i.cookie_domain,cookieExpiration:i.cookie_expiration,crossSiteCookie:i.cross_site_cookie,crossSubdomainCookie:i.cross_subdomain_cookie,secureCookie:i.secure_cookie,ignoreDnt:i.ignore_dnt})};C.prototype.opt_in_tracking=function(t){t=h.extend({enable_persistence:!0},t),this._gdpr_call_func(ng,t),this._gdpr_update_persistence(t)};C.prototype.opt_out_tracking=function(t){t=h.extend({clear_persistence:!0,delete_user:!0},t),t.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(ag,t),this._gdpr_update_persistence(t)};C.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(og,t)};C.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func(_l,t)};C.prototype.clear_opt_in_out_tracking=function(t){t=h.extend({enable_persistence:!0},t),this._gdpr_call_func(sg,t),this._gdpr_update_persistence(t)};C.prototype.report_error=function(t,i){V.error.apply(V.error,arguments);try{!i&&!(t instanceof Error)&&(t=new Error(t)),this.get_config("error_reporter")(t,i)}catch(a){V.error(a)}};C.prototype.add_hook=function(t,i){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(i)};C.prototype.remove_hook=function(t,i){var a;this.hooks[t]&&(a=this.hooks[t].indexOf(i),a!==-1?this.hooks[t].splice(a,1):V.log("remove_hook failed. Matching hook was not found"))};C.prototype.init=C.prototype.init;C.prototype.reset=C.prototype.reset;C.prototype.disable=C.prototype.disable;C.prototype.time_event=C.prototype.time_event;C.prototype.track=C.prototype.track;C.prototype.track_links=C.prototype.track_links;C.prototype.track_forms=C.prototype.track_forms;C.prototype.track_pageview=C.prototype.track_pageview;C.prototype.register=C.prototype.register;C.prototype.register_once=C.prototype.register_once;C.prototype.unregister=C.prototype.unregister;C.prototype.identify=C.prototype.identify;C.prototype.alias=C.prototype.alias;C.prototype.name_tag=C.prototype.name_tag;C.prototype.set_config=C.prototype.set_config;C.prototype.get_config=C.prototype.get_config;C.prototype.get_api_host=C.prototype.get_api_host;C.prototype.get_property=C.prototype.get_property;C.prototype.get_distinct_id=C.prototype.get_distinct_id;C.prototype.toString=C.prototype.toString;C.prototype.opt_out_tracking=C.prototype.opt_out_tracking;C.prototype.opt_in_tracking=C.prototype.opt_in_tracking;C.prototype.has_opted_out_tracking=C.prototype.has_opted_out_tracking;C.prototype.has_opted_in_tracking=C.prototype.has_opted_in_tracking;C.prototype.clear_opt_in_out_tracking=C.prototype.clear_opt_in_out_tracking;C.prototype.get_group=C.prototype.get_group;C.prototype.set_group=C.prototype.set_group;C.prototype.add_group=C.prototype.add_group;C.prototype.remove_group=C.prototype.remove_group;C.prototype.add_hook=C.prototype.add_hook;C.prototype.remove_hook=C.prototype.remove_hook;C.prototype.track_with_groups=C.prototype.track_with_groups;C.prototype.start_batch_senders=C.prototype.start_batch_senders;C.prototype.stop_batch_senders=C.prototype.stop_batch_senders;C.prototype.start_session_recording=C.prototype.start_session_recording;C.prototype.stop_session_recording=C.prototype.stop_session_recording;C.prototype.pause_session_recording=C.prototype.pause_session_recording;C.prototype.resume_session_recording=C.prototype.resume_session_recording;C.prototype.get_session_recording_properties=C.prototype.get_session_recording_properties;C.prototype.get_session_replay_url=C.prototype.get_session_replay_url;C.prototype.get_tab_id=C.prototype.get_tab_id;C.prototype.DEFAULT_API_ROUTES=Jl;C.prototype.__get_recorder=C.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(t,i){i!==Me&&(ye[i]=t)}),ye._=h},tv=function(){ye.init=function(t,i,a){if(a)return ye[a]||(ye[a]=Zt[a]=Wa(t,i,a),ye[a]._loaded()),ye[a];var e=ye;Zt[Me]?e=Zt[Me]:t&&(e=Wa(t,i,Me),e._loaded(),Zt[Me]=e),ye=e,an===Kg&&(A[Me]=ye),ev()}},rv=function(){function t(){t.done||(t.done=!0,Zl=!0,Hl=!1,h.each(Zt,function(e){e._dom_loaded()}))}function i(){try{B.documentElement.doScroll("left")}catch{setTimeout(i,1);return}t()}if(B.addEventListener)B.readyState==="complete"?t():B.addEventListener("DOMContentLoaded",t,!1);else if(B.attachEvent){B.attachEvent("onreadystatechange",t);var a=!1;try{a=A.frameElement===null}catch{}B.documentElement.doScroll&&a&&i()}h.register_event(A,"load",t,!0)};function iv(t){return Gl=t,an=qa,ye=new C,tv(),ye.init(),rv(),ye}function nv(t,i){i()}var cv=iv(nv);export{cv as m,sv as r};
|