@zeniai/web-cockpit-ui 2.2.15-dev → 2.2.16-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{CreditAgentRoutes-C0AiMUMv.js → CreditAgentRoutes-DeCvXHj2.js} +1 -1
- package/dist/assets/{Preview-ihmx96DR.js → Preview-BBAG_kxH.js} +1 -1
- package/dist/assets/{ScreenRoutes-Cp8g4m9p.js → ScreenRoutes-DwpWcWOe.js} +42 -42
- package/dist/assets/{SignInScreen-BNopGoqF.js → SignInScreen-1-bc7aBf.js} +1 -1
- package/dist/assets/analytics-C3CbLUFs.js +68 -0
- package/dist/assets/{analyticsHelper-Buh_PLBw.js → analyticsHelper-CVo0BXU_.js} +1 -1
- package/dist/assets/{core--sq_KOYY.js → core-zE-4Urs9.js} +1 -1
- package/dist/assets/{dash.all.min-B7GMmL-L.js → dash.all.min-CHdql9IC.js} +1 -1
- package/dist/assets/{empty-By4ex-GK.js → empty-BAzk1u38.js} +1 -1
- package/dist/assets/{empty-BETASsbf.js → empty-cBKhQyao.js} +1 -1
- package/dist/assets/{epic-C36KHu6w.js → epic-Cfcjgd4g.js} +1 -1
- package/dist/assets/{index-Dmu3xKK_.js → index-BbcO_I5e.js} +2 -2
- package/dist/assets/{index-BGMjRbAa.js → index-BgNHA7pd.js} +1 -1
- package/dist/assets/{index-NXSIkJTk.js → index-CHTLriEc.js} +1 -1
- package/dist/assets/{index-Chwxpeec.js → index-DVDhe6Ox.js} +1 -1
- package/dist/assets/{index-BzzVu0Vq.js → index-D_HX1PXt.js} +1 -1
- package/dist/assets/{index-CexSOWGh.js → index-DpeFF2UP.js} +3207 -3207
- package/dist/assets/{index--6bcBS5v.js → index-mV-K9vOp.js} +1 -1
- package/dist/assets/{lexical-BjoDWCKn.js → lexical-Cp5ytbbV.js} +1 -1
- package/dist/assets/{liveblocks-Dq-3G9Ov.js → liveblocks-zl-P6B9w.js} +1 -1
- package/dist/assets/{lottie-BwIAhUUa.js → lottie-CvTGUdeN.js} +1 -1
- package/dist/assets/{mui-CMZ_7prp.js → mui-52aep8im.js} +1 -1
- package/dist/assets/{react-CwoSad1v.js → react-BVF4dJr-.js} +1 -1
- package/dist/assets/{react-DNNkMVNG.js → react-BagS0TOW.js} +1 -1
- package/dist/assets/{react-Dc8vQ9ZE.js → react-BuH4YK3q.js} +2 -2
- package/dist/assets/{react--plkVsQQ.js → react-CSm_iOyR.js} +1 -1
- package/dist/assets/{react-BUd-XUek.js → react-CUhWvJii.js} +1 -1
- package/dist/assets/{react-CAbDFArY.js → react-Co08tM_8.js} +1 -1
- package/dist/assets/{react-zTNx69No.js → react-DQS-GOGA.js} +1 -1
- package/dist/assets/{react-9VygPJCw.js → react-ZZwVyzS9.js} +1 -1
- package/dist/assets/{recharts-BXOpQ8pX.js → recharts-CR9pSNwN.js} +1 -1
- package/dist/assets/{sentry-DJq-9uF3.js → sentry-C57tYRao.js} +1 -1
- package/dist/assets/{url-B0fuLM3O.js → url-C_g5zgZt.js} +1 -1
- package/dist/assets/url-DRTu5sBB.js +6 -0
- package/dist/assets/{utils-ezsICnxl.js → utils-k9ogT3EH.js} +2 -2
- package/dist/assets/{zeni-epic-state-BD4IbcS7.js → zeni-epic-state-B21jt7ya.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/analytics-B-AAvktw.js +0 -68
- package/dist/assets/url-DvJdynft.js +0 -6
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import"./sentry-DJq-9uF3.js";import{H as ct}from"./zeni-epic-state-BD4IbcS7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cae88eb0-6b99-4f48-8f87-b3e8d411c84d",e._sentryDebugIdIdentifier="sentry-dbid-cae88eb0-6b99-4f48-8f87-b3e8d411c84d")}catch{}})();var Tn={},_r={},Pt={},$o;function pc(){if($o)return Pt;$o=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.EVENTS_WITHOUT_SUPER_PROPERTIES=Pt.Event=void 0;var e;return(function(t){t.dashboard="Dashboard",t.cashBalance="Cash Balance",t.cardBalance="Card Balance",t.cashPosition="Cash Position",t.revenues="Revenues",t.operatingExpenses="Operating Expenses",t.topExpenses="Top Expenses",t.burnRate="Burn Rate",t.cashInCashOut="Cash In, Cash Out",t.howItWorks="How It Works",t.insights="Insights",t.brexAd="Brex Ad",t.companyPassport="Company Passport",t.addAddress="Add Address",t.editAddress="Edit Address",t.saveAddressClicked="Save Address Clicked",t.reports="Reports",t.profitAndLoss="Profit & Loss",t.balanceSheet="Balance Sheet",t.cashFlow="Cash Flow",t.profitAndLossWithForecast="Profit & Loss with Forecast",t.balanceSheetWithForecast="Balance Sheet with Forecast",t.cashFlowWithForecast="Cash Flow with Forecast",t.sidePanelClicked="Side Panel Clicked",t.transactionList="Transaction List",t.transactionDetails="Transaction Details",t.transactionDetailsSave="Transaction Details Save",t.transactionTypeUpdateTriggered="Transaction Type Update Triggered",t.transactionDetailReceiptOpened="Transaction Details Receipt Opened",t.transactionDetailReceiptDeleted="Attachment Deleted",t.transactionDetailReceiptAdded="Transaction Details Receipt Added",t.compareMode="Compare Mode",t.compareFilterChange="Compare Filter Change",t.compareFilterTimeframe="Compare Filter Timeframe",t.dateRangeFilter="Date Range Filter",t.timeframeSwitch="Timeframe Switch",t.graphBar="Graph Bar",t.cardStatementCloseDateClicked="Card Statement Close Date Clicked",t.cardStatementCloseDateSaved="Card Statement Close Date Saved",t.forecast="Forecast",t.forecastSwitch="Forecast Switch",t.forecastVsActualMode="Forecast vs Actual Mode",t.members="Members",t.inviteSent="Invite Sent",t.roleChanged="Role Changed",t.removeUserAccess="Remove User Access",t.resendInvite="Resend Invite",t.companySwitch="Company Switch",t.download="Download",t.sort="Sort",t.incomeTrend="Income Trend",t.spendTrend="Spend Trend",t.search="Search",t.login="Login",t.loginButton="Login Button",t.signInClick="Sign In click",t.signInViaGoogleMicrosoft="Sign In Via Google Microsoft",t.signInViaEmail="Sign In Via Email",t.signInLinkSent="Sign In Link Sent",t.loginSuccess="Login Success",t.loginFailure="Login Fail",t.logoutButton="Logout Button",t.logoutSuccess="Logout Success",t.logoutFailure="Logout Fail",t.sessionTimeoutPopupShown="Session Timeout Popup Shown",t.sessionTimeoutClicked="Session Timeout Clicked",t.sessionTimeoutAutoLogout="Session Timeout Auto Logout",t.reportGenerated="Report Generated",t.aiCFOPage="AI CFO Page",t.aiCFOChatScreenStateChanged="AI CFO Chat Screen State Changed",t.aiCFOChatSessionChanged="AI CFO Chat Session Changed",t.aiCFOChatSubmitted="AI CFO Chat Submitted",t.aiCFOChatFeedbackGiven="AI CFO Chat Feedback Given",t.aiCFOChatResponseGenerated="AI CFO Chat Response Generated",t.aiCFOChatAnswerGenerated="AI CFO Chat Answer Generated",t.aiCFOOnboardingScreenStateChanged="AI CFO Onboarding Screen State Changed",t.onboardingLinkClicked="Onboarding Invite Link Click",t.onboardingNeedHelp="Onboarding Need Help",t.onboardingInterimNeedHelp="Onboarding Interim Page Need Help",t.onboardingLandingNeedHelp="Onboarding Landing Page Need Help",t.onboardingPage="Onboarding Page",t.onboardingInterimPage="Onboarding Interim Page",t.onboardingLandingPage="Onboarding Landing Page",t.onboardingQBOConnect="Onboarding QBO Connect Clicked",t.onboardingSaveQBOConnection="Onboarding Save QBO Connection",t.onboardingClickUpdatePaymentDetails="Onboarding Landing Page Update Payment Details",t.onboardingSkipAndSave="Onboarding skip (save details if any) and activate dashboard",t.onboardingCompanyOfficerSave="Onboarding Company Officer Save",t.onboardingCompanyDetailsSave="Onboarding Company Details Save",t.onboardingBusinessVerificationCompleted="Onboarding Business Verification Completed",t.onboardingDashboardActivation="Onboarding Dashboard Activation",t.onboardingAiFinanceTeamAcknowledged="Onboarding AI Finance Team Acknowledged",t.onboardingAiFinanceTeamViewed="Onboarding AI Finance Team Viewed",t.onboardingQBOConnectionSuccess="Onboarding QBO Connection Success",t.onboardingQBOConnectionFailed="Onboarding QBO Connection Failed",t.onboardingAddressClicked="Onboarding Address Clicked",t.onboardingDocumentUploaded="Onboarding Document Uploaded",t.onboardingPhoneVerified="Onboarding Phone Verified",t.onboardingStepSkipped="Onboarding Step Skipped",t.onboardingFlowExited="Onboarding Flow Exited",t.onboardingButtonClicked="Onboarding Button Clicked",t.onboardingConnectBank="Onboarding Connect Bank",t.onboardingConnectBankSuccess="Onboarding Connect Bank Success",t.onboardingConnectBankFailure="Onboarding Connect Bank Failure",t.onboardingConnectBankLink="Onboarding Connect Bank Link",t.onboardingConnectBankGetBalance="Onboarding Connect Bank Get Balance",t.onboardingBankConnectAbandoned="Onboarding Bank Connect Abandoned",t.onboardingNewCustomerStarted="Onboarding New Customer Started",t.onboardingNewCustomerGroupCreationCheck="Onboarding New Customer Group Creation Check",t.onboardingZeniManagedQBOConnectionSelected="Onboarding Zeni Managed QBO Connection Selected",t.onboardingCustomerManagedQBOConnectionSelected="Onboarding Customer Managed Connection QBO Selected",t.onboardingZeniManagedQBOConnectionSuccess="Onboarding Zeni Managed QBO Connection Successful",t.onboardingZeniManagedQBOConnectionUnsuccess="Onboarding Zeni Managed QBO Connection Unsuccessful",t.onboardingSendInvite="Onboarding Send Invite",t.onboardingResendInvite="Onboarding Resend Invite",t.onboardingSave="Onboarding Save",t.onboardingBillingAddress="Onboarding Billing Address Clicked",t.onboardingBillingAddressSave="Onboarding Billing Address Save",t.onboardingNext="Onboarding Next",t.onboardingBack="Onboarding Back",t.onboardingActiveStep="Onboarding Active Step",t.onboardingLinkBankAccount="Onboarding Link A Bank Account",t.onboardingLinkBankAccountSuccess="Onboarding Link A Bank Account Success",t.onboardingLinkBankAccountFailure="Onboarding Link A Bank Account Failure",t.onboardingLinkANewBankAccount="Onboarding Link A New Bank Account",t.onboardingLinkANewBankAccountSuccess="Onboarding Link A New Bank Account Success",t.onboardingLinkANewBankAccountFailure="Onboarding Link A New Bank Account Failure",t.onboardingLinkCreditCard="Onboarding Link Credit Card",t.onboardingLinkCreditCardSuccess="Onboarding Link Credit Card Success",t.onboardingLinkCreditCardFailure="Onboarding Link Credit Card Failure",t.onboardingLinkNewCard="Onboarding Link a New Credit Card",t.onboardingLinkNewCardSuccess="Onboarding Link a New Credit Card Success",t.onboardingLinkNewCardFailure="Onboarding Link a New Credit Card Failure",t.onboardingBankAccountPendingVerification="Onboarding Bank Account Pending Verification",t.onboardingBankAccountVerified="Onboarding Bank Account Verified",t.onboardingSwitchToBankAccount="Onboarding Switch To Bank Account",t.onboardingSwitchToBankAccountSuccess="Onboarding Switch To Bank Account Success",t.onboardingSwitchToBankAccountFailure="Onboarding Switch To Bank Account Failure",t.onboardingSwitchToCreditCard="Onboarding Switch To Credit Card",t.onboardingSwitchToCreditCardSuccess="Onboarding Switch To Credit Card Success",t.onboardingSwitchToCreditCardFailure="Onboarding Switch To Credit Card Failure",t.onboardingInterimCardClick="Onboarding Interim Page Card Click",t.onboardingLandingPageCardClick="Onboarding Landing Page Card Click",t.billingLinkNewBankAccount="Billing Link a New Bank Account",t.billingLinkNewBankAccountSuccess="Billing Link a New Bank Account Success",t.billingLinkNewBankAccountFailure="Billing Link a New Bank Account Failure",t.billingSwitchToCreditCard="Billing Switch To Credit Card",t.billingSwitchToCreditCardSuccess="Billing Switch To Credit Card Success",t.billingSwitchToCreditCardFailure="Billing Switch To Credit Card Failure",t.billingSwitchToBankAccount="Billing Switch To Bank Account",t.billingSwitchToBankAccountSuccess="Billing Switch To Bank Account Success",t.billingSwitchToBankAccountFailure="Billing Switch To Bank Account Failure",t.billingLinkNewCard="Billing Link a New Card",t.billingLinkNewCardSuccess="Billing Link a New Card Success",t.billingLinkNewCardFailure="Billing Link a New Card Failure",t.billPayHome="Bill Pay Home",t.billPaySetup="Bill Pay Setup",t.billPayPromoPage="Bill Pay Promo",t.billPayNeedHelp="Bill Pay Need Help",t.billPayBusinessVerification="Bill Pay Business Verification",t.billPayBusinessVerificationSave="Bill Pay Business Verification Save",t.billPayBusinessVerificationSend="Bill Pay Business Verification Send",t.billPayBusinessVerificationAddOfficer="Bill Pay Business Verification Add Officer",t.billPayConnectBank="Bill Pay Connect Bank",t.billPayConnectBankSuccess="Bill Pay Connect Bank Success",t.billPayConnectBankFailure="Bill Pay Connect Bank Failure",t.billPayConnectBankLink="Bill Pay Connect Bank Link",t.billPayConnectBankGetBalance="Bill Pay Connect Bank Get Balance",t.enableBillPay="Enable Bill Pay",t.billPayDrafts="Bill Pay Drafts",t.billPayDraftsOverdue="Bill Pay Drafts Overdue",t.billPayApprovals="Bill Pay Approvals",t.billPayApprovalsAwaitingApproval="Bill Pay Approvals Awaiting Approval",t.billPayApprovalsAwaitingMyApproval="Bill Pay Approvals Awaiting My Approval",t.billPayApprovalsOverdue="Bill Pay Approvals Overdue",t.billPayApprovalsRejected="Bill Pay Approvals Rejected",t.billPayApprovalsDeleted="Bill Pay Approvals Deleted",t.billPayScheduled="Bill Pay Scheduled",t.billPayScheduledFailed="Bill Pay Scheduled Failed",t.billPayScheduledCancelled="Bill Pay Scheduled Cancelled",t.billPayScheduledDeleted="Bill Pay Scheduled Deleted",t.billPayPaid="Bill Pay Paid",t.billPayPaidACH="Bill Pay Paid ACH",t.billPayPaidWire="Bill Pay Paid Wire",t.billPayPaidDeleted="Bill Pay Paid Deleted",t.billPayPaidOffline="Bill Pay Paid Offline",t.billPayNewBill="Bill Pay New Bill",t.billPayInvoiceUpload="Bill Pay Invoice Upload",t.billPaySkipAutofill="Bill Pay Skip Autofill",t.billPayInvoiceActionClick="Bill Pay Invoice Action Click",t.billPayBillDetails="Bill Pay Bill Details",t.billPayEditBill="Bill Pay Edit Bill",t.billPayDeleteBill="Bill Pay Delete Bill",t.billPayCancelBill="Bill Pay Cancel Bill",t.billPayCancelAndDeleteBill="Bill Pay Cancel And Delete Bill",t.billPayReviewBill="Bill Pay Review Bill",t.billPaySendForApproval="Bill Pay Send For Approval",t.billPayMagicLinkPreviewEmail="Bill Pay MagicLink Preview Email",t.billPayMagicLinkPageLoad="Bill Pay MagicLink Page Load",t.billPayMagicLinkSubmitBankAccountDetails="Bill Pay MagicLink Submit Bank Account Details",t.billPayFilterClick="Bill Pay Filter Click",t.billPayFilterChange="Bill Pay Filter Change",t.billPayDownloadClick="Bill Pay Download Click",t.billPayNewVendor="Bill Pay New Vendor",t.billPayEditVendor="Bill Pay Edit Vendor",t.billPayExpandVendor="Bill Pay Expand Vendor",t.billPayChooseNewVendor="Bill Pay Choose New Vendor",t.billPayCreateNewVendorFromDropdown="Bill Pay Create New Vendor From Dropdown",t.billPayAutoDateChange="Book Close - Auto Date Change",t.billPayPrivacyPolicy="Bill Pay Privacy Policy",t.billPayAgreement="Bill Pay Agreement",t.billPayPromoSchedule="Bill Pay Schedule Demo",t.billPayPromoVideo="Bill Pay Promo Video",t.billPayTaskCard="Bill Pay Task Card",t.billPayCard="Bill Pay Card",t.enableIntlWire="Enable International Wire",t.submitIntlWire="International Wire Submit",t.intlWirePaymentMethod="International Wire Payment Method",t.zeniAssistClick="Zeni Assist Click",t.retryClick="Retry Click",t.retryConfirmClick="Retry Confirm Click",t.refundClick="Refund Click",t.refundConfirmClick="Refund Confirm Click",t.billPayBulkSelectAll="Bill Pay Bulk Select All",t.billPayBulkDeleted="Bill Pay Bulk Deleted",t.billPayBulkSubmit="Bill Pay Bulk Submit",t.billPayBulkSelection="Bill Pay Bulk Selection",t.billPayBulkPopupConfirm="Bill Pay Bulk Popup Confirm",t.billPayMarkAsPaid="Mark As Paid",t.billPayMarkAsPaidSubmit="Mark As Paid Submit",t.lowBalanceAccountSelected="Low Balance Account Selected",t.lowBalanceAccountSentForApproval="Low Balance Account Sent for Approval",t.lowBalanceAccountApprove="Low Balance Account Approve",t.lowBalanceAccountReject="Low Balance Account Reject",t.lowBalanceAccountChange="Low Balance Account Change",t.lowBalanceAccountSchedule="Low Balance Account Schedule",t.cockpitTabClicked="Cockpit Tab Clicked",t.cockpitHealthMonitorRowClicked="Cockpit Health Monitor Row Clicked",t.cockpitHealthMonitorChurnFormClicked="Cockpit Health Monitor Churn Form Click",t.cockpitHealthMonitorNotificationAlertClicked="Cockpit Health Monitor Notification Alert Clicked",t.reimbursementHome="Reimbursement Home",t.reimbursementSetup="Reimbursement Setup",t.reimbursementPromoPage="Reimbursement Promo",t.reimbursementTaskCard="Reimbursement Task Card",t.reimbursementFilterClick="Reimbursement Filter Click",t.reimbursementFilterChange="Reimbursement Filter Change",t.reimbursementDownloadClick="Reimbursement Download Click",t.reimbursementBulkSelectAll="Reimbursement Bulk Select All",t.reimbursementBulkDeleted="Reimbursement Bulk Deleted",t.reimbursementBulkSubmit="Reimbursement Bulk Submit",t.reimbursementBulkSelection="Reimbursement Bulk Selection",t.reimbursementBulkPopupConfirm="Reimbursement Bulk Popup Confirm",t.accountsListPageViewed="Accounts List Page Viewed",t.zeniAccountsSetup="Zeni Accounts Setup",t.accountsPromoPageViewed="Accounts Promo Page Viewed",t.zeniAccountsPromoCardClick="Zeni Accounts Promo Card Click",t.zeniAccountsCashBalancePromoClicked="Zeni Accounts Cash Balance Promo Clicked",t.zeniAccountsNeedHelp="Zeni Accounts Need Help",t.zeniAccountsBusinessVerification="Zeni Accounts Business Verification",t.zeniAccountsBusinessVerificationSave="Zeni Accounts Business Verification Save",t.zeniAccountsBusinessVerificationSend="Zeni Accounts Business Verification Send",t.plgPromoActionTaken="Promo Action Taken",t.cardsPromoPage="Cards Promo Page Viewed",t.cardsPromoPageClick="Cards Promo Page Clicked",t.cardsListPage="Cards List Page Viewed",t.cardsListPageClick="Cards List Page Clicked",t.cardsIssueNewCardFormClick="Issue New Card Form Clicked",t.cardsListRowClick="Cards List Row Clicked",t.cardsDetailPage="Cards Detail Page Viewed",t.cardsDetailPageClick="Cards Detail Page Clicked",t.cardsVerifyPopUpClick="Cards Verify Pop-Up Clicked",t.cardsSetupVisited="Cards Setup Page Visited",t.cardsPromoView="Cards Promo View",t.cardsSetupCardsClick="Cards Set Up Cards Click",t.cardsEnableCardsClick="Cards Enable Cards Click",t.cardsScheduleDemoClick="Cards Schedule Demo Click",t.cardsCardListView="Cards Card List View",t.cardsCardListSearchClick="Cards Card List Search Click",t.cardsCardListMoreMenuClick="Cards Card List More Menu Click",t.cardsSettingsClick="Cards Settings Click",t.cardsCardSetupView="Cards Card Setup View",t.cardsVerifyIdentityCompanyDetailsClick="Cards Verify Identity & Company Details Click",t.cardsPaymentAccountChangeClick="Cards Payment Account Change Click",t.cardsZeniCashAccountChangeClick="Cards Zeni Cash Account Change Click",t.cardsStatementsClick="Cards Statements Click",t.cardsCreditCardStatementsView="Cards Credit Card Statements View",t.cardsDownloadClick="Cards Download Click",t.cardsNewCardClick="Cards New Card Click",t.cardsCashbackOverviewClick="Cards Cashback Overview Click",t.cardsCardListRowClick="Cards Card List Row Click",t.cardsCopyIconClick="Cards Copy Icon Click",t.cardsCardListSortClick="Cards Card List Sort Click",t.cardsCardDetailView="Cards Card Detail View",t.cardsUpdateSpendLimitInitiated="Cards Update Spend Limit Initiated",t.cardsUpdateSpendLimitClick="Cards Update Spend Limit Click",t.cardsAddToWalletClick="Cards Add to Wallet Click",t.cardsNeedHelp="Cards Need Help",t.cardsBusinessVerification="Cards Business Verification",t.cardsBusinessVerificationSave="Cards Business Verification Save",t.cardsBusinessVerificationSend="Cards Business Verification Send",t.cardsConnectBank="Cards Connect Bank",t.cardsConnectBankSuccess="Cards Connect Bank Success",t.cardsConnectBankFailure="Cards Connect Bank Failure",t.cardsConnectBankGetBalance="Cards Connect Bank Get Balance",t.cardsConnectBankLink="Cards Connect Bank Link",t.zeniCardsPromoCardClicked="Zeni Cards Promo Card Click",t.cardsPayEarlyClick="Cards Pay Early Click",t.cardsPayEarlyFormView="Cards Pay Early Form View",t.cardsPayEarlyFormClick="Cards Pay Early Form Click",t.cardsPayEarlyPayNowClick="Cards Pay Early Pay Now Click",t.accountsListPageClicked="Accounts List Page Clicked",t.zeniAccountsTransferFormViewed="Transfer Between Accounts Form Viewed",t.zeniAccountsTransferFormClicked="Transfer Between Accounts Form Clicked",t.accountsDepositCheckFormViewed="Accounts Deposit Check Form Viewed",t.accountsDepositCheckFormClicked="Accounts Deposit Check Form Clicked",t.accountsPromoPageClicked="Accounts Promo Page Clicked",t.zeniAccountsSettingPageVisited="Zeni Accounts Setting Page Visited",t.zeniAccountsConnectBank="Zeni Accounts Connect Bank",t.zeniAccountsConnectBankSuccess="Zeni Accounts Connect Bank Success",t.zeniAccountsConnectBankFailure="Zeni Accounts Connect Bank Failure",t.zeniAccountsConnectBankGetBalance="Zeni Accounts Connect Bank Get Balance",t.zeniAccountsConnectBankLink="Zeni Accounts Connect Bank Link",t.enableZeniAccounts="Enable Zeni Accounts",t.reimbursementNeedHelp="Reimbursement Need Help",t.reimbursementBusinessVerification="Reimbursement Business Verification",t.reimbursementBusinessVerificationSave="Reimbursement Business Verification Save",t.reimbursementBusinessVerificationSend="Reimbursement Business Verification Send",t.reimbursementBusinessVerificationAddOfficer="Reimbursement Business Verification Add Officer",t.reimbursementConnectBank="Reimbursement Connect Bank",t.reimbursementConnectBankSuccess="Reimbursement Connect Bank Success",t.reimbursementConnectBankFailure="Reimbursement Connect Bank Failure",t.reimbursementConnectBankLink="Reimbursement Connect Bank Link",t.reimbursementConnectBankGetBalance="Reimbursement Connect Bank Get Balance",t.enableReimbursement="Enable Reimbursement",t.reimbursementMileageRateSave="Reimbursement Mileage Rate Save",t.reimbursementMileageRateEdit="Reimbursement Mileage Rate Edit",t.reimbursementPrivacyPolicy="Reimbursement Privacy Policy",t.reimbursementAgreement="Reimbursement Agreement",t.reimbursementPromoSchedule="Reimbursement Schedule Demo",t.reimbursementPromoVideo="Reimbursement Promo Video",t.reimbursementCard="Reimbursement Card",t.reimbursementDrafts="Reimbursement Drafts",t.reimbursementMyDrafts="Reimbursement My Drafts",t.reimbursementApprovals="Reimbursement Approvals",t.reimbursementApprovalsAwaitingApproval="Reimbursement Approvals Awaiting Approval",t.reimbursementApprovalsAwaitingAllApproval="Reimbursement Approvals Awaiting All Approval",t.reimbursementApprovalsAwaitingMyApproval="Reimbursement Approvals Awaiting My Approval",t.reimbursementApprovalsRejected="Reimbursement Approvals Rejected",t.reimbursementApprovalsDeleted="Reimbursement Approvals Deleted",t.reimbursementScheduled="Reimbursement Scheduled",t.reimbursementScheduledFailed="Reimbursement Scheduled Failed",t.reimbursementScheduledCancelled="Reimbursement Scheduled Cancelled",t.reimbursementScheduledDeleted="Reimbursement Scheduled Deleted",t.reimbursementPaid="Reimbursement Paid",t.reimbursementPaidACH="Reimbursement Paid ACH",t.reimbursementPaidDeleted="Reimbursement Paid Deleted",t.reimbursementListSort="Reimbursement List Sort",t.reimbursementNewReimbursement="Reimbursement New Reimbursement",t.reimbursementInvoiceUpload="Reimbursement Invoice Upload",t.reimbursementSkipAutofill="Reimbursement Skip Autofill",t.reimbursementSubmitReimbursement="Reimbursement Submit Reimbursement",t.reimbursementReimbursementDetails="Reimbursement Reimbursement Details",t.reimbursementEditReimbursement="Reimbursement Edit Reimbursement",t.reimbursementDeleteReimbursement="Reimbursement Delete Reimbursement",t.reimbursementCancelReimbursement="Reimbursement Cancel Reimbursement",t.reimbursementCancelAndDeleteReimbursement="Reimbursement Cancel And Delete Reimbursement",t.reimbursementSubmitAnywayDuplicateReimbursement="Reimbursement Submit Anyway Duplicate Reimbursement",t.reimbursementReviewDuplicateReportReimbursement="Reimbursement Review Duplicate Report Reimbursement",t.reimbursementDeleteReimbursementLine="Reimbursement Delete Reimbursement Line",t.reimbursementViewDuplicateExpense="Reimbursement View Duplicate Expense",t.groupBySwitch="Group By Switch",t.burnRateCalculatorSettings="Burn Rate Calculator Settings",t.vendorList="Vendor List",t.vendorListSort="Vendor List Sort",t.vendorListSpendTrendSelection="Vendor List Spend Trend Selection",t.vendorListSearch="Vendor List Search",t.vendorDetails="Vendor Details",t.vendorDetailsSave="Vendor Details Save",t.vendorDetailsCancel="Vendor Details Cancel",t.vendorDetailsSpendTrendHotlinkClicked="Vendor Details Spend Trend Hotlink Clicked",t.vendorOperatingExpenses="Operating Expenses By Vendor",t.vendorOperatingExpensesPageLoaded="Operating Expenses By Vendor Page Loaded",t.agingReport="Aging Report",t.agingReportDateChange="Aging Report Date Change",t.apAgingDetail="AP Aging Detail",t.arAgingDetail="AR Aging Detail",t.vendorTenantReviewListPage="Vendor Dedupe Tenant Review List Page",t.vendorGlobalReviewListPage="Vendor Dedupe Global Review List Page",t.vendorReviewList="Vendor Dedupe Review List Loaded",t.vendorReviewTenantSave="Vendor Dedupe First Review",t.vendorReviewTenantMergeInQBORedirect="Vendor Dedupe Merge in QBO Redirected",t.vendorReviewTenantMergeInQBOCancel="Vendor Dedupe Merge in QBO Canceled",t.vendorReviewTenantRecommendationUpdateContinue="Vendor Dedupe Recommendation Update Continued",t.vendorReviewTenantRecommendationUpdateCancel="Vendor Dedupe Recommendation Update Canceled",t.vendorReviewTenantUpdateCancel="Vendor Dedupe Update Canceled",t.vendorReviewTenantWebsiteOpened="Vendor Dedupe Website Opened",t.vendorReviewGlobalApproveRequest="Vendor Dedupe Approve Requested",t.vendorReviewGlobalNewVendorRequest="Vendor Dedupe New Vendor Requested",t.vendorReviewGlobalNewVendorSave="Vendor Dedupe New Vendor Saved",t.vendorReviewGlobalNewVendorCancel="Vendor Dedupe New Vendor Canceled",t.vendor1099ListPage="Vendors 1099",t.vendor1099TabSettingsSave="1099 Settings Save",t.vendor1099AccountingSettingsSave="Settings Accounting 1099 Save",t.vendor1099W9DocumentUpload="1099 Vendor W9 Upload",t.vendor1099DetailsSave="1099 Vendor Save",t.vendor1099ReportDownload="1099 Download",t.scheduleReviewList="Schedule Review List Loaded",t.scheduleReviewListDownload="Schedule Review List Download",t.scheduleDetailsPage="Schedule Details Loaded",t.scheduleDetailsNewRequested="Schedule Details New Requested",t.scheduleDetailsPreview="Schedule Details Previewed",t.scheduleDetailsSave="Schedule Details Saved",t.scheduleDetailsCancel="Schedule Details Canceled",t.scheduleDetailsLinkJournalEntry="Schedule Details Link Journal Entry",t.scheduleDetailsViewJournalEntry="Schedule Details View Journal Entry",t.scheduleDetailsJournalEntryViewLinkedExpense="Schedule Details Journal Entry View Linked Expense",t.scheduleDetailsJournalEntryLinkedSaved="Schedule Details Journal Entry Linked Saved",t.scheduleDetailsJournalEntryQBOFetched="Schedule Details Journal Entry QBO Fetched",t.scheduleDetailsJournalEntryLinkCancel="Schedule Details Journal Entry Link Canceled",t.scheduleDetailsEntryCanceled="Schedule Details Entry Canceled",t.scheduleDetailsJournalEntryLinkExpense="Schedule Details Journal Entry Link Expense",t.scheduleDetailsJournalEntryLinkExpenseLoaded="Schedule Details Journal Entry Link Expense Loaded",t.scheduleDetailsJournalEntryLinkExpenseCanceled="Schedule Details Journal Entry Link Expense Canceled",t.scheduleDetailsJounralEntryLinkExpenseSaved="Schedule Details Journal Entry Linked Expense Saved",t.scheduleDetailsDelete="Schedule Details Deleted",t.scheduleDetailsMarkComplete="Schedule Details Marked As Complete",t.taskListPage="Task List Page",t.taskDetailPage="Task Detail Page",t.cockpitTaskCardClicked="Cockpit Task Card Clicked",t.taskEdited="Task Edited",t.newTaskRequested="New Task Requested",t.healthMonitorFilterApplied="Health Monitor Filter Applied",t.error="Error",t.rewardsPageViewed="Rewards Page Viewed",t.rewardsPageClicked="Rewards Page Clicked",t.dashboardCardClicked="Dashboard Card Clicked",t.inviteEmailViewed="Rewards Invite Email Viewed",t.inviteEmailClicked="Rewards Invite Email Clicked",t.getAuditScore="Get Score",t.auditScorePercentage="Score %",t.auditIssueType="Issue Type",t.auditIssuesClicked="Issue Clicked",t.commentAdded="Comment Added",t.commentActivity="Comment Activity",t.monthCloseClicked="Month Close Clicked",t.monthCloseAuditPage="Month Close: Audit Page",t.transactionsReview="Transactions: Review",t.transactionsAutoCategorised="Transactions: Autocategorised",t.monthCloseScheduleList="Month Close: Schedule List",t.fluxAnalysis="Flux Analysis",t.fluxAnalysisReviewed="Flux Analysis: Reviewed",t.missingReceipts="Missing Receipts",t.receiptsAttached="Receipt Attached",t.insightsEmail="Insights Email",t.monthEndEmailSentFromCockpit="Month End Email Sent From Cockpit",t.sendMoneyClick="Send Money Click",t.expressPayNextClick="Express Pay Next Click",t.expressPayScheduleClick="Express Pay Schedule Click",t.aiCFOPrivacyPolicy="AI CFO Privacy Policy",t.aiCFOAgreement="AI CFO Agreement",t.treasuryNavPromoClick="Treasury Nav Promo Click",t.treasuryPromoView="Treasury Promo View",t.treasurySetupActionClick="Treasury Setup Action Click",t.treasuryProspectusClick="Treasury Prospectus Click",t.treasuryCalculatorClick="Treasury Calculator Click",t.treasuryAgreementView="Treasury Agreement View",t.treasuryAllocationAction="Treasury Allocation Action",t.treasuryRiskAction="Treasury Risk Action",t.treasuryVerificationNavigation="Treasury Verification Navigation",t.treasuryTransferAction="Treasury Transfer Action",t.treasuryDashboardInteraction="Treasury Dashboard Interaction",t.treasuryPortfolioConfirm="Treasury Portfolio Confirm",t.treasuryPromoCards="Treasury Promo Cards",t.treasuryPromoVideo="Treasury Promo Video",t.transactionCotView="Transaction Cot View",t.transactionCotDropdownView="Transaction Cot Dropdown View",t.transactionCotViewAlternative="Transaction Cot View Alternative",t.transactionCotViewRecommended="Transaction Cot View Recommended",t.recommendationAccepted="Recommendation Accepted",t.recommendationFeedbackSubmitted="Recommendation Feedback Submitted",t.recommendationFeedbackSkipped="Recommendation Feedback Skipped",t.recommendationFeedbackRetracted="Recommendation Feedback Retracted",t.aiPerfHome="AI Perf Home",t.aiPerfRefresh="AI Perf Refresh",t.aiPerfTimePeriodSelect="AI Perf Time Period Select",t.otherConnectionConnectBank="Other Connection Connect Bank",t.otherConnectionConnectBankSuccess="Other Connections Connect Bank Success",t.otherConnectionConnectBankFailure="Other Connections Connect Bank Failure",t.otherConnectionsConnectBankLink="Other Connections Connect Bank Link",t.otherConnectionConnectBankGetBalance="Other Connection Connect Bank Get Balance",t.autoTransferRuleIconClick="Auto Transfer Rule Icon Click",t.autoTransferRuleClick="Auto Transfer Rule Click",t.autoTransferRuleReviewClick="Auto Transfer Rule Review Click",t.autoTransferRuleCreateClick="Auto Transfer Rule Create Click",t.autoTransferRuleMoreClick="Auto Transfer Rule More Click",t.autoTransferRuleActionClick="Auto Transfer Rule Action Click",t.autoTransferRuleActionConfirm="Auto Transfer Rule Action Confirm",t.autoTransferRuleActionCancel="Auto Transfer Rule Action Cancel",t.integrationsNotifyMeClicked="Integrations Notify Me Clicked",t.invoicingOverviewPage="Invoicing Overview Page",t.invoicingInvoicesListPage="Invoicing Invoices List Page",t.invoicingCreateInvoicePage="Invoicing Create Invoice Page",t.invoicingInvoiceDetailPage="Invoicing Invoice Detail Page",t.invoicingCustomersListPage="Invoicing Customers List Page",t.invoicingCustomerFormPage="Invoicing Customer Form Page",t.invoicingCustomerDetailPage="Invoicing Customer Detail Page",t.invoicingSubscriptionsListPage="Invoicing Subscriptions List Page",t.invoicingSubscriptionFormPage="Invoicing Subscription Form Page",t.invoicingSubscriptionDetailPage="Invoicing Subscription Detail Page",t.invoicingPaymentsListPage="Invoicing Payments List Page",t.invoicingRecordPaymentPage="Invoicing Record Payment Page",t.invoicingTransactionDetailPage="Invoicing Transaction Detail Page",t.invoicingCreditsListPage="Invoicing Credits List Page",t.invoicingCreditDetailPage="Invoicing Credit Detail Page",t.invoicingDiscountsListPage="Invoicing Discounts List Page",t.invoicingCouponFormPage="Invoicing Coupon Form Page",t.invoicingDiscountDetailPage="Invoicing Discount Detail Page",t.invoicingDunningListPage="Invoicing Dunning List Page",t.invoicingDunningDetailPage="Invoicing Dunning Detail Page",t.invoicingCatalogPage="Invoicing Catalog Page",t.invoicingCatalogItemFormPage="Invoicing Catalog Item Form Page",t.invoicingCatalogItemDetailPage="Invoicing Catalog Item Detail Page",t.invoicingSettingsPage="Invoicing Settings Page",t.invoicingAuditLogPage="Invoicing Audit Log Page",t.invoicingApprovalsPage="Invoicing Approvals Page",t.invoicingDataImportHubPage="Invoicing Data Import Hub Page",t.invoicingDataImportMigratePage="Invoicing Data Import Migrate Page",t.invoicingViewInvoicesClicked="Invoicing View Invoices Clicked",t.invoicingViewPaymentsClicked="Invoicing View Payments Clicked",t.invoicingSubscriptionTileClicked="Invoicing Subscription Tile Clicked",t.invoicingCreateInvoiceClicked="Invoicing Create Invoice Clicked",t.invoicingInvoiceRowClicked="Invoicing Invoice Row Clicked",t.invoicingImportCsvClicked="Invoicing Import CSV Clicked",t.invoicingInvoiceCreated="Invoicing Invoice Created",t.invoicingCreateInvoiceCancelled="Invoicing Create Invoice Cancelled",t.invoicingInvoiceEdited="Invoicing Invoice Edited",t.invoicingInvoicePdfDownloaded="Invoicing Invoice PDF Downloaded",t.invoicingInvoiceReminderSent="Invoicing Invoice Reminder Sent",t.invoicingRecordPaymentClicked="Invoicing Record Payment Clicked",t.invoicingCreditNoteIssued="Invoicing Credit Note Issued",t.invoicingInvoiceVoided="Invoicing Invoice Voided",t.invoicingInvoiceRegenerated="Invoicing Invoice Regenerated",t.invoicingAddCustomerClicked="Invoicing Add Customer Clicked",t.invoicingCustomerRowClicked="Invoicing Customer Row Clicked",t.invoicingCustomerSaved="Invoicing Customer Saved",t.invoicingCustomerFormCancelled="Invoicing Customer Form Cancelled",t.invoicingCustomerEdited="Invoicing Customer Edited",t.invoicingAddSubscriptionClicked="Invoicing Add Subscription Clicked",t.invoicingSubscriptionRowClicked="Invoicing Subscription Row Clicked",t.invoicingSubscriptionLifecycleAction="Invoicing Subscription Lifecycle Action",t.invoicingSubscriptionSaved="Invoicing Subscription Saved",t.invoicingSubscriptionFormCancelled="Invoicing Subscription Form Cancelled",t.invoicingSubscriptionEdited="Invoicing Subscription Edited",t.invoicingPaymentRowClicked="Invoicing Payment Row Clicked",t.invoicingPaymentRecorded="Invoicing Payment Recorded",t.invoicingRecordPaymentCancelled="Invoicing Record Payment Cancelled",t.invoicingTransactionCaptured="Invoicing Transaction Captured",t.invoicingCreditNoteRowClicked="Invoicing Credit Note Row Clicked",t.invoicingCreateCouponClicked="Invoicing Create Coupon Clicked",t.invoicingDiscountRowClicked="Invoicing Discount Row Clicked",t.invoicingCouponSaved="Invoicing Coupon Saved",t.invoicingCouponFormCancelled="Invoicing Coupon Form Cancelled",t.invoicingCouponEdited="Invoicing Coupon Edited",t.invoicingDunningCaseRowClicked="Invoicing Dunning Case Row Clicked",t.invoicingDunningAction="Invoicing Dunning Action",t.invoicingAddCatalogItemClicked="Invoicing Add Catalog Item Clicked",t.invoicingCatalogItemRowClicked="Invoicing Catalog Item Row Clicked",t.invoicingCatalogItemSaved="Invoicing Catalog Item Saved",t.invoicingCatalogItemFormCancelled="Invoicing Catalog Item Form Cancelled",t.invoicingCatalogItemEdited="Invoicing Catalog Item Edited",t.invoicingSettingsSaved="Invoicing Settings Saved",t.invoicingBankAccountConnectClicked="Invoicing Bank Account Connect Clicked",t.invoicingLogoUploaded="Invoicing Logo Uploaded",t.invoicingApprovalAction="Invoicing Approval Action",t.invoicingNewImportClicked="Invoicing New Import Clicked",t.invoicingImportSessionAction="Invoicing Import Session Action",t.invoicingChargebeeConnectClicked="Invoicing Chargebee Connect Clicked",t.invoicingImportTemplatesDownloaded="Invoicing Import Templates Downloaded",t.invoicingImportFileUploaded="Invoicing Import File Uploaded",t.invoicingImportStarted="Invoicing Import Started",t.invoicingImportSavedForLater="Invoicing Import Saved For Later",t.invoicingEntityLinkClicked="Invoicing Entity Link Clicked",t.invoicingPromoSchedule="Invoicing Schedule Demo",t.integrationConnectClicked="Integration Connect Clicked",t.integrationCredentialsSubmitted="Integration Credentials Submitted",t.integrationConnected="Integration Connected",t.integrationConnectFailed="Integration Connect Failed",t.integrationConnectDismissed="Integration Connect Dismissed",t.integrationDisconnected="Integration Disconnected",t.aiCloseTransactionSearch="AI Close Transaction Search"})(e||(Pt.Event=e={})),Pt.EVENTS_WITHOUT_SUPER_PROPERTIES=new Set([e.signInClick,e.signInViaGoogleMicrosoft,e.signInViaEmail,e.signInLinkSent]),Pt}var Uo;function rd(){if(Uo)return _r;Uo=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.Analytics=void 0;const e=pc(),t=n=>{if(n==null)return null;if(!n.includes(":"))return n;const i=n.split(":")[1];return i!==""?i:null},a=(n,i)=>{const o=t(n);return{transaction_id:o,line_item_id:i,transaction_id_and_line_item_id:o!=null&&i!=null?`${o}:${i}`:null}};class r{constructor(i){this.provider=i,this.superProperties={},this.userProperties={},this.userAndSuperProperties={}}static splitUserAndSuperProperties(i){const o={$distinct_id:i.$distinct_id??"",user_id:i.user_id??"",role_at_company:i.role_at_company??"",$email:i.$email??"",user_email_domain:i.user_email_domain??"",$first_name:i.$first_name??"",$last_name:i.$last_name??"",company_ids:i.company_ids??[],company_names:i.company_names??[],user_roles:i.user_roles??[],app_type:i.app_type??"web",app_version:i.app_version??"",app_short_version:i.app_short_version??"",profile_type:i.profile_type??void 0,chargebee_customer_id:i.chargebee_customer_id??"",is_zeni:i.is_zeni??void 0},s={appearance:i.appearance??void 0,company_id:i.company_id??"",company_name:i.company_name??"",user_role:i.user_role??[],tenant_id:i.tenant_id??"",tenant_email_domain:i.tenant_email_domain??""};return{userProperties:o,superProperties:s}}identify(i,o){const s=o??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,s,{$distinct_id:i,profile_type:"user"});const c=r.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=c.userProperties,this.superProperties=c.superProperties,this.provider.identify(i,this.userProperties)}identifyUserAndCompany(i,o,s,c,u){const l=c??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,l,{$distinct_id:i==="company"?s:o,user_id:o,company_id:s,profile_type:i});const d=r.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=d.userProperties,this.superProperties=d.superProperties,this.provider.identifyUserAndCompany(i,o,s,this.userProperties,u)}resetUserIdentity(){console.warn("Resetting user identity"),this.superProperties={},this.userProperties={},this.userAndSuperProperties={},this.provider.reset()}track(i){this.fireTrack(i)}trackLogin(i,o,s){this.fireTrack(i,{login_type:o,customer_type:s})}trackSignInClick(i){const s={login_type:i.charAt(0).toUpperCase()+i.slice(1)};this.fireTrack(e.Event.signInClick,s)}trackSignInViaGoogleMicrosoft(){this.fireTrack(e.Event.signInViaGoogleMicrosoft)}trackSignInViaEmail(){this.fireTrack(e.Event.signInViaEmail)}trackSignInLinkSent(){this.fireTrack(e.Event.signInLinkSent)}trackError(i,o,s,c){this.fireTrack(i,{error_referrer:o,error_description:s,error_code:c})}trackSidePanelClicked(i,o){this.fireTrack(e.Event.sidePanelClicked,{sidepanel_click_type:i,sidepanel_click_group_type:o})}trackLogout(i){this.fireTrack(i)}trackSessionTimeoutPopupShown(i){const o={seconds_remaining:i};this.fireTrack(e.Event.sessionTimeoutPopupShown,o)}trackSessionTimeoutClicked(i,o){const s={click_type:i,seconds_remaining:o};this.fireTrack(e.Event.sessionTimeoutClicked,s)}trackSessionTimeoutAutoLogout(){this.fireTrack(e.Event.sessionTimeoutAutoLogout)}trackPageLoaded(i,o,s){this.fireTrack(i,{referrer_card:o,customer_type:s})}trackTransactionList(i,o,s,c,u,l){this.fireTrack(e.Event.transactionList,{account_id:i,account_name:o,referrer_card:s,referrer_account:c,referrer_account_group:u,load_more:l})}trackTransactionDetails(i,o,s,c,u,l,d,f,p,_,v,m,g,y,b){this.fireTrack(e.Event.transactionDetails,{account_id:i,account_name:o,transaction_id:s,transaction_name:c,category:u,class:l,transaction_type:d,transaction_amount:f,transaction_memo:p,line_item_count:_,receipt_file_names:v,referrer_card:m,search_term:g,result_position:y,results_count:b})}trackCompareMode(i,o,s){this.fireTrack(e.Event.compareMode,{is_turned_on:i,referrer_card:o,graph_filter:s})}trackCompareFilterChange(i,o,s,c){this.fireTrack(e.Event.compareFilterChange,{value:i,referrer_card:o,graph_filter:s,clicked_on:c})}trackCompareFilterTimeFrame(i,o,s,c){this.fireTrack(e.Event.compareFilterTimeframe,{referrer_card:i,graph_filter:o,clicked_on:s,value:c})}trackDateRangeFilterChange(i,o,s,c,u){this.fireTrack(e.Event.dateRangeFilter,{parent_card:i,clicked_on:o,compare_mode:s,value:c,bar_name:u})}trackTimeframeSwitch(i,o,s){this.fireTrack(e.Event.timeframeSwitch,{value:i,parent_card:o,referrer_card:s})}trackGraphBar(i,o,s,c){this.fireTrack(e.Event.graphBar,{referrer_card:i,graph_filter:o,compare_mode:s,bar_name:c})}trackInviteSent(i,o,s){this.fireTrack(e.Event.inviteSent,{role:i,count:o,emails:s})}trackRoleChanged(i,o,s){this.fireTrack(e.Event.roleChanged,{old_role:i,new_role:o,member_email:s})}trackRemoveUserAccess(i,o){this.fireTrack(e.Event.removeUserAccess,{role:i,member_email:o})}trackResendInvite(i,o){this.fireTrack(e.Event.resendInvite,{role:i,member_email:o})}trackCompanySwitch(i,o,s){this.fireTrack(e.Event.companySwitch,{new_company_id:i,new_company_name:o,new_user_role:s})}trackDownload(i,o,s,c){this.fireTrack(e.Event.download,{referrer_card:i,graph_filter:o,file_type:s,compare_mode:c})}trackSpendIncomeTrendForTransaction(i,o,s,c,u,l,d,f,p,_){this.fireTrack(i,{referrer_card:o,transaction_id:s,transaction_type:c,transaction_name:u,account_ids:l,account_names:d,class_ids:f,class_names:p,bar_name:_})}trackSpendIncomeTrend(i,o,s,c,u){this.fireTrack(i,{referrer_card:o,bar_name:u,entity_name:c,entity_type:s})}trackSearch(i,o,s,c,u){this.fireTrack(i,{referrer_card:o,entity_type:s,entity_name:c,search_term:u})}trackTransactionDetailReceipt(i,o,s,c,u,l,d){this.fireTrack(i,{attachment_id:o,transaction_id:s,transaction_name:c,transaction_type:u,account_ids:l,account_names:d})}trackTransactionDetailReceiptUpload(i,o,s,c,u,l,d,f){this.fireTrack(e.Event.transactionDetailReceiptAdded,{account_id:i,account_name:o,transaction_id:s,transaction_name:c,transaction_type:u,transaction_memo:l,file_name:d,file_type:f})}trackCardStatementCloseDate(i,o,s,c,u){this.fireTrack(i,{referrer_card:c,account_id:o,account_name:s,value:u})}trackReportGenerated(i,o,s,c,u,l,d,f){const p={report_id:i,file_type:o,time_taken_rest_api:s,time_taken_data_transform:c,time_taken_rendering:u,time_taken_total:l};Object.assign(p,d!=null?{time_taken_pdf_merge:d}:{}),Object.assign(p,f!=null?{time_taken_sub_report_total_max:f}:{}),this.fireTrack(e.Event.reportGenerated,p)}trackInsightsNavigation(i,o){this.fireTrack(i,{referrer_view:o})}trackForecast(){this.fireTrack(e.Event.forecast)}trackForecastSwitch(i,o){this.fireTrack(e.Event.forecastSwitch,{parent_card:i,forecast_name:o})}trackForecastVsActualMode(i,o,s){this.fireTrack(e.Event.forecastVsActualMode,{parent_card:i,forecast_name:o,is_turned_on:s})}trackSpendManagmentFilterClick(i){switch(i){case"bill_pay":{this.fireTrack(e.Event.billPayFilterClick);break}case"reimbursement":{this.fireTrack(e.Event.reimbursementFilterClick);break}}}trackSpendManagmentFilterChange(i,o){switch(i){case"bill_pay":{this.fireTrack(e.Event.billPayFilterChange,{filter_categories:o});break}case"reimbursement":{this.fireTrack(e.Event.reimbursementFilterChange,{filter_categories:o});break}}}trackSpendManagementDownloadClick(i){switch(i){case"bill_pay":{this.fireTrack(e.Event.billPayDownloadClick);break}case"reimbursement":{this.fireTrack(e.Event.reimbursementDownloadClick);break}}}trackBillPayPrivacyPolicy(){this.fireTrack(e.Event.billPayPrivacyPolicy)}trackBillPayAgreement(){this.fireTrack(e.Event.billPayAgreement)}trackReimbursementPrivacyPolicy(){this.fireTrack(e.Event.reimbursementPrivacyPolicy)}trackReimbursementAgreement(){this.fireTrack(e.Event.reimbursementAgreement)}trackReimbursementMileageRateSave(i){const o={mileage_unit_amount:i};this.fireTrack(e.Event.reimbursementMileageRateSave,o)}trackReimbursementMileageRateEdit(){this.fireTrack(e.Event.reimbursementMileageRateEdit)}trackReimbursementPromoScheduleDemo(){this.fireTrack(e.Event.reimbursementPromoSchedule)}trackReimbursementPromoVideo(){this.fireTrack(e.Event.reimbursementPromoVideo)}trackBillPayPromoScheduleDemo(){this.fireTrack(e.Event.billPayPromoSchedule)}trackInvoicingPromoScheduleDemo(){this.fireTrack(e.Event.invoicingPromoSchedule)}trackBillPayPromoVideo(){this.fireTrack(e.Event.billPayPromoVideo)}trackBillPayTaskCard(i){const o={count:i};this.fireTrack(e.Event.billPayTaskCard,o)}trackBillPayCard(i,o){const s={transaction_amount:o,bill_pay_tab_subtab:i};this.fireTrack(e.Event.billPayCard,s)}trackReimbursementCard(i,o){const s={transaction_amount:o,reimbursement_tab_subtab:i};this.fireTrack(e.Event.reimbursementCard,s)}trackReimbursementTaskCard(i){const o={count:i};this.fireTrack(e.Event.reimbursementTaskCard,o)}trackOnboardingConnectQBO(i=!1){const o={is_reconnect:i};this.fireTrack(e.Event.onboardingQBOConnect,o)}trackIntegrationsNotifyMeClicked(i,o){const s={referrer_card:i,connector:o};this.fireTrack(e.Event.integrationsNotifyMeClicked,s)}trackOnboardingSaveQBOConnection(i,o){const s={qbo_realm_id:i,qbo_connection_id:o};this.fireTrack(e.Event.onboardingSaveQBOConnection,s)}trackOnboardingQBOConnectionSuccess(i,o){const s={qbo_realm_id:i,qbo_connection_id:o};this.fireTrack(e.Event.onboardingQBOConnectionSuccess,s)}trackOnboardingQBOConnectionFailed(i,o,s){const c={qbo_realm_id:i,qbo_connection_id:o,qbo_connection_response_message:s};this.fireTrack(e.Event.onboardingQBOConnectionFailed,c)}trackOnboardingAiFinanceTeamViewed(){this.fireTrack(e.Event.onboardingAiFinanceTeamViewed)}trackOnboardingAddressClicked(i){const o={address_type:i};this.fireTrack(e.Event.onboardingAddressClicked,o)}trackOnboardingDocumentUploaded(i,o){const s={document_kind:i,document_type:o};this.fireTrack(e.Event.onboardingDocumentUploaded,s)}trackOnboardingPhoneVerified(){this.fireTrack(e.Event.onboardingPhoneVerified)}trackOnboardingStepSkipped(i){const o={skipped_step:i};this.fireTrack(e.Event.onboardingStepSkipped,o)}trackOnboardingFlowExited(i){const o={exit_destination:i};this.fireTrack(e.Event.onboardingFlowExited,o)}trackOnboardingButtonClicked(i,o,s,c){const u={onboarding_button:i,onboarding_current_step:o,triggered_action:s,action_name:c};this.fireTrack(e.Event.onboardingButtonClicked,u)}buildIntegrationConnectionProps(i,o,s,c=null){return{referrer_card:o,connector:i,connection_type:s,error_message:c}}trackIntegrationConnectClicked(i,o,s){this.fireTrack(e.Event.integrationConnectClicked,this.buildIntegrationConnectionProps(i,o,s))}trackIntegrationCredentialsSubmitted(i,o,s){this.fireTrack(e.Event.integrationCredentialsSubmitted,this.buildIntegrationConnectionProps(i,o,s))}trackIntegrationConnected(i,o,s){this.fireTrack(e.Event.integrationConnected,this.buildIntegrationConnectionProps(i,o,s))}trackIntegrationConnectFailed(i,o,s,c){this.fireTrack(e.Event.integrationConnectFailed,this.buildIntegrationConnectionProps(i,o,s,c))}trackIntegrationDisconnected(i,o,s){this.fireTrack(e.Event.integrationDisconnected,this.buildIntegrationConnectionProps(i,o,s))}trackIntegrationConnectDismissed(i,o,s){this.fireTrack(e.Event.integrationConnectDismissed,this.buildIntegrationConnectionProps(i,o,s))}trackConnectBankAbandoned(i,o){i==="onboarding"&&this.fireTrack(e.Event.onboardingBankConnectAbandoned,{referrer_card:o})}trackOnboardingClickUpdatePaymentDetails(i,o){const s={payment_method:i,customer_type:o};this.fireTrack(e.Event.onboardingClickUpdatePaymentDetails,s)}trackOnboardingCurrentStep(i,o){const s={onboarding_current_step:i,onboarding_previous_step:o};this.fireTrack(e.Event.onboardingActiveStep,s)}trackOnboardingBankAccountPendingVerification(i,o){const s={verification_type:i,plaid_session_id:o};this.fireTrack(e.Event.onboardingBankAccountPendingVerification,s)}trackOnboardingBankAccountVerified(i){const o={verification_type:i};this.fireTrack(e.Event.onboardingBankAccountVerified,o)}trackOnboardingBusinessVerificationCompleted(i,o){const s={document_kind:i,verification_type:o};this.fireTrack(e.Event.onboardingBusinessVerificationCompleted,s)}trackOnboardingBillingAddress(i){const o={billing_address_field:i};this.fireTrack(e.Event.onboardingBillingAddress,o)}trackOnboardingBillingAddressSave(i){const o={address:{street:i.street,suite:i.suite,city:i.city,state:i.state,country:i.country,postal_code:i.postalCode,secondary_info:i.secondaryInfo}};this.fireTrack(e.Event.onboardingBillingAddressSave,o)}trackOnboardingBack(i,o){const s={onboarding_current_step:i,onboarding_previous_step:o};this.fireTrack(e.Event.onboardingBack,s)}trackOnboardingNext(i,o){const s={onboarding_current_step:o,onboarding_previous_step:i};this.fireTrack(e.Event.onboardingNext,s)}trackSaveAddressClicked(i,o){const s={address:{street:o?.street??"",suite:o?.suite??"",city:o?.city??"",state:o?.state??"",country:o?.country??"",postal_code:o?.postalCode??"",secondary_info:o?.secondaryInfo??""}};this.fireTrack(i,s)}trackOnboardingCompanyOfficerSave(i,o,s){const c={company_officer_email:i.email,company_officer_birthday:i.birthday,company_officer_ownership:i.companyOwnership,company_officer_first_name:i.firstName,company_officer_last_name:i.lastName,company_officer_role:i.companyRole,company_officer_document_type_for_verification:i.documentTypeForVerification,company_officer_phone:i.phone,company_officer_address:i.formattedAddress,company_legal_name:o.legalName,completed_fields:s?.completedFields??[],completed_fields_status:s?.status??"not_started"};this.fireTrack(e.Event.onboardingCompanyOfficerSave,c)}trackOnboardingCompanyDetailsSave(i,o,s){const c={company_description:i.companyDescription,company_legal_name:i.legalName,company_industry:i.industry,company_phone:i.phone,company_website:i.website,company_address:i.formattedAddress,inc_date:i.incDate,primary_contact_first_name:s.firstName,primary_contact_last_name:s.lastName,primary_contact_email:s.email,completed_fields:o.completedFields,completed_fields_status:o.status};this.fireTrack(e.Event.onboardingCompanyDetailsSave,c)}trackOnboardingDashboardActivation(i){const o={time_since_quote_sign:i.timeSinceQuoteSign,time_since_quote_sign_in_minutes:i.timeSinceQuoteSignInMinutes,is_kyc_done:i.isKycDone,is_kyb_done:i.isKybDone,payment_type:i.paymentType,payment_source:i.paymentSource,qbo_connection_source:i.qboConnectionSource};this.fireTrack(e.Event.onboardingDashboardActivation,o)}trackOnboardingNewCustomerStarted(){this.fireTrack(e.Event.onboardingNewCustomerStarted)}trackOnboardingAiFinanceTeamAcknowledged(){this.fireTrack(e.Event.onboardingAiFinanceTeamAcknowledged)}trackOnboardingNewCustomerGroupCreationCheck(i,o){const s={company_email_domain:i.companyEmailDomain,primary_contact_email:i.primaryContactEmail,group_name:o.groupName,group_email:o.groupEmail,group_description:o.groupDescription,is_company_email_domain_available:o.isCompanyEmailDomainAvailable};this.fireTrack(e.Event.onboardingNewCustomerGroupCreationCheck,s)}trackOnboardingQBOConnectionSelected(i){const o={first_name:i.firstName,last_name:i.lastName,customer_email:i.customerEmail};i.isZeniOrCustomer==="customer"?this.fireTrack(e.Event.onboardingCustomerManagedQBOConnectionSelected,o):this.fireTrack(e.Event.onboardingZeniManagedQBOConnectionSelected,o)}trackOnboardingZeniManagedQBOConnection(i){const o={first_name:i.firstName,last_name:i.lastName,customer_email:i.customerEmail,qbo_connection_response_message:i.qboConnectionResponseMessage};i.isSuccess?this.fireTrack(e.Event.onboardingZeniManagedQBOConnectionSuccess,o):this.fireTrack(e.Event.onboardingZeniManagedQBOConnectionUnsuccess,o)}trackOnboardingSaveOrSendInvite(i,o,s,c){const u={company_domain:i.companyDomain,primary_contact_email:i.primaryContactEmail,group_name:o.groupName,group_email:o.groupEmail,group_description:o.groupDescription,first_name:s.firstName,last_name:s.lastName,customer_email:s.customerEmail,company_name:s.companyName,entitty_type:s.entittyType,qbo_realm_id:s.qboRealmId,hubspot_id:s.hubSpotId,chargebee_id:s.chargebeeId,products:s.products,is_zeni_managed_qbo_connection_selected:c.isZeniManagedQboConnectionSelected,is_customer_managed_qbo_connection_selected:c.isCustomerManagedQboConnectionSelected,qbo_connection_status:c.qboConnectionStatus,referrer_card:"Cockpit - Onboarding"};c.isSendInvite?c.isInviteAlreadySent?this.fireTrack(e.Event.onboardingResendInvite,u):this.fireTrack(e.Event.onboardingSendInvite,u):this.fireTrack(e.Event.onboardingSave,u)}trackOnboardingSendInvite(i,o,s){const c={company_id:i,company_name:s.companyName,company_domain:s.companyEmailDomain,customer_email:s.customerEmail,referrer_card:"Cockpit - Onboarding List"};this.fireTrack(o?e.Event.onboardingResendInvite:e.Event.onboardingSendInvite,c)}trackOnboardingInterimCard(i){const o={card_click:i};this.fireTrack(e.Event.onboardingInterimCardClick,o)}trackOnboardingLandingPageCardClick(i){const o={card_click:i};this.fireTrack(e.Event.onboardingLandingPageCardClick,o)}trackBusinessVerificationSave(i,o,s,c,u){const l={company_officer_email:i.email,company_officer_birthday:i.birthday,company_officer_ownership:i.companyOwnership,company_officer_first_name:i.firstName,company_officer_last_name:i.lastName,company_officer_role:i.companyRole,company_officer_document_type_for_verification:i.documentTypeForVerification,company_officer_phone:i.phone,company_officer_address:i.formattedAddress,company_description:o.companyDescription,company_legal_name:o.legalName,company_industry:o.industry,company_phone:o.phone,company_website:o.website,company_address:o.formattedAddress,inc_date:o.incDate,primary_contact_first_name:s.firstName,primary_contact_last_name:s.lastName,primary_contact_email:s.email,referrer_card:u};switch(c){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsBusinessVerificationSave,l);break;case"reimbursement":this.fireTrack(e.Event.reimbursementBusinessVerificationSave,l);break;case"onboarding":this.fireTrack(e.Event.onboardingSkipAndSave,l);break;case"charge_cards":this.fireTrack(e.Event.cardsBusinessVerification,l);break;default:this.fireTrack(e.Event.billPayBusinessVerificationSave,l);break}}trackBusinessVerificationSend(i,o,s,c,u){const l={company_officer_email:i.email,company_officer_birthday:i.birthday,company_officer_ownership:i.companyOwnership,company_officer_first_name:i.firstName,company_officer_last_name:i.lastName,company_officer_role:i.companyRole,company_officer_document_type_for_verification:i.documentTypeForVerification,company_officer_phone:i.phone,company_officer_address:i.formattedAddress,company_description:o.companyDescription,company_legal_name:o.legalName,company_industry:o.industry,company_phone:o.phone,company_website:o.website,company_address:o.formattedAddress,inc_date:o.incDate,primary_contact_first_name:s.firstName,primary_contact_last_name:s.lastName,primary_contact_email:s.email,referrer_card:u};switch(c){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsBusinessVerificationSend,l);break;case"reimbursement":this.fireTrack(e.Event.reimbursementBusinessVerificationSend,l);break;case"charge_cards":this.fireTrack(e.Event.cardsBusinessVerificationSend,l);break;default:this.fireTrack(e.Event.billPayBusinessVerificationSend,l);break}}onboardingConnectBankEventsByEventSource(i,o){if(o!=null&&i!=null)switch(o){case"link_bank_account":this.fireTrack(e.Event.onboardingLinkBankAccount,{referrer_card:i});break;case"switch_to_bank_account":this.fireTrack(e.Event.onboardingSwitchToBankAccount,{referrer_card:i});break;case"link_new_bank_account":this.fireTrack(e.Event.onboardingLinkANewBankAccount,{referrer_card:i});break}}onboardingConnectBankEventsByEventSourceSuccess(i,o,s,c,u,l){if(l!=null&&u!=null)switch(l){case"link_bank_account":this.fireTrack(e.Event.onboardingLinkBankAccountSuccess,{referrer_card:u,plaid_session_id:i,plaid_account_id:o,is_micro_deposit_verification_done:s??!1,plaid_institution_name:c});break;case"switch_to_bank_account":this.fireTrack(e.Event.onboardingSwitchToBankAccountSuccess,{referrer_card:u,plaid_session_id:i,plaid_account_id:o,is_micro_deposit_verification_done:s??!1,plaid_institution_name:c});break;case"link_new_bank_account":this.fireTrack(e.Event.onboardingLinkANewBankAccountSuccess,{referrer_card:u,plaid_session_id:i,plaid_account_id:o,is_micro_deposit_verification_done:s??!1,plaid_institution_name:c});break}}onboardingConnectBankEventsByEventSourceFailure(i,o,s,c,u,l,d){if(d!=null&&l!=null)switch(d){case"link_bank_account":this.fireTrack(e.Event.onboardingLinkBankAccountFailure,{referrer_card:l,error_description:i,error_code:u,plaid_session_id:o,plaid_request_id:s,plaid_institution_name:c});break;case"switch_to_bank_account":this.fireTrack(e.Event.onboardingSwitchToBankAccountFailure,{referrer_card:l,error_description:i,error_code:u,plaid_session_id:o,plaid_request_id:s,plaid_institution_name:c});break;case"link_new_bank_account":this.fireTrack(e.Event.onboardingLinkANewBankAccountFailure,{referrer_card:l,error_description:i,error_code:u,plaid_session_id:o,plaid_request_id:s,plaid_institution_name:c});break}}onboardingCreditCardEventsConnectByEventSource(i,o){if(o!=null&&i!=null)switch(o){case"switch_to_credit_card":this.fireTrack(e.Event.onboardingSwitchToCreditCard,{referrer_card:i});break;case"link_new_credit_card":this.fireTrack(e.Event.onboardingLinkNewCard,{referrer_card:i});break;case"link_credit_card":this.fireTrack(e.Event.onboardingLinkCreditCard,{referrer_card:i});break}}onboardingCreditCardConnectEventsByEventSourceSuccess(i,o){if(o!=null&&i!=null)switch(o){case"switch_to_credit_card":this.fireTrack(e.Event.onboardingSwitchToCreditCardSuccess,{referrer_card:i});break;case"link_new_credit_card":this.fireTrack(e.Event.onboardingLinkNewCardSuccess,{referrer_card:i});break;case"link_credit_card":this.fireTrack(e.Event.onboardingLinkCreditCardSuccess,{referrer_card:i});break}}onboardingCreditCardConnectEventsByEventSourceFailure(i,o,s,c){if(c!=null&&s!=null)switch(c){case"switch_to_credit_card":this.fireTrack(e.Event.onboardingSwitchToCreditCardFailure,{referrer_card:s,error_description:i,error_code:o});break;case"link_new_credit_card":this.fireTrack(e.Event.onboardingLinkNewCardFailure,{referrer_card:s,error_description:i,error_code:o});break;case"link_credit_card":this.fireTrack(e.Event.onboardingLinkCreditCardFailure,{referrer_card:s,error_description:i,error_code:o});break}}billingConnectBankEventsByEventSource(i,o){if(o!=null&&i!=null)switch(o){case"link_new_bank_account":this.fireTrack(e.Event.billingLinkNewBankAccount,{referrer_card:i});break;case"switch_to_bank_account":this.fireTrack(e.Event.billingSwitchToBankAccount,{referrer_card:i});break}}billingConnectBankEventsByEventSourceSuccess(i,o){if(o!=null&&i!=null)switch(o){case"link_new_bank_account":this.fireTrack(e.Event.billingLinkNewBankAccountSuccess,{referrer_card:i});break;case"switch_to_bank_account":this.fireTrack(e.Event.billingSwitchToBankAccountSuccess,{referrer_card:i});break}}billingConnectBankEventsByEventSourceFailure(i,o,s,c){if(c!=null&&s!=null)switch(c){case"link_new_bank_account":this.fireTrack(e.Event.billingLinkNewBankAccountFailure,{referrer_card:s,error_description:i,error_code:o});break;case"switch_to_bank_account":this.fireTrack(e.Event.billingSwitchToBankAccountFailure,{referrer_card:s,error_description:i,error_code:o});break}}billingConnectCreditCardEventsByEventSource(i,o){if(o!=null&&i!=null)switch(o){case"switch_to_credit_card":this.fireTrack(e.Event.billingSwitchToCreditCard,{referrer_card:i});break;case"link_new_credit_card":this.fireTrack(e.Event.billingLinkNewCard,{referrer_card:i});break}}billingConnectCreditCardEventsByEventSourceSuccess(i,o){if(o!=null&&i!=null)switch(o){case"switch_to_credit_card":this.fireTrack(e.Event.billingSwitchToCreditCardSuccess,{referrer_card:i});break;case"link_new_credit_card":this.fireTrack(e.Event.billingLinkNewCardSuccess,{referrer_card:i});break}}billingConnectCreditCardEventsByEventSourceFailure(i,o,s,c){if(c!=null&&s!=null)switch(c){case"switch_to_credit_card":this.fireTrack(e.Event.billingSwitchToCreditCardFailure,{referrer_card:s,error_description:i,error_code:o});break;case"link_new_credit_card":this.fireTrack(e.Event.billingLinkNewCardFailure,{referrer_card:s,error_description:i,error_code:o});break}}trackConnectBank(i,o,s){switch(i){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsConnectBank,{referrer_card:o});break;case"charge_cards":this.fireTrack(e.Event.cardsConnectBank,{referrer_card:o});break;case"reimbursement":this.fireTrack(e.Event.reimbursementConnectBank,{referrer_card:o});break;case"onboarding":this.onboardingConnectBankEventsByEventSource(o,s);break;case"billing":this.billingConnectBankEventsByEventSource(o,s);break;case"bill_pay":this.fireTrack(e.Event.billPayConnectBank,{referrer_card:o});break;default:this.fireTrack(e.Event.otherConnectionConnectBank,{referrer_card:o});break}}trackConnectBankSuccess(i,o,s,c,u,l,d){switch(i){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsConnectBankSuccess,{referrer_card:o});break;case"charge_cards":this.fireTrack(e.Event.cardsConnectBankSuccess,{referrer_card:o});break;case"reimbursement":this.fireTrack(e.Event.reimbursementConnectBankSuccess,{referrer_card:o});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceSuccess(c??null,u??null,l??null,d??null,o,s);break;case"billing":this.billingConnectBankEventsByEventSourceSuccess(o,s);break;case"bill_pay":this.fireTrack(e.Event.billPayConnectBankSuccess,{referrer_card:o});break;default:this.fireTrack(e.Event.otherConnectionConnectBankSuccess,{referrer_card:o});break}}trackConnectBankFailure(i,o,s,c,u,l,d,f){switch(i){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsConnectBankFailure,{error_code:u,error_description:o,referrer_card:s});break;case"charge_cards":this.fireTrack(e.Event.cardsConnectBankFailure,{error_code:u,error_description:o,referrer_card:s});break;case"reimbursement":this.fireTrack(e.Event.reimbursementConnectBankFailure,{error_code:u,error_description:o,referrer_card:s});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceFailure(o,l??null,d??null,f??null,u,s,c);break;case"billing":this.billingConnectBankEventsByEventSourceFailure(o,u,s,c);break;case"bill_pay":this.fireTrack(e.Event.billPayConnectBankFailure,{error_code:u,error_description:o,referrer_card:s});break;default:this.fireTrack(e.Event.otherConnectionConnectBankFailure,{error_code:u,error_description:o,referrer_card:s});break}}trackCreditCardConnect(i,o,s){if(s!=null&&o!=null)switch(i){case"onboarding":this.onboardingCreditCardEventsConnectByEventSource(s,o);break;case"billing":this.billingConnectCreditCardEventsByEventSource(s,o);break}}trackCreditCardConnectSuccess(i,o,s){if(o!=null&&s!=null)switch(i){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceSuccess(o,s);break;case"billing":this.billingConnectCreditCardEventsByEventSourceSuccess(o,s);break}}trackCreditCardConnectFailure(i,o,s,c,u){if(s!=null&&c!=null)switch(i){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceFailure(o,u,s,c);break;case"billing":this.billingConnectCreditCardEventsByEventSourceFailure(o,u,s,c);break}}trackConnectBankLink(i,o,s,c){switch(s){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsConnectBankLink,{account_name:o,account_id:i,referrer_card:c});break;case"charge_cards":this.fireTrack(e.Event.cardsConnectBankLink,{account_name:o,account_id:i,referrer_card:c});break;case"reimbursement":this.fireTrack(e.Event.reimbursementConnectBankLink,{account_name:o,account_id:i,referrer_card:c});break;case"onboarding":this.fireTrack(e.Event.onboardingConnectBankLink,{account_name:o,account_id:i,referrer_card:c});break;case"bill_pay":this.fireTrack(e.Event.billPayConnectBankLink,{account_name:o,account_id:i,referrer_card:c});break;default:this.fireTrack(e.Event.otherConnectionsConnectBankLink,{account_name:o,account_id:i,referrer_card:c});break}}trackConnectBankGetBalance(i,o){switch(i){case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsConnectBankGetBalance,{referrer_card:o});break;case"charge_cards":this.fireTrack(e.Event.cardsConnectBankGetBalance,{referrer_card:o});break;case"reimbursement":this.fireTrack(e.Event.reimbursementConnectBankGetBalance,{referrer_card:o});break;case"onboarding":this.fireTrack(e.Event.onboardingConnectBankGetBalance,{referrer_card:o});break;case"bill_pay":this.fireTrack(e.Event.billPayConnectBankGetBalance,{referrer_card:o});break;default:this.fireTrack(e.Event.otherConnectionConnectBankGetBalance,{referrer_card:o});break}}trackNeedHelp(i){switch(i){case"onboarding":this.fireTrack(e.Event.onboardingNeedHelp,{});break;case"onboarding_interim":this.fireTrack(e.Event.onboardingInterimNeedHelp,{});break;case"onboarding_landing":this.fireTrack(e.Event.onboardingLandingNeedHelp,{});break;case"zeni_accounts":this.fireTrack(e.Event.zeniAccountsNeedHelp,{});break;case"charge_cards":this.fireTrack(e.Event.cardsNeedHelp,{});break;case"reimbursement":this.fireTrack(e.Event.reimbursementNeedHelp,{});break;default:this.fireTrack(e.Event.billPayNeedHelp,{});break}}trackAccountsListPageViewed(i,o,s,c,u){this.fireTrack(e.Event.accountsListPageViewed,{zeni_accounts_count:i,external_accounts_count:o,zeni_accounts_available_balance:s,total_yield_earned:c,current_average_yield:u})}trackAccountsListPageClicked(i,o,s){this.fireTrack(e.Event.accountsListPageClicked,{click_type:i,account_name:o,account_status:s})}trackAccountsPromoPageClicked(i){this.fireTrack(e.Event.accountsPromoPageClicked,{click_type:i})}trackTransferBetweenAccountsFormClicked(i,o,s,c,u,l,d,f){this.fireTrack(e.Event.zeniAccountsTransferFormClicked,{click_type:i,current_screen:o,transfer_from_bank_name:s,transfer_to_bank_name:c,amount:u,is_split_transfer:l,split_days_count:d,APY_slider_moved:f})}trackAccountsDepositCheckFormClicked(i,o,s,c,u,l){this.fireTrack(e.Event.accountsDepositCheckFormClicked,{click_type:i,amount:o,source_of_deposit:s,deposited_to:c,front_photo:u,back_photo:l})}trackAccountsDepositCheckFormViewed(){this.fireTrack(e.Event.accountsDepositCheckFormViewed)}trackZeniTransferBetweenAccountsFormViewed(){this.fireTrack(e.Event.zeniAccountsTransferFormViewed)}trackEnableZeniAccounts(){this.fireTrack(e.Event.enableZeniAccounts)}trackZeniAccountsPromoCardClick(i,o){this.fireTrack(e.Event.zeniAccountsPromoCardClick,{card_position:i,click_type:o})}trackZeniAccountsCashBalancePromoClicked(i){this.fireTrack(e.Event.zeniAccountsCashBalancePromoClicked,{click_type:i})}trackPlgPromoClicked(i,o){this.fireTrack(e.Event.plgPromoActionTaken,{page_name:i,clicked_on:o})}getBaseCardProperties(i,o,s,c){return{controller_emails:i,is_credit_card_offered:o.isCreditCardOffered,is_debit_card_offered:o.isDebitCardOffered,is_debit_card_enabled:o.isDebitCardEnabled,is_credit_card_enabled:o.isCreditCardEnabled,credit_account_id:s?.creditAccountId,credit_account_limit:s?.creditAccountLimit,credit_account_available_amount:s?.creditAccountAvailableAmount,credit_account_spent_amount:s?.creditAccountSpentAmount,credit_account_status:s?.creditAccountStatus,credit_account_outstanding_balance:s?.outstandingBalance,deposit_account_id:c?.debitAccountId,deposit_account_name:c?.debitAccountName,deposit_account_balance:c?.debitAccountBalance,debit_cards_spend:c?.debitCardsSpend,deposit_account_status:c?.debitAccountStatus}}getBaseCardPropertiesWithCashback(i,o,s,c,u){return{...this.getBaseCardProperties(i,o,c,u),credit_card_cashback_offer:s?.creditCardCashbackOffer,debit_card_cashback_offer:s?.debitCardCashbackOffer,total_earned_cashback:s?.totalEarnedCashback,redeemed_cashback:s?.redeemedCashback,available_cashback:s?.availableCashback,credit_card_cashback_redemption_mode:s?.creditCardCashbackRedemptionMode,debit_card_cashback_redemption_mode:s?.debitCardCashbackRedemptionMode}}getPaymentSourceProperties(i){return{is_zeni_checking_enabled:i.isZeniCheckingEnabled,is_zeni_checking_payment_source:i.isZeniCheckingPaymentSource,credit_card_payment_source_account_name:i.creditCardPaymentSourceAccountName,credit_card_payment_source_account_type:i.creditCardPaymentSourceAccountType,credit_card_payment_source_last_four_digits:i.creditCardPaymentSourceLastFourDigits,credit_card_payment_source_balance:i.creditCardPaymentSourceBalance}}getCardPaymentProperties(i){return{payment_amount:i.paymentAmount,payment_account_name:i.paymentAccountName,payment_account_type:i.paymentAccountType,payment_account_last_four_digits:i.paymentAccountLastFourDigits,payment_complete_eta:i.paymentCompleteEta,payment_initiated_date:i.paymentInitiatedDate}}trackCardsPromoPageClicked(i){this.fireTrack(e.Event.cardsPromoPageClick,{cards_click_type:i})}trackCardsListPageClicked(i){this.fireTrack(e.Event.cardsListPageClick,{cards_click_type:i})}trackCardsNewCardFormClicked(i,o,s,c,u){this.fireTrack(e.Event.cardsIssueNewCardFormClick,{cards_click_type:u,card_owner:i,card_name:o,amount:c,frequency:s})}trackCardsListRowClicked(i,o,s,c,u,l,d){this.fireTrack(e.Event.cardsListRowClick,{card_owner:i,card_name:o,department:s,utilisation:c,limit:u,frequency:l,is_self_card:d})}trackCardsDetailPageViewed(i,o,s,c,u,l,d,f){this.fireTrack(e.Event.cardsDetailPage,{card_id:i,is_self_card:f,card_owner:o,card_name:s,utilisation:c,limit:u,frequency:l,card_color:d})}trackCardsVerifyPopUpClick(i,o,s,c,u,l,d,f,p){this.fireTrack(e.Event.cardsVerifyPopUpClick,{cards_click_type:d,is_self_card:f,card_owner:o,card_name:s,utilisation:c,limit:u,frequency:l,card_id:i,selected_color:p})}trackCardsDetailPageClicked(i,o,s,c,u,l,d,f,p){this.fireTrack(e.Event.cardsDetailPageClick,{cards_click_type:d,is_self_card:f,card_owner:o,card_name:s,utilisation:c,limit:u,frequency:l,card_id:i,selected_color:p})}trackZeniCardsPromoCardClicked(i,o,s,c,u){this.fireTrack(e.Event.zeniCardsPromoCardClicked,{card_position:s,click_type:o,is_cards_setup:i,user_name:c,credit_limit:u??"NA"})}trackCardsSetupCardsClick(i,o,s){this.fireTrack(e.Event.cardsSetupCardsClick,{controller_emails:i,is_credit_card_offered:o.isCreditCardOffered,is_debit_card_offered:o.isDebitCardOffered,is_debit_card_enabled:o.isDebitCardEnabled,is_credit_card_enabled:o.isCreditCardEnabled,page_name:s})}trackCardsPromoView(i,o,s,c,u){this.fireTrack(e.Event.cardsPromoView,{controller_emails:i,is_credit_card_offered:o.isCreditCardOffered,is_debit_card_offered:o.isDebitCardOffered,is_debit_card_enabled:o.isDebitCardEnabled,is_credit_card_enabled:o.isCreditCardEnabled,promo_format:s,promo_product:c,page_name:u})}trackCardsEnableCardsClick(i,o,s){this.fireTrack(e.Event.cardsEnableCardsClick,{controller_emails:i,is_credit_card_offered:o.isCreditCardOffered,is_debit_card_offered:o.isDebitCardOffered,is_debit_card_enabled:o.isDebitCardEnabled,is_credit_card_enabled:o.isCreditCardEnabled,page_name:s})}trackCardsScheduleDemoClick(i,o,s){this.fireTrack(e.Event.cardsScheduleDemoClick,{controller_emails:i,is_credit_card_offered:o.isCreditCardOffered,is_debit_card_offered:o.isDebitCardOffered,is_debit_card_enabled:o.isDebitCardEnabled,is_credit_card_enabled:o.isCreditCardEnabled,page_name:s})}trackCardsCardListView(i,o,s,c,u){this.fireTrack(e.Event.cardsCardListView,{...this.getBaseCardPropertiesWithCashback(i,o,s,c,u)})}trackCardsCardListSearchClick(i,o,s,c,u){this.fireTrack(e.Event.cardsCardListSearchClick,{...this.getBaseCardPropertiesWithCashback(i,o,s,c,u)})}trackCardsCardListMoreMenuClick(i,o,s,c,u){this.fireTrack(e.Event.cardsCardListMoreMenuClick,{...this.getBaseCardPropertiesWithCashback(i,o,s,c,u)})}trackCardsSettingsClick(i,o,s,c,u){this.fireTrack(e.Event.cardsSettingsClick,{...this.getBaseCardPropertiesWithCashback(i,o,s,c,u)})}trackCardsCardSetupView(i,o,s){this.fireTrack(e.Event.cardsCardSetupView,{controller_emails:i,is_credit_card_offered:o.isCreditCardOffered,is_debit_card_offered:o.isDebitCardOffered,is_debit_card_enabled:o.isDebitCardEnabled,is_credit_card_enabled:o.isCreditCardEnabled,source:s})}trackCardsVerifyIdentityCompanyDetailsClick(i,o,s){this.fireTrack(e.Event.cardsVerifyIdentityCompanyDetailsClick,{controller_emails:i,is_credit_card_offered:o.isCreditCardOffered,is_debit_card_offered:o.isDebitCardOffered,is_debit_card_enabled:o.isDebitCardEnabled,is_credit_card_enabled:o.isCreditCardEnabled,status:s})}trackCardsPaymentAccountChangeClick(i,o,s){this.fireTrack(e.Event.cardsPaymentAccountChangeClick,{controller_emails:i,is_credit_card_offered:o.isCreditCardOffered,is_debit_card_offered:o.isDebitCardOffered,is_debit_card_enabled:o.isDebitCardEnabled,is_credit_card_enabled:o.isCreditCardEnabled,old_payment_account_name:s.oldPaymentAccountName,old_payment_account_balance:s.oldPaymentAccountBalance,new_payment_account_name:s.newPaymentAccountName,new_payment_account_balance:s.newPaymentAccountBalance,is_old_payment_account_recommended:s.isOldPaymentAccountRecommended,is_new_payment_account_recommended:s.isNewPaymentAccountRecommended,old_payment_account_position:s.oldPaymentAccountPosition,new_payment_account_position:s.newPaymentAccountPosition,number_of_payment_accounts:s.numberOfPaymentAccounts})}trackCardsZeniCashAccountChangeClick(i,o,s){this.fireTrack(e.Event.cardsZeniCashAccountChangeClick,{controller_emails:i,is_credit_card_offered:o.isCreditCardOffered,is_debit_card_offered:o.isDebitCardOffered,is_debit_card_enabled:o.isDebitCardEnabled,is_credit_card_enabled:o.isCreditCardEnabled,old_zeni_cash_account:s.oldZeniCashAccount,new_zeni_cash_account:s.newZeniCashAccount,old_zeni_cash_account_position:s.oldZeniCashAccountPosition,new_zeni_cash_account_position:s.newZeniCashAccountPosition,number_of_cash_accounts:s.numberOfCashAccounts})}trackCardsStatementsClick(i,o,s,c,u){this.fireTrack(e.Event.cardsStatementsClick,{...this.getBaseCardPropertiesWithCashback(i,o,s,c,u)})}trackCardsCreditCardStatementsView(i,o,s,c,u){this.fireTrack(e.Event.cardsCreditCardStatementsView,{...this.getBaseCardProperties(i,o,c,u),number_of_statements:s.numberOfStatements,oldest_statement_month_year:s.oldestStatementMonthYear,latest_statement_month_year:s.latestStatementMonthYear})}trackCardsDownloadClick(i,o,s,c,u,l,d,f){this.fireTrack(e.Event.cardsDownloadClick,{...this.getBaseCardPropertiesWithCashback(i,o,s,d,f),page_name:u,position:l,file_category:c.fileCategory,file_type:c.fileType,file_name:c.fileName,file_month_year:c.fileMonthYear})}trackCardsNewCardClick(i,o,s,c,u,l,d,f){this.fireTrack(e.Event.cardsNewCardClick,{...this.getBaseCardPropertiesWithCashback(i,o,s,d,f),click_item:c,action:u,page_name:l})}trackCardsCashbackOverviewClick(i,o,s,c,u,l,d){this.fireTrack(e.Event.cardsCashbackOverviewClick,{...this.getBaseCardPropertiesWithCashback(i,o,s,l,d),click_item:c,action:u})}trackCardsCardListRowClick(i,o,s,c,u,l,d,f,p){this.fireTrack(e.Event.cardsCardListRowClick,{...this.getBaseCardPropertiesWithCashback(i,o,d,f,p),click_item:s,action:c,position:u,card_name:l.cardName,card_owner:l.cardOwner,card_type:l.cardType,card_status:l.cardStatus,card_utilization_amount:l.cardUtilizationAmount,card_utilization_percent:l.cardUtilizationPercent,card_limit:l.cardLimit})}trackCardsCopyIconClick(i,o,s,c,u,l,d,f,p,_){this.fireTrack(e.Event.cardsCopyIconClick,{...this.getBaseCardPropertiesWithCashback(i,o,f,p,_),click_item:c,action:u,action_field:l,action_details:d,page_name:s})}trackCardsCardListSortClick(i,o,s,c,u,l,d,f,p,_){this.fireTrack(e.Event.cardsCardListSortClick,{...this.getBaseCardPropertiesWithCashback(i,o,s,p,_),click_item:c,action:u,action_field:l,action_details:d,page_name:f})}trackCardsCardDetailView(i,o,s,c,u,l,d){this.fireTrack(e.Event.cardsCardDetailView,{...this.getBaseCardProperties(i,o,l,d),card_name:s.cardName,card_type:s.cardType,card_category:s.cardCategory,card_limit:s.cardLimit,card_last_four_digits:s.cardLastFourDigits,card_status:s.cardStatus,card_utilization_percent:s.cardUtilizationPercent,card_id:s.cardId,card_assigned_date:s.cardAssignedDate,card_issued_date:s.cardIssuedDate,card_activated_date:s.cardActivatedDate,card_limit_frequency:s.cardLimitFrequency,card_spent_amount:s.cardSpentAmount,card_available_limit:s.cardAvailableLimit,card_utilization_amount:s.cardUtilizationAmount,total_number_of_declined_transactions:s.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:s.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:s.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:s.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:s.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:s.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:s.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:s.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:s.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:s.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:c.cardIssuedByName,card_issued_by_email:c.cardIssuedByEmail,card_issued_by_user_id:c.cardIssuedByUserId,card_issued_by_role:c.cardIssuedByRole,card_issued_by_department:c.cardIssuedByDepartment,cardholder_name:u.cardholderName,cardholder_email:u.cardholderEmail,cardholder_role:u.cardholderRole,cardholder_user_id:u.cardholderUserId,cardholder_department:u.cardholderDepartment})}trackCardsUpdateSpendLimitInitiated(i,o,s,c,u,l,d,f,p,_){this.fireTrack(e.Event.cardsUpdateSpendLimitInitiated,{...this.getBaseCardProperties(i,o,p,_),card_name:s.cardName,card_type:s.cardType,card_category:s.cardCategory,card_limit:s.cardLimit,card_last_four_digits:s.cardLastFourDigits,card_status:s.cardStatus,card_utilization_amount:s.cardUtilizationAmount,card_utilization_percent:s.cardUtilizationPercent,card_id:s.cardId,card_assigned_date:s.cardAssignedDate,card_issued_date:s.cardIssuedDate,card_activated_date:s.cardActivatedDate,card_limit_frequency:s.cardLimitFrequency,card_spent_amount:s.cardSpentAmount,card_available_limit:s.cardAvailableLimit,total_number_of_declined_transactions:s.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:s.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:s.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:s.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:s.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:s.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:s.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:s.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:s.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:s.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:c.cardIssuedByName,card_issued_by_email:c.cardIssuedByEmail,card_issued_by_user_id:c.cardIssuedByUserId,card_issued_by_role:c.cardIssuedByRole,card_issued_by_department:c.cardIssuedByDepartment,cardholder_name:u.cardholderName,cardholder_email:u.cardholderEmail,cardholder_role:u.cardholderRole,cardholder_user_id:u.cardholderUserId,cardholder_department:u.cardholderDepartment,page_name:l,source:d,recommended_limits:f})}trackCardsUpdateSpendLimitClick(i,o,s,c,u,l,d,f,p,_,v,m,g){this.fireTrack(e.Event.cardsUpdateSpendLimitClick,{...this.getBaseCardProperties(i,o,m,g),card_name:s.cardName,card_type:s.cardType,card_category:s.cardCategory,card_limit:s.cardLimit,card_last_four_digits:s.cardLastFourDigits,card_status:s.cardStatus,card_utilization_amount:s.cardUtilizationAmount,card_utilization_percent:s.cardUtilizationPercent,card_id:s.cardId,card_assigned_date:s.cardAssignedDate,card_issued_date:s.cardIssuedDate,card_activated_date:s.cardActivatedDate,card_limit_frequency:s.cardLimitFrequency,card_spent_amount:s.cardSpentAmount,card_available_limit:s.cardAvailableLimit,total_number_of_declined_transactions:s.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:s.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:s.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:s.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:s.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:s.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:s.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:s.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:s.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:s.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:c.cardIssuedByName,card_issued_by_email:c.cardIssuedByEmail,card_issued_by_user_id:c.cardIssuedByUserId,card_issued_by_role:c.cardIssuedByRole,card_issued_by_department:c.cardIssuedByDepartment,cardholder_name:u.cardholderName,cardholder_email:u.cardholderEmail,cardholder_role:u.cardholderRole,cardholder_user_id:u.cardholderUserId,cardholder_department:u.cardholderDepartment,click_item:d,current_limit:f,new_limit:v,recommended_limits:p,was_recommended_limit_selected:_,card_limit_updated_by_name:l.cardLimitUpdatedByName,card_limit_updated_by_email:l.cardLimitUpdatedByEmail,card_limit_updated_by_role:l.cardLimitUpdatedByRole,card_limit_updated_by_user_id:l.cardLimitUpdatedByUserId})}trackCardsAddToWalletClick(i,o,s,c,u,l,d,f,p){this.fireTrack(e.Event.cardsAddToWalletClick,{...this.getBaseCardProperties(i,o,f,p),card_id:s.cardId,card_name:s.cardName,card_type:s.cardType,card_category:s.cardCategory,card_limit:s.cardLimit,card_last_four_digits:s.cardLastFourDigits,card_status:s.cardStatus,card_assigned_date:s.cardAssignedDate,card_issued_date:s.cardIssuedDate,card_limit_frequency:s.cardLimitFrequency,card_issued_by_name:c.cardIssuedByName,card_issued_by_email:c.cardIssuedByEmail,card_issued_by_user_id:c.cardIssuedByUserId,card_issued_by_role:c.cardIssuedByRole,card_issued_by_department:c.cardIssuedByDepartment,cardholder_name:u.cardholderName,cardholder_email:u.cardholderEmail,cardholder_role:u.cardholderRole,cardholder_user_id:u.cardholderUserId,cardholder_department:u.cardholderDepartment,page_name:l,click_item:d})}trackCardsPayEarlyClick(i,o,s,c,u,l,d,f,p){this.fireTrack(e.Event.cardsPayEarlyClick,{...this.getBaseCardPropertiesWithCashback(i,o,s,f,p),...this.getPaymentSourceProperties(d),click_item:l,page_name:c,source:u})}trackCardsPayEarlyFormView(i,o,s,c,u,l,d,f,p){this.fireTrack(e.Event.cardsPayEarlyFormView,{...this.getBaseCardPropertiesWithCashback(i,o,s,f,p),...this.getPaymentSourceProperties(d),is_autopay_selected:u,payment_amount:l,page_name:c})}trackCardsPayEarlyFormClick(i,o,s,c,u,l,d,f,p){this.fireTrack(e.Event.cardsPayEarlyFormClick,{...this.getBaseCardPropertiesWithCashback(i,o,s,f,p),...this.getPaymentSourceProperties(d),is_autopay_selected:u,...this.getCardPaymentProperties(l),click_item:c})}trackCardsPayEarlyPayNowClick(i,o,s,c,u,l,d,f){this.fireTrack(e.Event.cardsPayEarlyPayNowClick,{...this.getBaseCardPropertiesWithCashback(i,o,s,d,f),...this.getPaymentSourceProperties(l),is_autopay_selected:c,...this.getCardPaymentProperties(u)})}trackEnableBillPay(){this.fireTrack(e.Event.enableBillPay)}trackEnableReimbursement(){this.fireTrack(e.Event.enableReimbursement)}trackUploadInvoice(i,o,s){switch(o){case"w9":this.fireTrack(e.Event.vendor1099W9DocumentUpload,{invoice_upload_method:i,vendor_legal_name:s??""});break;case"reimbursement":this.fireTrack(e.Event.reimbursementInvoiceUpload,{invoice_upload_method:i});break;default:this.fireTrack(e.Event.billPayInvoiceUpload,{invoice_upload_method:i});break}}trackInvoiceActionClick(i,o,s,c){this.fireTrack(e.Event.billPayInvoiceActionClick,{bill_stage:i,action_clicked:o,user_name:s,override_data_click:c})}trackBillPaySkipAutofill(){this.fireTrack(e.Event.billPaySkipAutofill)}trackReimbursementSkipAutofill(){this.fireTrack(e.Event.reimbursementSkipAutofill)}trackBillPayNewBill(){this.fireTrack(e.Event.billPayNewBill)}trackReimbursementNewReimbursement(){this.fireTrack(e.Event.reimbursementNewReimbursement)}trackBillPayEditBill(i,o){this.fireTrack(e.Event.billPayEditBill,{bill_id:i,is_recurring_bill:o})}trackReimbursementEditReimbursement(i){this.fireTrack(e.Event.reimbursementEditReimbursement,{reimbursement_id:i})}trackBillPayBillDetails(i,o){this.fireTrack(e.Event.billPayBillDetails,{bill_id:i,is_recurring_bill:o})}trackReimbursementReimbursementDetails(i){this.fireTrack(e.Event.reimbursementReimbursementDetails,{reimbursement_id:i})}trackBillPayReviewBill(i,o,s,c,u,l,d,f,p,_,v,m,g,y){const b={final_vendor_name:l,zeni_rec_vendor_name:d,document_ai_rec_vendor_name:f,bill_id:p,invoice_number:_,invoice_date:o,bill_due_date:v,memo:m,currency:s,collect_from_vendor:c,international_transfer_fee_bearer_payment_method:g,is_recurring_bill:u,payment_method:i};u&&y!=null&&(b.recurring_bill_config={bill_value:y.totalAmount,start_date:y.startDate,end_date:y.endDate,frequency:y.frequency,total_payment_cycles:y.totalPaymentCycles,is_approval_required:y.isApprovalRequired}),this.fireTrack(e.Event.billPayReviewBill,b)}trackReimbursementSubmitReimbursement(i,o,s,c){this.fireTrack(e.Event.reimbursementSubmitReimbursement,{create_date:i,currency:o,total_amount:s,reimbursement_id:c})}trackBillPaySendForApproval(i,o,s,c,u,l,d){const f={bill_id:u,payment_method:i,scheduled_date:o,collect_from_vendor:s,international_transfer_fee_bearer_payment_method:l,is_recurring_bill:c};c&&d!=null&&(f.recurring_bill_config={bill_value:d.totalAmount,start_date:d.startDate,end_date:d.endDate,frequency:d.frequency,total_payment_cycles:d.totalPaymentCycles,is_approval_required:d.isApprovalRequired,is_update_current_bill:d.updateCurrentBill,is_update_future_bills:d.updateFutureRecurringBills}),this.fireTrack(e.Event.billPaySendForApproval,f)}trackBillPayDeleteBill(i,o){this.fireTrack(e.Event.billPayDeleteBill,{bill_id:i,is_recurring_bill:o})}trackBillPayCancelBill(i){this.fireTrack(e.Event.billPayCancelBill,{bill_id:i})}trackBillPayCancelAndDeleteBill(i,o){this.fireTrack(e.Event.billPayCancelAndDeleteBill,{bill_id:i,is_recurring_bill:o})}trackReimbursementListSort(i,o){this.fireTrack(e.Event.reimbursementListSort,{sort_key:i,sort_order:o})}trackReimbursementDeleteReimbursement(i){this.fireTrack(e.Event.reimbursementDeleteReimbursement,{reimbursement_id:i})}trackReimbursementCancelReimbursement(i){this.fireTrack(e.Event.reimbursementCancelReimbursement,{reimbursement_id:i})}trackReimbursementCancelAndDeleteReimbursement(i){this.fireTrack(e.Event.reimbursementCancelAndDeleteReimbursement,{reimbursement_id:i})}trackReimbursementDeleteReimbursementLine(i,o){this.fireTrack(e.Event.reimbursementDeleteReimbursementLine,{reimbursement_id:o,line_id:i})}trackReimbursementSubmitAnywayDuplicateReimbursement(i,o){this.fireTrack(e.Event.reimbursementSubmitAnywayDuplicateReimbursement,{reimbursement_id:o,number_of_duplicate_expenses:i})}trackReimbursementViewDuplicateExpense(i,o){this.fireTrack(e.Event.reimbursementViewDuplicateExpense,{reimbursement_id:o,is_duplicate_within_transaction:i})}trackReimbursementReviewDuplicateReportReimbursement(i,o){this.fireTrack(e.Event.reimbursementReviewDuplicateReportReimbursement,{reimbursement_id:o,number_of_duplicate_expenses:i})}trackReimbursementBulkSelectAll(i,o,s){this.fireTrack(e.Event.reimbursementBulkSelectAll,{report_stage:i,report_status:o,report_type:s})}trackReimbursementBulkDeleted(i,o,s,c){this.fireTrack(e.Event.reimbursementBulkDeleted,{total_reports_deleted:i,report_stage:o,report_status:s,report_type:c})}trackReimbursementBulkSubmit(i,o,s){this.fireTrack(e.Event.reimbursementBulkSubmit,{operation_type:i,report_stage:o,report_status:s})}trackReimbursementBulkSelection(i,o,s,c){this.fireTrack(e.Event.reimbursementBulkSelection,{total_reports_selected:i,report_stage:o,report_status:s,report_type:c})}trackReimbursementBulkPopupConfirm(i,o,s,c){this.fireTrack(e.Event.reimbursementBulkPopupConfirm,{operation_type:i,report_stage:o,report_status:s,report_type:c})}trackBillPayNewVendor(i,o,s,c,u,l,d){this.fireTrack(e.Event.billPayNewVendor,{vendor_name:i,vendor_category:o,vendor_class_name:s,vendor_type:c,vendor_contact_email:u,venfor_contact_name:l,vendor_contact_phone:d})}trackBillPayEditVendor(i){this.fireTrack(e.Event.billPayEditVendor,{vendor_id:i})}trackBillPayExpandVendor(i){this.fireTrack(e.Event.billPayExpandVendor,{vendor_id:i})}trackBillPayChooseNewVendor(){this.fireTrack(e.Event.billPayChooseNewVendor)}trackBillPayCreateNewVendorFromRecDropdown(i){this.fireTrack(e.Event.billPayCreateNewVendorFromDropdown,{vendor_name:i})}trackBillPayMagicLinkPreviewEmail(i){this.fireTrack(e.Event.billPayMagicLinkPreviewEmail,{on_page:i})}trackBillPayMagicLinkSubmitBankAccountDetails(i){this.fireTrack(e.Event.billPayMagicLinkSubmitBankAccountDetails,{bill_id:i})}trackBillPayMagicLinkPageLoad(i,o,s,c,u,l,d){this.fireTrack(e.Event.billPayMagicLinkPageLoad,{tenant_email_domain:i,vendor_id:o,company_name:s,bill_id:c,payment_method:u,currency:l,total_amount:d})}trackBillPayAutoDateChange(i){this.fireTrack(e.Event.billPayAutoDateChange,{bill_id:i})}trackBillPayBulkSelectAll(i,o,s){this.fireTrack(e.Event.billPayBulkSelectAll,{bill_stage:i,bill_status:o,bill_type:s})}trackBillPayBulkDeleted(i,o,s,c){this.fireTrack(e.Event.billPayBulkDeleted,{total_bills_deleted:i,bill_stage:o,bill_status:s,bill_type:c})}trackBillPayBulkSubmit(i,o,s){this.fireTrack(e.Event.billPayBulkSubmit,{operation_type:i,bill_stage:o,bill_status:s})}trackBillPayBulkSelection(i,o,s,c){this.fireTrack(e.Event.billPayBulkSelection,{total_bills_selected:i,bill_stage:o,bill_status:s,bill_type:c})}trackBillPayBulkPopupConfirm(i,o,s,c){this.fireTrack(e.Event.billPayBulkPopupConfirm,{operation_type:i,bill_stage:o,bill_status:s,bill_type:c})}trackBillPayMarkAsPaid(i,o){this.fireTrack(e.Event.billPayMarkAsPaid,{bill_stage:i,bill_status:o})}trackBillPayMarkAsPaidSubmit(i,o,s){this.fireTrack(e.Event.billPayMarkAsPaidSubmit,{payment_mode:i,bill_stage:o,bill_status:s})}trackGroupBySwitch(i,o){this.fireTrack(e.Event.groupBySwitch,{view:i,parent_card:o})}trackUpdateBurnRateCalculatorSettings(i,o,s){this.fireTrack(e.Event.burnRateCalculatorSettings,{accounting_method:i,time_span_id_for_avg_net_burn:o,number_of_months_for_average:s})}trackTransactionDetailsSave(i,o,s,c,u,l,d,f){this.fireTrack(e.Event.transactionDetailsSave,{account_id:i,account_name:o,transaction_id:s,transaction_name:c,transaction_type:u,changed_line_item_count:l,transaction_memo:d,receipt_file_names:f})}trackTransactionTypeUpdateTriggered({amount:i,creditAccountGroup:o,creditAccountId:s,creditAccountName:c,creditAccountType:u,currentTransactionType:l,debitAccountGroup:d,debitAccountId:f,debitAccountName:p,debitAccountType:_,previousTransactionMemo:v,previousTransactionType:m,transactionId:g,updatedTransactionMemo:y}){this.fireTrack(e.Event.transactionTypeUpdateTriggered,{previous_transaction_type:m,current_transaction_type:l,previous_transaction_memo:v,updated_transaction_memo:y,debit_account_name:p,debit_account_id:f,debit_account_type:_,debit_account_group:d,credit_account_name:c,credit_account_id:s,credit_account_type:u,credit_account_group:o,amount:i,transaction_id:g})}trackVendorList(i,o,s,c,u){this.fireTrack(e.Event.vendorList,{vendor_count:s,sort_key:c,spend_trend_key:u,current_tab:i,previous_tab:o})}trackVendorListSort(i,o,s){this.fireTrack(e.Event.vendorListSort,{vendor_count:i,sort_key:o,spend_trend_key:s})}trackVendorListSearch(i){this.fireTrack(e.Event.vendorListSearch,{search_term:i})}trackVendorListSpendTrendSelection(i,o,s){this.fireTrack(e.Event.vendorListSpendTrendSelection,{vendor_count:i,sort_key:o,spend_trend_key:s})}trackVendorDetails(i,o,s,c,u,l,d,f,p,_){this.fireTrack(e.Event.vendorDetails,{vendor_id:i,vendor_name:o,referrer_card:s,vendor_category:c,vendor_class_name:u,spend_trend_indicator_value:d,vendor_spend_last_30days:f,vendor_spend_last_90days:p,vendor_spend_ytd:_,vendor_owner:l})}trackVendorDetailsSave(i,o,s,c,u,l,d,f,p,_,v,m){this.fireTrack(e.Event.vendorDetailsSave,{vendor_id:i,vendor_name:o,vendor_category:s,vendor_class_name:c,vendor_owner:u,saved_vendor_category:l,saved_vendor_class:d,saved_vendor_owner:f,is_recommended_category_selected:p,is_recommended_class_selected:_,category_recommendation_used:v,class_recommendation_used:m})}trackVendorDetailsCancel(i,o,s,c,u){this.fireTrack(e.Event.vendorDetailsCancel,{vendor_id:i,vendor_name:o,vendor_category:s,vendor_class_name:c,vendor_owner:u})}trackVendorDetailsSpendTrendHotlinkClicked(i,o,s,c,u){this.fireTrack(e.Event.vendorDetailsSpendTrendHotlinkClicked,{vendor_id:i,vendor_name:o,vendor_category:s,vendor_class_name:c,vendor_owner:u})}trackAgingReportDownloadClick(i,o,s){this.fireTrack(e.Event.download,{referrer_card:i,sort_key:o,sort_order:s})}trackAgingReportDateChange(i,o,s,c){this.fireTrack(e.Event.agingReportDateChange,{referrer_card:i,current_report_date:o,new_report_date:s,new_report_date_selection:c})}trackAgingReportSortChange(i,o,s){this.fireTrack(e.Event.sort,{referrer_card:i,sort_key:o,sort_order:s})}trackApAgingDetail(i,o,s,c){this.fireTrack(e.Event.apAgingDetail,{referrer_card:i,vendor_id:s,vendor_name:c,current_report_date:o})}trackArAgingDetail(i,o,s,c){this.fireTrack(e.Event.arAgingDetail,{referrer_card:i,customer_id:s,customer_name:c,current_report_date:o})}trackApAgingDetailReportSortChange(i,o,s,c,u){this.fireTrack(e.Event.sort,{referrer_card:"AP Aging Detail",sort_key:i,sort_order:o,vendor_id:c,vendor_name:u,current_report_date:s})}trackArAgingDetailReportSortChange(i,o,s,c,u){this.fireTrack(e.Event.sort,{referrer_card:"AR Aging Detail",sort_key:i,sort_order:o,customer_id:c,customer_name:u,current_report_date:s})}trackApAgingDetailReportDownload(i,o,s,c,u){this.fireTrack(e.Event.download,{referrer_card:"AP Aging Detail",sort_key:i,sort_order:o,vendor_id:c,vendor_name:u,current_report_date:s})}trackArAgingDetailReportDownload(i,o,s,c,u){this.fireTrack(e.Event.download,{referrer_card:"AR Aging Detail",sort_key:i,sort_order:o,customer_id:c,customer_name:u,current_report_date:s})}trackVendorReviewPage(i,o){this.fireTrack(e.Event.vendorReviewList,{vendor_review_source:i,vendor_review_count_total:o})}trackVendorReviewApproveRequested({reviewSource:i,tenantName:o,requestedVendorName:s,originalVendorName:c,approveVendorName:u,approveVendorNameSelectionSource:l,approveVendorReason:d,isGlobalVendorRequested:f,isNewCreatedVendorRequested:p,isVendorNameRecommendationSelected:_,isVendorNameChangedAndSelected:v,wasRecommendationAvailable:m,recommendedVendorName:g,recommendedVendorReason:y}){this.fireTrack(e.Event.vendorReviewGlobalApproveRequest,{vendor_review_source:i,vendor_review_tenant_name:o,old_vendor_name_requested:s,old_vendor_name_original:c,approve_vendor_name_requested:u,approve_vendor_name_recommendation_reason:d,approve_vendor_name_selection_source:l,vendor_name_recommendation:g,vendor_name_recommendation_reason:y,is_vendor_recommended:m,is_recommended_vendor_name_selected:_,is_vendor_renamed:v,is_global_vendor_selected:f,is_vendor_name_new_created_and_selected:p})}trackVendorReviewNewVendorRequested({reviewSource:i,tenantName:o,newRequestedVendorName:s,newRequestedVendorNameSource:c,isVendorNameRecommendationSelected:u,recommendedVendorName:l,recommendedVendorReason:d}){this.fireTrack(e.Event.vendorReviewGlobalNewVendorRequest,{vendor_review_source:i,vendor_review_tenant_name:o,new_vendor_name_requested:s,new_vendor_name_selection_source:c,new_vendor_recommendation_vendor_name:l,new_vendor_recommendation_vendor_name_reason:d,is_recommended_vendor_name_selected:u})}trackVendorReviewNewVendorSaved({reviewSource:i,saveRequestedVendorName:o,saveRequestedVendorSource:s,isVendorNameRecommendationSelected:c,tenantName:u,recommendedVendorName:l,recommendedVendorReason:d}){this.fireTrack(e.Event.vendorReviewGlobalNewVendorSave,{vendor_review_source:i,vendor_review_tenant_name:u,saved_vendor_name:o,saved_vendor_name_selection_source:s,new_vendor_recommendation_vendor_name:l,new_vendor_recommendation_vendor_name_reason:d,is_recommended_vendor_name_selected:c})}trackVendorReviewNewVendorCanceled({reviewSource:i,newRequestedVendorName:o,tenantName:s,recommendedVendorName:c,recommendedVendorReason:u}){this.fireTrack(e.Event.vendorReviewGlobalNewVendorCancel,{vendor_review_source:i,vendor_review_tenant_name:s,new_vendor_name_requested:o,new_vendor_recommendation_vendor_name:c,new_vendor_recommendation_vendor_name_reason:u})}trackVendorReviewSaveVendorRequested({reviewSource:i,vendorName:o,vendorReviewStatus:s,saveRequestedVendorName:c,saveRequestedVendorReason:u,saveRequestedVendorSource:l,isGlobalVendorRequested:d,isVendorNameRetainSelected:f,isVendorNameRecommendationSelected:p,isVendorNameChangedAndSelected:_,wasRecommendationAvailable:v,isVendorNameMarkedAsEmployee:m,isVendorNameMarkedAsLocalContractor:g,recommendedVendorName:y,recommendedVendorReason:b}){this.fireTrack(e.Event.vendorReviewTenantSave,{vendor_review_source:i,old_vendor_name:o,review_status:s,saved_vendor_name:c,save_vendor_name_recommendation_reason:u,saved_vendor_name_source:l,vendor_name_recommendation:y,vendor_name_recommendation_reason:b,is_vendor_name_retain_selected:f,is_recommended_vendor_name_selected:p,is_global_vendor_selected:d,is_vendor_renamed:_,is_vendor_recommended:v,is_vendor_employee:m,is_vendor_contractor:g})}trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:i,event:o,vendorName:s,vendorReviewStatus:c,saveRequestedVendorName:u,saveRequestedVendorReason:l,saveRequestedVendorSource:d,isVendorNameRetainSelected:f,isVendorNameRecommendationSelected:p,isVendorNameChangedAndSelected:_,wasRecommendationAvailable:v,recommendedVendorName:m,recommendedVendorReason:g}){this.fireTrack(o,{vendor_review_source:i,old_vendor_name:s,review_status:c,saved_vendor_name:u,save_vendor_name_recommendation_reason:l,saved_vendor_name_source:d,vendor_name_recommendation:m,vendor_name_recommendation_reason:g,is_vendor_name_retain_selected:f,is_recommended_vendor_name_selected:p,is_vendor_renamed:_,is_vendor_recommended:v})}trackVendorReviewRecommendationUpdateContinuedOrCanceled({reviewSource:i,event:o,vendorName:s,vendorReviewStatus:c,saveRequestedVendorName:u,saveRequestedVendorReason:l,saveRequestedVendorSource:d,isVendorNameRetainSelected:f,isVendorNameRecommendationSelected:p,isVendorNameChangedAndSelected:_,wasRecommendationAvailable:v,updatedRecommendedVendorName:m,updatedRecommendedVendorReason:g,recommendedVendorName:y,recommendedVendorReason:b}){this.fireTrack(o,{vendor_review_source:i,old_vendor_name:s,review_status:c,saved_vendor_name:u,save_vendor_name_recommendation_reason:l,saved_vendor_name_source:d,updated_recommendation_vendor_name:m,updated_recommendation_vendor_name_reason:g,vendor_name_recommendation:y,vendor_name_recommendation_reason:b,is_vendor_name_retain_selected:f,is_recommended_vendor_name_selected:p,is_vendor_renamed:_,is_vendor_recommended:v})}trackVendorReviewUpdateVendorCanceled({reviewSource:i,vendorName:o,vendorReviewStatus:s,wasRecommendationAvailable:c,recommendedVendorName:u,recommendedVendorReason:l}){this.fireTrack(e.Event.vendorReviewTenantUpdateCancel,{vendor_review_source:i,old_vendor_name:o,review_status:s,vendor_name_recommendation:u,vendor_name_recommendation_reason:l,is_vendor_recommended:c})}trackVendorReviewWebsiteOpened({reviewSource:i,vendorName:o,wasRecommendationAvailable:s,recommendedVendorName:c,recommendedVendorReason:u,vendorWebsite:l}){this.fireTrack(e.Event.vendorReviewTenantWebsiteOpened,{vendor_review_source:i,old_vendor_name:o,vendor_name_recommendation:c,vendor_name_recommendation_reason:u,is_vendor_recommended:s,vendor_website:l})}trackCockpitTabClicked(i){const o={tab_name:i};this.fireTrack(e.Event.cockpitTabClicked,o)}trackCockpitHealthMonitorRowClicked(i,o,s,c,u,l){const d={company_id:i,company_name:o,churn_percent:l,controller_name:s,nps:c,csat:u};this.fireTrack(e.Event.cockpitHealthMonitorRowClicked,d)}trackHealthMonitorFiltersApplied({filterSelection:i}){this.fireTrack(e.Event.healthMonitorFilterApplied,{parameter:i.parameter,condition:i.condition,logic:i.logic})}trackCockpitHealthMonitorNotificationAlertClicked(i){const o={company_id:i.companyId,company_name:i.companyName,churn_percent:i.churnProbability};this.fireTrack(e.Event.cockpitHealthMonitorNotificationAlertClicked,o)}trackCockpitHealthMonitorChurnFormClicked(i,o){const s={click_type:i,company_id:o.companyId,company_name:o.companyName,zeni_products_and_services:o.zeniProductAndServicesCount,days_to_renewal:o.daysToRenewal,nps:o.netPromoterScore,csat:o.customerSatisfactionScore,external_services_exposure:o.externalServicesExposure,runway_months:o.runwayMonths,dashboard_last_seen:o.dashBoardLastSeen,last_report_sent:o.lastReportSent,churn_percent:o.churnProbability};this.fireTrack(e.Event.cockpitHealthMonitorChurnFormClicked,s)}trackScheduleReviewListLoaded({scheduleType:i,scheduleTab:o,currentTab:s,previousTab:c,scheduleCountTotal:u,categories:l,startMonth:d,endMonth:f,controllerEmails:p,controllerUserIds:_}){this.fireTrack(e.Event.scheduleReviewList,{schedule_type:i,schedule_list_tab:o,schedule_count_total:u,current_tab:s,previous_tab:c,schedule_account_categories_selected:l,schedule_period_start_month:d,schedule_period_end_month:f,controller_emails:p,controller_user_ids:_})}trackScheduleDetailsLoaded({scheduleType:i,transaction:o,scheduleExpenseCategoryAndClass:s,scheduledTransaction:c,vendorName:u,fixedAssetsDetails:l,controllerEmails:d,controllerUserIds:f}){const{transactionDate:p,transactionAmount:_,scheduleCategory:v,scheduleClass:m,description:g}=o,{currentBalance:y,currentStatus:b,startMonth:k,endMonth:w,period:S}=c,{expenseCategory:T,expenseClass:R}=s;this.fireTrack(e.Event.scheduleDetailsPage,{schedule_type:i,vendor_name:u,transaction_date:p,transaction_amount:_,schedule_current_balance:y,schedule_category:v,schedule_class:m,schedule_description:g,schedule_current_status:b,schedule_start_month:k,schedule_end_month:w,schedule_number_of_months:S,expense_category:T,expense_class:R,accumulated_depreciation_category:l?.accumulatedDepreciationCategory??null,asset_id:l?.assetId??null,controller_emails:d,controller_user_ids:f})}trackScheduleDetailsSaved({scheduleType:i,transaction:o,scheduleExpenseCategoryAndClass:s,scheduledTransaction:c,vendorName:u,fixedAssetsDetails:l,controllerEmails:d,controllerUserIds:f}){const{transactionDate:p,transactionAmount:_,scheduleCategory:v,scheduleClass:m,description:g}=o,{currentBalance:y,currentStatus:b,startMonth:k,endMonth:w,period:S}=c,{expenseCategory:T,expenseClass:R}=s;this.fireTrack(e.Event.scheduleDetailsSave,{schedule_type:i,vendor_name:u,transaction_date:p,transaction_amount:_,schedule_current_balance:y,schedule_category:v,schedule_class:m,schedule_description:g,schedule_current_status:b,schedule_start_month:k,schedule_end_month:w,schedule_number_of_months:S,expense_category:T,expense_class:R,accumulated_depreciation_category:l?.accumulatedDepreciationCategory??null,asset_id:l?.assetId??null,controller_emails:d,controller_user_ids:f})}trackScheduleDetailsCanceled({scheduleType:i,transaction:o,scheduleExpenseCategoryAndClass:s,scheduledTransaction:c,vendorName:u,fixedAssetsDetails:l,controllerEmails:d,controllerUserIds:f}){const{transactionDate:p,transactionAmount:_,scheduleCategory:v,scheduleClass:m,description:g}=o,{currentBalance:y,currentStatus:b,startMonth:k,endMonth:w,period:S}=c,{expenseCategory:T,expenseClass:R}=s;this.fireTrack(e.Event.scheduleDetailsCancel,{schedule_type:i,vendor_name:u??"",transaction_date:p,transaction_amount:_,schedule_current_balance:y,schedule_category:v,schedule_class:m,schedule_description:g,schedule_current_status:b,schedule_start_month:k,schedule_end_month:w,schedule_number_of_months:S,expense_category:T,expense_class:R,accumulated_depreciation_category:l?.accumulatedDepreciationCategory??null,asset_id:l?.assetId??null,controller_emails:d,controller_user_ids:f})}trackScheduleDetailsLinkJournalEntry({scheduleType:i,transaction:o,scheduleExpenseCategoryAndClass:s,journalEntryDetails:c,vendorName:u,fixedAssetsDetails:l,controllerEmails:d,controllerUserIds:f}){const{transactionDate:p,transactionAmount:_,scheduleCategory:v,scheduleClass:m}=o,{journalEntryMonth:g,journalEntryPostingDate:y,journalEntryTransactionAmount:b,journalEntryPostingStatus:k,journalEntryMemo:w}=c,{expenseCategory:S,expenseClass:T}=s;this.fireTrack(e.Event.scheduleDetailsLinkJournalEntry,{schedule_type:i,vendor_name:u,transaction_date:p,transaction_amount:_,schedule_category:v,schedule_class:m,journal_entry_month:g,journal_entry_posting_date:y,journal_entry_transaction_amount:b,journal_entry_posting_status:k,journal_entry_memo:w,expense_category:S,expense_class:T,accumulated_depreciation_category:l?.accumulatedDepreciationCategory??null,asset_id:l?.assetId??null,controller_emails:d,controller_user_ids:f})}trackScheduleDetailsViewJournalEntry({scheduleType:i,scheduleExpenseCategoryAndClass:o,journalEntryDetails:s,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{journalEntryMonth:d,journalEntryPostingDate:f,journalEntryTransactionAmount:p,journalEntryPostingStatus:_,journalEntryMemo:v}=s,{expenseCategory:m,expenseClass:g}=o;this.fireTrack(e.Event.scheduleDetailsViewJournalEntry,{schedule_type:i,journal_entry_month:d,journal_entry_posting_date:f,journal_entry_transaction_amount:p,journal_entry_posting_status:_,journal_entry_memo:v,expense_category:m,expense_class:g,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsDeleted({scheduleType:i,transaction:o,scheduleExpenseCategoryAndClass:s,scheduledTransaction:c,vendorName:u,fixedAssetsDetails:l,controllerEmails:d,controllerUserIds:f}){const{transactionDate:p,transactionAmount:_,scheduleCategory:v,scheduleClass:m,description:g}=o,{currentBalance:y,currentStatus:b,startMonth:k,endMonth:w,period:S}=c,{expenseCategory:T,expenseClass:R}=s;this.fireTrack(e.Event.scheduleDetailsDelete,{schedule_type:i,vendor_name:u,transaction_date:p,transaction_amount:_,schedule_current_balance:y,schedule_category:v,schedule_class:m,schedule_description:g,schedule_current_status:b,schedule_start_month:k,schedule_end_month:w,schedule_number_of_months:S,expense_category:T,expense_class:R,accumulated_depreciation_category:l?.accumulatedDepreciationCategory??null,asset_id:l?.assetId??null,controller_emails:d,controller_user_ids:f})}trackScheduleDetailsMarkedAsCompleted({scheduleType:i,transaction:o,scheduledTransaction:s,scheduleExpenseCategoryAndClass:c,vendorName:u,fixedAssetsDetails:l,controllerEmails:d,controllerUserIds:f}){const{transactionDate:p,transactionAmount:_,scheduleCategory:v,scheduleClass:m,description:g}=o,{currentBalance:y,currentStatus:b,startMonth:k,endMonth:w,period:S}=s,{expenseCategory:T,expenseClass:R}=c;this.fireTrack(e.Event.scheduleDetailsMarkComplete,{schedule_type:i,vendor_name:u,transaction_date:p,transaction_amount:_,schedule_current_balance:y,schedule_category:v,schedule_class:m,schedule_description:g,schedule_current_status:b,schedule_start_month:k,schedule_end_month:w,schedule_number_of_months:S,expense_category:T,expense_class:R,accumulated_depreciation_category:l?.accumulatedDepreciationCategory??null,asset_id:l?.assetId??null,controller_emails:d,controller_user_ids:f})}trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:i,transaction:o,scheduleExpenseCategoryAndClass:s,journalEntryDetails:c,vendorName:u,fixedAssetsDetails:l,controllerEmails:d,controllerUserIds:f}){const{transactionDate:p,transactionAmount:_}=o,{journalEntryMonth:v,journalEntryPostingDate:m,journalEntryTransactionAmount:g,journalEntryPostingStatus:y,journalEntryMemo:b,journalEntryQBOLink:k,wasRecommendationAvailable:w,wasRecommendationSelected:S}=c,{expenseCategory:T,expenseClass:R}=s;this.fireTrack(e.Event.scheduleDetailsJournalEntryLinkedSaved,{schedule_type:i,vendor_name:u,transaction_date:p,transaction_amount:_,journal_entry_month:v,journal_entry_posting_date:m,journal_entry_transaction_amount:g,journal_entry_posting_status:y,journal_entry_qbo_link:k,journal_entry_memo:b,is_vendor_recommended:w,was_recommendation_selected:S,expense_category:T,expense_class:R,accumulated_depreciation_category:l?.accumulatedDepreciationCategory??null,asset_id:l?.assetId??null,controller_emails:d,controller_user_ids:f})}trackScheduleDetailsJournalEntryQBOFetched({scheduleType:i,transaction:o,scheduleExpenseCategoryAndClass:s,journalEntryDetails:c,vendorName:u,fixedAssetsDetails:l,controllerEmails:d,controllerUserIds:f}){const{transactionDate:p,transactionAmount:_}=o,{journalEntryMonth:v,journalEntryPostingDate:m,journalEntryTransactionAmount:g,journalEntryPostingStatus:y,journalEntryMemo:b,wasRecommendationAvailable:k,wasRecommendationSelected:w,journalEntryQBOLink:S}=c,{expenseCategory:T,expenseClass:R}=s;this.fireTrack(e.Event.scheduleDetailsJournalEntryQBOFetched,{schedule_type:i,vendor_name:u,transaction_date:p,transaction_amount:_,journal_entry_month:v,journal_entry_posting_date:m,journal_entry_transaction_amount:g,journal_entry_posting_status:y,journal_entry_qbo_link:S,journal_entry_memo:b,is_vendor_recommended:k,was_recommendation_selected:w,expense_category:T,expense_class:R,accumulated_depreciation_category:l?.accumulatedDepreciationCategory??null,asset_id:l?.assetId??null,controller_emails:d,controller_user_ids:f})}trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:i,transaction:o,scheduleExpenseCategoryAndClass:s,journalEntryDetails:c,vendorName:u,fixedAssetsDetails:l,controllerEmails:d,controllerUserIds:f}){const{transactionDate:p,transactionAmount:_}=o,{journalEntryMonth:v,journalEntryPostingDate:m,journalEntryTransactionAmount:g,journalEntryPostingStatus:y,journalEntryMemo:b,wasRecommendationAvailable:k,wasRecommendationSelected:w,journalEntryQBOLink:S}=c,{expenseCategory:T,expenseClass:R}=s;this.fireTrack(e.Event.scheduleDetailsJournalEntryLinkCancel,{schedule_type:i,vendor_name:u,transaction_date:p,transaction_amount:_,journal_entry_month:v,journal_entry_posting_date:m,journal_entry_transaction_amount:g,journal_entry_posting_status:y,journal_entry_qbo_link:S,journal_entry_memo:b,is_vendor_recommended:k,was_recommendation_selected:w,expense_category:T,expense_class:R,accumulated_depreciation_category:l?.accumulatedDepreciationCategory??null,asset_id:l?.assetId??null,controller_emails:d,controller_user_ids:f})}trackScheduleAccruedDetailsNewRequested({scheduleType:i}){this.fireTrack(e.Event.scheduleDetailsNewRequested,{schedule_type:i})}trackScheduleAccruedDetailsLoaded({scheduleType:i,scheduleExpenseCategoryAndClass:o,vendorName:s,controllerEmails:c,schedule:u,controllerUserIds:l}){const{startingBalance:d,scheduleAccountCategory:f,description:p,scheduleCreateDate:_,scheduleMonthlyAmount:v,runningBalance:m,currentStatus:g,startMonth:y,endMonth:b,period:k}=u,{expenseCategory:w,expenseClass:S}=o;this.fireTrack(e.Event.scheduleDetailsPage,{schedule_type:i,controller_emails:c,controller_user_ids:l,schedule_expense_category:w,schedule_expense_class:S,schedule_account_category:f,schedule_create_date:_,schedule_current_balance:m,schedule_current_status:g,schedule_description:p,schedule_end_month:b,schedule_monthly_amount:v,schedule_number_of_months:k,schedule_start_month:y,schedule_starting_balance:d,vendor_name:s})}trackScheduleAccruedDetailsSaved({scheduleType:i,scheduleExpenseCategoryAndClass:o,vendorName:s,controllerEmails:c,schedule:u,controllerUserIds:l}){const{startingBalance:d,scheduleAccountCategory:f,description:p,scheduleCreateDate:_,scheduleMonthlyAmount:v,runningBalance:m,currentStatus:g,startMonth:y,endMonth:b,period:k}=u,{expenseCategory:w,expenseClass:S}=o;this.fireTrack(e.Event.scheduleDetailsSave,{schedule_type:i,controller_emails:c,controller_user_ids:l,schedule_expense_category:w,schedule_expense_class:S,schedule_account_category:f,schedule_create_date:_,schedule_current_balance:m,schedule_current_status:g,schedule_description:p,schedule_end_month:b,schedule_monthly_amount:v,schedule_number_of_months:k,schedule_start_month:y,schedule_starting_balance:d,vendor_name:s})}trackScheduleAccruedDetailsCanceled({scheduleType:i,scheduleExpenseCategoryAndClass:o,vendorName:s,controllerEmails:c,schedule:u,controllerUserIds:l,lastPostedScheduleMonth:d}){const{startingBalance:f,scheduleAccountCategory:p,description:_,scheduleCreateDate:v,scheduleMonthlyAmount:m,runningBalance:g,currentStatus:y,startMonth:b,endMonth:k,period:w}=u,{expenseCategory:S,expenseClass:T}=o;this.fireTrack(e.Event.scheduleDetailsCancel,{schedule_type:i,controller_emails:c,controller_user_ids:l,schedule_expense_category:S,schedule_expense_class:T,schedule_account_category:p,schedule_create_date:v,schedule_current_balance:g,schedule_current_status:y,schedule_description:_,schedule_end_month:k,schedule_monthly_amount:m,schedule_number_of_months:w,schedule_start_month:b,schedule_starting_balance:f,vendor_name:s,schedule_last_month_with_posted_status:d})}trackScheduleAccruedDetailsDeleted({scheduleType:i,scheduleExpenseCategoryAndClass:o,vendorName:s,controllerEmails:c,schedule:u,controllerUserIds:l,scheduleNonPendingLastMonth:d,scheduleNonPendingLastMonthStatus:f}){const{startingBalance:p,scheduleAccountCategory:_,description:v,scheduleCreateDate:m,scheduleMonthlyAmount:g,runningBalance:y,currentStatus:b,startMonth:k,endMonth:w,period:S}=u,{expenseCategory:T,expenseClass:R}=o;this.fireTrack(e.Event.scheduleDetailsDelete,{schedule_type:i,controller_emails:c,controller_user_ids:l,schedule_expense_category:T,schedule_expense_class:R,schedule_account_category:_,schedule_create_date:m,schedule_current_balance:y,schedule_current_status:b,schedule_description:v,schedule_end_month:w,schedule_monthly_amount:g,schedule_number_of_months:S,schedule_start_month:k,schedule_starting_balance:p,vendor_name:s,schedule_non_pending_last_month:d,schedule_non_pending_last_month_status:f})}trackScheduleAccruedDetailsLinkJournalEntry({scheduleType:i,scheduleExpenseCategoryAndClass:o,schedule:s,vendorName:c,journalEntryDetails:u,controllerEmails:l,controllerUserIds:d}){const{journalEntryMonth:f,journalEntryAmount:p,journalEntryBalance:_,journalEntryPostingStatus:v}=u,{scheduleCreateDate:m,scheduleMonthlyAmount:g,currentStatus:y,description:b,endMonth:k,period:w,runningBalance:S,scheduleAccountCategory:T,startMonth:R,startingBalance:E}=s,{expenseCategory:M,expenseClass:O}=o;this.fireTrack(e.Event.scheduleDetailsJournalEntryLinkExpense,{schedule_type:i,schedule_create_date:m,vendor_name:c,schedule_monthly_amount:g,schedule_description:b,schedule_current_status:y,schedule_start_month:R,schedule_end_month:k,schedule_number_of_months:w,schedule_current_balance:S,schedule_starting_balance:E,schedule_account_category:T,schedule_entry_expense_link_amount:p,schedule_entry_expense_link_balance:_,schedule_entry_expense_link_month:f,schedule_entry_current_status:v,schedule_expense_category:M,schedule_expense_class:O,controller_emails:l,controller_user_ids:d})}trackScheduleAccruedDetailsViewJournalEntry({scheduleType:i,scheduleJournalEntryType:o,scheduleExpenseCategoryAndClass:s,schedule:c,vendorName:u,journalEntryDetails:l,controllerEmails:d,controllerUserIds:f}){const{journalEntryMonth:p,journalEntryAmount:_,journalEntryBalance:v,journalEntryPostingStatus:m}=l,{scheduleCreateDate:g,scheduleMonthlyAmount:y,currentStatus:b,description:k,endMonth:w,period:S,runningBalance:T,scheduleAccountCategory:R,startMonth:E,startingBalance:M}=c,{expenseCategory:O,expenseClass:F}=s;this.fireTrack(e.Event.scheduleDetailsViewJournalEntry,{schedule_type:i,schedule_journal_entry_type:o,schedule_create_date:g,vendor_name:u,schedule_monthly_amount:y,schedule_account_category:R,schedule_description:k,schedule_current_status:b,schedule_start_month:E,schedule_end_month:w,schedule_number_of_months:S,schedule_expense_category:O,schedule_expense_class:F,schedule_current_balance:T,schedule_starting_balance:M,schedule_entry_current_status:m,schedule_entry_expense_link_amount:_,schedule_entry_expense_link_balance:v,schedule_entry_expense_link_month:p,controller_emails:d,controller_user_ids:f})}trackScheduleAccruedDetailsJournalEntryViewLinkedExpense({scheduleType:i,scheduleExpenseCategoryAndClass:o,schedule:s,vendorName:c,journalEntryDetails:u,controllerEmails:l,controllerUserIds:d}){const{journalEntryMonth:f,journalEntryAmount:p,journalEntryBalance:_,journalEntryPostingStatus:v}=u,{scheduleCreateDate:m,scheduleMonthlyAmount:g,currentStatus:y,description:b,endMonth:k,period:w,runningBalance:S,scheduleAccountCategory:T,startMonth:R,startingBalance:E}=s,{expenseCategory:M,expenseClass:O}=o;this.fireTrack(e.Event.scheduleDetailsJournalEntryViewLinkedExpense,{schedule_type:i,schedule_create_date:m,vendor_name:c,schedule_monthly_amount:g,schedule_account_category:T,schedule_description:b,schedule_current_status:y,schedule_start_month:R,schedule_end_month:k,schedule_number_of_months:w,schedule_expense_category:M,schedule_expense_class:O,schedule_current_balance:S,schedule_starting_balance:E,schedule_entry_current_status:v,schedule_entry_expense_link_amount:p,schedule_entry_expense_link_balance:_,schedule_entry_expense_link_month:f,controller_emails:l,controller_user_ids:d})}trackScheduleAccruedDetailsJournalEntryLinkCanceled({scheduleType:i,scheduleExpenseCategoryAndClass:o,schedule:s,vendorName:c,journalEntryDetails:u,controllerEmails:l,controllerUserIds:d}){const{journalEntryMonth:f,journalEntryAmount:p,journalEntryBalance:_,journalEntryPostingStatus:v}=u,{scheduleCreateDate:m,scheduleMonthlyAmount:g,currentStatus:y,description:b,endMonth:k,period:w,runningBalance:S,scheduleAccountCategory:T,startMonth:R,startingBalance:E}=s,{expenseCategory:M,expenseClass:O}=o;this.fireTrack(e.Event.scheduleDetailsEntryCanceled,{schedule_type:i,schedule_create_date:m,vendor_name:c,schedule_monthly_amount:g,schedule_description:b,schedule_current_status:y,schedule_start_month:R,schedule_end_month:k,schedule_number_of_months:w,schedule_current_balance:S,schedule_starting_balance:E,schedule_account_category:T,schedule_entry_expense_link_month:f,schedule_expense_category:M,schedule_expense_class:O,schedule_entry_current_status:v,schedule_entry_expense_link_amount:p,schedule_entry_expense_link_balance:_,controller_emails:l,controller_user_ids:d})}trackScheduleAccruedDetailsJournalEntryLinkedLoaded({scheduleType:i,scheduleExpenseCategoryAndClass:o,schedule:s,vendorName:c,journalEntryDetails:u,controllerEmails:l,controllerUserIds:d}){const{currentStatus:f,description:p,endMonth:_,period:v,runningBalance:m,scheduleAccountCategory:g,scheduleCreateDate:y,scheduleMonthlyAmount:b,startMonth:k,startingBalance:w}=s,{wasRecommendationAvailable:S,journalEntryPostingStatus:T}=u,{expenseCategory:R,expenseClass:E}=o;this.fireTrack(e.Event.scheduleDetailsJournalEntryLinkExpenseLoaded,{schedule_type:i,vendor_name:c,schedule_create_date:y,schedule_monthly_amount:b,schedule_description:p,schedule_current_status:f,schedule_start_month:k,schedule_end_month:_,schedule_number_of_months:v,schedule_current_balance:m,schedule_starting_balance:w,schedule_account_category:g,schedule_expense_category:R,schedule_expense_class:E,controller_emails:l,schedule_entry_current_status:T,controller_user_ids:d,is_vendor_recommended:S})}trackScheduleAccruedDetailsJournalEntryLinkedSaved({scheduleType:i,scheduleExpenseCategoryAndClass:o,schedule:s,vendorName:c,transactionDetails:u,journalEntryDetails:l,controllerEmails:d,controllerUserIds:f}){const{currentStatus:p,description:_,endMonth:v,period:m,runningBalance:g,scheduleAccountCategory:y,scheduleCreateDate:b,scheduleMonthlyAmount:k,startMonth:w,startingBalance:S}=s,{wasRecommendationAvailable:T,wasRecommendationSelected:R,journalEntryPostingStatus:E}=l,{linkedTransactionAmount:M,linkedTransactionDate:O,linkedTransactionDescription:F,linkedTransactionType:J}=u,{expenseCategory:ye,expenseClass:Z}=o;this.fireTrack(e.Event.scheduleDetailsJounralEntryLinkExpenseSaved,{schedule_type:i,vendor_name:c,schedule_create_date:b,schedule_monthly_amount:k,schedule_description:_,schedule_current_status:p,schedule_start_month:w,schedule_end_month:v,schedule_number_of_months:m,schedule_current_balance:g,schedule_starting_balance:S,schedule_account_category:y,schedule_expense_category:ye,schedule_expense_class:Z,controller_emails:d,controller_user_ids:f,is_vendor_recommended:T,was_recommendation_selected:R,linked_transaction_amount:M,linked_transaction_date:O,schedule_entry_current_status:E,linked_transaction_description:F,linked_transaction_type:J})}trackScheduleAccruedDetailsJournalEntryLinkedCanceled({scheduleType:i,scheduleExpenseCategoryAndClass:o,schedule:s,vendorName:c,journalEntryDetails:u,controllerEmails:l,controllerUserIds:d}){const{currentStatus:f,description:p,endMonth:_,period:v,runningBalance:m,scheduleAccountCategory:g,scheduleCreateDate:y,scheduleMonthlyAmount:b,startMonth:k,startingBalance:w}=s,{wasRecommendationAvailable:S,journalEntryPostingStatus:T}=u,{expenseCategory:R,expenseClass:E}=o;this.fireTrack(e.Event.scheduleDetailsJournalEntryLinkExpenseCanceled,{schedule_type:i,vendor_name:c,schedule_create_date:y,schedule_monthly_amount:b,schedule_description:p,schedule_current_status:f,schedule_start_month:k,schedule_end_month:_,schedule_number_of_months:v,schedule_current_balance:m,schedule_starting_balance:w,schedule_account_category:g,schedule_expense_category:R,schedule_expense_class:E,controller_emails:l,controller_user_ids:d,schedule_entry_current_status:T,is_vendor_recommended:S})}trackCockpitTaskCardClicked({tenantName:i,tenantId:o,user:s,controllerEmails:c}){this.fireTrack(e.Event.cockpitTaskCardClicked,{tenant_name:i,tenant_id:o,user_name:s.name,user_email:s.email,user_role:s.role,controller_emails:c})}trackTaskEdited({tenantName:i,taskId:o,activity:s,createdBy:c,commentsCreated:u}){const{name:l,description:d,status:f,priority:p,assignees:_,numberOfAttachments:v,tags:m,dueDate:g}=s.details;this.fireTrack(e.Event.taskEdited,{tenant_name:i,task_id:o,created_by:c,activity_count:s.count,activity_type:{name:l,description:d,status:f,priority:p,assignees:_,file_attached_count:v,tags:m,due_date:g},activity_by_user:s.byUser,comment_created:u})}trackTaskCreated({tenantName:i,taskId:o,newButtonClicked:s,activity:c,createdBy:u}){const{name:l,description:d,status:f,priority:p,assignees:_,numberOfAttachments:v,tags:m,dueDate:g}=c.details;this.fireTrack(e.Event.newTaskRequested,{tenant_name:i,task_id:o,created_by:u,new_task_button_clicked:s,file_attached_count:v,assignees:_,priority_set:p,task_name:l,task_description:d,task_status:f,tag_name:m?m.join(","):null,task_due_date:g})}trackRewardsPageClicked(i){this.fireTrack(e.Event.rewardsPageClicked,{click_type:i})}trackDashboardCardClicked(i,o){this.fireTrack(e.Event.dashboardCardClicked,{click_type:i,card_position:o})}trackInviteEmailClicked(i,o,s,c){this.fireTrack(e.Event.inviteEmailClicked,{click_type:i,referred_company:o,referred_email:s,invitee_count:c})}trackGetAuditScore(i,o,s,c,u){this.fireTrack(e.Event.getAuditScore,{clicked:i,tenant:o,report_month:s,controller_name:c,report_timestamp:u})}trackAuditScorePercentage(i,o,s,c,u,l,d,f){this.fireTrack(e.Event.auditScorePercentage,{report_timestamp:i,report_month:o,score_percentage:s,issue_type:u,tenant:c,controller_name:d,customer_group:f,no_of_issues:l})}trackAuditIssuesClicked(i,o,s,c){this.fireTrack(e.Event.auditIssuesClicked,{clicked_issue:i,tenant:o,controller_name:s,created_at:c})}trackZeniAssistClick(i,o,s,c,u){this.fireTrack(e.Event.zeniAssistClick,{bill_stage:o,bill_status:i,bill_type:c,error_description:s,invoice_number:u})}trackRetryClick(i,o,s,c,u){this.fireTrack(e.Event.retryClick,{bill_stage:o,bill_status:i,bill_type:c,error_description:s,invoice_number:u})}trackRetryConfirmClick(i,o,s,c,u){this.fireTrack(e.Event.retryConfirmClick,{bill_stage:o,bill_status:i,bill_type:c,error_description:s,invoice_number:u})}trackRefundClick(i,o,s,c,u){this.fireTrack(e.Event.refundClick,{bill_stage:o,bill_status:i,bill_type:c,error_description:s,invoice_number:u})}trackRefundConfirmClick(i,o,s,c,u){this.fireTrack(e.Event.refundConfirmClick,{bill_stage:o,bill_status:i,bill_type:c,error_description:s,invoice_number:u})}trackVendor1099DetailSave(i){this.fireTrack(e.Event.vendor1099DetailsSave,{vendor_legal_name:i})}trackVendor1099ReportDownload(i){this.fireTrack(e.Event.vendor1099ReportDownload,{report:i.includes("All")?"All":i.toUpperCase()})}trackEnableIntlWire(i){this.fireTrack(e.Event.enableIntlWire,{local_currency_enabled:i})}trackSubmitIntlWire(i){this.fireTrack(e.Event.submitIntlWire,{local_currency_enabled:i})}trackIntlWirePaymentSelect(i,o,s,c,u){this.fireTrack(e.Event.intlWirePaymentMethod,{bill_stage:i,bill_status:o,bill_type:s,invoice_number:c,local_currency_enabled:u})}trackMonthEndCloseClicked(i,o,s){this.fireTrack(e.Event.monthCloseClicked,{month_year:`${i}-${o}`,source:s})}trackMonthCloseAuditPage(i,o,s,c,u,l){this.fireTrack(e.Event.monthCloseAuditPage,{month_year:`${i}-${o}`,audit_score:c,refresh_clicked:u,status:s,source:l})}trackTransactionsReviewPage(i,o,s,c,u,l){this.fireTrack(e.Event.transactionsReview,{month_year:`${i}-${o}`,refresh_clicked:u,number_of_transactions:s,transaction_updates:c,source:l})}trackTransactionsAutoCategorisedPage(i,o,s,c,u,l){this.fireTrack(e.Event.transactionsAutoCategorised,{month_year:`${i}-${o}`,refresh_clicked:u,number_of_transactions:s,transaction_updates:c,source:l})}trackAiCloseTransactionSearch({filtersApplied:i,hasResults:o,isFiltered:s,resultsCount:c,searchTerm:u,searchType:l}){this.fireTrack(e.Event.aiCloseTransactionSearch,{filters_applied:i,has_results:o,is_filtered:s,results_count:c,search_term:u,search_type:l,section:"ai_close",tab:"transactions"})}trackMonthCloseScheduleListPage(i,o,s,c,u,l,d,f){this.fireTrack(e.Event.monthCloseScheduleList,{month_year:`${i}-${o}`,refresh_clicked:s,number_of_recommendations:c,failed_postings:u,number_of_prepaid:l.prepaidCount,number_of_fixed_assets:l.fixedAssetsCount,number_of_accrued:l.accruedCount,number_of_one_time_accruals:l.oneTimeAccrualCount,tab_name:d,source:f})}trackFluxAnalysisPage(i,o,s,c,u){this.fireTrack(e.Event.fluxAnalysis,{month_year:`${i}-${o}`,refresh_clicked:s,open_items:c,source:u})}trackFluxAnalysisReviewed(i,o,s,c){this.fireTrack(e.Event.fluxAnalysisReviewed,{month_year:`${i}-${o}`,number_of_items_reviewed:c.length,is_bulk_update:s})}trackMissingReceiptsPage(i,o,s,c,u){this.fireTrack(e.Event.missingReceipts,{month_year:`${i}-${o}`,number_of_transactions:c,refresh_clicked:s,source:u})}trackMissingReceiptAttached(i,o){this.fireTrack(e.Event.missingReceipts,{month_year:`${i}-${o}`,is_attached:!0})}trackInsightsEmailPage(i,o,s,c,u,l,d){this.fireTrack(e.Event.insightsEmail,{month_year:`${i}-${o}`,refresh_clicked:s,email_status:c,audit_score:u,date:l,source:d})}trackMonthEndEmailSentFromCockpit(i,o,s){this.fireTrack(e.Event.monthEndEmailSentFromCockpit,{month_year:`${i}-${o}`,recipient_count:s})}trackCommentAdded(i,o,s,c,u,l){this.fireTrack(e.Event.commentAdded,{page_name:i,commented_on:o,comment_type:s,tenant:c,controller_name:u,created_by:l})}trackCommentActivity(i,o,s,c,u,l,d){this.fireTrack(e.Event.commentActivity,{page_name:i,comment_activity_type:o,tenant:s,controller_name:c,status:u,created_by:l,comment_activity_source:d})}trackSendMoneyClick(){this.fireTrack(e.Event.sendMoneyClick)}trackExpressPayNextClick(i){this.fireTrack(e.Event.expressPayNextClick,{stage:i})}trackExpressPayScheduleClick(){this.fireTrack(e.Event.expressPayScheduleClick)}trackLowBalanceAccountSelected(i,o,s,c,u,l){this.fireTrack(e.Event.lowBalanceAccountSelected,{bill_stage:i,bill_status:o,bill_type:s,invoice_number:c,user_name:u,account_type:l})}trackLowBalanceAccountSentForApproval(i,o,s,c,u,l){this.fireTrack(e.Event.lowBalanceAccountSentForApproval,{bill_stage:i,bill_status:o,bill_type:s,invoice_number:c,user_name:u,account_type:l})}trackLowBalanceAccountApprove(i,o,s,c,u,l){this.fireTrack(e.Event.lowBalanceAccountApprove,{bill_stage:i,bill_status:o,bill_type:s,invoice_number:c,user_name:u,account_type:l})}trackLowBalanceAccountReject(i,o,s,c,u,l){this.fireTrack(e.Event.lowBalanceAccountReject,{bill_stage:i,bill_status:o,bill_type:s,invoice_number:c,user_name:u,account_type:l})}trackLowBalanceAccountChange(i,o,s,c,u,l){this.fireTrack(e.Event.lowBalanceAccountChange,{bill_stage:i,bill_status:o,bill_type:s,invoice_number:c,user_name:u,account_type:l})}trackLowBalanceAccountSchedule(i,o,s,c,u,l){this.fireTrack(e.Event.lowBalanceAccountSchedule,{bill_stage:i,bill_status:o,bill_type:s,invoice_number:c,user_name:u,account_type:l})}trackVendorOperatingExpenses(i,o){this.fireTrack(e.Event.vendorOperatingExpenses,{current_tab:i,previous_tab:o})}trackVendorOperatingExpensesPageLoaded(i){this.fireTrack(e.Event.vendorOperatingExpensesPageLoaded,{source:i})}trackAICFOChatScreenStateChanged(i,o,s,c){this.fireTrack(e.Event.aiCFOChatScreenStateChanged,{action:i,chat_source:o,chat_session_id:s,chat_session_title:c})}trackAICFOChatSessionChanged(i,o,s,c){this.fireTrack(e.Event.aiCFOChatSessionChanged,{action:i,chat_source:o,chat_session_id:s,chat_session_title:c})}trackAICFOChatSubmitted(i,o,s,c,u,l){this.fireTrack(e.Event.aiCFOChatSubmitted,{question_text:i,chat_source:o,chat_session_id:s,chat_message_id:u,chat_session_title:c,index:l})}trackAICFOChatFeedbackGiven(i,o,s,c,u){this.fireTrack(e.Event.aiCFOChatFeedbackGiven,{feedback_type:i,question_text:o,chat_session_id:s,chat_message_id:u,chat_session_title:c})}trackAICFOChatResponseGenerated(i,o,s,c,u,l){this.fireTrack(e.Event.aiCFOChatResponseGenerated,{response_type:i,question_text:o,response_text:s,chat_session_id:c,chat_message_id:l,chat_session_title:u})}trackAICFOChatAnswerGenerated(i,o,s,c,u,l,d,f,p,_){this.fireTrack(e.Event.aiCFOChatAnswerGenerated,{has_visualization:l,visualization_type:d,has_follow_up_questions:s,has_assumptions:c,response_text:i,has_insights:u,question_text:o,chat_session_id:f,chat_message_id:_,chat_session_title:p})}trackAICFOOnboardingScreenStateChanged(i,o){this.fireTrack(e.Event.aiCFOOnboardingScreenStateChanged,{action:i,ai_cfo_onboarding_source:o})}trackAICFOPrivacyPolicy(){this.fireTrack(e.Event.aiCFOPrivacyPolicy)}trackAICFOAgreement(){this.fireTrack(e.Event.aiCFOAgreement)}trackTreasuryNavPromoClick(i){this.fireTrack(e.Event.treasuryNavPromoClick,{clicked_on:i})}trackTreasuryPromoView(i){this.fireTrack(e.Event.treasuryPromoView,{page_name:i})}trackTreasurySetupActionClick(i){this.fireTrack(e.Event.treasurySetupActionClick,{action_type:i})}trackTreasuryProspectusClick(i,o,s){this.fireTrack(e.Event.treasuryProspectusClick,{fund_name:i,fund_ticker:o,page_name:s})}trackTreasuryCalculatorClick(i,o){this.fireTrack(e.Event.treasuryCalculatorClick,{page_name:i,amount:o})}trackTreasuryAgreementView(){this.fireTrack(e.Event.treasuryAgreementView)}trackTreasuryAllocationAction(i,o){this.fireTrack(e.Event.treasuryAllocationAction,{action_type:i,fund_percentage:o})}trackTreasuryRiskAction(i,o,s){this.fireTrack(e.Event.treasuryRiskAction,{action_type:i,risk_score:o,fund_percentage:s})}trackTreasuryVerificationNavigation(i,o){this.fireTrack(e.Event.treasuryVerificationNavigation,{clicked_on:i,verification_status:o})}trackTreasuryTransferAction(i,o,s,c,u,l){this.fireTrack(e.Event.treasuryTransferAction,{clicked_on:i,from_account:o,to_account:s,amount:c,fund_percentage:u,page_name:l})}trackTreasuryDashboardInteraction(i){this.fireTrack(e.Event.treasuryDashboardInteraction,{clicked_on:i})}trackTreasuryPortfolioConfirm(i,o){this.fireTrack(e.Event.treasuryPortfolioConfirm,{risk_score:i,fund_percentage:o})}trackTreasuryPromoCards(i){this.fireTrack(e.Event.treasuryPromoCards,{card_clicked:i})}trackTreasuryPromoVideo(i){this.fireTrack(e.Event.treasuryPromoVideo,{page_name:i})}trackInvoicingActionClick(i,o){this.fireTrack(i,{invoicing_invoice_id:o?.invoiceId,invoicing_customer_id:o?.customerId,invoicing_subscription_id:o?.subscriptionId,invoicing_transaction_id:o?.transactionId,invoicing_coupon_id:o?.couponId,invoicing_credit_note_id:o?.creditNoteId,invoicing_case_id:o?.caseId,invoicing_item_id:o?.itemId,invoicing_session_id:o?.sessionId,invoicing_entity_id:o?.entityId,invoicing_action:o?.action,invoicing_mode:o?.mode,invoicing_status:o?.status,invoicing_item_type:o?.itemType,invoicing_entity:o?.entity,invoicing_tab:o?.tab,invoicing_payment_method:o?.paymentMethod,invoicing_amount:o?.amount,invoicing_line_item_count:o?.lineItemCount,invoicing_linked_invoice_count:o?.linkedInvoiceCount,invoicing_is_recurring:o?.isRecurring,invoicing_fields_changed:o?.fieldsChanged,invoicing_from_screen:o?.fromScreen,invoicing_to_screen:o?.toScreen})}trackTransactionCotView({recommendationFor:i,currentValue:o,recommendation:s,recommendationCot:c,isRecommendationCotAvailable:u,recommendationReason:l,recommendationConfidenceLevel:d,alternativeRecommendation:f,alternativeRecommendationCot:p,isAlternativeRecommendationCotAvailable:_,alternativeRecommendationReason:v,alternativeRecommendationConfidenceLevel:m,transactionPage:g,transactionCurrentStatus:y,recommendationConfidencePercentage:b,alternativeRecommendationConfidencePercentage:k,transactionId:w,lineId:S}){this.fireTrack(e.Event.transactionCotView,{recommendation_for:i,current_value:o,recommendation:s,recommendation_cot:c,is_recommendation_cot_available:u,recommendation_reason:l,recommendation_confidence_percentage:b,recommendation_confidence_level:d,alternative_recommendation:f,alternative_recommendation_cot:p,is_alternative_recommendation_cot_available:_,alternative_recommendation_reason:v,alternative_recommendation_confidence_percentage:k,alternative_recommendation_confidence_level:m,transaction_page:g,transaction_current_status:y,...a(w,S)})}trackTransactionCotDropdownView({recommendationType:i,recommendationFor:o,currentValue:s,recommendation:c,recommendationCot:u,isRecommendationCotAvailable:l,recommendationReason:d,recommendationConfidenceLevel:f,transactionPage:p,transactionCurrentStatus:_,recommendationConfidencePercentage:v,transactionId:m,lineId:g}){this.fireTrack(e.Event.transactionCotDropdownView,{recommendation_type:i,recommendation_for:o,current_value:s,recommendation:c,recommendation_cot:u,is_recommendation_cot_available:l,recommendation_reason:d,recommendation_confidence_percentage:v,recommendation_confidence_level:f,transaction_current_status:_,transaction_page:p,...a(m,g)})}trackTransactionCotViewAlternative({alternativeRecommendationFor:i,alternativeRecommendation:o,alternativeRecommendationCot:s,isAlternativeRecommendationCotAvailable:c,alternativeRecommendationReason:u,alternativeRecommendationConfidenceLevel:l,transactionPage:d,transactionCurrentStatus:f,alternativeRecommendationConfidencePercentage:p,transactionId:_,lineId:v}){this.fireTrack(e.Event.transactionCotViewAlternative,{alternative_recommendation_for:i,alternative_recommendation:o,alternative_recommendation_cot:s,is_alternative_recommendation_cot_available:c,alternative_recommendation_reason:u,alternative_recommendation_confidence_percentage:p,alternative_recommendation_confidence_level:l,transaction_current_status:f,transaction_page:d,...a(_,v)})}trackTransactionCotViewRecommended({recommendationFor:i,currentValue:o,recommendation:s,recommendationCot:c,isRecommendationCotAvailable:u,recommendationReason:l,recommendationConfidenceLevel:d,recommendationConfidencePercentage:f,transactionId:p,lineId:_}){this.fireTrack(e.Event.transactionCotViewRecommended,{recommendation_for:i,current_value:o,recommendation:s,recommendation_cot:c,is_recommendation_cot_available:u,recommendation_reason:l,recommendation_confidence_percentage:f,recommendation_confidence_level:d,...a(p,_)})}trackRecommendationAccepted({recommendationFor:i,recommendationSetId:o,selectedSource:s,selectedRank:c,topPickSource:u,recommendationConfidencePercentage:l,numberOfRecommendations:d,transactionId:f,lineId:p}){this.fireTrack(e.Event.recommendationAccepted,{recommendation_for:i,recommendation_set_id:o,selected_source:s,selected_rank:c,top_pick_source:u,recommendation_confidence_percentage:l,number_of_recommendations:d,feedback_outcome:"accepted",...a(f,p)})}trackRecommendationFeedbackSubmitted({recommendationFor:i,recommendationSetId:o,selectedSource:s,selectedRank:c,topPickSource:u,feedbackOutcome:l,feedbackReasonLength:d,isNewEntitySelected:f,numberOfRecommendations:p,transactionId:_,lineId:v}){this.fireTrack(e.Event.recommendationFeedbackSubmitted,{recommendation_for:i,recommendation_set_id:o,selected_source:s,selected_rank:c,top_pick_source:u,feedback_outcome:l,feedback_reason_length:d,is_new_entity_selected:f,number_of_recommendations:p,feedback_skipped:!1,...a(_,v)})}trackRecommendationFeedbackSkipped({recommendationFor:i,recommendationSetId:o,selectedSource:s,selectedRank:c,topPickSource:u,feedbackOutcome:l,isNewEntitySelected:d,numberOfRecommendations:f,transactionId:p,lineId:_}){this.fireTrack(e.Event.recommendationFeedbackSkipped,{recommendation_for:i,recommendation_set_id:o,selected_source:s,selected_rank:c,top_pick_source:u,feedback_outcome:l,is_new_entity_selected:d,number_of_recommendations:f,feedback_skipped:!0,feedback_reason_length:0,...a(p,_)})}trackRecommendationFeedbackRetracted({recommendationFor:i,recommendationSetId:o,selectedSource:s,selectedRank:c,topPickSource:u,numberOfRecommendations:l,transactionId:d,lineId:f}){this.fireTrack(e.Event.recommendationFeedbackRetracted,{recommendation_for:i,recommendation_set_id:o,selected_source:s,selected_rank:c,top_pick_source:u,feedback_outcome:"retracted",is_new_entity_selected:!1,number_of_recommendations:l,feedback_skipped:!1,feedback_reason_length:0,...a(d,f)})}trackAIPerfHome(i){this.fireTrack(e.Event.aiPerfHome,{perf_snapshot:i})}trackAIPerfRefresh(i){this.fireTrack(e.Event.aiPerfRefresh,{perf_snapshot:i})}trackAIPerfTimePeriodSelect(i){this.fireTrack(e.Event.aiPerfTimePeriodSelect,{perf_snapshot:i})}trackAutoTransferRuleIconClick(i){this.fireTrack(e.Event.autoTransferRuleIconClick,{page_name:i})}trackAutoTransferRuleClick(i){this.fireTrack(e.Event.autoTransferRuleClick,{rule_name:i})}trackAutoTransferRuleReviewClick(i,o,s,c,u){this.fireTrack(e.Event.autoTransferRuleReviewClick,{rule_name:i,amount:o,withdrawal_bank:s,deposit_bank:c,frequency:u})}trackAutoTransferRuleCreateClick(i,o,s,c,u){this.fireTrack(e.Event.autoTransferRuleCreateClick,{rule_name:i,amount:o,withdrawal_bank:s,deposit_bank:c,frequency:u})}trackAutoTransferRuleMoreClick(i,o,s,c,u){this.fireTrack(e.Event.autoTransferRuleMoreClick,{rule_name:i,amount:o,withdrawal_bank:s,deposit_bank:c,frequency:u})}trackAutoTransferRuleActionClick(i,o,s,c,u,l){this.fireTrack(e.Event.autoTransferRuleActionClick,{rule_name:i,action_clicked:o,amount:s,withdrawal_bank:c,deposit_bank:u,frequency:l})}trackAutoTransferRuleActionConfirm(i,o,s,c,u,l,d){this.fireTrack(e.Event.autoTransferRuleActionConfirm,{rule_name:i,action_clicked:o,amount:s,withdrawal_bank:c,deposit_bank:u,frequency:l,update_log:d})}trackAutoTransferRuleActionCancel(i,o,s,c,u,l){this.fireTrack(e.Event.autoTransferRuleActionCancel,{rule_name:i,action_clicked:o,amount:s,withdrawal_bank:c,deposit_bank:u,frequency:l})}fireTrack(i,o){if(e.EVENTS_WITHOUT_SUPER_PROPERTIES.has(i)===!0){this.provider.track(i,o);return}const s=Object.assign({},this.superProperties,o);this.provider.track(i,s)}}return _r.Analytics=r,_r}var Xr={},Vo;function id(){if(Vo)return Xr;Vo=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.extractUtmParamsFromUrl=e;function e(t){if(t==null&&typeof window>"u")return{};const a=t??new URLSearchParams(window.location.search),r={};for(const[n,i]of a.entries())n.startsWith("utm_")&&(r[n]=i);return r}return Xr}var zo;function sv(){return zo||(zo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extractUtmParamsFromUrl=e.EVENTS_WITHOUT_SUPER_PROPERTIES=e.Event=e.Analytics=void 0;const t=rd();Object.defineProperty(e,"Analytics",{enumerable:!0,get:function(){return t.Analytics}});const a=pc();Object.defineProperty(e,"EVENTS_WITHOUT_SUPER_PROPERTIES",{enumerable:!0,get:function(){return a.EVENTS_WITHOUT_SUPER_PROPERTIES}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return a.Event}});const r=id();Object.defineProperty(e,"extractUtmParamsFromUrl",{enumerable:!0,get:function(){return r.extractUtmParamsFromUrl}})})(Tn)),Tn}var Oi={},A;if(typeof window>"u"){var qo={hostname:""};A={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:qo,referrer:""},screen:{width:0,height:0},location:qo,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else A=window;function Wo(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function Go(e,t,a,r,n,i,o){try{var s=e[i](o),c=s.value}catch(u){a(u);return}s.done?t(c):Promise.resolve(c).then(r,n)}function Ga(e){return function(){var t=this,a=arguments;return new Promise(function(r,n){var i=e.apply(t,a);function o(c){Go(i,r,n,o,s,"next",c)}function s(c){Go(i,r,n,o,s,"throw",c)}o(void 0)})}}function Si(e,t,a){return _c()?Si=Reflect.construct:Si=function(n,i,o){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(n,s),u=new c;return o&&Ir(u,o.prototype),u},Si.apply(null,arguments)}function nd(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ve(e,t,a){return t&&nd(e.prototype,t),e}function H(){return H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},H.apply(this,arguments)}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},Yn(e)}function ke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ir(e,t)}function D(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ad(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Pr(e,t){if(e==null)return{};var a={},r=Object.keys(e),n,i;for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(a[n]=e[n]);return a}function Ir(e,t){return Ir=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Ir(e,t)}function $(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function od(e,t){if(e){if(typeof e=="string")return Wo(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(a);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Wo(e,t)}}function xi(e){var t=typeof Map=="function"?new Map:void 0;return xi=function(r){if(r===null||!ad(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Si(r,arguments,Yn(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ir(n,r)},xi(e)}function _c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_c=function(){return!!e})()}function I(e,t){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=od(e))||t){a&&(e=a);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Er(e,t){var a,r,n,i,o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;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,r&&(n=u[0]&2?r.return:u[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,u[1])).done)return n;switch(r=0,n&&(u=[u[0]&2,n.value]),u[0]){case 0:case 1:n=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(n=o.trys,!(n=n.length>0&&n[n.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!n||u[1]>n[0]&&u[1]<n[3])){o.label=u[1];break}if(u[0]===6&&o.label<n[1]){o.label=n[1],n=u;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(u);break}n[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(l){u=[6,l],r=0}finally{a=n=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function mc(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var sd=Object.defineProperty,cd=function(e,t,a){return t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a},P=function(e,t,a){return cd(e,(typeof t>"u"?"undefined":$(t))!=="symbol"?t+"":t,a)},jo,ud=Object.defineProperty,ld=function(e,t,a){return t in e?ud(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a},Ho=function(e,t,a){return ld(e,(typeof t>"u"?"undefined":$(t))!=="symbol"?t+"":t,a)},_e=(function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e})(_e||{}),Jo={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Zo={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Qr={},dd=function(){return!!globalThis.Zone};function ja(e){if(Qr[e])return Qr[e];var t=globalThis[e],a=t.prototype,r=e in Jo?Jo[e]:void 0,n=!!(r&&r.every(function(l){var d,f;return!!((f=(d=Object.getOwnPropertyDescriptor(a,l))==null?void 0:d.get)!=null&&f.toString().includes("[native code]"))})),i=e in Zo?Zo[e]:void 0,o=!!(i&&i.every(function(l){var d;return typeof a[l]=="function"&&((d=a[l])==null?void 0:d.toString().includes("[native code]"))}));if(n&&o&&!dd())return Qr[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(s),u?Qr[e]=u:a}catch{return a}}var Rn={};function dt(e,t,a){var r,n=e+"."+String(a);if(Rn[n])return Rn[n].call(t);var i=ja(e),o=(r=Object.getOwnPropertyDescriptor(i,a))==null?void 0:r.get;return o?(Rn[n]=o,o.call(t)):t[a]}var Pn={};function gc(e,t,a){var r=e+"."+String(a);if(Pn[r])return Pn[r].bind(t);var n=ja(e),i=n[a];return typeof i!="function"?t[a]:(Pn[r]=i,i.bind(t))}function fd(e){return dt("Node",e,"childNodes")}function hd(e){return dt("Node",e,"parentNode")}function pd(e){return dt("Node",e,"parentElement")}function _d(e){return dt("Node",e,"textContent")}function md(e,t){return gc("Node",e,"contains")(t)}function gd(e){return gc("Node",e,"getRootNode")()}function vd(e){return!e||!("host"in e)?null:dt("ShadowRoot",e,"host")}function yd(e){return e.styleSheets}function bd(e){return!e||!("shadowRoot"in e)?null:dt("Element",e,"shadowRoot")}function Cd(e,t){return dt("Element",e,"querySelector")(t)}function kd(e,t){return dt("Element",e,"querySelectorAll")(t)}function wd(){return ja("MutationObserver").constructor}function Sd(e,t,a){try{if(!(t in e))return function(){};var r=e[t],n=a(r);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=n,function(){e[t]=r}}catch{return function(){}}}var Ce={childNodes:fd,parentNode:hd,parentElement:pd,textContent:_d,contains:md,getRootNode:gd,host:vd,styleSheets:yd,shadowRoot:bd,querySelector:Cd,querySelectorAll:kd,mutationObserver:wd,patch:Sd};function vc(e){return e.nodeType===e.ELEMENT_NODE}function Cr(e){var t=e&&"host"in e&&"mode"in e&&Ce.host(e)||null;return!!(t&&"shadowRoot"in t&&Ce.shadowRoot(t)===e)}function kr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Ad(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Td(e){var t=e.cssText;if(t.split('"').length<3)return t;var a=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?a.push("layer"):e.layerName&&a.push("layer("+e.layerName+")"),e.supportsText&&a.push("supports("+e.supportsText+")"),e.media.length&&a.push(e.media.mediaText),a.join(" ")+";"}function Kn(e){try{var t=e.rules||e.cssRules;if(!t)return null;var a=e.href;!a&&e.ownerNode&&e.ownerNode.ownerDocument&&(a=e.ownerNode.ownerDocument.location.href);var r=Array.from(t,function(n){return yc(n,a)}).join("");return Ad(r)}catch{return null}}function yc(e,t){if(Pd(e)){var a;try{a=Kn(e.styleSheet)||Td(e)}catch{a=e.cssText}return e.styleSheet.href?Bi(a,e.styleSheet.href):a}else{var r=e.cssText;return Id(e)&&e.selectorText.includes(":")&&(r=Rd(r)),t?Bi(r,t):r}}function Rd(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Pd(e){return"styleSheet"in e}function Id(e){return"selectorText"in e}var bc=(function(){function e(){Ho(this,"idNodeMap",new Map),Ho(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(r){var n;if(!r)return-1;var i=(n=this.getMeta(r))==null?void 0:n.id;return i??-1},t.getNode=function(r){return this.idNodeMap.get(r)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(r){return this.nodeMetaMap.get(r)||null},t.removeNodeFromMap=function(r){var n=this,i=this.getId(r);this.idNodeMap.delete(i),r.childNodes&&r.childNodes.forEach(function(o){return n.removeNodeFromMap(o)})},t.has=function(r){return this.idNodeMap.has(r)},t.hasNode=function(r){return this.nodeMetaMap.has(r)},t.add=function(r,n){var i=n.id;this.idNodeMap.set(i,r),this.nodeMetaMap.set(r,n)},t.replace=function(r,n){var i=this.getNode(r);if(i){var o=this.nodeMetaMap.get(i);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(r,n)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e})();function Ed(){return new bc}function Mi(e){var t=e.element,a=e.maskInputOptions,r=e.tagName,n=e.type,i=e.value,o=e.maskInputFn,s=i||"",c=n&&Et(n);return(a[r.toLowerCase()]||c&&a[c])&&(o?s=o(s,t):s="*".repeat(s.length)),s}function Et(e){return e.toLowerCase()}var Yo="__rrweb_original__";function Od(e){var t=e.getContext("2d");if(!t)return!0;for(var a=50,r=0;r<e.width;r+=a)for(var n=0;n<e.height;n+=a){var i=t.getImageData,o=Yo in i?i[Yo]:i,s=new Uint32Array(o.call(t,r,n,Math.min(a,e.width-r),Math.min(a,e.height-n)).data.buffer);if(s.some(function(c){return c!==0}))return!1}return!0}function Di(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Et(t):null}function Cc(e,t){var a;try{a=new URL(e,t??window.location.href)}catch{return null}var r=/\.([0-9a-z]+)(?:$)/i,n=a.pathname.match(r),i;return(i=n?.[1])!=null?i:null}function xd(e){var t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Md=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Dd=/^(?:[a-z+]+:)?\/\//i,Bd=/^www\..*/i,Ld=/^(data:)([^,]*),(.*)/i;function Bi(e,t){return(e||"").replace(Md,function(a,r,n,i,o,s){var c=n||o||s,u=r||i||"";if(!c)return a;if(Dd.test(c)||Bd.test(c)||Ld.test(c))return"url("+u+c+u+")";if(c[0]==="/")return"url("+u+(xd(t)+c)+u+")";var l=t.split("/"),d=c.split("/");l.pop();for(var f=I(d),p;!(p=f()).done;){var _=p.value;_!=="."&&(_===".."?l.pop():l.push(_))}return"url("+u+l.join("/")+u+")"})}function ei(e,t){return t===void 0&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Nd(e,t,a){a===void 0&&(a=!1);var r=Array.from(t.childNodes),n=[],i=0;if(r.length>1&&e&&typeof e=="string"){for(var o=ei(e,a),s=o.length/e.length,c=1;c<r.length;c++)if(r[c].textContent&&typeof r[c].textContent=="string"){for(var u=ei(r[c].textContent,a),l=100,d=3;d<u.length&&(u[d].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,d),1)!==-1);d++);for(;d<u.length;d++){var f=u.substring(0,d),p=o.split(f),_=-1;if(p.length===2)_=p[0].length;else if(p.length>2&&p[0]===""&&r[c-1].textContent!=="")_=o.indexOf(f,1);else if(p.length===1){if(f=f.substring(0,f.length-1),p=o.split(f),p.length<=1)return n.push(e),n;d=l+1}else d===u.length-1&&(_=o.indexOf(f));if(p.length>=2&&d>l){var v=r[c-1].textContent;if(v&&typeof v=="string"){var m=ei(v).length;_=o.indexOf(f,m)}_===-1&&(_=p[0].length)}if(_!==-1){for(var g=Math.floor(_/s);g>0&&g<e.length;){if(i+=1,i>50*r.length)return n.push(e),n;var y=ei(e.substring(0,g),a);if(y.length===_){n.push(e.substring(0,g)),e=e.substring(g),o=o.substring(_);break}else y.length<_?g+=Math.max(1,Math.floor((_-y.length)/s)):g-=Math.max(1,Math.floor((y.length-_)*s))}break}}}}return n.push(e),n}function Fd(e,t){return Nd(e,t).join("/* rr_split */")}var $d=1,Ud=new RegExp("[^a-z0-9-_:]"),Or=-2;function kc(){return $d++}function Vd(e){if(D(e,HTMLFormElement))return"form";var t=Et(e.tagName);return Ud.test(t)?"div":t}var Vt,Ko,zd=/^[^ \t\n\r\u000c]+/,qd=/^[, \t\n\r\u000c]+/;function Wd(e,t){if(t.trim()==="")return t;var a=0;function r(u){var l,d=u.exec(t.substring(a));return d?(l=d[0],a+=l.length,l):""}for(var n=[];r(qd),!(a>=t.length);){var i=r(zd);if(i.slice(-1)===",")i=jt(e,i.substring(0,i.length-1)),n.push(i);else{var o="";i=jt(e,i);for(var s=!1;;){var c=t.charAt(a);if(c===""){n.push((i+o).trim());break}else if(s)c===")"&&(s=!1);else if(c===","){a+=1,n.push((i+o).trim());break}else c==="("&&(s=!0);o+=c,a+=1}}}return n.join(", ")}var Xo=new WeakMap;function jt(e,t){return!t||t.trim()===""?t:Ha(e,t)}function Gd(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ha(e,t){var a=Xo.get(e);if(a||(a=e.createElement("a"),Xo.set(e,a)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return a.setAttribute("href",t),a.href}function wc(e,t,a,r){return r&&(a==="src"||a==="href"&&!(t==="use"&&r[0]==="#")||a==="xlink:href"&&r[0]!=="#"||a==="background"&&(t==="table"||t==="td"||t==="th")?jt(e,r):a==="srcset"?Wd(e,r):a==="style"?Bi(r,Ha(e)):t==="object"&&a==="data"?jt(e,r):r)}function Sc(e,t,a){return(e==="video"||e==="audio")&&t==="autoplay"}function jd(e,t,a){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var n=e.classList[r];if(t.test(n))return!0}if(a)return e.matches(a)}catch{}return!1}function Li(e,t,a){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return a?Li(Ce.parentNode(e),t,a):!1;for(var r=e.classList.length;r--;){var n=e.classList[r];if(t.test(n))return!0}return a?Li(Ce.parentNode(e),t,a):!1}function Ac(e,t,a,r){var n;if(vc(e)){if(n=e,!Ce.childNodes(n).length)return!1}else{if(Ce.parentElement(e)===null)return!1;n=Ce.parentElement(e)}try{if(typeof t=="string"){if(r){if(n.closest("."+t))return!0}else if(n.classList.contains(t))return!0}else if(Li(n,t,r))return!0;if(a){if(r){if(n.closest(a))return!0}else if(n.matches(a))return!0}}catch{}return!1}function Hd(e,t,a){var r=e.contentWindow;if(r){var n=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){var o=setTimeout(function(){n||(t(),n=!0)},a);e.addEventListener("load",function(){clearTimeout(o),n=!0,t()});return}var s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}function Jd(e,t,a){var r=!1,n;try{n=e.sheet}catch{return}if(!n){var i=setTimeout(function(){r||(t(),r=!0)},a);e.addEventListener("load",function(){clearTimeout(i),r=!0,t()})}}function Zd(e,t){var a=t.doc,r=t.mirror,n=t.blockClass,i=t.blockSelector,o=t.needsMask,s=t.inlineStylesheet,c=t.maskInputOptions,u=c===void 0?{}:c,l=t.maskTextFn,d=t.maskInputFn,f=t.dataURLOptions,p=f===void 0?{}:f,_=t.inlineImages,v=t.recordCanvas,m=t.keepIframeSrcFn,g=t.newlyAddedElement,y=g===void 0?!1:g,b=t.cssCaptured,k=b===void 0?!1:b,w=Yd(a,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:_e.Document,childNodes:[],compatMode:e.compatMode}:{type:_e.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:_e.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return Xd(e,{doc:a,blockClass:n,blockSelector:i,inlineStylesheet:s,maskInputOptions:u,maskInputFn:d,dataURLOptions:p,inlineImages:_,recordCanvas:v,keepIframeSrcFn:m,newlyAddedElement:y,rootId:w});case e.TEXT_NODE:return Kd(e,{doc:a,needsMask:o,maskTextFn:l,rootId:w,cssCaptured:k});case e.CDATA_SECTION_NODE:return{type:_e.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:_e.Comment,textContent:Ce.textContent(e)||"",rootId:w};default:return!1}}function Yd(e,t){if(t.hasNode(e)){var a=t.getId(e);return a===1?void 0:a}}function Kd(e,t){var a=t.needsMask,r=t.maskTextFn,n=t.rootId,i=t.cssCaptured,o=Ce.parentNode(e),s=o&&o.tagName,c="",u=s==="STYLE"?!0:void 0,l=s==="SCRIPT"?!0:void 0;return l?c="SCRIPT_PLACEHOLDER":i||(c=Ce.textContent(e),u&&c&&(c=Bi(c,Ha(t.doc)))),!u&&!l&&c&&a&&(c=r?r(c,Ce.parentElement(e)):c.replace(/[\S]/g,"*")),{type:_e.Text,textContent:c||"",rootId:n}}function Xd(e,t){for(var a=t.doc,r=t.blockClass,n=t.blockSelector,i=t.inlineStylesheet,o=t.maskInputOptions,s=o===void 0?{}:o,c=t.maskInputFn,u=t.dataURLOptions,l=u===void 0?{}:u,d=t.inlineImages,f=t.recordCanvas,p=t.keepIframeSrcFn,_=t.newlyAddedElement,v=_===void 0?!1:_,m=t.rootId,g=jd(e,r,n),y=Vd(e),b={},k=e.attributes.length,w=0;w<k;w++){var S=e.attributes[w];Sc(y,S.name,S.value)||(b[S.name]=wc(a,y,Et(S.name),S.value))}if(y==="link"&&i){var T=Array.from(a.styleSheets).find(function(Oe){return Oe.href===e.href}),R=null;T&&(R=Kn(T)),R&&(delete b.rel,delete b.href,b._cssText=R)}if(y==="style"&&e.sheet){var E=Kn(e.sheet);E&&(e.childNodes.length>1&&(E=Fd(E,e)),b._cssText=E)}if(y==="input"||y==="textarea"||y==="select"){var M=e.value,O=e.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&M?b.value=Mi({element:e,type:Di(e),tagName:y,value:M,maskInputOptions:s,maskInputFn:c}):O&&(b.checked=O)}if(y==="option"&&(e.selected&&!s.select?b.selected=!0:delete b.selected),y==="dialog"&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),y==="canvas"&&f){if(e.__context==="2d")Od(e)||(b.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){var F=e.toDataURL(l.type,l.quality),J=a.createElement("canvas");J.width=e.width,J.height=e.height;var ye=J.toDataURL(l.type,l.quality);F!==ye&&(b.rr_dataURL=F)}}if(y==="img"&&d){Vt||(Vt=a.createElement("canvas"),Ko=Vt.getContext("2d"));var Z=e,Ie=Z.currentSrc||Z.getAttribute("src")||"<unknown-src>",we=Z.crossOrigin,se=function(){Z.removeEventListener("load",se);try{Vt.width=Z.naturalWidth,Vt.height=Z.naturalHeight,Ko.drawImage(Z,0,0),b.rr_dataURL=Vt.toDataURL(l.type,l.quality)}catch(Oe){if(Z.crossOrigin!=="anonymous"){Z.crossOrigin="anonymous",Z.complete&&Z.naturalWidth!==0?se():Z.addEventListener("load",se);return}else console.warn("Cannot inline img src="+Ie+"! Error: "+Oe)}Z.crossOrigin==="anonymous"&&(we?b.crossOrigin=we:Z.removeAttribute("crossorigin"))};Z.complete&&Z.naturalWidth!==0?se():Z.addEventListener("load",se)}if(y==="audio"||y==="video"){var ge=b;ge.rr_mediaState=e.paused?"paused":"played",ge.rr_mediaCurrentTime=e.currentTime,ge.rr_mediaPlaybackRate=e.playbackRate,ge.rr_mediaMuted=e.muted,ge.rr_mediaLoop=e.loop,ge.rr_mediaVolume=e.volume}if(v||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),g){var Ee=e.getBoundingClientRect(),yt=Ee.width,$e=Ee.height;b={class:b.class,rr_width:""+yt+"px",rr_height:""+$e+"px"}}y==="iframe"&&!p(b.src)&&(e.contentDocument||(b.rr_src=b.src),delete b.src);var Nt;try{customElements.get(y)&&(Nt=!0)}catch{}return{type:_e.Element,tagName:y,attributes:b,childNodes:[],isSVG:Gd(e)||void 0,needBlock:g,rootId:m,isCustom:Nt}}function ee(e){return e==null?"":e.toLowerCase()}function Qd(e,t){if(t.comment&&e.type===_e.Comment)return!0;if(e.type===_e.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Cc(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ee(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(e.attributes.name)==="application-name"||ee(e.attributes.rel)==="icon"||ee(e.attributes.rel)==="apple-touch-icon"||ee(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ee(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ee(e.attributes.property).match(/^(og|twitter|fb):/)||ee(e.attributes.name).match(/^(og|twitter):/)||ee(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ee(e.attributes.name)==="robots"||ee(e.attributes.name)==="googlebot"||ee(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ee(e.attributes.name)==="author"||ee(e.attributes.name)==="generator"||ee(e.attributes.name)==="framework"||ee(e.attributes.name)==="publisher"||ee(e.attributes.name)==="progid"||ee(e.attributes.property).match(/^article:/)||ee(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ee(e.attributes.name)==="google-site-verification"||ee(e.attributes.name)==="yandex-verification"||ee(e.attributes.name)==="csrf-token"||ee(e.attributes.name)==="p:domain_verify"||ee(e.attributes.name)==="verify-v1"||ee(e.attributes.name)==="verification"||ee(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ht(e,t){var a=t.doc,r=t.mirror,n=t.blockClass,i=t.blockSelector,o=t.maskTextClass,s=t.maskTextSelector,c=t.skipChild,u=c===void 0?!1:c,l=t.inlineStylesheet,d=l===void 0?!0:l,f=t.maskInputOptions,p=f===void 0?{}:f,_=t.maskTextFn,v=t.maskInputFn,m=t.slimDOMOptions,g=t.dataURLOptions,y=g===void 0?{}:g,b=t.inlineImages,k=b===void 0?!1:b,w=t.recordCanvas,S=w===void 0?!1:w,T=t.onSerialize,R=t.onIframeLoad,E=t.iframeLoadTimeout,M=E===void 0?5e3:E,O=t.onStylesheetLoad,F=t.stylesheetLoadTimeout,J=F===void 0?5e3:F,ye=t.keepIframeSrcFn,Z=ye===void 0?function(){return!1}:ye,Ie=t.newlyAddedElement,we=Ie===void 0?!1:Ie,se=t.cssCaptured,ge=se===void 0?!1:se,Ee=t.needsMask,yt=t.preserveWhiteSpace,$e=yt===void 0?!0:yt;if(!Ee){var Nt=Ee===void 0;Ee=Ac(e,o,s,Nt)}var Oe=Zd(e,{doc:a,mirror:r,blockClass:n,blockSelector:i,needsMask:Ee,inlineStylesheet:d,maskInputOptions:p,maskTextFn:_,maskInputFn:v,dataURLOptions:y,inlineImages:k,recordCanvas:S,keepIframeSrcFn:Z,newlyAddedElement:we,cssCaptured:ge});if(!Oe)return console.warn(e,"not serialized"),null;var bt;r.hasNode(e)?bt=r.getId(e):Qd(Oe,m)||!$e&&Oe.type===_e.Text&&!Oe.textContent.replace(/^\s+|\s+$/gm,"").length?bt=Or:bt=kc();var Y=Object.assign(Oe,{id:bt});if(r.add(e,Y),bt===Or)return null;T&&T(e);var Ct=!u;if(Y.type===_e.Element){Ct=Ct&&!Y.needBlock,delete Y.needBlock;var kt=Ce.shadowRoot(e);kt&&kr(kt)&&(Y.isShadowHost=!0)}if((Y.type===_e.Document||Y.type===_e.Element)&&Ct){m.headWhitespace&&Y.type===_e.Element&&Y.tagName==="head"&&($e=!1);var Ft={doc:a,mirror:r,blockClass:n,blockSelector:i,needsMask:Ee,maskTextClass:o,maskTextSelector:s,skipChild:u,inlineStylesheet:d,maskInputOptions:p,maskTextFn:_,maskInputFn:v,slimDOMOptions:m,dataURLOptions:y,inlineImages:k,recordCanvas:S,preserveWhiteSpace:$e,onSerialize:T,onIframeLoad:R,iframeLoadTimeout:M,onStylesheetLoad:O,stylesheetLoadTimeout:J,keepIframeSrcFn:Z,cssCaptured:!1};if(!(Y.type===_e.Element&&Y.tagName==="textarea"&&Y.attributes.value!==void 0)){Y.type===_e.Element&&Y.attributes._cssText!==void 0&&typeof Y.attributes._cssText=="string"&&(Ft.cssCaptured=!0);for(var dr=I(Array.from(Ce.childNodes(e))),fr;!(fr=dr()).done;){var wn=fr.value,Yr=Ht(wn,Ft);Yr&&Y.childNodes.push(Yr)}}var it=null;if(vc(e)&&(it=Ce.shadowRoot(e)))for(var wt=I(Array.from(Ce.childNodes(it))),$t;!($t=wt()).done;){var hr=$t.value,Ut=Ht(hr,Ft);Ut&&(kr(it)&&(Ut.isShadow=!0),Y.childNodes.push(Ut))}}var St=Ce.parentNode(e);return St&&Cr(St)&&kr(St)&&(Y.isShadow=!0),Y.type===_e.Element&&Y.tagName==="iframe"&&Hd(e,function(){var He=e.contentDocument;if(He&&R){var At=Ht(He,{doc:He,mirror:r,blockClass:n,blockSelector:i,needsMask:Ee,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:_,maskInputFn:v,slimDOMOptions:m,dataURLOptions:y,inlineImages:k,recordCanvas:S,preserveWhiteSpace:$e,onSerialize:T,onIframeLoad:R,iframeLoadTimeout:M,onStylesheetLoad:O,stylesheetLoadTimeout:J,keepIframeSrcFn:Z});At&&R(e,At)}},M),Y.type===_e.Element&&Y.tagName==="link"&&typeof Y.attributes.rel=="string"&&(Y.attributes.rel==="stylesheet"||Y.attributes.rel==="preload"&&typeof Y.attributes.href=="string"&&Cc(Y.attributes.href)==="css")&&Jd(e,function(){if(O){var He=Ht(e,{doc:a,mirror:r,blockClass:n,blockSelector:i,needsMask:Ee,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:_,maskInputFn:v,slimDOMOptions:m,dataURLOptions:y,inlineImages:k,recordCanvas:S,preserveWhiteSpace:$e,onSerialize:T,onIframeLoad:R,iframeLoadTimeout:M,onStylesheetLoad:O,stylesheetLoadTimeout:J,keepIframeSrcFn:Z});He&&O(e,He)}},J),Y}function ef(e,t){var a=t||{},r=a.mirror,n=r===void 0?new bc:r,i=a.blockClass,o=i===void 0?"rr-block":i,s=a.blockSelector,c=s===void 0?null:s,u=a.maskTextClass,l=u===void 0?"rr-mask":u,d=a.maskTextSelector,f=d===void 0?null:d,p=a.inlineStylesheet,_=p===void 0?!0:p,v=a.inlineImages,m=v===void 0?!1:v,g=a.recordCanvas,y=g===void 0?!1:g,b=a.maskAllInputs,k=b===void 0?!1:b,w=a.maskTextFn,S=a.maskInputFn,T=a.slimDOM,R=T===void 0?!1:T,E=a.dataURLOptions,M=a.preserveWhiteSpace,O=a.onSerialize,F=a.onIframeLoad,J=a.iframeLoadTimeout,ye=a.onStylesheetLoad,Z=a.stylesheetLoadTimeout,Ie=a.keepIframeSrcFn,we=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=R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:R===!1?{}:R;return Ht(e,{doc:e,mirror:n,blockClass:o,blockSelector:c,maskTextClass:l,maskTextSelector:f,skipChild:!1,inlineStylesheet:_,maskInputOptions:se,maskTextFn:w,maskInputFn:S,slimDOMOptions:ge,dataURLOptions:E,inlineImages:m,recordCanvas:y,preserveWhiteSpace:M,onSerialize:O,onIframeLoad:F,iframeLoadTimeout:J,onStylesheetLoad:ye,stylesheetLoadTimeout:Z,keepIframeSrcFn:we,newlyAddedElement:!1})}function tf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var a=function r(){return D(this,r)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),a}var Ja={exports:{}},re=String,Tc=function(){return{isColorSupported:!1,reset:re,bold:re,dim:re,italic:re,underline:re,inverse:re,hidden:re,strikethrough:re,black:re,red:re,green:re,yellow:re,blue:re,magenta:re,cyan:re,white:re,gray:re,bgBlack:re,bgRed:re,bgGreen:re,bgYellow:re,bgBlue:re,bgMagenta:re,bgCyan:re,bgWhite:re}};Ja.exports=Tc();Ja.exports.createColors=Tc;var nf=Ja.exports,af={},of=Object.freeze(Object.defineProperty({__proto__:null,default:af},Symbol.toStringTag,{value:"Module"})),le=rf(of),Qo=nf,es=le,Xn=(function(e){ke(t,e);function t(r,n,i,o,s,c){var u;return u=e.call(this,r)||this,u.name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),c&&(u.plugin=c),typeof n<"u"&&typeof i<"u"&&(typeof n=="number"?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}var a=t.prototype;return a.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},a.showSourceCode=function(n){var i=this;if(!this.source)return"";var o=this.source;n==null&&(n=Qo.isColorSupported),es&&n&&(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(n){var p=Qo.createColors(!0),_=p.bold,v=p.gray,m=p.red;d=function(g){return _(m(g))},f=function(g){return v(g)}}else d=f=function(g){return g};return s.slice(c,u).map(function(g,y){var b=c+1+y,k=" "+(" "+b).slice(-l)+" | ";if(b===i.line){var w=f(k.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return d(">")+f(k)+g+`
|
|
2
|
-
`+w+d("^")}return" "+f(k)+g}).join(`
|
|
3
|
-
`)},a.toString=function(){var n=this.showSourceCode();return n&&(n=`
|
|
4
|
-
|
|
5
|
-
`+n+`
|
|
6
|
-
`),this.name+": "+this.message+n},t})(xi(Error)),Za=Xn;Xn.default=Xn;var ft={};ft.isClean=Symbol("isClean");ft.my=Symbol("my");var ts={after:`
|
|
7
|
-
`,beforeClose:`
|
|
8
|
-
`,beforeComment:`
|
|
9
|
-
`,beforeDecl:`
|
|
10
|
-
`,beforeOpen:" ",beforeRule:`
|
|
11
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function sf(e){return e[0].toUpperCase()+e.slice(1)}var Qn=(function(){function e(a){this.builder=a}var t=e.prototype;return t.atrule=function(r,n){var i="@"+r.name,o=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?i+=r.raws.afterName:o&&(i+=" "),r.nodes)this.block(r,i+o);else{var s=(r.raws.between||"")+(n?";":"");this.builder(i+o+s,r)}},t.beforeAfter=function(r,n){var i;r.type==="decl"?i=this.raw(r,null,"beforeDecl"):r.type==="comment"?i=this.raw(r,null,"beforeComment"):n==="before"?i=this.raw(r,null,"beforeRule"):i=this.raw(r,null,"beforeClose");for(var o=r.parent,s=0;o&&o.type!=="root";)s+=1,o=o.parent;if(i.includes(`
|
|
12
|
-
`)){var c=this.raw(r,null,"indent");if(c.length)for(var u=0;u<s;u++)i+=c}return i},t.block=function(r,n){var i=this.raw(r,"between","beforeOpen");this.builder(n+i+"{",r,"start");var o;r.nodes&&r.nodes.length?(this.body(r),o=this.raw(r,"after")):o=this.raw(r,"after","emptyBody"),o&&this.builder(o),this.builder("}",r,"end")},t.body=function(r){for(var n=r.nodes.length-1;n>0&&r.nodes[n].type==="comment";)n-=1;for(var i=this.raw(r,"semicolon"),o=0;o<r.nodes.length;o++){var s=r.nodes[o],c=this.raw(s,"before");c&&this.builder(c),this.stringify(s,n!==o||i)}},t.comment=function(r){var n=this.raw(r,"left","commentLeft"),i=this.raw(r,"right","commentRight");this.builder("/*"+n+r.text+i+"*/",r)},t.decl=function(r,n){var i=this.raw(r,"between","colon"),o=r.prop+i+this.rawValue(r,"value");r.important&&(o+=r.raws.important||" !important"),n&&(o+=";"),this.builder(o,r)},t.document=function(r){this.body(r)},t.raw=function(r,n,i){var o;if(i||(i=n),n&&(o=r.raws[n],typeof o<"u"))return o;var s=r.parent;if(i==="before"&&(!s||s.type==="root"&&s.first===r||s&&s.type==="document"))return"";if(!s)return ts[i];var c=r.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[i]<"u")return c.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(r,i);var u="raw"+sf(i);return this[u]?o=this[u](c,r):c.walk(function(l){if(o=l.raws[n],typeof o<"u")return!1}),typeof o>"u"&&(o=ts[i]),c.rawCache[i]=o,o},t.rawBeforeClose=function(r){var n;return r.walk(function(i){if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return n=i.raws.after,n.includes(`
|
|
13
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n},t.rawBeforeComment=function(r,n){var i;return r.walkComments(function(o){if(typeof o.raws.before<"u")return i=o.raws.before,i.includes(`
|
|
14
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},t.rawBeforeDecl=function(r,n){var i;return r.walkDecls(function(o){if(typeof o.raws.before<"u")return i=o.raws.before,i.includes(`
|
|
15
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},t.rawBeforeOpen=function(r){var n;return r.walk(function(i){if(i.type!=="decl"&&(n=i.raws.between,typeof n<"u"))return!1}),n},t.rawBeforeRule=function(r){var n;return r.walk(function(i){if(i.nodes&&(i.parent!==r||r.first!==i)&&typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
|
|
16
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n},t.rawColon=function(r){var n;return r.walkDecls(function(i){if(typeof i.raws.between<"u")return n=i.raws.between.replace(/[^\s:]/g,""),!1}),n},t.rawEmptyBody=function(r){var n;return r.walk(function(i){if(i.nodes&&i.nodes.length===0&&(n=i.raws.after,typeof n<"u"))return!1}),n},t.rawIndent=function(r){if(r.raws.indent)return r.raws.indent;var n;return r.walk(function(i){var o=i.parent;if(o&&o!==r&&o.parent&&o.parent===r&&typeof i.raws.before<"u"){var s=i.raws.before.split(`
|
|
17
|
-
`);return n=s[s.length-1],n=n.replace(/\S/g,""),!1}}),n},t.rawSemicolon=function(r){var n;return r.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(n=i.raws.semicolon,typeof n<"u"))return!1}),n},t.rawValue=function(r,n){var i=r[n],o=r.raws[n];return o&&o.value===i?o.raw:i},t.root=function(r){this.body(r),r.raws.after&&this.builder(r.raws.after)},t.rule=function(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")},t.stringify=function(r,n){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,n)},e})(),Rc=Qn;Qn.default=Qn;var cf=Rc;function ea(e,t){var a=new cf(t);a.stringify(e)}var sn=ea;ea.default=ea;var ti=ft.isClean,uf=ft.my,lf=Za,df=Rc,ff=sn;function ta(e,t){var a=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r!=="proxyCache"){var n=e[r],i=typeof n>"u"?"undefined":$(n);r==="parent"&&i==="object"?t&&(a[r]=t):r==="source"?a[r]=n:Array.isArray(n)?a[r]=n.map(function(o){return ta(o,a)}):(i==="object"&&n!==null&&(n=ta(n)),a[r]=n)}return a}var ra=(function(){function e(a){a===void 0&&(a={}),this.raws={},this[ti]=!1,this[uf]=!0;for(var r in a)if(r==="nodes"){this.nodes=[];for(var n=I(a[r]),i;!(i=n()).done;){var o=i.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[r]=a[r]}var t=e.prototype;return t.addToError=function(r){if(r.postcssNode=this,r.stack&&this.source&&/\n\s{4}at /.test(r.stack)){var n=this.source;r.stack=r.stack.replace(/\n\s{4}at /,"$&"+n.input.from+":"+n.start.line+":"+n.start.column+"$&")}return r},t.after=function(r){return this.parent.insertAfter(this,r),this},t.assign=function(r){r===void 0&&(r={});for(var n in r)this[n]=r[n];return this},t.before=function(r){return this.parent.insertBefore(this,r),this},t.cleanRaws=function(r){delete this.raws.before,delete this.raws.after,r||delete this.raws.between},t.clone=function(r){r===void 0&&(r={});var n=ta(this);for(var i in r)n[i]=r[i];return n},t.cloneAfter=function(r){r===void 0&&(r={});var n=this.clone(r);return this.parent.insertAfter(this,n),n},t.cloneBefore=function(r){r===void 0&&(r={});var n=this.clone(r);return this.parent.insertBefore(this,n),n},t.error=function(r,n){if(n===void 0&&(n={}),this.source){var i=this.rangeBy(n),o=i.end,s=i.start;return this.source.input.error(r,{column:s.column,line:s.line},{column:o.column,line:o.line},n)}return new lf(r)},t.getProxyProcessor=function(){return{get:function(n,i){return i==="proxyOf"?n:i==="root"?function(){return n.root().toProxy()}:n[i]},set:function(n,i,o){return n[i]===o||(n[i]=o,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&n.markDirty()),!0}}},t.markDirty=function(){if(this[ti]){this[ti]=!1;for(var r=this;r=r.parent;)r[ti]=!1}},t.next=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r+1]}},t.positionBy=function(r,n){var i=this.source.start;if(r.index)i=this.positionInside(r.index,n);else if(r.word){n=this.toString();var o=n.indexOf(r.word);o!==-1&&(i=this.positionInside(o,n))}return i},t.positionInside=function(r,n){for(var i=n||this.toString(),o=this.source.start.column,s=this.source.start.line,c=0;c<r;c++)i[c]===`
|
|
18
|
-
`?(o=1,s+=1):o+=1;return{column:o,line:s}},t.prev=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r-1]}},t.rangeBy=function(r){var n={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(r.word){var o=this.toString(),s=o.indexOf(r.word);s!==-1&&(n=this.positionInside(s,o),i=this.positionInside(s+r.word.length,o))}else r.start?n={column:r.start.column,line:r.start.line}:r.index&&(n=this.positionInside(r.index)),r.end?i={column:r.end.column,line:r.end.line}:typeof r.endIndex=="number"?i=this.positionInside(r.endIndex):r.index&&(i=this.positionInside(r.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line}),{end:i,start:n}},t.raw=function(r,n){var i=new df;return i.raw(this,r,n)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];if(this.parent){for(var o=this,s=!1,c=I(n),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},t.root=function(){for(var r=this;r.parent&&r.parent.type!=="document";)r=r.parent;return r},t.toJSON=function(r,n){var i={},o=n==null;n=n||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))i[c]=u.map(function(d){return(typeof d>"u"?"undefined":$(d))==="object"&&d.toJSON?d.toJSON(null,n):d});else if((typeof u>"u"?"undefined":$(u))==="object"&&u.toJSON)i[c]=u.toJSON(null,n);else if(c==="source"){var l=n.get(u.input);l==null&&(l=s,n.set(u.input,s),s++),i[c]={end:u.end,inputId:l,start:u.start}}else i[c]=u}return o&&(i.inputs=[].concat(n.keys()).map(function(d){return d.toJSON()})),i},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(r){r===void 0&&(r=ff),r.stringify&&(r=r.stringify);var n="";return r(this,function(i){n+=i}),n},t.warn=function(r,n,i){var o={node:this};for(var s in i)o[s]=i[s];return r.warn(n,o)},ve(e,[{key:"proxyOf",get:function(){return this}}]),e})(),cn=ra;ra.default=ra;var hf=cn,ia=(function(e){ke(t,e);function t(a){var r;return a&&typeof a.value<"u"&&typeof a.value!="string"&&(a=H({},a,{value:String(a.value)})),r=e.call(this,a)||this,r.type="decl",r}return ve(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),t})(hf),un=ia;ia.default=ia;var pf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_f=function(e){e===void 0&&(e=21);for(var t="",a=e;a--;)t+=pf[Math.random()*64|0];return t},mf={nanoid:_f},rs=le.SourceMapConsumer,is=le.SourceMapGenerator,gf=le.existsSync,vf=le.readFileSync,In=le.dirname,yf=le.join;function bf(e){return ct?ct.from(e,"base64").toString():window.atob(e)}var na=(function(){function e(a,r){if(r.map!==!1){this.loadAnnotation(a),this.inline=this.startWith(this.annotation,"data:");var n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=In(this.mapFile)),i&&(this.text=i)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new rs(this.text)),this.consumerCache},t.decodeInline=function(r){var n=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(o.test(r)||s.test(r))return decodeURIComponent(r.substr(RegExp.lastMatch.length));if(n.test(r)||i.test(r))return bf(r.substr(RegExp.lastMatch.length));var c=r.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)},t.getAnnotationURL=function(r){return r.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(r){return(typeof r>"u"?"undefined":$(r))!=="object"?!1:typeof r.mappings=="string"||typeof r._mappings=="string"||Array.isArray(r.sections)},t.loadAnnotation=function(r){var n=r.match(/\/\*\s*# sourceMappingURL=/gm);if(n){var i=r.lastIndexOf(n.pop()),o=r.indexOf("*/",i);i>-1&&o>-1&&(this.annotation=this.getAnnotationURL(r.substring(i,o)))}},t.loadFile=function(r){if(this.root=In(r),gf(r))return this.mapFile=r,vf(r,"utf-8").toString().trim()},t.loadMap=function(r,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){var i=n(r);if(i){var o=this.loadFile(i);if(!o)throw new Error("Unable to load previous source map: "+i.toString());return o}}else{if(D(n,rs))return is.fromSourceMap(n).toString();if(D(n,is))return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return r&&(s=yf(In(r),s)),this.loadFile(s)}}},t.startWith=function(r,n){return r?r.substr(0,n.length)===n:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e})(),Pc=na;na.default=na;var Cf=le.SourceMapConsumer,kf=le.SourceMapGenerator,ns=le.fileURLToPath,ri=le.pathToFileURL,aa=le.isAbsolute,oa=le.resolve,wf=mf.nanoid,En=le,as=Za,Sf=Pc,On=Symbol("fromOffsetCache"),Af=!!(Cf&&kf),os=!!(oa&&aa),Ni=(function(){function e(a,r){if(r===void 0&&(r={}),a===null||typeof a>"u"||(typeof a>"u"?"undefined":$(a))==="object"&&!a.toString)throw new Error("PostCSS received "+a+" instead of CSS string");if(this.css=a.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!os||/^\w+:\/\//.test(r.from)||aa(r.from)?this.file=r.from:this.file=oa(r.from)),os&&Af){var n=new Sf(this.css,r);if(n.text){this.map=n;var i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+wf(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(r,n,i,o){o===void 0&&(o={});var s,c,u;if(n&&(typeof n>"u"?"undefined":$(n))==="object"){var l=n,d=i;if(typeof l.offset=="number"){var f=this.fromOffset(l.offset);n=f.line,i=f.col}else n=l.line,i=l.column;if(typeof d.offset=="number"){var p=this.fromOffset(d.offset);c=p.line,u=p.col}else c=d.line,u=d.column}else if(!i){var _=this.fromOffset(n);n=_.line,i=_.col}var v=this.origin(n,i,c,u);return v?s=new as(r,v.endLine===void 0?v.line:{column:v.column,line:v.line},v.endLine===void 0?v.column:{column:v.endColumn,line:v.endLine},v.source,v.file,o.plugin):s=new as(r,c===void 0?n:{column:i,line:n},c===void 0?i:{column:u,line:c},this.css,this.file,o.plugin),s.input={column:i,endColumn:u,endLine:c,line:n,source:this.css},this.file&&(ri&&(s.input.url=ri(this.file).toString()),s.input.file=this.file),s},t.fromOffset=function(r){var n,i;if(this[On])i=this[On];else{var o=this.css.split(`
|
|
19
|
-
`);i=new Array(o.length);for(var s=0,c=0,u=o.length;c<u;c++)i[c]=s,s+=o[c].length+1;this[On]=i}n=i[i.length-1];var l=0;if(r>=n)l=i.length-1;else for(var d=i.length-2,f;l<d;)if(f=l+(d-l>>1),r<i[f])d=f-1;else if(r>=i[f+1])l=f+1;else{l=f;break}return{col:r-i[l]+1,line:l+1}},t.mapResolve=function(r){return/^\w+:\/\//.test(r)?r:oa(this.map.consumer().sourceRoot||this.map.root||".",r)},t.origin=function(r,n,i,o){if(!this.map)return!1;var s=this.map.consumer(),c=s.originalPositionFor({column:n,line:r});if(!c.source)return!1;var u;typeof i=="number"&&(u=s.originalPositionFor({column:o,line:i}));var l;aa(c.source)?l=ri(c.source):l=new URL(c.source,this.map.consumer().sourceRoot||ri(this.map.mapFile));var d={column:c.column,endColumn:u&&u.column,endLine:u&&u.line,line:c.line,url:l.toString()};if(l.protocol==="file:")if(ns)d.file=ns(l);else throw new Error("file: protocol is not available in this PostCSS build");var f=s.sourceContentFor(c.source);return f&&(d.source=f),d},t.toJSON=function(){for(var r={},n=0,i=["hasBOM","css","file","id"];n<i.length;n++){var o=i[n];this[o]!=null&&(r[o]=this[o])}return this.map&&(r.map=H({},this.map),r.map.consumerCache&&(r.map.consumerCache=void 0)),r},ve(e,[{key:"from",get:function(){return this.file||this.id}}]),e})(),ln=Ni;Ni.default=Ni;En&&En.registerInput&&En.registerInput(Ni);var Ic=le.SourceMapConsumer,Ai=le.SourceMapGenerator,Ti=le.dirname,Ec=le.relative,Oc=le.resolve,xc=le.sep,ss=le.pathToFileURL,Tf=ln,Rf=!!(Ic&&Ai),Pf=!!(Ti&&Oc&&Ec&&xc),If=(function(){function e(a,r,n,i){this.stringify=a,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var r;this.isInline()?r="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?r=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?r=this.mapOpts.annotation(this.opts.to,this.root):r=this.outputFile()+".map";var n=`
|
|
20
|
-
`;this.css.includes(`\r
|
|
21
|
-
`)&&(n=`\r
|
|
22
|
-
`),this.css+=n+"/*# sourceMappingURL="+r+" */"},t.applyPrevMaps=function(){for(var r=I(this.previous()),n;!(n=r()).done;){var i=n.value,o=this.toUrl(this.path(i.file)),s=i.root||Ti(i.file),c=void 0;this.mapOpts.sourcesContent===!1?(c=new Ic(i.text),c.sourcesContent&&(c.sourcesContent=null)):c=i.consumer(),this.map.applySourceMap(c,o,this.toUrl(this.path(s)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var r,n=this.root.nodes.length-1;n>=0;n--)r=this.root.nodes[n],r.type==="comment"&&r.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Pf&&Rf&&this.isMap())return this.generateMap();var r="";return this.stringify(this.root,function(n){r+=n}),[r]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var r=this.previous()[0].consumer();r.file=this.outputFile(),this.map=Ai.fromSourceMap(r,{ignoreInvalidMapping:!0})}else this.map=new Ai({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var r=this;this.css="",this.map=new Ai({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=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(r.css+=l,d&&f!=="end"&&(s.generated.line=n,s.generated.column=i-1,d.source&&d.source.start?(s.source=r.sourcePath(d),s.original.line=d.source.start.line,s.original.column=d.source.start.column-1,r.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,r.map.addMapping(s))),c=l.match(/\n/g),c?(n+=c.length,u=l.lastIndexOf(`
|
|
23
|
-
`),i=l.length-u):i+=l.length,d&&f!=="start"){var p=d.parent||{raws:{}},_=d.type==="decl"||d.type==="atrule"&&!d.nodes;(!_||d!==p.last||p.raws.semicolon)&&(d.source&&d.source.end?(s.source=r.sourcePath(d),s.original.line=d.source.end.line,s.original.column=d.source.end.column-1,s.generated.line=n,s.generated.column=i-2,r.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,r.map.addMapping(s)))}})},t.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(r){return r.annotation}):!0},t.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var r=this.mapOpts.annotation;return typeof r<"u"&&r!==!0?!1:this.previous().length?this.previous().some(function(n){return n.inline}):!0},t.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(r){return r.withContent()}):!0},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;var n=this.memoizedPaths.get(r);if(n)return n;var i=this.opts.to?Ti(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Ti(Oc(i,this.mapOpts.annotation)));var o=Ec(i,r);return this.memoizedPaths.set(r,o),o},t.previous=function(){var r=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(i){if(i.source&&i.source.input.map){var o=i.source.input.map;r.previousMaps.includes(o)||r.previousMaps.push(o)}});else{var n=new Tf(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps},t.setSourcesContent=function(){var r=this,n={};if(this.root)this.root.walk(function(o){if(o.source){var s=o.source.input.from;if(s&&!n[s]){n[s]=!0;var c=r.usesFileUrls?r.toFileUrl(s):r.toUrl(r.path(s));r.map.setSourceContent(c,o.source.input.css)}}});else if(this.css){var i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}},t.sourcePath=function(r){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(r.source.input.from):this.toUrl(this.path(r.source.input.from))},t.toBase64=function(r){return ct?ct.from(r).toString("base64"):window.btoa(unescape(encodeURIComponent(r)))},t.toFileUrl=function(r){var n=this.memoizedFileURLs.get(r);if(n)return n;if(ss){var i=ss(r).toString();return this.memoizedFileURLs.set(r,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(r){var n=this.memoizedURLs.get(r);if(n)return n;xc==="\\"&&(r=r.replace(/\\/g,"/"));var i=encodeURI(r).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(r,i),i},e})(),Mc=If,Ef=cn,sa=(function(e){ke(t,e);function t(a){var r;return r=e.call(this,a)||this,r.type="comment",r}return t})(Ef),dn=sa;sa.default=sa;var Dc=ft.isClean,Bc=ft.my,Lc=un,Nc=dn,Of=cn,Fc,Ya,Ka,$c;function Uc(e){return e.map(function(t){return t.nodes&&(t.nodes=Uc(t.nodes)),delete t.source,t})}function Vc(e){if(e[Dc]=!1,e.proxyOf.nodes)for(var t=I(e.proxyOf.nodes),a;!(a=t()).done;){var r=a.value;Vc(r)}}var Ke=(function(e){ke(t,e);function t(){return e.apply(this,arguments)||this}var a=t.prototype;return a.append=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];for(var s=I(i),c;!(c=s()).done;)for(var u=c.value,l=this.normalize(u,this.last),d=I(l),f;!(f=d()).done;){var p=f.value;this.proxyOf.nodes.push(p)}return this.markDirty(),this},a.cleanRaws=function(n){if(e.prototype.cleanRaws.call(this,n),this.nodes)for(var i=I(this.nodes),o;!(o=i()).done;){var s=o.value;s.cleanRaws(n)}},a.each=function(n){if(this.proxyOf.nodes){for(var i=this.getIterator(),o,s;this.indexes[i]<this.proxyOf.nodes.length&&(o=this.indexes[i],s=n(this.proxyOf.nodes[o],o),s!==!1);)this.indexes[i]+=1;return delete this.indexes[i],s}},a.every=function(n){return this.nodes.every(n)},a.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var n=this.lastEach;return this.indexes[n]=0,n},a.getProxyProcessor=function(){return{get:function(i,o){return o==="proxyOf"?i:i[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=i)[o].apply(l,[].concat(c.map(function(d){return typeof d=="function"?function(f,p){return d(f.toProxy(),p)}:d})))}:o==="every"||o==="some"?function(s){return i[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 i.root().toProxy()}:o==="nodes"?i.nodes.map(function(s){return s.toProxy()}):o==="first"||o==="last"?i[o].toProxy():i[o]:i[o]},set:function(i,o,s){return i[o]===s||(i[o]=s,(o==="name"||o==="params"||o==="selector")&&i.markDirty()),!0}}},a.index=function(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))},a.insertAfter=function(n,i){var o=this.index(n),s=this.normalize(i,this.proxyOf.nodes[o]).reverse();o=this.index(n);for(var c=I(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(n,i){var o=this.index(n),s=o===0?"prepend":!1,c=this.normalize(i,this.proxyOf.nodes[o],s).reverse();o=this.index(n);for(var u=I(c),l;!(l=u()).done;){var d=l.value;this.proxyOf.nodes.splice(o,0,d)}var f;for(var p in this.indexes)f=this.indexes[p],o<=f&&(this.indexes[p]=f+c.length);return this.markDirty(),this},a.normalize=function(n,i){var o=this;if(typeof n=="string")n=Uc(Fc(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(var s=I(n),c;!(c=s()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(var l=I(n),d;!(d=l()).done;){var f=d.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new Lc(n)]}else if(n.selector)n=[new Ya(n)];else if(n.name)n=[new Ka(n)];else if(n.text)n=[new Nc(n)];else throw new Error("Unknown node type in node creation");var p=n.map(function(_){return _[Bc]||t.rebuild(_),_=_.proxyOf,_.parent&&_.parent.removeChild(_),_[Dc]&&Vc(_),typeof _.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(_.raws.before=i.raws.before.replace(/\S/g,"")),_.parent=o.proxyOf,_});return p},a.prepend=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];i=i.reverse();for(var s=I(i),c;!(c=s()).done;){for(var u=c.value,l=this.normalize(u,this.first,"prepend").reverse(),d=I(l),f;!(f=d()).done;){var p=f.value;this.proxyOf.nodes.unshift(p)}for(var _ in this.indexes)this.indexes[_]=this.indexes[_]+l.length}return this.markDirty(),this},a.push=function(n){return n.parent=this,this.proxyOf.nodes.push(n),this},a.removeAll=function(){for(var n=I(this.proxyOf.nodes),i;!(i=n()).done;){var o=i.value;o.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},a.removeChild=function(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);var i;for(var o in this.indexes)i=this.indexes[o],i>=n&&(this.indexes[o]=i-1);return this.markDirty(),this},a.replaceValues=function(n,i,o){return o||(o=i,i={}),this.walkDecls(function(s){i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(n,o))}),this.markDirty(),this},a.some=function(n){return this.nodes.some(n)},a.walk=function(n){return this.each(function(i,o){var s;try{s=n(i,o)}catch(c){throw i.addToError(c)}return s!==!1&&i.walk&&(s=i.walk(n)),s})},a.walkAtRules=function(n,i){return i?D(n,RegExp)?this.walk(function(o,s){if(o.type==="atrule"&&n.test(o.name))return i(o,s)}):this.walk(function(o,s){if(o.type==="atrule"&&o.name===n)return i(o,s)}):(i=n,this.walk(function(o,s){if(o.type==="atrule")return i(o,s)}))},a.walkComments=function(n){return this.walk(function(i,o){if(i.type==="comment")return n(i,o)})},a.walkDecls=function(n,i){return i?D(n,RegExp)?this.walk(function(o,s){if(o.type==="decl"&&n.test(o.prop))return i(o,s)}):this.walk(function(o,s){if(o.type==="decl"&&o.prop===n)return i(o,s)}):(i=n,this.walk(function(o,s){if(o.type==="decl")return i(o,s)}))},a.walkRules=function(n,i){return i?D(n,RegExp)?this.walk(function(o,s){if(o.type==="rule"&&n.test(o.selector))return i(o,s)}):this.walk(function(o,s){if(o.type==="rule"&&o.selector===n)return i(o,s)}):(i=n,this.walk(function(o,s){if(o.type==="rule")return i(o,s)}))},ve(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t})(Of);Ke.registerParse=function(e){Fc=e};Ke.registerRule=function(e){Ya=e};Ke.registerAtRule=function(e){Ka=e};Ke.registerRoot=function(e){$c=e};var Mt=Ke;Ke.default=Ke;Ke.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,Ka.prototype):e.type==="rule"?Object.setPrototypeOf(e,Ya.prototype):e.type==="decl"?Object.setPrototypeOf(e,Lc.prototype):e.type==="comment"?Object.setPrototypeOf(e,Nc.prototype):e.type==="root"&&Object.setPrototypeOf(e,$c.prototype),e[Bc]=!0,e.nodes&&e.nodes.forEach(function(t){Ke.rebuild(t)})};var xf=Mt,zc,qc,xr=(function(e){ke(t,e);function t(r){var n;return n=e.call(this,H({type:"document"},r))||this,n.nodes||(n.nodes=[]),n}var a=t.prototype;return a.toResult=function(n){n===void 0&&(n={});var i=new zc(new qc,this,n);return i.stringify()},t})(xf);xr.registerLazyResult=function(e){zc=e};xr.registerProcessor=function(e){qc=e};var Xa=xr;xr.default=xr;var ca=(function(){function e(a,r){if(r===void 0&&(r={}),this.type="warning",this.text=a,r.node&&r.node.source){var n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var i in r)this[i]=r[i]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e})(),Wc=ca;ca.default=ca;var Mf=Wc,ua=(function(){function e(a,r,n){this.processor=a,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(r,n){n===void 0&&(n={}),n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);var i=new Mf(r,n);return this.messages.push(i),i},t.warnings=function(){return this.messages.filter(function(r){return r.type==="warning"})},ve(e,[{key:"content",get:function(){return this.css}}]),e})(),Qa=ua;ua.default=ua;var xn=39,cs=34,ii=92,us=47,ni=10,mr=32,ai=12,oi=9,si=13,Df=91,Bf=93,Lf=40,Nf=41,Ff=123,$f=125,Uf=59,Vf=42,zf=58,qf=64,ci=/[\t\n\f\r "#'()/;[\\\]{}]/g,ui=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Wf=/.[\r\n"'(/\\]/,ls=/[\da-f]/i,Gf=function(t,a){a===void 0&&(a={});var r=t.css.valueOf(),n=a.ignoreErrors,i,o,s,c,u,l,d,f,p,_,v=r.length,m=0,g=[],y=[];function b(){return m}function k(R){throw t.error("Unclosed "+R,m)}function w(){return y.length===0&&m>=v}function S(R){if(y.length)return y.pop();if(!(m>=v)){var E=R?R.ignoreUnclosed:!1;switch(i=r.charCodeAt(m),i){case ni:case mr:case oi:case si:case ai:{o=m;do o+=1,i=r.charCodeAt(o);while(i===mr||i===ni||i===oi||i===si||i===ai);_=["space",r.slice(m,o)],m=o-1;break}case Df:case Bf:case Ff:case $f:case zf:case Uf:case Nf:{var M=String.fromCharCode(i);_=[M,M,m];break}case Lf:{if(f=g.length?g.pop()[1]:"",p=r.charCodeAt(m+1),f==="url"&&p!==xn&&p!==cs&&p!==mr&&p!==ni&&p!==oi&&p!==ai&&p!==si){o=m;do{if(l=!1,o=r.indexOf(")",o+1),o===-1)if(n||E){o=m;break}else k("bracket");for(d=o;r.charCodeAt(d-1)===ii;)d-=1,l=!l}while(l);_=["brackets",r.slice(m,o+1),m,o],m=o}else o=r.indexOf(")",m+1),c=r.slice(m,o+1),o===-1||Wf.test(c)?_=["(","(",m]:(_=["brackets",c,m,o],m=o);break}case xn:case cs:{s=i===xn?"'":'"',o=m;do{if(l=!1,o=r.indexOf(s,o+1),o===-1)if(n||E){o=m+1;break}else k("string");for(d=o;r.charCodeAt(d-1)===ii;)d-=1,l=!l}while(l);_=["string",r.slice(m,o+1),m,o],m=o;break}case qf:{ci.lastIndex=m+1,ci.test(r),ci.lastIndex===0?o=r.length-1:o=ci.lastIndex-2,_=["at-word",r.slice(m,o+1),m,o],m=o;break}case ii:{for(o=m,u=!0;r.charCodeAt(o+1)===ii;)o+=1,u=!u;if(i=r.charCodeAt(o+1),u&&i!==us&&i!==mr&&i!==ni&&i!==oi&&i!==si&&i!==ai&&(o+=1,ls.test(r.charAt(o)))){for(;ls.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===mr&&(o+=1)}_=["word",r.slice(m,o+1),m,o],m=o;break}default:{i===us&&r.charCodeAt(m+1)===Vf?(o=r.indexOf("*/",m+2)+1,o===0&&(n||E?o=r.length:k("comment")),_=["comment",r.slice(m,o+1),m,o],m=o):(ui.lastIndex=m+1,ui.test(r),ui.lastIndex===0?o=r.length-1:o=ui.lastIndex-2,_=["word",r.slice(m,o+1),m,o],g.push(_),m=o);break}}return m++,_}}function T(R){y.push(R)}return{back:T,endOfFile:w,nextToken:S,position:b}},Gc=Mt,Fi=(function(e){ke(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type="atrule",n}var a=t.prototype;return a.append=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=e.prototype.append).call.apply(s,[].concat([this],i))},a.prepend=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=e.prototype.prepend).call.apply(s,[].concat([this],i))},t})(Gc),eo=Fi;Fi.default=Fi;Gc.registerAtRule(Fi);var jc=Mt,Hc,Jc,Xt=(function(e){ke(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type="root",n.nodes||(n.nodes=[]),n}var a=t.prototype;return a.normalize=function(n,i,o){var s=e.prototype.normalize.call(this,n);if(i){if(o==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(var c=I(s),u;!(u=c()).done;){var l=u.value;l.raws.before=i.raws.before}}return s},a.removeChild=function(n,i){var o=this.index(n);return!i&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),e.prototype.removeChild.call(this,n)},a.toResult=function(n){n===void 0&&(n={});var i=new Hc(new Jc,this,n);return i.stringify()},t})(jc);Xt.registerLazyResult=function(e){Hc=e};Xt.registerProcessor=function(e){Jc=e};var jr=Xt;Xt.default=Xt;jc.registerRoot(Xt);var Mr={comma:function(t){return Mr.split(t,[","],!0)},space:function(t){var a=[" ",`
|
|
24
|
-
`," "];return Mr.split(t,a)},split:function(t,a,r){for(var n=[],i="",o=!1,s=0,c=!1,u="",l=!1,d=I(t),f;!(f=d()).done;){var p=f.value;l?l=!1:p==="\\"?l=!0:c?p===u&&(c=!1):p==='"'||p==="'"?(c=!0,u=p):p==="("?s+=1:p===")"?s>0&&(s-=1):s===0&&a.includes(p)&&(o=!0),o?(i!==""&&n.push(i.trim()),i="",o=!1):i+=p}return(r||i!=="")&&n.push(i.trim()),n}},Zc=Mr;Mr.default=Mr;var Yc=Mt,jf=Zc,$i=(function(e){ke(t,e);function t(a){var r;return r=e.call(this,a)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return ve(t,[{key:"selectors",get:function(){return jf.comma(this.selector)},set:function(r){var n=this.selector?this.selector.match(/,\s*/):null,i=n?n[0]:","+this.raw("between","beforeOpen");this.selector=r.join(i)}}]),t})(Yc),to=$i;$i.default=$i;Yc.registerRule($i);var Hf=un,Jf=Gf,Zf=dn,Yf=eo,Kf=jr,ds=to,fs={empty:!0,space:!0};function Xf(e){for(var t=e.length-1;t>=0;t--){var a=e[t],r=a[3]||a[2];if(r)return r}}var Qf=(function(){function e(a){this.input=a,this.root=new Kf,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(r){var n=new Yf;n.name=r[1].slice(1),n.name===""&&this.unnamedAtrule(n,r),this.init(n,r[2]);for(var i,o,s,c=!1,u=!1,l=[],d=[];!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),i=r[0],i==="("||i==="["?d.push(i==="("?")":"]"):i==="{"&&d.length>0?d.push("}"):i===d[d.length-1]&&d.pop(),d.length===0)if(i===";"){n.source.end=this.getPosition(r[2]),n.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){u=!0;break}else if(i==="}"){if(l.length>0){for(s=l.length-1,o=l[s];o&&o[0]==="space";)o=l[--s];o&&(n.source.end=this.getPosition(o[3]||o[2]),n.source.end.offset++)}this.end(r);break}else l.push(r);else l.push(r);if(this.tokenizer.endOfFile()){c=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(n.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(n,"params",l),c&&(r=l[l.length-1],n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),u&&(n.nodes=[],this.current=n)},t.checkMissedSemicolon=function(r){var n=this.colon(r);if(n!==!1){for(var i=0,o,s=n-1;s>=0&&(o=r[s],!(o[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},t.colon=function(r){for(var n=0,i,o,s,c=I(r.entries()),u;!(u=c()).done;){var l=u.value,d=l[0],f=l[1];if(i=f,o=i[0],o==="("&&(n+=1),o===")"&&(n-=1),n===0&&o===":")if(!s)this.doubleColon(i);else{if(s[0]==="word"&&s[1]==="progid")continue;return d}s=i}return!1},t.comment=function(r){var n=new Zf;this.init(n,r[2]),n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++;var i=r[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{var o=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=o[2],n.raws.left=o[1],n.raws.right=o[3]}},t.createTokenizer=function(){this.tokenizer=Jf(this.input)},t.decl=function(r,n){var i=new Hf;this.init(i,r[0][2]);var o=r[r.length-1];for(o[0]===";"&&(this.semicolon=!0,r.pop()),i.source.end=this.getPosition(o[3]||o[2]||Xf(r)),i.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),i.raws.before+=r.shift()[1];for(i.source.start=this.getPosition(r[0][2]),i.prop="";r.length;){var s=r[0][0];if(s===":"||s==="space"||s==="comment")break;i.prop+=r.shift()[1]}i.raws.between="";for(var c;r.length;)if(c=r.shift(),c[0]===":"){i.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),i.raws.between+=c[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var u=[],l;r.length&&(l=r[0][0],!(l!=="space"&&l!=="comment"));)u.push(r.shift());this.precheckMissedSemicolon(r);for(var d=r.length-1;d>=0;d--){if(c=r[d],c[1].toLowerCase()==="!important"){i.important=!0;var f=this.stringFrom(r,d);f=this.spacesFromEnd(r)+f,f!==" !important"&&(i.raws.important=f);break}else if(c[1].toLowerCase()==="important"){for(var p=r.slice(0),_="",v=d;v>0;v--){var m=p[v][0];if(_.trim().indexOf("!")===0&&m!=="space")break;_=p.pop()[1]+_}_.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=_,r=p)}if(c[0]!=="space"&&c[0]!=="comment")break}var g=r.some(function(y){return y[0]!=="space"&&y[0]!=="comment"});g&&(i.raws.between+=u.map(function(y){return y[1]}).join(""),u=[]),this.raw(i,"value",u.concat(r),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(r)},t.doubleColon=function(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})},t.emptyRule=function(r){var n=new ds;this.init(n,r[2]),n.selector="",n.raws.between="",this.current=n},t.end=function(r){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(r){if(this.spaces+=r[1],this.current.nodes){var n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(r){var n=this.input.fromOffset(r);return{column:n.col,line:n.line,offset:r}},t.init=function(r,n){this.current.push(r),r.source={input:this.input,start:this.getPosition(n)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)},t.other=function(r){for(var n=!1,i=null,o=!1,s=null,c=[],u=r[1].startsWith("--"),l=[],d=r;d;){if(i=d[0],l.push(d),i==="("||i==="[")s||(s=d),c.push(i==="("?")":"]");else if(u&&o&&i==="{")s||(s=d),c.push("}");else if(c.length===0)if(i===";")if(o){this.decl(l,u);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),n=!0;break}else i===":"&&(o=!0);else i===c[c.length-1]&&(c.pop(),c.length===0&&(s=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),c.length>0&&this.unclosedBracket(s),n&&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)},t.parse=function(){for(var r;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(r,n,i,o){for(var s,c,u=i.length,l="",d=!0,f,p,_=0;_<u;_+=1)s=i[_],c=s[0],c==="space"&&_===u-1&&!o?d=!1:c==="comment"?(p=i[_-1]?i[_-1][0]:"empty",f=i[_+1]?i[_+1][0]:"empty",!fs[p]&&!fs[f]?l.slice(-1)===","?d=!1:l+=s[1]:d=!1):l+=s[1];if(!d){var v=i.reduce(function(m,g){return m+g[1]},"");r.raws[n]={raw:v,value:l}}r[n]=l},t.rule=function(r){r.pop();var n=new ds;this.init(n,r[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(n,"selector",r),this.current=n},t.spacesAndCommentsFromEnd=function(r){for(var n,i="";r.length&&(n=r[r.length-1][0],!(n!=="space"&&n!=="comment"));)i=r.pop()[1]+i;return i},t.spacesAndCommentsFromStart=function(r){for(var n,i="";r.length&&(n=r[0][0],!(n!=="space"&&n!=="comment"));)i+=r.shift()[1];return i},t.spacesFromEnd=function(r){for(var n,i="";r.length&&(n=r[r.length-1][0],n==="space");)i=r.pop()[1]+i;return i},t.stringFrom=function(r,n){for(var i="",o=n;o<r.length;o++)i+=r[o][1];return r.splice(n,r.length-n),i},t.unclosedBlock=function(){var r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)},t.unclosedBracket=function(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})},t.unexpectedClose=function(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})},t.unknownWord=function(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})},t.unnamedAtrule=function(r,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})},e})(),eh=Qf,th=Mt,rh=eh,ih=ln;function Ui(e,t){var a=new ih(e,t),r=new rh(a);try{r.parse()}catch(n){throw n}return r.root}var ro=Ui;Ui.default=Ui;th.registerParse(Ui);var Ue=ft.isClean,nh=ft.my,ah=Mc,oh=sn,sh=Mt,ch=Xa,hs=Qa,uh=ro,lh=jr,dh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fh={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},hh={Once:!0,postcssPlugin:!0,prepare:!0},Qt=0;function gr(e){return(typeof e>"u"?"undefined":$(e))==="object"&&typeof e.then=="function"}function Kc(e){var t=!1,a=dh[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[a,a+"-"+t,Qt,a+"Exit",a+"Exit-"+t]:t?[a,a+"-"+t,a+"Exit",a+"Exit-"+t]:e.append?[a,Qt,a+"Exit"]:[a,a+"Exit"]}function ps(e){var t;return e.type==="document"?t=["Document",Qt,"DocumentExit"]:e.type==="root"?t=["Root",Qt,"RootExit"]:t=Kc(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function la(e){return e[Ue]=!1,e.nodes&&e.nodes.forEach(function(t){return la(t)}),e}var da={},er=(function(){function e(a,r,n){var i=this;this.stringified=!1,this.processed=!1;var o;if((typeof r>"u"?"undefined":$(r))==="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=la(r);else if(D(r,e)||D(r,hs))o=la(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=uh;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(c){this.processed=!0,this.error=c}o&&!o[nh]&&sh.rebuild(o)}this.result=new hs(a,o,n),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(i.result)):c})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(r,n){var i=this.result.lastPlugin;try{if(n&&n.addToError(r),this.error=r,r.name==="CssSyntaxError"&&!r.plugin)r.plugin=i.postcssPlugin,r.setMessage();else if(i.postcssVersion)var o,s,c,u,l}catch(d){console&&console.error&&console.error(d)}return r},t.prepareVisitors=function(){var r=this;this.listeners={};for(var n=function(l,d,f){r.listeners[d]||(r.listeners[d]=[]),r.listeners[d].push([l,f])},i=I(this.plugins),o;!(o=i()).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==="*"?n(s,c,s[c][u]):n(s,c+"-"+u.toLowerCase(),s[c][u]);else typeof s[c]=="function"&&n(s,c,s[c])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var r=this;return Ga(function(){var n,i,o,s,c,u,l,d,f,p,_,v;return Er(this,function(m){switch(m.label){case 0:r.plugin=0,n=0,m.label=1;case 1:if(!(n<r.plugins.length))return[3,6];if(i=r.plugins[n],o=r.runOnRoot(i),!gr(o))return[3,5];m.label=2;case 2:return m.trys.push([2,4,,5]),[4,o];case 3:return m.sent(),[3,5];case 4:throw s=m.sent(),r.handleError(s);case 5:return n++,[3,1];case 6:if(r.prepareVisitors(),!r.hasListener)return[3,18];c=r.result.root,m.label=7;case 7:if(c[Ue])return[3,14];c[Ue]=!0,u=[ps(c)],m.label=8;case 8:if(!(u.length>0))return[3,13];if(l=r.visitTick(u),!gr(l))return[3,12];m.label=9;case 9:return m.trys.push([9,11,,12]),[4,l];case 10:return m.sent(),[3,12];case 11:throw d=m.sent(),f=u[u.length-1].node,r.handleError(d,f);case 12:return[3,8];case 13:return[3,7];case 14:if(!r.listeners.OnceExit)return[3,18];p=function(){var g,y,b,k,w;return Er(this,function(S){switch(S.label){case 0:g=v.value,y=g[0],b=g[1],r.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(T){return b(T,r.helpers)}),[4,Promise.all(k)]);case 2:return S.sent(),[3,5];case 3:return[4,b(c,r.helpers)];case 4:S.sent(),S.label=5;case 5:return[3,7];case 6:throw w=S.sent(),r.handleError(w);case 7:return[2]}})},_=I(r.listeners.OnceExit),m.label=15;case 15:return(v=_()).done?[3,18]:[5,mc(p())];case 16:m.sent(),m.label=17;case 17:return[3,15];case 18:return r.processed=!0,[2,r.stringify()]}})})()},t.runOnRoot=function(r){var n=this;this.result.lastPlugin=r;try{if((typeof r>"u"?"undefined":$(r))==="object"&&r.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(o){return r.Once(o,n.helpers)});return gr(i[0])?Promise.all(i):i}return r.Once(this.result.root,this.helpers)}else if(typeof r=="function")return r(this.result.root,this.result)}catch(o){throw this.handleError(o)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var r=this.result.opts,n=oh;r.syntax&&(n=r.syntax.stringify),r.stringifier&&(n=r.stringifier),n.stringify&&(n=n.stringify);var i=new ah(n,this.result.root,this.result.opts),o=i.generate();return this.result.css=o[0],this.result.map=o[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var r=I(this.plugins),n;!(n=r()).done;){var i=n.value,o=this.runOnRoot(i);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=I(s.nodes),u;!(u=c()).done;){var l=u.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},t.then=function(r,n){return this.async().then(r,n)},t.toString=function(){return this.css},t.visitSync=function(r,n){for(var i=I(r),o;!(o=i()).done;){var s=o.value,c=s[0],u=s[1];this.result.lastPlugin=c;var l=void 0;try{l=u(n,this.helpers)}catch(d){throw this.handleError(d,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(gr(l))throw this.getAsyncError()}},t.visitTick=function(r){var n=r[r.length-1],i=n.node,o=n.visitors;if(i.type!=="root"&&i.type!=="document"&&!i.parent){r.pop();return}if(o.length>0&&n.visitorIndex<o.length){var s=o[n.visitorIndex],c=s[0],u=s[1];n.visitorIndex+=1,n.visitorIndex===o.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=c;try{return u(i.toProxy(),this.helpers)}catch(_){throw this.handleError(_,i)}}if(n.iterator!==0){for(var l=n.iterator,d;d=i.nodes[i.indexes[l]];)if(i.indexes[l]+=1,!d[Ue]){d[Ue]=!0,r.push(ps(d));return}n.iterator=0,delete i.indexes[l]}for(var f=n.events;n.eventIndex<f.length;){var p=f[n.eventIndex];if(n.eventIndex+=1,p===Qt){i.nodes&&i.nodes.length&&(i[Ue]=!0,n.iterator=i.getIterator());return}else if(this.listeners[p]){n.visitors=this.listeners[p];return}}r.pop()},t.walkSync=function(r){var n=this;r[Ue]=!0;for(var i=Kc(r),o=I(i),s;!(s=o()).done;){var c=s.value;if(c===Qt)r.nodes&&r.each(function(l){l[Ue]||n.walkSync(l)});else{var u=this.listeners[c];if(u&&this.visitSync(u,r.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},ve(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e})();er.registerPostcss=function(e){da=e};var Xc=er;er.default=er;lh.registerLazyResult(er);ch.registerLazyResult(er);var ph=Mc,_h=sn,mh=ro,gh=Qa,fa=(function(){function e(a,r,n){r=r.toString(),this.stringified=!1,this._processor=a,this._css=r,this._opts=n,this._map=void 0;var i,o=_h;this.result=new gh(this._processor,i,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var c=new ph(o,i,this._opts,r);if(c.isMap()){var u=c.generate(),l=u[0],d=u[1];l&&(this.result.css=l),d&&(this.result.map=d)}else c.clearAnnotation(),this.result.css=c.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(r,n){return this.async().then(r,n)},t.toString=function(){return this._css},t.warnings=function(){return[]},ve(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var r,n=mh;try{r=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=r,r}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e})(),vh=fa;fa.default=fa;var yh=vh,bh=Xc,Ch=Xa,kh=jr,Dr=(function(){function e(a){a===void 0&&(a=[]),this.version="8.4.38",this.plugins=this.normalize(a)}var t=e.prototype;return t.normalize=function(r){for(var n=[],i=I(r),o;!(o=i()).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))n=n.concat(s.plugins);else if((typeof s>"u"?"undefined":$(s))==="object"&&s.postcssPlugin)n.push(s);else if(typeof s=="function")n.push(s);else if(!((typeof s>"u"?"undefined":$(s))==="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin")}return n},t.process=function(r,n){return n===void 0&&(n={}),!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new yh(this,r,n):new bh(this,r,n)},t.use=function(r){return this.plugins=this.plugins.concat(this.normalize([r])),this},e})(),wh=Dr;Dr.default=Dr;kh.registerProcessor(Dr);Ch.registerProcessor(Dr);var Sh=un,Ah=Pc,Th=dn,Rh=eo,Ph=ln,Ih=jr,Eh=to;function Br(e,t){if(Array.isArray(e))return e.map(function(d){return Br(d)});var a=e.inputs,r=Pr(e,["inputs"]);if(a){t=[];for(var n=I(a),i;!(i=n()).done;){var o=i.value,s=H({},o,{__proto__:Ph.prototype});s.map&&(s.map=H({},s.map,{__proto__:Ah.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(function(d){return Br(d,t)})),r.source){var c=r.source,u=c.inputId,l=Pr(c,["inputId"]);r.source=l,u!=null&&(r.source.input=t[u])}if(r.type==="root")return new Ih(r);if(r.type==="decl")return new Sh(r);if(r.type==="rule")return new Eh(r);if(r.type==="comment")return new Th(r);if(r.type==="atrule")return new Rh(r);throw new Error("Unknown node type: "+e.type)}var Oh=Br;Br.default=Br;var xh=Za,Qc=un,Mh=Xc,Dh=Mt,io=wh,Bh=sn,Lh=Oh,eu=Xa,Nh=Wc,tu=dn,ru=eo,Fh=Qa,$h=ln,Uh=ro,Vh=Zc,iu=to,nu=jr,zh=cn;function X(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new io(t)}X.plugin=function(t,a){var r=!1;function n(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
|
|
25
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Oi.LANG&&Oi.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
26
|
-
https://www.w3ctech.com/topic/2226`));var u=a.apply(void 0,[].concat(s));return u.postcssPlugin=t,u.postcssVersion=new io().version,u}var i;return Object.defineProperty(n,"postcss",{get:function(){return i||(i=n()),i}}),n.process=function(o,s,c){return X([n(c)]).process(o,s)},n};X.stringify=Bh;X.parse=Uh;X.fromJSON=Lh;X.list=Vh;X.comment=function(e){return new tu(e)};X.atRule=function(e){return new ru(e)};X.decl=function(e){return new Qc(e)};X.rule=function(e){return new iu(e)};X.root=function(e){return new nu(e)};X.document=function(e){return new eu(e)};X.CssSyntaxError=xh;X.Declaration=Qc;X.Container=Dh;X.Processor=io;X.Document=eu;X.Comment=tu;X.Warning=Nh;X.AtRule=ru;X.Result=Fh;X.Input=$h;X.Rule=iu;X.Root=nu;X.Node=zh;Mh.registerPostcss(X);var qh=X;X.default=X;var ae=tf(qh);ae.stringify;ae.fromJSON;ae.plugin;ae.parse;ae.list;ae.document;ae.comment;ae.atRule;ae.rule;ae.decl;ae.root;ae.CssSyntaxError;ae.Declaration;ae.Container;ae.Processor;ae.Document;ae.Comment;ae.Warning;ae.AtRule;ae.Result;ae.Input;ae.Rule;ae.Root;ae.Node;var Wh=Object.defineProperty,Gh=function(e,t,a){return t in e?Wh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a},xe=function(e,t,a){return Gh(e,(typeof t>"u"?"undefined":$(t))!=="symbol"?t+"":t,a)};function jh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var a=function r(){return D(this,r)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),a}var no={exports:{}},ie=String,au=function(){return{isColorSupported:!1,reset:ie,bold:ie,dim:ie,italic:ie,underline:ie,inverse:ie,hidden:ie,strikethrough:ie,black:ie,red:ie,green:ie,yellow:ie,blue:ie,magenta:ie,cyan:ie,white:ie,gray:ie,bgBlack:ie,bgRed:ie,bgGreen:ie,bgYellow:ie,bgBlue:ie,bgMagenta:ie,bgCyan:ie,bgWhite:ie}};no.exports=au();no.exports.createColors=au;var Jh=no.exports,Zh={},Yh=Object.freeze(Object.defineProperty({__proto__:null,default:Zh},Symbol.toStringTag,{value:"Module"})),de=Hh(Yh),_s=Jh,ms=de,ha=(function(e){ke(t,e);function t(r,n,i,o,s,c){var u;return u=e.call(this,r)||this,u.name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),c&&(u.plugin=c),typeof n<"u"&&typeof i<"u"&&(typeof n=="number"?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}var a=t.prototype;return a.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},a.showSourceCode=function(n){var i=this;if(!this.source)return"";var o=this.source;n==null&&(n=_s.isColorSupported),ms&&n&&(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(n){var p=_s.createColors(!0),_=p.bold,v=p.gray,m=p.red;d=function(g){return _(m(g))},f=function(g){return v(g)}}else d=f=function(g){return g};return s.slice(c,u).map(function(g,y){var b=c+1+y,k=" "+(" "+b).slice(-l)+" | ";if(b===i.line){var w=f(k.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return d(">")+f(k)+g+`
|
|
27
|
-
`+w+d("^")}return" "+f(k)+g}).join(`
|
|
28
|
-
`)},a.toString=function(){var n=this.showSourceCode();return n&&(n=`
|
|
29
|
-
|
|
30
|
-
`+n+`
|
|
31
|
-
`),this.name+": "+this.message+n},t})(xi(Error)),ao=ha;ha.default=ha;var ht={};ht.isClean=Symbol("isClean");ht.my=Symbol("my");var gs={after:`
|
|
32
|
-
`,beforeClose:`
|
|
33
|
-
`,beforeComment:`
|
|
34
|
-
`,beforeDecl:`
|
|
35
|
-
`,beforeOpen:" ",beforeRule:`
|
|
36
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Kh(e){return e[0].toUpperCase()+e.slice(1)}var pa=(function(){function e(a){this.builder=a}var t=e.prototype;return t.atrule=function(r,n){var i="@"+r.name,o=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?i+=r.raws.afterName:o&&(i+=" "),r.nodes)this.block(r,i+o);else{var s=(r.raws.between||"")+(n?";":"");this.builder(i+o+s,r)}},t.beforeAfter=function(r,n){var i;r.type==="decl"?i=this.raw(r,null,"beforeDecl"):r.type==="comment"?i=this.raw(r,null,"beforeComment"):n==="before"?i=this.raw(r,null,"beforeRule"):i=this.raw(r,null,"beforeClose");for(var o=r.parent,s=0;o&&o.type!=="root";)s+=1,o=o.parent;if(i.includes(`
|
|
37
|
-
`)){var c=this.raw(r,null,"indent");if(c.length)for(var u=0;u<s;u++)i+=c}return i},t.block=function(r,n){var i=this.raw(r,"between","beforeOpen");this.builder(n+i+"{",r,"start");var o;r.nodes&&r.nodes.length?(this.body(r),o=this.raw(r,"after")):o=this.raw(r,"after","emptyBody"),o&&this.builder(o),this.builder("}",r,"end")},t.body=function(r){for(var n=r.nodes.length-1;n>0&&r.nodes[n].type==="comment";)n-=1;for(var i=this.raw(r,"semicolon"),o=0;o<r.nodes.length;o++){var s=r.nodes[o],c=this.raw(s,"before");c&&this.builder(c),this.stringify(s,n!==o||i)}},t.comment=function(r){var n=this.raw(r,"left","commentLeft"),i=this.raw(r,"right","commentRight");this.builder("/*"+n+r.text+i+"*/",r)},t.decl=function(r,n){var i=this.raw(r,"between","colon"),o=r.prop+i+this.rawValue(r,"value");r.important&&(o+=r.raws.important||" !important"),n&&(o+=";"),this.builder(o,r)},t.document=function(r){this.body(r)},t.raw=function(r,n,i){var o;if(i||(i=n),n&&(o=r.raws[n],typeof o<"u"))return o;var s=r.parent;if(i==="before"&&(!s||s.type==="root"&&s.first===r||s&&s.type==="document"))return"";if(!s)return gs[i];var c=r.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[i]<"u")return c.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(r,i);var u="raw"+Kh(i);return this[u]?o=this[u](c,r):c.walk(function(l){if(o=l.raws[n],typeof o<"u")return!1}),typeof o>"u"&&(o=gs[i]),c.rawCache[i]=o,o},t.rawBeforeClose=function(r){var n;return r.walk(function(i){if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return n=i.raws.after,n.includes(`
|
|
38
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n},t.rawBeforeComment=function(r,n){var i;return r.walkComments(function(o){if(typeof o.raws.before<"u")return i=o.raws.before,i.includes(`
|
|
39
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},t.rawBeforeDecl=function(r,n){var i;return r.walkDecls(function(o){if(typeof o.raws.before<"u")return i=o.raws.before,i.includes(`
|
|
40
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},t.rawBeforeOpen=function(r){var n;return r.walk(function(i){if(i.type!=="decl"&&(n=i.raws.between,typeof n<"u"))return!1}),n},t.rawBeforeRule=function(r){var n;return r.walk(function(i){if(i.nodes&&(i.parent!==r||r.first!==i)&&typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
|
|
41
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n},t.rawColon=function(r){var n;return r.walkDecls(function(i){if(typeof i.raws.between<"u")return n=i.raws.between.replace(/[^\s:]/g,""),!1}),n},t.rawEmptyBody=function(r){var n;return r.walk(function(i){if(i.nodes&&i.nodes.length===0&&(n=i.raws.after,typeof n<"u"))return!1}),n},t.rawIndent=function(r){if(r.raws.indent)return r.raws.indent;var n;return r.walk(function(i){var o=i.parent;if(o&&o!==r&&o.parent&&o.parent===r&&typeof i.raws.before<"u"){var s=i.raws.before.split(`
|
|
42
|
-
`);return n=s[s.length-1],n=n.replace(/\S/g,""),!1}}),n},t.rawSemicolon=function(r){var n;return r.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(n=i.raws.semicolon,typeof n<"u"))return!1}),n},t.rawValue=function(r,n){var i=r[n],o=r.raws[n];return o&&o.value===i?o.raw:i},t.root=function(r){this.body(r),r.raws.after&&this.builder(r.raws.after)},t.rule=function(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")},t.stringify=function(r,n){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,n)},e})(),ou=pa;pa.default=pa;var Xh=ou;function _a(e,t){var a=new Xh(t);a.stringify(e)}var fn=_a;_a.default=_a;var li=ht.isClean,Qh=ht.my,ep=ao,tp=ou,rp=fn;function ma(e,t){var a=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r!=="proxyCache"){var n=e[r],i=typeof n>"u"?"undefined":$(n);r==="parent"&&i==="object"?t&&(a[r]=t):r==="source"?a[r]=n:Array.isArray(n)?a[r]=n.map(function(o){return ma(o,a)}):(i==="object"&&n!==null&&(n=ma(n)),a[r]=n)}return a}var ga=(function(){function e(a){a===void 0&&(a={}),this.raws={},this[li]=!1,this[Qh]=!0;for(var r in a)if(r==="nodes"){this.nodes=[];for(var n=I(a[r]),i;!(i=n()).done;){var o=i.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[r]=a[r]}var t=e.prototype;return t.addToError=function(r){if(r.postcssNode=this,r.stack&&this.source&&/\n\s{4}at /.test(r.stack)){var n=this.source;r.stack=r.stack.replace(/\n\s{4}at /,"$&"+n.input.from+":"+n.start.line+":"+n.start.column+"$&")}return r},t.after=function(r){return this.parent.insertAfter(this,r),this},t.assign=function(r){r===void 0&&(r={});for(var n in r)this[n]=r[n];return this},t.before=function(r){return this.parent.insertBefore(this,r),this},t.cleanRaws=function(r){delete this.raws.before,delete this.raws.after,r||delete this.raws.between},t.clone=function(r){r===void 0&&(r={});var n=ma(this);for(var i in r)n[i]=r[i];return n},t.cloneAfter=function(r){r===void 0&&(r={});var n=this.clone(r);return this.parent.insertAfter(this,n),n},t.cloneBefore=function(r){r===void 0&&(r={});var n=this.clone(r);return this.parent.insertBefore(this,n),n},t.error=function(r,n){if(n===void 0&&(n={}),this.source){var i=this.rangeBy(n),o=i.end,s=i.start;return this.source.input.error(r,{column:s.column,line:s.line},{column:o.column,line:o.line},n)}return new ep(r)},t.getProxyProcessor=function(){return{get:function(n,i){return i==="proxyOf"?n:i==="root"?function(){return n.root().toProxy()}:n[i]},set:function(n,i,o){return n[i]===o||(n[i]=o,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&n.markDirty()),!0}}},t.markDirty=function(){if(this[li]){this[li]=!1;for(var r=this;r=r.parent;)r[li]=!1}},t.next=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r+1]}},t.positionBy=function(r,n){var i=this.source.start;if(r.index)i=this.positionInside(r.index,n);else if(r.word){n=this.toString();var o=n.indexOf(r.word);o!==-1&&(i=this.positionInside(o,n))}return i},t.positionInside=function(r,n){for(var i=n||this.toString(),o=this.source.start.column,s=this.source.start.line,c=0;c<r;c++)i[c]===`
|
|
43
|
-
`?(o=1,s+=1):o+=1;return{column:o,line:s}},t.prev=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r-1]}},t.rangeBy=function(r){var n={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(r.word){var o=this.toString(),s=o.indexOf(r.word);s!==-1&&(n=this.positionInside(s,o),i=this.positionInside(s+r.word.length,o))}else r.start?n={column:r.start.column,line:r.start.line}:r.index&&(n=this.positionInside(r.index)),r.end?i={column:r.end.column,line:r.end.line}:typeof r.endIndex=="number"?i=this.positionInside(r.endIndex):r.index&&(i=this.positionInside(r.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line}),{end:i,start:n}},t.raw=function(r,n){var i=new tp;return i.raw(this,r,n)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];if(this.parent){for(var o=this,s=!1,c=I(n),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},t.root=function(){for(var r=this;r.parent&&r.parent.type!=="document";)r=r.parent;return r},t.toJSON=function(r,n){var i={},o=n==null;n=n||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))i[c]=u.map(function(d){return(typeof d>"u"?"undefined":$(d))==="object"&&d.toJSON?d.toJSON(null,n):d});else if((typeof u>"u"?"undefined":$(u))==="object"&&u.toJSON)i[c]=u.toJSON(null,n);else if(c==="source"){var l=n.get(u.input);l==null&&(l=s,n.set(u.input,s),s++),i[c]={end:u.end,inputId:l,start:u.start}}else i[c]=u}return o&&(i.inputs=[].concat(n.keys()).map(function(d){return d.toJSON()})),i},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(r){r===void 0&&(r=rp),r.stringify&&(r=r.stringify);var n="";return r(this,function(i){n+=i}),n},t.warn=function(r,n,i){var o={node:this};for(var s in i)o[s]=i[s];return r.warn(n,o)},ve(e,[{key:"proxyOf",get:function(){return this}}]),e})(),hn=ga;ga.default=ga;var ip=hn,va=(function(e){ke(t,e);function t(a){var r;return a&&typeof a.value<"u"&&typeof a.value!="string"&&(a=H({},a,{value:String(a.value)})),r=e.call(this,a)||this,r.type="decl",r}return ve(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),t})(ip),pn=va;va.default=va;var np="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ap=function(e){e===void 0&&(e=21);for(var t="",a=e;a--;)t+=np[Math.random()*64|0];return t},op={nanoid:ap},vs=de.SourceMapConsumer,ys=de.SourceMapGenerator,sp=de.existsSync,cp=de.readFileSync,Mn=de.dirname,up=de.join;function lp(e){return ct?ct.from(e,"base64").toString():window.atob(e)}var ya=(function(){function e(a,r){if(r.map!==!1){this.loadAnnotation(a),this.inline=this.startWith(this.annotation,"data:");var n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Mn(this.mapFile)),i&&(this.text=i)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new vs(this.text)),this.consumerCache},t.decodeInline=function(r){var n=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(o.test(r)||s.test(r))return decodeURIComponent(r.substr(RegExp.lastMatch.length));if(n.test(r)||i.test(r))return lp(r.substr(RegExp.lastMatch.length));var c=r.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)},t.getAnnotationURL=function(r){return r.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(r){return(typeof r>"u"?"undefined":$(r))!=="object"?!1:typeof r.mappings=="string"||typeof r._mappings=="string"||Array.isArray(r.sections)},t.loadAnnotation=function(r){var n=r.match(/\/\*\s*# sourceMappingURL=/gm);if(n){var i=r.lastIndexOf(n.pop()),o=r.indexOf("*/",i);i>-1&&o>-1&&(this.annotation=this.getAnnotationURL(r.substring(i,o)))}},t.loadFile=function(r){if(this.root=Mn(r),sp(r))return this.mapFile=r,cp(r,"utf-8").toString().trim()},t.loadMap=function(r,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){var i=n(r);if(i){var o=this.loadFile(i);if(!o)throw new Error("Unable to load previous source map: "+i.toString());return o}}else{if(D(n,vs))return ys.fromSourceMap(n).toString();if(D(n,ys))return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return r&&(s=up(Mn(r),s)),this.loadFile(s)}}},t.startWith=function(r,n){return r?r.substr(0,n.length)===n:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e})(),su=ya;ya.default=ya;var dp=de.SourceMapConsumer,fp=de.SourceMapGenerator,bs=de.fileURLToPath,di=de.pathToFileURL,ba=de.isAbsolute,Ca=de.resolve,hp=op.nanoid,Dn=de,Cs=ao,pp=su,Bn=Symbol("fromOffsetCache"),_p=!!(dp&&fp),ks=!!(Ca&&ba),Vi=(function(){function e(a,r){if(r===void 0&&(r={}),a===null||typeof a>"u"||(typeof a>"u"?"undefined":$(a))==="object"&&!a.toString)throw new Error("PostCSS received "+a+" instead of CSS string");if(this.css=a.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!ks||/^\w+:\/\//.test(r.from)||ba(r.from)?this.file=r.from:this.file=Ca(r.from)),ks&&_p){var n=new pp(this.css,r);if(n.text){this.map=n;var i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+hp(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(r,n,i,o){o===void 0&&(o={});var s,c,u;if(n&&(typeof n>"u"?"undefined":$(n))==="object"){var l=n,d=i;if(typeof l.offset=="number"){var f=this.fromOffset(l.offset);n=f.line,i=f.col}else n=l.line,i=l.column;if(typeof d.offset=="number"){var p=this.fromOffset(d.offset);c=p.line,u=p.col}else c=d.line,u=d.column}else if(!i){var _=this.fromOffset(n);n=_.line,i=_.col}var v=this.origin(n,i,c,u);return v?s=new Cs(r,v.endLine===void 0?v.line:{column:v.column,line:v.line},v.endLine===void 0?v.column:{column:v.endColumn,line:v.endLine},v.source,v.file,o.plugin):s=new Cs(r,c===void 0?n:{column:i,line:n},c===void 0?i:{column:u,line:c},this.css,this.file,o.plugin),s.input={column:i,endColumn:u,endLine:c,line:n,source:this.css},this.file&&(di&&(s.input.url=di(this.file).toString()),s.input.file=this.file),s},t.fromOffset=function(r){var n,i;if(this[Bn])i=this[Bn];else{var o=this.css.split(`
|
|
44
|
-
`);i=new Array(o.length);for(var s=0,c=0,u=o.length;c<u;c++)i[c]=s,s+=o[c].length+1;this[Bn]=i}n=i[i.length-1];var l=0;if(r>=n)l=i.length-1;else for(var d=i.length-2,f;l<d;)if(f=l+(d-l>>1),r<i[f])d=f-1;else if(r>=i[f+1])l=f+1;else{l=f;break}return{col:r-i[l]+1,line:l+1}},t.mapResolve=function(r){return/^\w+:\/\//.test(r)?r:Ca(this.map.consumer().sourceRoot||this.map.root||".",r)},t.origin=function(r,n,i,o){if(!this.map)return!1;var s=this.map.consumer(),c=s.originalPositionFor({column:n,line:r});if(!c.source)return!1;var u;typeof i=="number"&&(u=s.originalPositionFor({column:o,line:i}));var l;ba(c.source)?l=di(c.source):l=new URL(c.source,this.map.consumer().sourceRoot||di(this.map.mapFile));var d={column:c.column,endColumn:u&&u.column,endLine:u&&u.line,line:c.line,url:l.toString()};if(l.protocol==="file:")if(bs)d.file=bs(l);else throw new Error("file: protocol is not available in this PostCSS build");var f=s.sourceContentFor(c.source);return f&&(d.source=f),d},t.toJSON=function(){for(var r={},n=0,i=["hasBOM","css","file","id"];n<i.length;n++){var o=i[n];this[o]!=null&&(r[o]=this[o])}return this.map&&(r.map=H({},this.map),r.map.consumerCache&&(r.map.consumerCache=void 0)),r},ve(e,[{key:"from",get:function(){return this.file||this.id}}]),e})(),_n=Vi;Vi.default=Vi;Dn&&Dn.registerInput&&Dn.registerInput(Vi);var cu=de.SourceMapConsumer,Ri=de.SourceMapGenerator,Pi=de.dirname,uu=de.relative,lu=de.resolve,du=de.sep,ws=de.pathToFileURL,mp=_n,gp=!!(cu&&Ri),vp=!!(Pi&&lu&&uu&&du),yp=(function(){function e(a,r,n,i){this.stringify=a,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var r;this.isInline()?r="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?r=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?r=this.mapOpts.annotation(this.opts.to,this.root):r=this.outputFile()+".map";var n=`
|
|
45
|
-
`;this.css.includes(`\r
|
|
46
|
-
`)&&(n=`\r
|
|
47
|
-
`),this.css+=n+"/*# sourceMappingURL="+r+" */"},t.applyPrevMaps=function(){for(var r=I(this.previous()),n;!(n=r()).done;){var i=n.value,o=this.toUrl(this.path(i.file)),s=i.root||Pi(i.file),c=void 0;this.mapOpts.sourcesContent===!1?(c=new cu(i.text),c.sourcesContent&&(c.sourcesContent=null)):c=i.consumer(),this.map.applySourceMap(c,o,this.toUrl(this.path(s)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var r,n=this.root.nodes.length-1;n>=0;n--)r=this.root.nodes[n],r.type==="comment"&&r.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),vp&&gp&&this.isMap())return this.generateMap();var r="";return this.stringify(this.root,function(n){r+=n}),[r]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var r=this.previous()[0].consumer();r.file=this.outputFile(),this.map=Ri.fromSourceMap(r,{ignoreInvalidMapping:!0})}else this.map=new Ri({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var r=this;this.css="",this.map=new Ri({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=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(r.css+=l,d&&f!=="end"&&(s.generated.line=n,s.generated.column=i-1,d.source&&d.source.start?(s.source=r.sourcePath(d),s.original.line=d.source.start.line,s.original.column=d.source.start.column-1,r.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,r.map.addMapping(s))),c=l.match(/\n/g),c?(n+=c.length,u=l.lastIndexOf(`
|
|
48
|
-
`),i=l.length-u):i+=l.length,d&&f!=="start"){var p=d.parent||{raws:{}},_=d.type==="decl"||d.type==="atrule"&&!d.nodes;(!_||d!==p.last||p.raws.semicolon)&&(d.source&&d.source.end?(s.source=r.sourcePath(d),s.original.line=d.source.end.line,s.original.column=d.source.end.column-1,s.generated.line=n,s.generated.column=i-2,r.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,r.map.addMapping(s)))}})},t.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(r){return r.annotation}):!0},t.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var r=this.mapOpts.annotation;return typeof r<"u"&&r!==!0?!1:this.previous().length?this.previous().some(function(n){return n.inline}):!0},t.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(r){return r.withContent()}):!0},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;var n=this.memoizedPaths.get(r);if(n)return n;var i=this.opts.to?Pi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Pi(lu(i,this.mapOpts.annotation)));var o=uu(i,r);return this.memoizedPaths.set(r,o),o},t.previous=function(){var r=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(i){if(i.source&&i.source.input.map){var o=i.source.input.map;r.previousMaps.includes(o)||r.previousMaps.push(o)}});else{var n=new mp(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps},t.setSourcesContent=function(){var r=this,n={};if(this.root)this.root.walk(function(o){if(o.source){var s=o.source.input.from;if(s&&!n[s]){n[s]=!0;var c=r.usesFileUrls?r.toFileUrl(s):r.toUrl(r.path(s));r.map.setSourceContent(c,o.source.input.css)}}});else if(this.css){var i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}},t.sourcePath=function(r){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(r.source.input.from):this.toUrl(this.path(r.source.input.from))},t.toBase64=function(r){return ct?ct.from(r).toString("base64"):window.btoa(unescape(encodeURIComponent(r)))},t.toFileUrl=function(r){var n=this.memoizedFileURLs.get(r);if(n)return n;if(ws){var i=ws(r).toString();return this.memoizedFileURLs.set(r,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(r){var n=this.memoizedURLs.get(r);if(n)return n;du==="\\"&&(r=r.replace(/\\/g,"/"));var i=encodeURI(r).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(r,i),i},e})(),fu=yp,bp=hn,ka=(function(e){ke(t,e);function t(a){var r;return r=e.call(this,a)||this,r.type="comment",r}return t})(bp),mn=ka;ka.default=ka;var hu=ht.isClean,pu=ht.my,_u=pn,mu=mn,Cp=hn,gu,oo,so,vu;function yu(e){return e.map(function(t){return t.nodes&&(t.nodes=yu(t.nodes)),delete t.source,t})}function bu(e){if(e[hu]=!1,e.proxyOf.nodes)for(var t=I(e.proxyOf.nodes),a;!(a=t()).done;){var r=a.value;bu(r)}}var Xe=(function(e){ke(t,e);function t(){return e.apply(this,arguments)||this}var a=t.prototype;return a.append=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];for(var s=I(i),c;!(c=s()).done;)for(var u=c.value,l=this.normalize(u,this.last),d=I(l),f;!(f=d()).done;){var p=f.value;this.proxyOf.nodes.push(p)}return this.markDirty(),this},a.cleanRaws=function(n){if(e.prototype.cleanRaws.call(this,n),this.nodes)for(var i=I(this.nodes),o;!(o=i()).done;){var s=o.value;s.cleanRaws(n)}},a.each=function(n){if(this.proxyOf.nodes){for(var i=this.getIterator(),o,s;this.indexes[i]<this.proxyOf.nodes.length&&(o=this.indexes[i],s=n(this.proxyOf.nodes[o],o),s!==!1);)this.indexes[i]+=1;return delete this.indexes[i],s}},a.every=function(n){return this.nodes.every(n)},a.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var n=this.lastEach;return this.indexes[n]=0,n},a.getProxyProcessor=function(){return{get:function(i,o){return o==="proxyOf"?i:i[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=i)[o].apply(l,[].concat(c.map(function(d){return typeof d=="function"?function(f,p){return d(f.toProxy(),p)}:d})))}:o==="every"||o==="some"?function(s){return i[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 i.root().toProxy()}:o==="nodes"?i.nodes.map(function(s){return s.toProxy()}):o==="first"||o==="last"?i[o].toProxy():i[o]:i[o]},set:function(i,o,s){return i[o]===s||(i[o]=s,(o==="name"||o==="params"||o==="selector")&&i.markDirty()),!0}}},a.index=function(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))},a.insertAfter=function(n,i){var o=this.index(n),s=this.normalize(i,this.proxyOf.nodes[o]).reverse();o=this.index(n);for(var c=I(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(n,i){var o=this.index(n),s=o===0?"prepend":!1,c=this.normalize(i,this.proxyOf.nodes[o],s).reverse();o=this.index(n);for(var u=I(c),l;!(l=u()).done;){var d=l.value;this.proxyOf.nodes.splice(o,0,d)}var f;for(var p in this.indexes)f=this.indexes[p],o<=f&&(this.indexes[p]=f+c.length);return this.markDirty(),this},a.normalize=function(n,i){var o=this;if(typeof n=="string")n=yu(gu(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(var s=I(n),c;!(c=s()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(var l=I(n),d;!(d=l()).done;){var f=d.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new _u(n)]}else if(n.selector)n=[new oo(n)];else if(n.name)n=[new so(n)];else if(n.text)n=[new mu(n)];else throw new Error("Unknown node type in node creation");var p=n.map(function(_){return _[pu]||t.rebuild(_),_=_.proxyOf,_.parent&&_.parent.removeChild(_),_[hu]&&bu(_),typeof _.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(_.raws.before=i.raws.before.replace(/\S/g,"")),_.parent=o.proxyOf,_});return p},a.prepend=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];i=i.reverse();for(var s=I(i),c;!(c=s()).done;){for(var u=c.value,l=this.normalize(u,this.first,"prepend").reverse(),d=I(l),f;!(f=d()).done;){var p=f.value;this.proxyOf.nodes.unshift(p)}for(var _ in this.indexes)this.indexes[_]=this.indexes[_]+l.length}return this.markDirty(),this},a.push=function(n){return n.parent=this,this.proxyOf.nodes.push(n),this},a.removeAll=function(){for(var n=I(this.proxyOf.nodes),i;!(i=n()).done;){var o=i.value;o.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},a.removeChild=function(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);var i;for(var o in this.indexes)i=this.indexes[o],i>=n&&(this.indexes[o]=i-1);return this.markDirty(),this},a.replaceValues=function(n,i,o){return o||(o=i,i={}),this.walkDecls(function(s){i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(n,o))}),this.markDirty(),this},a.some=function(n){return this.nodes.some(n)},a.walk=function(n){return this.each(function(i,o){var s;try{s=n(i,o)}catch(c){throw i.addToError(c)}return s!==!1&&i.walk&&(s=i.walk(n)),s})},a.walkAtRules=function(n,i){return i?D(n,RegExp)?this.walk(function(o,s){if(o.type==="atrule"&&n.test(o.name))return i(o,s)}):this.walk(function(o,s){if(o.type==="atrule"&&o.name===n)return i(o,s)}):(i=n,this.walk(function(o,s){if(o.type==="atrule")return i(o,s)}))},a.walkComments=function(n){return this.walk(function(i,o){if(i.type==="comment")return n(i,o)})},a.walkDecls=function(n,i){return i?D(n,RegExp)?this.walk(function(o,s){if(o.type==="decl"&&n.test(o.prop))return i(o,s)}):this.walk(function(o,s){if(o.type==="decl"&&o.prop===n)return i(o,s)}):(i=n,this.walk(function(o,s){if(o.type==="decl")return i(o,s)}))},a.walkRules=function(n,i){return i?D(n,RegExp)?this.walk(function(o,s){if(o.type==="rule"&&n.test(o.selector))return i(o,s)}):this.walk(function(o,s){if(o.type==="rule"&&o.selector===n)return i(o,s)}):(i=n,this.walk(function(o,s){if(o.type==="rule")return i(o,s)}))},ve(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t})(Cp);Xe.registerParse=function(e){gu=e};Xe.registerRule=function(e){oo=e};Xe.registerAtRule=function(e){so=e};Xe.registerRoot=function(e){vu=e};var Dt=Xe;Xe.default=Xe;Xe.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,so.prototype):e.type==="rule"?Object.setPrototypeOf(e,oo.prototype):e.type==="decl"?Object.setPrototypeOf(e,_u.prototype):e.type==="comment"?Object.setPrototypeOf(e,mu.prototype):e.type==="root"&&Object.setPrototypeOf(e,vu.prototype),e[pu]=!0,e.nodes&&e.nodes.forEach(function(t){Xe.rebuild(t)})};var kp=Dt,Cu,ku,Lr=(function(e){ke(t,e);function t(r){var n;return n=e.call(this,H({type:"document"},r))||this,n.nodes||(n.nodes=[]),n}var a=t.prototype;return a.toResult=function(n){n===void 0&&(n={});var i=new Cu(new ku,this,n);return i.stringify()},t})(kp);Lr.registerLazyResult=function(e){Cu=e};Lr.registerProcessor=function(e){ku=e};var co=Lr;Lr.default=Lr;var wa=(function(){function e(a,r){if(r===void 0&&(r={}),this.type="warning",this.text=a,r.node&&r.node.source){var n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var i in r)this[i]=r[i]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e})(),wu=wa;wa.default=wa;var wp=wu,Sa=(function(){function e(a,r,n){this.processor=a,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(r,n){n===void 0&&(n={}),n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);var i=new wp(r,n);return this.messages.push(i),i},t.warnings=function(){return this.messages.filter(function(r){return r.type==="warning"})},ve(e,[{key:"content",get:function(){return this.css}}]),e})(),uo=Sa;Sa.default=Sa;var Ln=39,Ss=34,fi=92,As=47,hi=10,vr=32,pi=12,_i=9,mi=13,Sp=91,Ap=93,Tp=40,Rp=41,Pp=123,Ip=125,Ep=59,Op=42,xp=58,Mp=64,gi=/[\t\n\f\r "#'()/;[\\\]{}]/g,vi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Dp=/.[\r\n"'(/\\]/,Ts=/[\da-f]/i,Bp=function(t,a){a===void 0&&(a={});var r=t.css.valueOf(),n=a.ignoreErrors,i,o,s,c,u,l,d,f,p,_,v=r.length,m=0,g=[],y=[];function b(){return m}function k(R){throw t.error("Unclosed "+R,m)}function w(){return y.length===0&&m>=v}function S(R){if(y.length)return y.pop();if(!(m>=v)){var E=R?R.ignoreUnclosed:!1;switch(i=r.charCodeAt(m),i){case hi:case vr:case _i:case mi:case pi:{o=m;do o+=1,i=r.charCodeAt(o);while(i===vr||i===hi||i===_i||i===mi||i===pi);_=["space",r.slice(m,o)],m=o-1;break}case Sp:case Ap:case Pp:case Ip:case xp:case Ep:case Rp:{var M=String.fromCharCode(i);_=[M,M,m];break}case Tp:{if(f=g.length?g.pop()[1]:"",p=r.charCodeAt(m+1),f==="url"&&p!==Ln&&p!==Ss&&p!==vr&&p!==hi&&p!==_i&&p!==pi&&p!==mi){o=m;do{if(l=!1,o=r.indexOf(")",o+1),o===-1)if(n||E){o=m;break}else k("bracket");for(d=o;r.charCodeAt(d-1)===fi;)d-=1,l=!l}while(l);_=["brackets",r.slice(m,o+1),m,o],m=o}else o=r.indexOf(")",m+1),c=r.slice(m,o+1),o===-1||Dp.test(c)?_=["(","(",m]:(_=["brackets",c,m,o],m=o);break}case Ln:case Ss:{s=i===Ln?"'":'"',o=m;do{if(l=!1,o=r.indexOf(s,o+1),o===-1)if(n||E){o=m+1;break}else k("string");for(d=o;r.charCodeAt(d-1)===fi;)d-=1,l=!l}while(l);_=["string",r.slice(m,o+1),m,o],m=o;break}case Mp:{gi.lastIndex=m+1,gi.test(r),gi.lastIndex===0?o=r.length-1:o=gi.lastIndex-2,_=["at-word",r.slice(m,o+1),m,o],m=o;break}case fi:{for(o=m,u=!0;r.charCodeAt(o+1)===fi;)o+=1,u=!u;if(i=r.charCodeAt(o+1),u&&i!==As&&i!==vr&&i!==hi&&i!==_i&&i!==mi&&i!==pi&&(o+=1,Ts.test(r.charAt(o)))){for(;Ts.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===vr&&(o+=1)}_=["word",r.slice(m,o+1),m,o],m=o;break}default:{i===As&&r.charCodeAt(m+1)===Op?(o=r.indexOf("*/",m+2)+1,o===0&&(n||E?o=r.length:k("comment")),_=["comment",r.slice(m,o+1),m,o],m=o):(vi.lastIndex=m+1,vi.test(r),vi.lastIndex===0?o=r.length-1:o=vi.lastIndex-2,_=["word",r.slice(m,o+1),m,o],g.push(_),m=o);break}}return m++,_}}function T(R){y.push(R)}return{back:T,endOfFile:w,nextToken:S,position:b}},Su=Dt,zi=(function(e){ke(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type="atrule",n}var a=t.prototype;return a.append=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=e.prototype.append).call.apply(s,[].concat([this],i))},a.prepend=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=e.prototype.prepend).call.apply(s,[].concat([this],i))},t})(Su),lo=zi;zi.default=zi;Su.registerAtRule(zi);var Au=Dt,Tu,Ru,tr=(function(e){ke(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type="root",n.nodes||(n.nodes=[]),n}var a=t.prototype;return a.normalize=function(n,i,o){var s=e.prototype.normalize.call(this,n);if(i){if(o==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(var c=I(s),u;!(u=c()).done;){var l=u.value;l.raws.before=i.raws.before}}return s},a.removeChild=function(n,i){var o=this.index(n);return!i&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),e.prototype.removeChild.call(this,n)},a.toResult=function(n){n===void 0&&(n={});var i=new Tu(new Ru,this,n);return i.stringify()},t})(Au);tr.registerLazyResult=function(e){Tu=e};tr.registerProcessor=function(e){Ru=e};var Hr=tr;tr.default=tr;Au.registerRoot(tr);var Nr={comma:function(t){return Nr.split(t,[","],!0)},space:function(t){var a=[" ",`
|
|
49
|
-
`," "];return Nr.split(t,a)},split:function(t,a,r){for(var n=[],i="",o=!1,s=0,c=!1,u="",l=!1,d=I(t),f;!(f=d()).done;){var p=f.value;l?l=!1:p==="\\"?l=!0:c?p===u&&(c=!1):p==='"'||p==="'"?(c=!0,u=p):p==="("?s+=1:p===")"?s>0&&(s-=1):s===0&&a.includes(p)&&(o=!0),o?(i!==""&&n.push(i.trim()),i="",o=!1):i+=p}return(r||i!=="")&&n.push(i.trim()),n}},Pu=Nr;Nr.default=Nr;var Iu=Dt,Lp=Pu,qi=(function(e){ke(t,e);function t(a){var r;return r=e.call(this,a)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return ve(t,[{key:"selectors",get:function(){return Lp.comma(this.selector)},set:function(r){var n=this.selector?this.selector.match(/,\s*/):null,i=n?n[0]:","+this.raw("between","beforeOpen");this.selector=r.join(i)}}]),t})(Iu),fo=qi;qi.default=qi;Iu.registerRule(qi);var Np=pn,Fp=Bp,$p=mn,Up=lo,Vp=Hr,Rs=fo,Ps={empty:!0,space:!0};function zp(e){for(var t=e.length-1;t>=0;t--){var a=e[t],r=a[3]||a[2];if(r)return r}}var qp=(function(){function e(a){this.input=a,this.root=new Vp,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(r){var n=new Up;n.name=r[1].slice(1),n.name===""&&this.unnamedAtrule(n,r),this.init(n,r[2]);for(var i,o,s,c=!1,u=!1,l=[],d=[];!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),i=r[0],i==="("||i==="["?d.push(i==="("?")":"]"):i==="{"&&d.length>0?d.push("}"):i===d[d.length-1]&&d.pop(),d.length===0)if(i===";"){n.source.end=this.getPosition(r[2]),n.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){u=!0;break}else if(i==="}"){if(l.length>0){for(s=l.length-1,o=l[s];o&&o[0]==="space";)o=l[--s];o&&(n.source.end=this.getPosition(o[3]||o[2]),n.source.end.offset++)}this.end(r);break}else l.push(r);else l.push(r);if(this.tokenizer.endOfFile()){c=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(n.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(n,"params",l),c&&(r=l[l.length-1],n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),u&&(n.nodes=[],this.current=n)},t.checkMissedSemicolon=function(r){var n=this.colon(r);if(n!==!1){for(var i=0,o,s=n-1;s>=0&&(o=r[s],!(o[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},t.colon=function(r){for(var n=0,i,o,s,c=I(r.entries()),u;!(u=c()).done;){var l=u.value,d=l[0],f=l[1];if(i=f,o=i[0],o==="("&&(n+=1),o===")"&&(n-=1),n===0&&o===":")if(!s)this.doubleColon(i);else{if(s[0]==="word"&&s[1]==="progid")continue;return d}s=i}return!1},t.comment=function(r){var n=new $p;this.init(n,r[2]),n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++;var i=r[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{var o=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=o[2],n.raws.left=o[1],n.raws.right=o[3]}},t.createTokenizer=function(){this.tokenizer=Fp(this.input)},t.decl=function(r,n){var i=new Np;this.init(i,r[0][2]);var o=r[r.length-1];for(o[0]===";"&&(this.semicolon=!0,r.pop()),i.source.end=this.getPosition(o[3]||o[2]||zp(r)),i.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),i.raws.before+=r.shift()[1];for(i.source.start=this.getPosition(r[0][2]),i.prop="";r.length;){var s=r[0][0];if(s===":"||s==="space"||s==="comment")break;i.prop+=r.shift()[1]}i.raws.between="";for(var c;r.length;)if(c=r.shift(),c[0]===":"){i.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),i.raws.between+=c[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var u=[],l;r.length&&(l=r[0][0],!(l!=="space"&&l!=="comment"));)u.push(r.shift());this.precheckMissedSemicolon(r);for(var d=r.length-1;d>=0;d--){if(c=r[d],c[1].toLowerCase()==="!important"){i.important=!0;var f=this.stringFrom(r,d);f=this.spacesFromEnd(r)+f,f!==" !important"&&(i.raws.important=f);break}else if(c[1].toLowerCase()==="important"){for(var p=r.slice(0),_="",v=d;v>0;v--){var m=p[v][0];if(_.trim().indexOf("!")===0&&m!=="space")break;_=p.pop()[1]+_}_.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=_,r=p)}if(c[0]!=="space"&&c[0]!=="comment")break}var g=r.some(function(y){return y[0]!=="space"&&y[0]!=="comment"});g&&(i.raws.between+=u.map(function(y){return y[1]}).join(""),u=[]),this.raw(i,"value",u.concat(r),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(r)},t.doubleColon=function(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})},t.emptyRule=function(r){var n=new Rs;this.init(n,r[2]),n.selector="",n.raws.between="",this.current=n},t.end=function(r){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(r){if(this.spaces+=r[1],this.current.nodes){var n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(r){var n=this.input.fromOffset(r);return{column:n.col,line:n.line,offset:r}},t.init=function(r,n){this.current.push(r),r.source={input:this.input,start:this.getPosition(n)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)},t.other=function(r){for(var n=!1,i=null,o=!1,s=null,c=[],u=r[1].startsWith("--"),l=[],d=r;d;){if(i=d[0],l.push(d),i==="("||i==="[")s||(s=d),c.push(i==="("?")":"]");else if(u&&o&&i==="{")s||(s=d),c.push("}");else if(c.length===0)if(i===";")if(o){this.decl(l,u);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),n=!0;break}else i===":"&&(o=!0);else i===c[c.length-1]&&(c.pop(),c.length===0&&(s=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),c.length>0&&this.unclosedBracket(s),n&&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)},t.parse=function(){for(var r;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(r,n,i,o){for(var s,c,u=i.length,l="",d=!0,f,p,_=0;_<u;_+=1)s=i[_],c=s[0],c==="space"&&_===u-1&&!o?d=!1:c==="comment"?(p=i[_-1]?i[_-1][0]:"empty",f=i[_+1]?i[_+1][0]:"empty",!Ps[p]&&!Ps[f]?l.slice(-1)===","?d=!1:l+=s[1]:d=!1):l+=s[1];if(!d){var v=i.reduce(function(m,g){return m+g[1]},"");r.raws[n]={raw:v,value:l}}r[n]=l},t.rule=function(r){r.pop();var n=new Rs;this.init(n,r[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(n,"selector",r),this.current=n},t.spacesAndCommentsFromEnd=function(r){for(var n,i="";r.length&&(n=r[r.length-1][0],!(n!=="space"&&n!=="comment"));)i=r.pop()[1]+i;return i},t.spacesAndCommentsFromStart=function(r){for(var n,i="";r.length&&(n=r[0][0],!(n!=="space"&&n!=="comment"));)i+=r.shift()[1];return i},t.spacesFromEnd=function(r){for(var n,i="";r.length&&(n=r[r.length-1][0],n==="space");)i=r.pop()[1]+i;return i},t.stringFrom=function(r,n){for(var i="",o=n;o<r.length;o++)i+=r[o][1];return r.splice(n,r.length-n),i},t.unclosedBlock=function(){var r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)},t.unclosedBracket=function(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})},t.unexpectedClose=function(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})},t.unknownWord=function(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})},t.unnamedAtrule=function(r,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})},e})(),Wp=qp,Gp=Dt,jp=Wp,Hp=_n;function Wi(e,t){var a=new Hp(e,t),r=new jp(a);try{r.parse()}catch(n){throw n}return r.root}var ho=Wi;Wi.default=Wi;Gp.registerParse(Wi);var Ve=ht.isClean,Jp=ht.my,Zp=fu,Yp=fn,Kp=Dt,Xp=co,Is=uo,Qp=ho,e_=Hr,t_={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},r_={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},i_={Once:!0,postcssPlugin:!0,prepare:!0},rr=0;function yr(e){return(typeof e>"u"?"undefined":$(e))==="object"&&typeof e.then=="function"}function Eu(e){var t=!1,a=t_[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[a,a+"-"+t,rr,a+"Exit",a+"Exit-"+t]:t?[a,a+"-"+t,a+"Exit",a+"Exit-"+t]:e.append?[a,rr,a+"Exit"]:[a,a+"Exit"]}function Es(e){var t;return e.type==="document"?t=["Document",rr,"DocumentExit"]:e.type==="root"?t=["Root",rr,"RootExit"]:t=Eu(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Aa(e){return e[Ve]=!1,e.nodes&&e.nodes.forEach(function(t){return Aa(t)}),e}var Ta={},ir=(function(){function e(a,r,n){var i=this;this.stringified=!1,this.processed=!1;var o;if((typeof r>"u"?"undefined":$(r))==="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=Aa(r);else if(D(r,e)||D(r,Is))o=Aa(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Qp;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(c){this.processed=!0,this.error=c}o&&!o[Jp]&&Kp.rebuild(o)}this.result=new Is(a,o,n),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(i.result)):c})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(r,n){var i=this.result.lastPlugin;try{if(n&&n.addToError(r),this.error=r,r.name==="CssSyntaxError"&&!r.plugin)r.plugin=i.postcssPlugin,r.setMessage();else if(i.postcssVersion)var o,s,c,u,l}catch(d){console&&console.error&&console.error(d)}return r},t.prepareVisitors=function(){var r=this;this.listeners={};for(var n=function(l,d,f){r.listeners[d]||(r.listeners[d]=[]),r.listeners[d].push([l,f])},i=I(this.plugins),o;!(o=i()).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==="*"?n(s,c,s[c][u]):n(s,c+"-"+u.toLowerCase(),s[c][u]);else typeof s[c]=="function"&&n(s,c,s[c])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var r=this;return Ga(function(){var n,i,o,s,c,u,l,d,f,p,_,v;return Er(this,function(m){switch(m.label){case 0:r.plugin=0,n=0,m.label=1;case 1:if(!(n<r.plugins.length))return[3,6];if(i=r.plugins[n],o=r.runOnRoot(i),!yr(o))return[3,5];m.label=2;case 2:return m.trys.push([2,4,,5]),[4,o];case 3:return m.sent(),[3,5];case 4:throw s=m.sent(),r.handleError(s);case 5:return n++,[3,1];case 6:if(r.prepareVisitors(),!r.hasListener)return[3,18];c=r.result.root,m.label=7;case 7:if(c[Ve])return[3,14];c[Ve]=!0,u=[Es(c)],m.label=8;case 8:if(!(u.length>0))return[3,13];if(l=r.visitTick(u),!yr(l))return[3,12];m.label=9;case 9:return m.trys.push([9,11,,12]),[4,l];case 10:return m.sent(),[3,12];case 11:throw d=m.sent(),f=u[u.length-1].node,r.handleError(d,f);case 12:return[3,8];case 13:return[3,7];case 14:if(!r.listeners.OnceExit)return[3,18];p=function(){var g,y,b,k,w;return Er(this,function(S){switch(S.label){case 0:g=v.value,y=g[0],b=g[1],r.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(T){return b(T,r.helpers)}),[4,Promise.all(k)]);case 2:return S.sent(),[3,5];case 3:return[4,b(c,r.helpers)];case 4:S.sent(),S.label=5;case 5:return[3,7];case 6:throw w=S.sent(),r.handleError(w);case 7:return[2]}})},_=I(r.listeners.OnceExit),m.label=15;case 15:return(v=_()).done?[3,18]:[5,mc(p())];case 16:m.sent(),m.label=17;case 17:return[3,15];case 18:return r.processed=!0,[2,r.stringify()]}})})()},t.runOnRoot=function(r){var n=this;this.result.lastPlugin=r;try{if((typeof r>"u"?"undefined":$(r))==="object"&&r.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(o){return r.Once(o,n.helpers)});return yr(i[0])?Promise.all(i):i}return r.Once(this.result.root,this.helpers)}else if(typeof r=="function")return r(this.result.root,this.result)}catch(o){throw this.handleError(o)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var r=this.result.opts,n=Yp;r.syntax&&(n=r.syntax.stringify),r.stringifier&&(n=r.stringifier),n.stringify&&(n=n.stringify);var i=new Zp(n,this.result.root,this.result.opts),o=i.generate();return this.result.css=o[0],this.result.map=o[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var r=I(this.plugins),n;!(n=r()).done;){var i=n.value,o=this.runOnRoot(i);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=I(s.nodes),u;!(u=c()).done;){var l=u.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},t.then=function(r,n){return this.async().then(r,n)},t.toString=function(){return this.css},t.visitSync=function(r,n){for(var i=I(r),o;!(o=i()).done;){var s=o.value,c=s[0],u=s[1];this.result.lastPlugin=c;var l=void 0;try{l=u(n,this.helpers)}catch(d){throw this.handleError(d,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(yr(l))throw this.getAsyncError()}},t.visitTick=function(r){var n=r[r.length-1],i=n.node,o=n.visitors;if(i.type!=="root"&&i.type!=="document"&&!i.parent){r.pop();return}if(o.length>0&&n.visitorIndex<o.length){var s=o[n.visitorIndex],c=s[0],u=s[1];n.visitorIndex+=1,n.visitorIndex===o.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=c;try{return u(i.toProxy(),this.helpers)}catch(_){throw this.handleError(_,i)}}if(n.iterator!==0){for(var l=n.iterator,d;d=i.nodes[i.indexes[l]];)if(i.indexes[l]+=1,!d[Ve]){d[Ve]=!0,r.push(Es(d));return}n.iterator=0,delete i.indexes[l]}for(var f=n.events;n.eventIndex<f.length;){var p=f[n.eventIndex];if(n.eventIndex+=1,p===rr){i.nodes&&i.nodes.length&&(i[Ve]=!0,n.iterator=i.getIterator());return}else if(this.listeners[p]){n.visitors=this.listeners[p];return}}r.pop()},t.walkSync=function(r){var n=this;r[Ve]=!0;for(var i=Eu(r),o=I(i),s;!(s=o()).done;){var c=s.value;if(c===rr)r.nodes&&r.each(function(l){l[Ve]||n.walkSync(l)});else{var u=this.listeners[c];if(u&&this.visitSync(u,r.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},ve(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e})();ir.registerPostcss=function(e){Ta=e};var Ou=ir;ir.default=ir;e_.registerLazyResult(ir);Xp.registerLazyResult(ir);var n_=fu,a_=fn,o_=ho,s_=uo,Ra=(function(){function e(a,r,n){r=r.toString(),this.stringified=!1,this._processor=a,this._css=r,this._opts=n,this._map=void 0;var i,o=a_;this.result=new s_(this._processor,i,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var c=new n_(o,i,this._opts,r);if(c.isMap()){var u=c.generate(),l=u[0],d=u[1];l&&(this.result.css=l),d&&(this.result.map=d)}else c.clearAnnotation(),this.result.css=c.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(r,n){return this.async().then(r,n)},t.toString=function(){return this._css},t.warnings=function(){return[]},ve(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var r,n=o_;try{r=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=r,r}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e})(),c_=Ra;Ra.default=Ra;var u_=c_,l_=Ou,d_=co,f_=Hr,Fr=(function(){function e(a){a===void 0&&(a=[]),this.version="8.4.38",this.plugins=this.normalize(a)}var t=e.prototype;return t.normalize=function(r){for(var n=[],i=I(r),o;!(o=i()).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))n=n.concat(s.plugins);else if((typeof s>"u"?"undefined":$(s))==="object"&&s.postcssPlugin)n.push(s);else if(typeof s=="function")n.push(s);else if(!((typeof s>"u"?"undefined":$(s))==="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin")}return n},t.process=function(r,n){return n===void 0&&(n={}),!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new u_(this,r,n):new l_(this,r,n)},t.use=function(r){return this.plugins=this.plugins.concat(this.normalize([r])),this},e})(),h_=Fr;Fr.default=Fr;f_.registerProcessor(Fr);d_.registerProcessor(Fr);var p_=pn,__=su,m_=mn,g_=lo,v_=_n,y_=Hr,b_=fo;function $r(e,t){if(Array.isArray(e))return e.map(function(d){return $r(d)});var a=e.inputs,r=Pr(e,["inputs"]);if(a){t=[];for(var n=I(a),i;!(i=n()).done;){var o=i.value,s=H({},o,{__proto__:v_.prototype});s.map&&(s.map=H({},s.map,{__proto__:__.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(function(d){return $r(d,t)})),r.source){var c=r.source,u=c.inputId,l=Pr(c,["inputId"]);r.source=l,u!=null&&(r.source.input=t[u])}if(r.type==="root")return new y_(r);if(r.type==="decl")return new p_(r);if(r.type==="rule")return new b_(r);if(r.type==="comment")return new m_(r);if(r.type==="atrule")return new g_(r);throw new Error("Unknown node type: "+e.type)}var C_=$r;$r.default=$r;var k_=ao,xu=pn,w_=Ou,S_=Dt,po=h_,A_=fn,T_=C_,Mu=co,R_=wu,Du=mn,Bu=lo,P_=uo,I_=_n,E_=ho,O_=Pu,Lu=fo,Nu=Hr,x_=hn;function Q(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new po(t)}Q.plugin=function(t,a){var r=!1;function n(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
|
|
50
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Oi.LANG&&Oi.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
51
|
-
https://www.w3ctech.com/topic/2226`));var u=a.apply(void 0,[].concat(s));return u.postcssPlugin=t,u.postcssVersion=new po().version,u}var i;return Object.defineProperty(n,"postcss",{get:function(){return i||(i=n()),i}}),n.process=function(o,s,c){return Q([n(c)]).process(o,s)},n};Q.stringify=A_;Q.parse=E_;Q.fromJSON=T_;Q.list=O_;Q.comment=function(e){return new Du(e)};Q.atRule=function(e){return new Bu(e)};Q.decl=function(e){return new xu(e)};Q.rule=function(e){return new Lu(e)};Q.root=function(e){return new Nu(e)};Q.document=function(e){return new Mu(e)};Q.CssSyntaxError=k_;Q.Declaration=xu;Q.Container=S_;Q.Processor=po;Q.Document=Mu;Q.Comment=Du;Q.Warning=R_;Q.AtRule=Bu;Q.Result=P_;Q.Input=I_;Q.Rule=Lu;Q.Root=Nu;Q.Node=x_;w_.registerPostcss(Q);var M_=Q;Q.default=Q;var oe=jh(M_);oe.stringify;oe.fromJSON;oe.plugin;oe.parse;oe.list;oe.document;oe.comment;oe.atRule;oe.rule;oe.decl;oe.root;oe.CssSyntaxError;oe.Declaration;oe.Container;oe.Processor;oe.Document;oe.Comment;oe.Warning;oe.AtRule;oe.Result;oe.Input;oe.Rule;oe.Root;oe.Node;var D_=(function(){function e(){for(var a=arguments.length,r=new Array(a),n=0;n<a;n++)r[n]=arguments[n];xe(this,"parentElement",null),xe(this,"parentNode",null),xe(this,"ownerDocument"),xe(this,"firstChild",null),xe(this,"lastChild",null),xe(this,"previousSibling",null),xe(this,"nextSibling",null),xe(this,"ELEMENT_NODE",1),xe(this,"TEXT_NODE",3),xe(this,"nodeType"),xe(this,"nodeName"),xe(this,"RRNodeType")}var t=e.prototype;return t.contains=function(r){if(D(r,e)){if(r.ownerDocument!==this.ownerDocument)return!1;if(r===this)return!0}else return!1;for(;r.parentNode;){if(r.parentNode===this)return!0;r=r.parentNode}return!1},t.appendChild=function(r){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(r,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(r){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},ve(e,[{key:"childNodes",get:function(){for(var r=[],n=this.firstChild;n;)r.push(n),n=n.nextSibling;return r}}]),e})(),Os={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},xs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},yi={},B_=function(){return!!globalThis.Zone};function _o(e){if(yi[e])return yi[e];var t=globalThis[e],a=t.prototype,r=e in Os?Os[e]:void 0,n=!!(r&&r.every(function(l){var d,f;return!!((f=(d=Object.getOwnPropertyDescriptor(a,l))==null?void 0:d.get)!=null&&f.toString().includes("[native code]"))})),i=e in xs?xs[e]:void 0,o=!!(i&&i.every(function(l){var d;return typeof a[l]=="function"&&((d=a[l])==null?void 0:d.toString().includes("[native code]"))}));if(n&&o&&!B_())return yi[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(s),u?yi[e]=u:a}catch{return a}}var Nn={};function pt(e,t,a){var r,n=e+"."+String(a);if(Nn[n])return Nn[n].call(t);var i=_o(e),o=(r=Object.getOwnPropertyDescriptor(i,a))==null?void 0:r.get;return o?(Nn[n]=o,o.call(t)):t[a]}var Fn={};function Fu(e,t,a){var r=e+"."+String(a);if(Fn[r])return Fn[r].bind(t);var n=_o(e),i=n[a];return typeof i!="function"?t[a]:(Fn[r]=i,i.bind(t))}function L_(e){return pt("Node",e,"childNodes")}function N_(e){return pt("Node",e,"parentNode")}function F_(e){return pt("Node",e,"parentElement")}function $_(e){return pt("Node",e,"textContent")}function U_(e,t){return Fu("Node",e,"contains")(t)}function V_(e){return Fu("Node",e,"getRootNode")()}function z_(e){return!e||!("host"in e)?null:pt("ShadowRoot",e,"host")}function q_(e){return e.styleSheets}function W_(e){return!e||!("shadowRoot"in e)?null:pt("Element",e,"shadowRoot")}function G_(e,t){return pt("Element",e,"querySelector")(t)}function j_(e,t){return pt("Element",e,"querySelectorAll")(t)}function $u(){return _o("MutationObserver").constructor}function Bt(e,t,a){try{if(!(t in e))return function(){};var r=e[t],n=a(r);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=n,function(){e[t]=r}}catch{return function(){}}}var q={childNodes:L_,parentNode:N_,parentElement:F_,textContent:$_,contains:U_,getRootNode:V_,host:z_,styleSheets:q_,shadowRoot:W_,querySelector:G_,querySelectorAll:j_,mutationObserver:$u,patch:Bt};function Se(e,t,a){a===void 0&&(a=document);var r={capture:!0,passive:!0};return a.addEventListener(e,t,r),function(){return a.removeEventListener(e,t,r)}}var Wt=`Please stop import mirror directly. Instead of that,\r
|
|
52
|
-
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
53
|
-
or you can use record.mirror to access the mirror instance during recording.`,Ms={map:{},getId:function(){return console.error(Wt),-1},getNode:function(){return console.error(Wt),null},removeNodeFromMap:function(){console.error(Wt)},has:function(){return console.error(Wt),!1},reset:function(){console.error(Wt)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ms=new Proxy(Ms,{get:function(t,a,r){return a==="map"&&console.error(Wt),Reflect.get(t,a,r)}}));function Ur(e,t,a){a===void 0&&(a={});var r=null,n=0;return function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var c=Date.now();!n&&a.leading===!1&&(n=c);var u=t-(c-n),l=this;u<=0||u>t?(r&&(clearTimeout(r),r=null),n=c,e.apply(l,o)):!r&&a.trailing!==!1&&(r=setTimeout(function(){n=a.leading===!1?0:Date.now(),r=null,e.apply(l,o)},u))}}function gn(e,t,a,r,n){n===void 0&&(n=window);var i=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,r?a:{set:function(s){var c=this;setTimeout(function(){a.set.call(c,s)},0),i&&i.set&&i.set.call(this,s)}}),function(){return gn(e,t,i||{},!0)}}var Gi=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Gi=function(){return new Date().getTime()});function Uu(e){var t,a,r,n,i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:i.documentElement.scrollLeft||i?.body&&((t=q.parentElement(i.body))==null?void 0:t.scrollLeft)||((a=i?.body)==null?void 0:a.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:i?.documentElement.scrollTop||i?.body&&((r=q.parentElement(i.body))==null?void 0:r.scrollTop)||((n=i?.body)==null?void 0:n.scrollTop)||0}}function Vu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function zu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function qu(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:q.parentElement(e);return t}function Ae(e,t,a,r){if(!e)return!1;var n=qu(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||r&&n.closest("."+t)!==null)return!0}else if(Li(n,t,r))return!0}catch{}return!!(a&&(n.matches(a)||r&&n.closest(a)!==null))}function H_(e,t){return t.getId(e)!==-1}function $n(e,t,a){return e.tagName==="TITLE"&&a.headTitleMutations?!0:t.getId(e)===Or}function Wu(e,t){if(Cr(e))return!1;var a=t.getId(e);if(!t.has(a))return!0;var r=q.parentNode(e);return r&&r.nodeType===e.DOCUMENT_NODE?!1:r?Wu(r,t):!0}function Pa(e){return!!e.changedTouches}function J_(e){e===void 0&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Gu(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function ju(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ia(e){return e?D(e,D_)&&"shadowRoot"in e?!!e.shadowRoot:!!q.shadowRoot(e):!1}var Z_=(function(){function e(){P(this,"id",1),P(this,"styleIDMap",new WeakMap),P(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(r){var n;return(n=this.styleIDMap.get(r))!=null?n:-1},t.has=function(r){return this.styleIDMap.has(r)},t.add=function(r,n){if(this.has(r))return this.getId(r);var i;return n===void 0?i=this.id++:i=n,this.styleIDMap.set(r,i),this.idStyleMap.set(i,r),i},t.getStyle=function(r){return this.idStyleMap.get(r)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e})();function Hu(e){var t,a=null;return"getRootNode"in e&&((t=q.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&q.host(q.getRootNode(e))&&(a=q.host(q.getRootNode(e))),a}function Y_(e){for(var t=e,a;a=Hu(t);)t=a;return t}function K_(e){var t=e.ownerDocument;if(!t)return!1;var a=Y_(e);return q.contains(t,a)}function Ju(e){var t=e.ownerDocument;return t?q.contains(t,e)||K_(e):!1}var W=(function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e})(W||{}),B=(function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e})(B||{}),Pe=(function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e})(Pe||{}),Je=(function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e})(Je||{}),nr=(function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e})(nr||{}),Gt=(function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e})(Gt||{}),Zu=(function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e})(Zu||{});function Ds(e){return"__ln"in e}var X_=(function(){function e(){P(this,"length",0),P(this,"head",null),P(this,"tail",null)}var t=e.prototype;return t.get=function(r){if(r>=this.length)throw new Error("Position outside of list range");for(var n=this.head,i=0;i<r;i++)n=n?.next||null;return n},t.addNode=function(r){var n={value:r,previous:null,next:null};if(r.__ln=n,r.previousSibling&&Ds(r.previousSibling)){var i=r.previousSibling.__ln.next;n.next=i,n.previous=r.previousSibling.__ln,r.previousSibling.__ln.next=n,i&&(i.previous=n)}else if(r.nextSibling&&Ds(r.nextSibling)&&r.nextSibling.__ln.previous){var o=r.nextSibling.__ln.previous;n.previous=o,n.next=r.nextSibling.__ln,r.nextSibling.__ln.previous=n,o&&(o.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++},t.removeNode=function(r){var n=r.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),r.__ln&&delete r.__ln,this.length--)},e})(),Bs=function(e,t){return e+"@"+t},Q_=(function(){function e(){var a=this;P(this,"frozen",!1),P(this,"locked",!1),P(this,"texts",[]),P(this,"attributes",[]),P(this,"attributeMap",new WeakMap),P(this,"removes",[]),P(this,"mapRemoves",[]),P(this,"movedMap",{}),P(this,"addedSet",new Set),P(this,"movedSet",new Set),P(this,"droppedSet",new Set),P(this,"removesSubTreeCache",new Set),P(this,"mutationCb"),P(this,"blockClass"),P(this,"blockSelector"),P(this,"maskTextClass"),P(this,"maskTextSelector"),P(this,"inlineStylesheet"),P(this,"maskInputOptions"),P(this,"maskTextFn"),P(this,"maskInputFn"),P(this,"keepIframeSrcFn"),P(this,"recordCanvas"),P(this,"inlineImages"),P(this,"slimDOMOptions"),P(this,"dataURLOptions"),P(this,"doc"),P(this,"mirror"),P(this,"iframeManager"),P(this,"stylesheetManager"),P(this,"shadowDomManager"),P(this,"canvasManager"),P(this,"processedNodeManager"),P(this,"unattachedDoc"),P(this,"processMutations",function(r){r.forEach(a.processMutation),a.emit()}),P(this,"emit",function(){if(!(a.frozen||a.locked)){for(var r=[],n=new Set,i=new X_,o=function(O){for(var F=O,J=Or;J===Or;)F=F&&F.nextSibling,J=F&&a.mirror.getId(F);return J},s=function(O){var F=q.parentNode(O);if(!(!F||!Ju(O))){var J=!1;if(O.nodeType===Node.TEXT_NODE){var ye=F.tagName;if(ye==="TEXTAREA")return;ye==="STYLE"&&a.addedSet.has(F)&&(J=!0)}var Z=Cr(F)?a.mirror.getId(Hu(O)):a.mirror.getId(F),Ie=o(O);if(Z===-1||Ie===-1)return i.addNode(O);var we=Ht(O,{doc:a.doc,mirror:a.mirror,blockClass:a.blockClass,blockSelector:a.blockSelector,maskTextClass:a.maskTextClass,maskTextSelector:a.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:a.inlineStylesheet,maskInputOptions:a.maskInputOptions,maskTextFn:a.maskTextFn,maskInputFn:a.maskInputFn,slimDOMOptions:a.slimDOMOptions,dataURLOptions:a.dataURLOptions,recordCanvas:a.recordCanvas,inlineImages:a.inlineImages,onSerialize:function(se){Gu(se,a.mirror)&&a.iframeManager.addIframe(se),ju(se,a.mirror)&&a.stylesheetManager.trackLinkElement(se),Ia(O)&&a.shadowDomManager.addShadowRoot(q.shadowRoot(O),a.doc)},onIframeLoad:function(se,ge){a.iframeManager.attachIframe(se,ge),a.shadowDomManager.observeAttachShadow(se)},onStylesheetLoad:function(se,ge){a.stylesheetManager.attachLinkElement(se,ge)},cssCaptured:J});we&&(r.push({parentId:Z,nextId:Ie,node:we}),n.add(we.id))}};a.mapRemoves.length;)a.mirror.removeNodeFromMap(a.mapRemoves.shift());for(var c=I(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=I(a.addedSet),f;!(f=d()).done;){var p=f.value;!Ns(a.droppedSet,p)&&!Ls(a.removesSubTreeCache,p,a.mirror)||Ns(a.movedSet,p)?s(p):a.droppedSet.add(p)}for(var _=null;i.length;){var v=null;if(_){var m=a.mirror.getId(q.parentNode(_.value)),g=o(_.value);m!==-1&&g!==-1&&(v=_)}if(!v)for(var y=i.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){v=b;break}else{var S=b.value,T=q.parentNode(S);if(T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var R=q.host(T),E=a.mirror.getId(R);if(E!==-1){v=b;break}}}}}if(!v){for(;i.head;)i.removeNode(i.head.value);break}_=v.previous,i.removeNode(v.value),s(v.value)}var M={texts:a.texts.map(function(O){var F=O.node,J=q.parentNode(F);return J&&J.tagName==="TEXTAREA"&&a.genTextAreaValueMutation(J),{id:a.mirror.getId(F),value:O.value}}).filter(function(O){return!n.has(O.id)}).filter(function(O){return a.mirror.has(O.id)}),attributes:a.attributes.map(function(O){var F=O.attributes;if(typeof F.style=="string"){var J=JSON.stringify(O.styleDiff),ye=JSON.stringify(O._unchangedStyles);J.length<F.style.length&&(J+ye).split("var(").length===F.style.split("var(").length&&(F.style=O.styleDiff)}return{id:a.mirror.getId(O.node),attributes:F}}).filter(function(O){return!n.has(O.id)}).filter(function(O){return a.mirror.has(O.id)}),removes:a.removes,adds:r};!M.texts.length&&!M.attributes.length&&!M.removes.length&&!M.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(M))}}),P(this,"genTextAreaValueMutation",function(r){var n=a.attributeMap.get(r);n||(n={node:r,attributes:{},styleDiff:{},_unchangedStyles:{}},a.attributes.push(n),a.attributeMap.set(r,n));var i=Array.from(q.childNodes(r),function(o){return q.textContent(o)||""}).join("");n.attributes.value=Mi({element:r,maskInputOptions:a.maskInputOptions,tagName:r.tagName,type:Di(r),value:i,maskInputFn:a.maskInputFn})}),P(this,"processMutation",function(r){if(!$n(r.target,a.mirror,a.slimDOMOptions))switch(r.type){case"characterData":{var n=q.textContent(r.target);!Ae(r.target,a.blockClass,a.blockSelector,!1)&&n!==r.oldValue&&a.texts.push({value:Ac(r.target,a.maskTextClass,a.maskTextSelector,!0)&&n?a.maskTextFn?a.maskTextFn(n,qu(r.target)):n.replace(/[\S]/g,"*"):n,node:r.target});break}case"attributes":{var i=r.target,o=r.attributeName,s=r.target.getAttribute(o);if(o==="value"){var c=Di(i);s=Mi({element:i,maskInputOptions:a.maskInputOptions,tagName:i.tagName,type:c,value:s,maskInputFn:a.maskInputFn})}if(Ae(r.target,a.blockClass,a.blockSelector,!1)||s===r.oldValue)return;var u=a.attributeMap.get(r.target);if(i.tagName==="IFRAME"&&o==="src"&&!a.keepIframeSrcFn(s))if(!i.contentDocument)o="rr_src";else return;if(u||(u={node:r.target,attributes:{},styleDiff:{},_unchangedStyles:{}},a.attributes.push(u),a.attributeMap.set(r.target,u)),o==="type"&&i.tagName==="INPUT"&&(r.oldValue||"").toLowerCase()==="password"&&i.setAttribute("data-rr-is-password","true"),!Sc(i.tagName,o))if(u.attributes[o]=wc(a.doc,Et(i.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");r.oldValue&&l.setAttribute("style",r.oldValue);for(var d=I(Array.from(i.style)),f;!(f=d()).done;){var p=f.value,_=i.style.getPropertyValue(p),v=i.style.getPropertyPriority(p);_!==l.style.getPropertyValue(p)||v!==l.style.getPropertyPriority(p)?v===""?u.styleDiff[p]=_:u.styleDiff[p]=[_,v]:u._unchangedStyles[p]=[_,v]}for(var m=I(Array.from(l.style)),g;!(g=m()).done;){var y=g.value;i.style.getPropertyValue(y)===""&&(u.styleDiff[y]=!1)}}else o==="open"&&i.tagName==="DIALOG"&&(i.matches("dialog:modal")?u.attributes.rr_open_mode="modal":u.attributes.rr_open_mode="non-modal");break}case"childList":{if(Ae(r.target,a.blockClass,a.blockSelector,!0))return;if(r.target.tagName==="TEXTAREA"){a.genTextAreaValueMutation(r.target);return}r.addedNodes.forEach(function(b){return a.genAdds(b,r.target)}),r.removedNodes.forEach(function(b){var k=a.mirror.getId(b),w=Cr(r.target)?a.mirror.getId(q.host(r.target)):a.mirror.getId(r.target);Ae(r.target,a.blockClass,a.blockSelector,!1)||$n(b,a.mirror,a.slimDOMOptions)||!H_(b,a.mirror)||(a.addedSet.has(b)?(Ea(a.addedSet,b),a.droppedSet.add(b)):a.addedSet.has(r.target)&&k===-1||Wu(r.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(r.target)&&kr(r.target)?!0:void 0}),em(b,a.removesSubTreeCache))),a.mapRemoves.push(b))});break}}}),P(this,"genAdds",function(r,n){if(!a.processedNodeManager.inOtherBuffer(r,a)&&!(a.addedSet.has(r)||a.movedSet.has(r))){if(a.mirror.hasNode(r)){if($n(r,a.mirror,a.slimDOMOptions))return;a.movedSet.add(r);var i=null;n&&a.mirror.hasNode(n)&&(i=a.mirror.getId(n)),i&&i!==-1&&(a.movedMap[Bs(a.mirror.getId(r),i)]=!0)}else a.addedSet.add(r),a.droppedSet.delete(r);Ae(r,a.blockClass,a.blockSelector,!1)||(q.childNodes(r).forEach(function(o){return a.genAdds(o)}),Ia(r)&&q.childNodes(q.shadowRoot(r)).forEach(function(o){a.processedNodeManager.add(o,a),a.genAdds(o,r)}))}})}var t=e.prototype;return t.init=function(r){var n=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(i){n[i]=r[i]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e})();function Ea(e,t){e.delete(t),q.childNodes(t).forEach(function(a){return Ea(e,a)})}function em(e,t){for(var a=[e];a.length;){var r=a.pop();t.has(r)||(t.add(r),q.childNodes(r).forEach(function(n){return a.push(n)}))}}function Ls(e,t,a){return e.size===0?!1:tm(e,t)}function tm(e,t,a){var r=q.parentNode(t);return r?e.has(r):!1}function Ns(e,t){return e.size===0?!1:Yu(e,t)}function Yu(e,t){var a=q.parentNode(t);return a?e.has(a)?!0:Yu(e,a):!1}var wr;function rm(e){wr=e}function im(){wr=void 0}var j=function(e){if(!wr)return e;var t=function(){for(var a=arguments.length,r=new Array(a),n=0;n<a;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(i){if(wr&&wr(i)===!0)return;throw i}};return t},It=[];function Jr(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Ku(e,t){var a=new Q_;It.push(a),a.init(e);var r=new($u())(j(a.processMutations.bind(a)));return r.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function nm(e){var t=e.mousemoveCb,a=e.sampling,r=e.doc,n=e.mirror;if(a.mousemove===!1)return function(){};var i=typeof a.mousemove=="number"?a.mousemove:50,o=typeof a.mousemoveCallback=="number"?a.mousemoveCallback:500,s=[],c,u=Ur(j(function(f){var p=Date.now()-c;t(s.map(function(_){return _.timeOffset-=p,_}),f),s=[],c=null}),o),l=j(Ur(j(function(f){var p=Jr(f),_=Pa(f)?f.changedTouches[0]:f,v=_.clientX,m=_.clientY;c||(c=Gi()),s.push({x:v,y:m,id:n.getId(p),timeOffset:Gi()-c}),u(typeof DragEvent<"u"&&D(f,DragEvent)?B.Drag:D(f,MouseEvent)?B.MouseMove:B.TouchMove)}),i,{trailing:!1})),d=[Se("mousemove",l,r),Se("touchmove",l,r),Se("drag",l,r)];return j(function(){d.forEach(function(f){return f()})})}function am(e){var t=e.mouseInteractionCb,a=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.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 p=Jr(f);if(!Ae(p,n,i,!0)){var _=null,v=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?v="TouchStart":Pe[d]===Pe.MouseUp&&(v="TouchEnd"):Je.Pen}else Pa(f)&&(_=Je.Touch);_!==null?(u=_,(v.startsWith("Touch")&&_===Je.Touch||v.startsWith("Mouse")&&_===Je.Mouse)&&(_=null)):Pe[d]===Pe.Click&&(_=u,u=null);var m=Pa(f)?f.changedTouches[0]:f;if(m){var g=r.getId(p),y=m.clientX,b=m.clientY;j(t)(H({type:Pe[v],id:g,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),p=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(Se(f,p,a))}),j(function(){c.forEach(function(d){return d()})})}function Xu(e){var t=e.scrollCb,a=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.sampling,s=j(Ur(j(function(c){var u=Jr(c);if(!(!u||Ae(u,n,i,!0))){var l=r.getId(u);if(u===a&&a.defaultView){var d=Uu(a.defaultView);t({id:l,x:d.left,y:d.top})}else t({id:l,x:u.scrollLeft,y:u.scrollTop})}}),o.scroll||100));return Se("scroll",s,a)}function om(e,t){var a=e.viewportResizeCb,r=t.win,n=-1,i=-1,o=j(Ur(j(function(){var s=Vu(),c=zu();(n!==s||i!==c)&&(a({width:Number(c),height:Number(s)}),n=s,i=c)}),200));return Se("resize",o,r)}var sm=["INPUT","TEXTAREA","SELECT"],Fs=new WeakMap;function cm(e){var t=e.inputCb,a=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.ignoreClass,s=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,d=e.userTriggeredOnInput;function f(k){var w=Jr(k),S=k.isTrusted,T=w&&w.tagName;if(w&&T==="OPTION"&&(w=q.parentElement(w)),!(!w||!T||sm.indexOf(T)<0||Ae(w,n,i,!0))&&!(w.classList.contains(o)||s&&w.matches(s))){var R=w.value,E=!1,M=Di(w)||"";M==="radio"||M==="checkbox"?E=w.checked:(c[T.toLowerCase()]||c[M])&&(R=Mi({element:w,maskInputOptions:c,tagName:T,type:M,value:R,maskInputFn:u})),p(w,d?{text:R,isChecked:E,userTriggered:S}:{text:R,isChecked:E});var O=w.name;M==="radio"&&O&&E&&a.querySelectorAll('input[type="radio"][name="'+O+'"]').forEach(function(F){if(F!==w){var J=F.value;p(F,d?{text:J,isChecked:!E,userTriggered:!1}:{text:J,isChecked:!E})}})}}function p(k,w){var S=Fs.get(k);if(!S||S.text!==w.text||S.isChecked!==w.isChecked){Fs.set(k,w);var T=r.getId(k);j(t)(H({},w,{id:T}))}}var _=l.input==="last"?["change"]:["input","change"],v=_.map(function(k){return Se(k,j(f),a)}),m=a.defaultView;if(!m)return function(){v.forEach(function(k){return k()})};var g=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),y=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];if(g&&g.set){var b;(b=v).push.apply(b,[].concat(y.map(function(k){return gn(k[0],k[1],{set:function(){j(f)({target:this,isTrusted:!1})}},!1,m)})))}return j(function(){v.forEach(function(k){return k()})})}function ji(e){var t=[];function a(r,n){if(bi("CSSGroupingRule")&&D(r.parentRule,CSSGroupingRule)||bi("CSSMediaRule")&&D(r.parentRule,CSSMediaRule)||bi("CSSSupportsRule")&&D(r.parentRule,CSSSupportsRule)||bi("CSSConditionRule")&&D(r.parentRule,CSSConditionRule)){var i=Array.from(r.parentRule.cssRules),o=i.indexOf(r);n.unshift(o)}else if(r.parentStyleSheet){var s=Array.from(r.parentStyleSheet.cssRules),c=s.indexOf(r);n.unshift(c)}return n}return a(e,t)}function nt(e,t,a){var r,n;return e?(e.ownerNode?r=t.getId(e.ownerNode):n=a.getId(e),{styleId:n,id:r}):{}}function um(e,t){var a=e.styleSheetRuleCb,r=e.mirror,n=e.stylesheetManager,i=t.win;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return function(){};var o=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:j(function(f,p,_){var v=_[0],m=_[1],g=nt(p,r,n.styleMirror),y=g.id,b=g.styleId;return(y&&y!==-1||b&&b!==-1)&&a({id:y,styleId:b,adds:[{rule:v,index:m}]}),f.apply(p,_)})}),i.CSSStyleSheet.prototype.addRule=function(f,p,_){_===void 0&&(_=this.cssRules.length);var v=f+" { "+p+" }";return i.CSSStyleSheet.prototype.insertRule.apply(this,[v,_])};var s=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:j(function(f,p,_){var v=_[0],m=nt(p,r,n.styleMirror),g=m.id,y=m.styleId;return(g&&g!==-1||y&&y!==-1)&&a({id:g,styleId:y,removes:[{index:v}]}),f.apply(p,_)})}),i.CSSStyleSheet.prototype.removeRule=function(f){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[f])};var c;i.CSSStyleSheet.prototype.replace&&(c=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:j(function(f,p,_){var v=_[0],m=nt(p,r,n.styleMirror),g=m.id,y=m.styleId;return(g&&g!==-1||y&&y!==-1)&&a({id:g,styleId:y,replace:v}),f.apply(p,_)})}));var u;i.CSSStyleSheet.prototype.replaceSync&&(u=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:j(function(f,p,_){var v=_[0],m=nt(p,r,n.styleMirror),g=m.id,y=m.styleId;return(g&&g!==-1||y&&y!==-1)&&a({id:g,styleId:y,replaceSync:v}),f.apply(p,_)})}));var l={};Ci("CSSGroupingRule")?l.CSSGroupingRule=i.CSSGroupingRule:(Ci("CSSMediaRule")&&(l.CSSMediaRule=i.CSSMediaRule),Ci("CSSConditionRule")&&(l.CSSConditionRule=i.CSSConditionRule),Ci("CSSSupportsRule")&&(l.CSSSupportsRule=i.CSSSupportsRule));var d={};return Object.entries(l).forEach(function(f){var p=f[0],_=f[1];d[p]={insertRule:_.prototype.insertRule,deleteRule:_.prototype.deleteRule},_.prototype.insertRule=new Proxy(d[p].insertRule,{apply:j(function(v,m,g){var y=g[0],b=g[1],k=nt(m.parentStyleSheet,r,n.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(m),[b||0])}]}),v.apply(m,g)})}),_.prototype.deleteRule=new Proxy(d[p].deleteRule,{apply:j(function(v,m,g){var y=g[0],b=nt(m.parentStyleSheet,r,n.styleMirror),k=b.id,w=b.styleId;return(k&&k!==-1||w&&w!==-1)&&a({id:k,styleId:w,removes:[{index:[].concat(ji(m),[y])}]}),v.apply(m,g)})})}),j(function(){i.CSSStyleSheet.prototype.insertRule=o,i.CSSStyleSheet.prototype.deleteRule=s,c&&(i.CSSStyleSheet.prototype.replace=c),u&&(i.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach(function(f){var p=f[0],_=f[1];_.prototype.insertRule=d[p].insertRule,_.prototype.deleteRule=d[p].deleteRule})})}function Qu(e,t){var a=e.mirror,r=e.stylesheetManager,n,i,o,s=null;t.nodeName==="#document"?s=a.getId(t):s=a.getId(q.host(t));var c=t.nodeName==="#document"?(n=t.defaultView)==null?void 0:n.Document:(o=(i=t.ownerDocument)==null?void 0:i.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(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var d;return(d=u.get)==null?void 0:d.call(this)},set:function(d){var f,p=(f=u.set)==null?void 0:f.call(this,d);if(s!==null&&s!==-1)try{r.adoptStyleSheets(d,s)}catch{}return p}}),j(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}))}function lm(e,t){var a=e.styleDeclarationCb,r=e.mirror,n=e.ignoreCSSAttributes,i=e.stylesheetManager,o=t.win,s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:j(function(u,l,d){var f,p=d[0],_=d[1],v=d[2];if(n.has(p))return s.apply(l,[p,_,v]);var m=nt((f=l.parentRule)==null?void 0:f.parentStyleSheet,r,i.styleMirror),g=m.id,y=m.styleId;return(g&&g!==-1||y&&y!==-1)&&a({id:g,styleId:y,set:{property:p,value:_,priority:v},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,p=d[0];if(n.has(p))return c.apply(l,[p]);var _=nt((f=l.parentRule)==null?void 0:f.parentStyleSheet,r,i.styleMirror),v=_.id,m=_.styleId;return(v&&v!==-1||m&&m!==-1)&&a({id:v,styleId:m,remove:{property:p},index:ji(l.parentRule)}),u.apply(l,d)})}),j(function(){o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=c})}function dm(e){var t=e.mediaInteractionCb,a=e.blockClass,r=e.blockSelector,n=e.mirror,i=e.sampling,o=e.doc,s=j(function(u){return Ur(j(function(l){var d=Jr(l);if(!(!d||Ae(d,a,r,!0))){var f=d.currentTime,p=d.volume,_=d.muted,v=d.playbackRate,m=d.loop;t({type:u,id:n.getId(d),currentTime:f,volume:p,muted:_,playbackRate:v,loop:m})}}),i.media||500)}),c=[Se("play",s(Gt.Play),o),Se("pause",s(Gt.Pause),o),Se("seeked",s(Gt.Seeked),o),Se("volumechange",s(Gt.VolumeChange),o),Se("ratechange",s(Gt.RateChange),o)];return j(function(){c.forEach(function(u){return u()})})}function fm(e){var t=e.fontCb,a=e.doc,r=a.defaultView;if(!r)return function(){};var n=[],i=new WeakMap,o=r.FontFace;r.FontFace=function(u,l,d){var f=new o(u,l,d);return i.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=i.get(u);l&&(t(l),i.delete(u))}),0),c.apply(this,[u])}});return n.push(function(){r.FontFace=o}),n.push(s),j(function(){n.forEach(function(c){return c()})})}function hm(e){var t=e.doc,a=e.mirror,r=e.blockClass,n=e.blockSelector,i=e.selectionCb,o=!0,s=j(function(){var c=t.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),p=f.startContainer,_=f.startOffset,v=f.endContainer,m=f.endOffset,g=Ae(p,r,n,!0)||Ae(v,r,n,!0);g||u.push({start:a.getId(p),startOffset:_,end:a.getId(v),endOffset:m})}i({ranges:u})}});return s(),Se("selectionchange",s)}function pm(e){var t=e.doc,a=e.customElementCb,r=t.defaultView;if(!r||!r.customElements)return function(){};var n=Bt(r.customElements,"define",function(i){return function(o,s,c){try{a({define:{name:o}})}catch{console.warn("Custom element callback failed for "+o)}return i.apply(this,[o,s,c])}});return n}function _m(e,t){var a=e.mutationCb,r=e.mousemoveCb,n=e.mouseInteractionCb,i=e.scrollCb,o=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,d=e.canvasMutationCb,f=e.fontCb,p=e.selectionCb,_=e.customElementCb;e.mutationCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.mutation){var y;(y=t).mutation.apply(y,[].concat(m))}a.apply(void 0,[].concat(m))},e.mousemoveCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.mousemove){var y;(y=t).mousemove.apply(y,[].concat(m))}r.apply(void 0,[].concat(m))},e.mouseInteractionCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.mouseInteraction){var y;(y=t).mouseInteraction.apply(y,[].concat(m))}n.apply(void 0,[].concat(m))},e.scrollCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.scroll){var y;(y=t).scroll.apply(y,[].concat(m))}i.apply(void 0,[].concat(m))},e.viewportResizeCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.viewportResize){var y;(y=t).viewportResize.apply(y,[].concat(m))}o.apply(void 0,[].concat(m))},e.inputCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.input){var y;(y=t).input.apply(y,[].concat(m))}s.apply(void 0,[].concat(m))},e.mediaInteractionCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.mediaInteaction){var y;(y=t).mediaInteaction.apply(y,[].concat(m))}c.apply(void 0,[].concat(m))},e.styleSheetRuleCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.styleSheetRule){var y;(y=t).styleSheetRule.apply(y,[].concat(m))}u.apply(void 0,[].concat(m))},e.styleDeclarationCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.styleDeclaration){var y;(y=t).styleDeclaration.apply(y,[].concat(m))}l.apply(void 0,[].concat(m))},e.canvasMutationCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.canvasMutation){var y;(y=t).canvasMutation.apply(y,[].concat(m))}d.apply(void 0,[].concat(m))},e.fontCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.font){var y;(y=t).font.apply(y,[].concat(m))}f.apply(void 0,[].concat(m))},e.selectionCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.selection){var y;(y=t).selection.apply(y,[].concat(m))}p.apply(void 0,[].concat(m))},e.customElementCb=function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];if(t.customElement){var y;(y=t).customElement.apply(y,[].concat(m))}_.apply(void 0,[].concat(m))}}function mm(e,t){t===void 0&&(t={});var a=e.doc.defaultView;if(!a)return function(){};_m(e,t);var r;e.recordDOM&&(r=Ku(e,e.doc));var n=nm(e),i=am(e),o=Xu(e),s=om(e,{win:a}),c=cm(e),u=dm(e),l=function(){},d=function(){},f=function(){},p=function(){};e.recordDOM&&(l=um(e,{win:a}),d=Qu(e,e.doc),f=lm(e,{win:a}),e.collectFonts&&(p=fm(e)));for(var _=hm(e),v=pm(e),m=[],g=I(e.plugins),y;!(y=g()).done;){var b=y.value;m.push(b.observer(b.callback,a,b.options))}return j(function(){It.forEach(function(k){return k.reset()}),r?.disconnect(),n(),i(),o(),s(),c(),u(),l(),d(),f(),p(),_(),v(),m.forEach(function(k){return k()})})}function bi(e){return typeof window[e]<"u"}function Ci(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var $s=(function(){function e(a){P(this,"iframeIdToRemoteIdMap",new WeakMap),P(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=a}var t=e.prototype;return t.getId=function(r,n,i,o){var s=i||this.getIdToRemoteIdMap(r),c=o||this.getRemoteIdToIdMap(r),u=s.get(n);return u||(u=this.generateIdFn(),s.set(n,u),c.set(u,n)),u},t.getIds=function(r,n){var i=this,o=this.getIdToRemoteIdMap(r),s=this.getRemoteIdToIdMap(r);return n.map(function(c){return i.getId(r,c,o,s)})},t.getRemoteId=function(r,n,i){var o=i||this.getRemoteIdToIdMap(r);if(typeof n!="number")return n;var s=o.get(n);return s||-1},t.getRemoteIds=function(r,n){var i=this,o=this.getRemoteIdToIdMap(r);return n.map(function(s){return i.getRemoteId(r,s,o)})},t.reset=function(r){if(!r){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(r),this.iframeRemoteIdToIdMap.delete(r)},t.getIdToRemoteIdMap=function(r){var n=this.iframeIdToRemoteIdMap.get(r);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(r,n)),n},t.getRemoteIdToIdMap=function(r){var n=this.iframeRemoteIdToIdMap.get(r);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(r,n)),n},e})(),gm=(function(){function e(a){P(this,"iframes",new WeakMap),P(this,"crossOriginIframeMap",new WeakMap),P(this,"crossOriginIframeMirror",new $s(kc)),P(this,"crossOriginIframeStyleMirror"),P(this,"crossOriginIframeRootIdMap",new WeakMap),P(this,"mirror"),P(this,"mutationCb"),P(this,"wrappedEmit"),P(this,"loadListener"),P(this,"stylesheetManager"),P(this,"recordCrossOriginIframes"),this.mutationCb=a.mutationCb,this.wrappedEmit=a.wrappedEmit,this.stylesheetManager=a.stylesheetManager,this.recordCrossOriginIframes=a.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new $s(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=a.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(r){this.iframes.set(r,!0),r.contentWindow&&this.crossOriginIframeMap.set(r.contentWindow,r)},t.addLoadListener=function(r){this.loadListener=r},t.attachIframe=function(r,n){var i,o;this.mutationCb({adds:[{parentId:this.mirror.getId(r),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=r.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(o=this.loadListener)==null||o.call(this,r),r.contentDocument&&r.contentDocument.adoptedStyleSheets&&r.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.contentDocument.adoptedStyleSheets,this.mirror.getId(r.contentDocument))},t.handleMessage=function(r){var n=r;if(!(n.data.type!=="rrweb"||n.origin!==n.data.origin)){var i=r.source;if(i){var o=this.crossOriginIframeMap.get(r.source);if(o){var s=this.transformCrossOriginEvent(o,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}}}},t.transformCrossOriginEvent=function(r,n){var i=this,o;switch(n.type){case W.FullSnapshot:{this.crossOriginIframeMirror.reset(r),this.crossOriginIframeStyleMirror.reset(r),this.replaceIdOnNode(n.data.node,r);var s=n.data.node.id;return this.crossOriginIframeRootIdMap.set(r,s),this.patchRootIdOnNode(n.data.node,s),{timestamp:n.timestamp,type:W.IncrementalSnapshot,data:{source:B.Mutation,adds:[{parentId:this.mirror.getId(r),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case W.Meta:case W.Load:case W.DomContentLoaded:return!1;case W.Plugin:return n;case W.Custom:return this.replaceIds(n.data.payload,r,["id","parentId","previousId","nextId"]),n;case W.IncrementalSnapshot:switch(n.data.source){case B.Mutation:return n.data.adds.forEach(function(c){i.replaceIds(c,r,["parentId","nextId","previousId"]),i.replaceIdOnNode(c.node,r);var u=i.crossOriginIframeRootIdMap.get(r);u&&i.patchRootIdOnNode(c.node,u)}),n.data.removes.forEach(function(c){i.replaceIds(c,r,["parentId","id"])}),n.data.attributes.forEach(function(c){i.replaceIds(c,r,["id"])}),n.data.texts.forEach(function(c){i.replaceIds(c,r,["id"])}),n;case B.Drag:case B.TouchMove:case B.MouseMove:return n.data.positions.forEach(function(c){i.replaceIds(c,r,["id"])}),n;case B.ViewportResize:return!1;case B.MediaInteraction:case B.MouseInteraction:case B.Scroll:case B.CanvasMutation:case B.Input:return this.replaceIds(n.data,r,["id"]),n;case B.StyleSheetRule:case B.StyleDeclaration:return this.replaceIds(n.data,r,["id"]),this.replaceStyleIds(n.data,r,["styleId"]),n;case B.Font:return n;case B.Selection:return n.data.ranges.forEach(function(c){i.replaceIds(c,r,["start","end"])}),n;case B.AdoptedStyleSheet:return this.replaceIds(n.data,r,["id"]),this.replaceStyleIds(n.data,r,["styleIds"]),(o=n.data.styles)==null||o.forEach(function(c){i.replaceStyleIds(c,r,["styleId"])}),n}}return!1},t.replace=function(r,n,i,o){for(var s=I(o),c;!(c=s()).done;){var u=c.value;!Array.isArray(n[u])&&typeof n[u]!="number"||(Array.isArray(n[u])?n[u]=r.getIds(i,n[u]):n[u]=r.getId(i,n[u]))}return n},t.replaceIds=function(r,n,i){return this.replace(this.crossOriginIframeMirror,r,n,i)},t.replaceStyleIds=function(r,n,i){return this.replace(this.crossOriginIframeStyleMirror,r,n,i)},t.replaceIdOnNode=function(r,n){var i=this;this.replaceIds(r,n,["id","rootId"]),"childNodes"in r&&r.childNodes.forEach(function(o){i.replaceIdOnNode(o,n)})},t.patchRootIdOnNode=function(r,n){var i=this;r.type!==Zu.Document&&!r.rootId&&(r.rootId=n),"childNodes"in r&&r.childNodes.forEach(function(o){i.patchRootIdOnNode(o,n)})},e})(),vm=(function(){function e(a){P(this,"shadowDoms",new WeakSet),P(this,"mutationCb"),P(this,"scrollCb"),P(this,"bypassOptions"),P(this,"mirror"),P(this,"restoreHandlers",[]),this.mutationCb=a.mutationCb,this.scrollCb=a.scrollCb,this.bypassOptions=a.bypassOptions,this.mirror=a.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(r,n){var i=this;if(kr(r)&&!this.shadowDoms.has(r)){this.shadowDoms.add(r);var o=Ku(H({},this.bypassOptions,{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),r);this.restoreHandlers.push(function(){return o.disconnect()}),this.restoreHandlers.push(Xu(H({},this.bypassOptions,{scrollCb:this.scrollCb,doc:r,mirror:this.mirror}))),setTimeout(function(){r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&i.bypassOptions.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,i.mirror.getId(q.host(r))),i.restoreHandlers.push(Qu({mirror:i.mirror,stylesheetManager:i.bypassOptions.stylesheetManager},r))},0)}},t.observeAttachShadow=function(r){!r.contentWindow||!r.contentDocument||this.patchAttachShadow(r.contentWindow.Element,r.contentDocument)},t.patchAttachShadow=function(r,n){var i=this;this.restoreHandlers.push(Bt(r.prototype,"attachShadow",function(o){return function(s){var c=o.call(this,s),u=q.shadowRoot(this);return u&&Ju(this)&&i.addShadowRoot(u,n),c}}))},t.reset=function(){this.restoreHandlers.forEach(function(r){try{r()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e})(),Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ym=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ki=0;ki<Jt.length;ki++)ym[Jt.charCodeAt(ki)]=ki;var bm=function(t){var a=new Uint8Array(t),r,n=a.length,i="";for(r=0;r<n;r+=3)i+=Jt[a[r]>>2],i+=Jt[(a[r]&3)<<4|a[r+1]>>4],i+=Jt[(a[r+1]&15)<<2|a[r+2]>>6],i+=Jt[a[r+2]&63];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i},Us=new Map;function Cm(e,t){var a=Us.get(e);return a||(a=new Map,Us.set(e,a)),a.has(t)||a.set(t,[]),a.get(t)}var el=function(e,t,a){if(!(!e||!(rl(e,t)||(typeof e>"u"?"undefined":$(e))==="object"))){var r=e.constructor.name,n=Cm(a,r),i=n.indexOf(e);return i===-1&&(i=n.length,n.push(e)),i}};function Ii(e,t,a){if(D(e,Array))return e.map(function(_){return Ii(_,t,a)});if(e===null)return e;if(D(e,Float32Array)||D(e,Float64Array)||D(e,Int32Array)||D(e,Uint32Array)||D(e,Uint8Array)||D(e,Uint16Array)||D(e,Int16Array)||D(e,Int8Array)||D(e,Uint8ClampedArray)){var r=e.constructor.name;return{rr_type:r,args:[Object.values(e)]}}else if(D(e,ArrayBuffer)){var n=e.constructor.name,i=bm(e);return{rr_type:n,base64:i}}else if(D(e,DataView)){var o=e.constructor.name;return{rr_type:o,args:[Ii(e.buffer,t,a),e.byteOffset,e.byteLength]}}else if(D(e,HTMLImageElement)){var s=e.constructor.name,c=e.src;return{rr_type:s,src:c}}else if(D(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}else if(D(e,ImageData)){var d=e.constructor.name;return{rr_type:d,args:[Ii(e.data,t,a),e.width,e.height]}}else if(rl(e,t)||(typeof e>"u"?"undefined":$(e))==="object"){var f=e.constructor.name,p=el(e,t,a);return{rr_type:f,index:p}}return e}var tl=function(e,t,a){return e.map(function(r){return Ii(r,t,a)})},rl=function(e,t){var a=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],r=a.filter(function(n){return typeof t[n]=="function"});return!!r.find(function(n){return D(e,t[n])})};function km(e,t,a,r){for(var n=function(){var u=c.value;try{if(typeof t.CanvasRenderingContext2D.prototype[u]!="function")return"continue";var l=Bt(t.CanvasRenderingContext2D.prototype,u,function(f){return function(){for(var p=this,_=arguments.length,v=new Array(_),m=0;m<_;m++)v[m]=arguments[m];return Ae(this.canvas,a,r,!0)||setTimeout(function(){var g=tl(v,t,p);e(p.canvas,{type:nr["2D"],property:u,args:g})},0),f.apply(this,v)}});i.push(l)}catch{var d=gn(t.CanvasRenderingContext2D.prototype,u,{set:function(_){e(this.canvas,{type:nr["2D"],property:u,args:[_],setter:!0})}});i.push(d)}},i=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),s=I(o),c;!(c=s()).done;)n();return function(){i.forEach(function(u){return u()})}}function wm(e){return e==="experimental-webgl"?"webgl":e}function Vs(e,t,a,r){var n=[];try{var i=Bt(e.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(!Ae(this,t,a,!0)){var d=wm(s);if("__context"in this||(this.__context=d),r&&["webgl","webgl2"].includes(d))if(u[0]&&$(u[0])==="object"){var f=u[0];f.preserveDrawingBuffer||(f.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[].concat([s],u))}});n.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){n.forEach(function(o){return o()})}}function zs(e,t,a,r,n,i){for(var o=function(){var d=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))return"continue";try{if(typeof e[d]!="function")return"continue";var f=Bt(e,d,function(_){return function(){for(var v=arguments.length,m=new Array(v),g=0;g<v;g++)m[g]=arguments[g];var y=_.apply(this,m);if(el(y,i,this),"tagName"in this.canvas&&!Ae(this.canvas,r,n,!0)){var b=tl(m,i,this),k={type:t,property:d,args:b};a(this.canvas,k)}return y}});s.push(f)}catch{var p=gn(e,d,{set:function(m){a(this.canvas,{type:t,property:d,args:[m],setter:!0})}});s.push(p)}},s=[],c=Object.getOwnPropertyNames(e),u=I(c),l;!(l=u()).done;)o();return s}function Sm(e,t,a,r){var n,i=[];if((n=i).push.apply(n,[].concat(zs(t.WebGLRenderingContext.prototype,nr.WebGL,e,a,r,t))),typeof t.WebGL2RenderingContext<"u"){var o;(o=i).push.apply(o,[].concat(zs(t.WebGL2RenderingContext.prototype,nr.WebGL2,e,a,r,t)))}return function(){i.forEach(function(s){return s()})}}var il="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Am=function(e){return Uint8Array.from(atob(e),function(t){return t.charCodeAt(0)})},qs=typeof window<"u"&&window.Blob&&new Blob([Am(il)],{type:"text/javascript;charset=utf-8"});function Tm(e){var t;try{if(t=qs&&(window.URL||window.webkitURL).createObjectURL(qs),!t)throw"";var a=new Worker(t,{name:e?.name});return a.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),a}catch{return new Worker("data:text/javascript;base64,"+il,{name:e?.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Rm=(function(){function e(a){var r=this;P(this,"pendingCanvasMutations",new Map),P(this,"rafStamps",{latestId:0,invokeId:null}),P(this,"mirror"),P(this,"mutationCb"),P(this,"resetObservers"),P(this,"frozen",!1),P(this,"locked",!1),P(this,"processMutation",function(d,f){var p=r.rafStamps.invokeId&&r.rafStamps.latestId!==r.rafStamps.invokeId;(p||!r.rafStamps.invokeId)&&(r.rafStamps.invokeId=r.rafStamps.latestId),r.pendingCanvasMutations.has(d)||r.pendingCanvasMutations.set(d,[]),r.pendingCanvasMutations.get(d).push(f)});var n=a.sampling,i=n===void 0?"all":n,o=a.win,s=a.blockClass,c=a.blockSelector,u=a.recordCanvas,l=a.dataURLOptions;this.mutationCb=a.mutationCb,this.mirror=a.mirror,u&&i==="all"&&this.initCanvasMutationObserver(o,s,c),u&&typeof i=="number"&&this.initCanvasFPSObserver(i,o,s,c,{dataURLOptions:l})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(r,n,i,o,s){var c=this,u=Vs(n,i,o,!0),l=new Map,d=new Tm;d.onmessage=function(g){var y=g.data.id;if(l.set(y,!1),"base64"in g.data){var b=g.data,k=b.base64,w=b.type,S=b.width,T=b.height;c.mutationCb({id:y,type:nr["2D"],commands:[{property:"clearRect",args:[0,0,S,T]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:k}],type:w}]},0,0]}]})}};var f=1e3/r,p=0,_,v=function(){var g=[];return n.document.querySelectorAll("canvas").forEach(function(y){Ae(y,i,o,!0)||g.push(y)}),g},m=function(g){if(p&&g-p<f){_=requestAnimationFrame(m);return}p=g;var y=c;v().forEach(Ga(function(b){var k,w,S,T;return Er(this,function(R){switch(R.label){case 0:return w=y.mirror.getId(b),l.get(w)?[2]:b.width===0||b.height===0?[2]:(l.set(w,!0),["webgl","webgl2"].includes(b.__context)&&(S=b.getContext(b.__context),((k=S?.getContextAttributes())==null?void 0:k.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return T=R.sent(),d.postMessage({id:w,bitmap:T,width:b.width,height:b.height,dataURLOptions:s.dataURLOptions},[T]),[2]}})})),_=requestAnimationFrame(m)};_=requestAnimationFrame(m),this.resetObservers=function(){u(),cancelAnimationFrame(_)}},t.initCanvasMutationObserver=function(r,n,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var o=Vs(r,n,i,!1),s=km(this.processMutation.bind(this),r,n,i),c=Sm(this.processMutation.bind(this),r,n,i);this.resetObservers=function(){o(),s(),c()}},t.startPendingCanvasMutationFlusher=function(){var r=this;requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var r=this,n=function(i){r.rafStamps.latestId=i,requestAnimationFrame(n)};requestAnimationFrame(n)},t.flushPendingCanvasMutations=function(){var r=this;this.pendingCanvasMutations.forEach(function(n,i){var o=r.mirror.getId(i);r.flushPendingCanvasMutationFor(i,o)}),requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(r,n){if(!(this.frozen||this.locked)){var i=this.pendingCanvasMutations.get(r);if(!(!i||n===-1)){var o=i.map(function(c){c.type;var u=Pr(c,["type"]);return u}),s=i[0].type;this.mutationCb({id:n,type:s,commands:o}),this.pendingCanvasMutations.delete(r)}}},e})(),Pm=(function(){function e(a){P(this,"trackedLinkElements",new WeakSet),P(this,"mutationCb"),P(this,"adoptedStyleSheetCb"),P(this,"styleMirror",new Z_),this.mutationCb=a.mutationCb,this.adoptedStyleSheetCb=a.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(r,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(r)},t.trackLinkElement=function(r){this.trackedLinkElements.has(r)||(this.trackedLinkElements.add(r),this.trackStylesheetInLinkElement(r))},t.adoptStyleSheets=function(r,n){var i,o=function(){var d=l.value,f=void 0;i.styleMirror.has(d)?f=i.styleMirror.getId(d):(f=i.styleMirror.add(d),c.push({styleId:f,rules:Array.from(d.rules||CSSRule,function(p,_){return{rule:yc(p,d.href),index:_}})})),s.styleIds.push(f)};if(r.length!==0){for(var s={id:n,styleIds:[]},c=[],u=I(r),l;!(l=u()).done;)i=this,o();c.length>0&&(s.styles=c),this.adoptedStyleSheetCb(s)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(r){},e})(),Im=(function(){function e(){P(this,"nodeMap",new WeakMap),P(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(r,n){var i=this.nodeMap.get(r);return i&&Array.from(i).some(function(o){return o!==n})},t.add=function(r,n){var i=this;this.active||(this.active=!0,requestAnimationFrame(function(){i.nodeMap=new WeakMap,i.active=!1})),this.nodeMap.set(r,(this.nodeMap.get(r)||new Set).add(n))},t.destroy=function(){},e})(),ue,Ei,Un,Hi=!1;try{if(Array.from([1],function(e){return e*2})[0]!==2){var Vn=document.createElement("iframe");document.body.appendChild(Vn),Array.from=((jo=Vn.contentWindow)==null?void 0:jo.Array.from)||Array.from,document.body.removeChild(Vn)}}catch(e){console.debug("Unable to override Array.from",e)}var Le=Ed();function _t(e){e===void 0&&(e={});var t=e.emit,a=e.checkoutEveryNms,r=e.checkoutEveryNth,n=e.blockClass,i=n===void 0?"rr-block":n,o=e.blockSelector,s=o===void 0?null:o,c=e.ignoreClass,u=c===void 0?"rr-ignore":c,l=e.ignoreSelector,d=l===void 0?null:l,f=e.maskTextClass,p=f===void 0?"rr-mask":f,_=e.maskTextSelector,v=_===void 0?null:_,m=e.inlineStylesheet,g=m===void 0?!0:m,y=e.maskAllInputs,b=e.maskInputOptions,k=e.slimDOMOptions,w=e.maskInputFn,S=e.maskTextFn,T=e.hooks,R=e.packFn,E=e.sampling,M=E===void 0?{}:E,O=e.dataURLOptions,F=O===void 0?{}:O,J=e.mousemoveWait,ye=e.recordDOM,Z=ye===void 0?!0:ye,Ie=e.recordCanvas,we=Ie===void 0?!1:Ie,se=e.recordCrossOriginIframes,ge=se===void 0?!1:se,Ee=e.recordAfter,yt=Ee===void 0?e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load":Ee,$e=e.userTriggeredOnInput,Nt=$e===void 0?!1:$e,Oe=e.collectFonts,bt=Oe===void 0?!1:Oe,Y=e.inlineImages,Ct=Y===void 0?!1:Y,kt=e.plugins,Ft=e.keepIframeSrcFn,dr=Ft===void 0?function(){return!1}:Ft,fr=e.ignoreCSSAttributes,wn=fr===void 0?new Set([]):fr,Yr=e.errorHandler;rm(Yr);var it=ge?window.parent===window:!0,wt=!1;if(!it)try{window.parent.document&&(wt=!1)}catch{wt=!0}if(it&&!t)throw new Error("emit function is required");if(!it&&!wt)return function(){};J!==void 0&&M.mousemove===void 0&&(M.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=I(kt||[]),x;!(x=Re()).done;){var ce=x.value;ce.eventProcessor&&(K=ce.eventProcessor(K))}return R&&!wt&&(K=R(K)),K};ue=function(K,Re){var x,ce=K;if(ce.timestamp=Gi(),(x=It[0])!=null&&x.isFrozen()&&ce.type!==W.FullSnapshot&&!(ce.type===W.IncrementalSnapshot&&ce.data.source===B.Mutation)&&It.forEach(function(td){return td.unfreeze()}),it)t?.(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===B.Mutation&&ce.data.isAttachIframe)return;St++;var Ql=r&&St>=r,ed=a&&ce.timestamp-Ut.timestamp>a;(Ql||ed)&&Ei(!0)}};for(var At=function(K){ue({type:W.IncrementalSnapshot,data:H({source:B.Mutation},K)})},Do=function(K){return ue({type:W.IncrementalSnapshot,data:H({source:B.Scroll},K)})},Bo=function(K){return ue({type:W.IncrementalSnapshot,data:H({source:B.CanvasMutation},K)})},Yl=function(K){return ue({type:W.IncrementalSnapshot,data:H({source:B.AdoptedStyleSheet},K)})},Tt=new Pm({mutationCb:At,adoptedStyleSheetCb:Yl}),Rt=new gm({mirror:Le,mutationCb:At,stylesheetManager:Tt,recordCrossOriginIframes:ge,wrappedEmit:ue}),Kl=I(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:we,mutationCb:Bo,win:window,blockClass:i,blockSelector:s,mirror:Le,sampling:M.canvas,dataURLOptions:F});var Kr=new vm({mutationCb:At,scrollCb:Do,bypassOptions:{blockClass:i,blockSelector:s,maskTextClass:p,maskTextSelector:v,inlineStylesheet:g,maskInputOptions:$t,dataURLOptions:F,maskTextFn:S,maskInputFn:w,recordCanvas:we,inlineImages:Ct,sampling:M,slimDOMOptions:hr,iframeManager:Rt,stylesheetManager:Tt,canvasManager:Un,keepIframeSrcFn:dr,processedNodeManager:Sn},mirror:Le});Ei=function(K){if(K===void 0&&(K=!1),!!Z){ue({type:W.Meta,data:{href:window.location.href,width:zu(),height:Vu()}},K),Tt.reset(),Kr.init(),It.forEach(function(x){return x.lock()});var Re=ef(document,{mirror:Le,blockClass:i,blockSelector:s,maskTextClass:p,maskTextSelector:v,inlineStylesheet:g,maskAllInputs:$t,maskTextFn:S,maskInputFn:w,slimDOM:hr,dataURLOptions:F,recordCanvas:we,inlineImages:Ct,onSerialize:function(x){Gu(x,Le)&&Rt.addIframe(x),ju(x,Le)&&Tt.trackLinkElement(x),Ia(x)&&Kr.addShadowRoot(q.shadowRoot(x),document)},onIframeLoad:function(x,ce){Rt.attachIframe(x,ce),Kr.observeAttachShadow(x)},onStylesheetLoad:function(x,ce){Tt.attachLinkElement(x,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(x){return x.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(x,ce){return ue({type:W.IncrementalSnapshot,data:{source:ce,positions:x}})},mouseInteractionCb:function(x){return ue({type:W.IncrementalSnapshot,data:H({source:B.MouseInteraction},x)})},scrollCb:Do,viewportResizeCb:function(x){return ue({type:W.IncrementalSnapshot,data:H({source:B.ViewportResize},x)})},inputCb:function(x){return ue({type:W.IncrementalSnapshot,data:H({source:B.Input},x)})},mediaInteractionCb:function(x){return ue({type:W.IncrementalSnapshot,data:H({source:B.MediaInteraction},x)})},styleSheetRuleCb:function(x){return ue({type:W.IncrementalSnapshot,data:H({source:B.StyleSheetRule},x)})},styleDeclarationCb:function(x){return ue({type:W.IncrementalSnapshot,data:H({source:B.StyleDeclaration},x)})},canvasMutationCb:Bo,fontCb:function(x){return ue({type:W.IncrementalSnapshot,data:H({source:B.Font},x)})},selectionCb:function(x){ue({type:W.IncrementalSnapshot,data:H({source:B.Selection},x)})},customElementCb:function(x){ue({type:W.IncrementalSnapshot,data:H({source:B.CustomElement},x)})},blockClass:i,ignoreClass:u,ignoreSelector:d,maskTextClass:p,maskTextSelector:v,maskInputOptions:$t,inlineStylesheet:g,sampling:M,recordDOM:Z,recordCanvas:we,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(x){return x.observer}))==null?void 0:Re.map(function(x){return{observer:x.observer,options:x.options,callback:function(ce){return ue({type:W.Plugin,data:{plugin:x.name,payload:ce}})}}}))||[]},T)};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(Se("DOMContentLoaded",function(){ue({type:W.DomContentLoaded,data:{}}),yt==="DOMContentLoaded"&&An()})),pr.push(Se("load",function(){ue({type:W.Load,data:{}}),yt==="load"&&An()},window))),function(){pr.forEach(function(K){try{K()}catch(x){var Re=String(x).toLowerCase();Re.includes("cross-origin")||console.warn(x)}}),Sn.destroy(),Hi=!1,im()}}catch(K){console.warn(K)}}_t.addCustomEvent=function(e,t){if(!Hi)throw new Error("please add custom event after start recording");ue({type:W.Custom,data:{tag:e,payload:t}})};_t.freezePage=function(){It.forEach(function(e){return e.freeze()})};_t.takeFullSnapshot=function(e){if(!Hi)throw new Error("please take full snapshot after start recording");Ei(e)};_t.mirror=Le;var Ws;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ws||(Ws={}));_t.addCustomEvent;_t.freezePage;_t.takeFullSnapshot;var Em=Object.defineProperty,Om=function(e,t,a){return t in e?Em(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a},wi=function(e,t,a){return Om(e,(typeof t>"u"?"undefined":$(t))!=="symbol"?t+"":t,a)};function xm(e,t,a){try{if(!(t in e))return function(){};var r=e[t],n=a(r);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=n,function(){e[t]=r}}catch{return function(){}}}var zt=(function(){function e(a){wi(this,"fileName"),wi(this,"functionName"),wi(this,"lineNumber"),wi(this,"columnNumber"),this.fileName=a.fileName||"",this.functionName=a.functionName||"",this.lineNumber=a.lineNumber,this.columnNumber=a.columnNumber}var t=e.prototype;return t.toString=function(){var r=this.lineNumber||"",n=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+r+":"+n+")":this.fileName+":"+r+":"+n},e})(),Mm=/(^|@)\S+:\d+/,Gs=/^\s*at .*(\S+:\d+|\(native\))/m,Dm=/^(eval@)?(\[native code])?$/,zn={parse:function(t){return t?typeof t.stacktrace<"u"||typeof t["opera#sourceloc"]<"u"?this.parseOpera(t):t.stack&&t.stack.match(Gs)?this.parseV8OrIE(t):t.stack?this.parseFFOrSafari(t):(console.warn("[console-record-plugin]: Failed to parse error object:",t),[]):[]},extractLocation:function(t){if(t.indexOf(":")===-1)return[t];var a=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=a.exec(t.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+t);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(t){var a=t.stack.split(`
|
|
54
|
-
`).filter(function(r){return!!r.match(Gs)},this);return a.map(function(r){r.indexOf("(eval ")>-1&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var n=r.replace(/^\s+/,"").replace(/\(eval code/g,"("),i=n.match(/ (\((.+):(\d+):(\d+)\)$)/);n=i?n.replace(i[0],""):n;var o=n.split(/\s+/).slice(1),s=this.extractLocation(i?i[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(t){var a=t.stack.split(`
|
|
55
|
-
`).filter(function(r){return!r.match(Dm)},this);return a.map(function(r){if(r.indexOf(" > eval")>-1&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),r.indexOf("@")===-1&&r.indexOf(":")===-1)return new zt({functionName:r});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=r.match(n),o=i&&i[1]?i[1]:void 0,s=this.extractLocation(r.replace(n,""));return new zt({functionName:o,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf(`
|
|
56
|
-
`)>-1&&t.message.split(`
|
|
57
|
-
`).length>t.stacktrace.split(`
|
|
58
|
-
`).length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(t){for(var a=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split(`
|
|
59
|
-
`),n=[],i=2,o=r.length;i<o;i+=2){var s=a.exec(r[i]);s&&n.push(new zt({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(t){for(var a=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split(`
|
|
60
|
-
`),n=[],i=0,o=r.length;i<o;i+=2){var s=a.exec(r[i]);s&&n.push(new zt({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(t){var a=t.stack.split(`
|
|
61
|
-
`).filter(function(r){return!!r.match(Mm)&&!r.match(/^Error created at/)},this);return a.map(function(r){var n=r.split("@"),i=this.extractLocation(n.pop()),o=n.shift()||"",s=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new zt({functionName:s,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)}};function Bm(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var a=e.localName;if(!a)break;a=a.toLowerCase();var r=e.parentElement,n=[];if(r.children&&r.children.length>0)for(var i=0;i<r.children.length;i++){var o=r.children[i];o.localName&&o.localName.toLowerCase&&o.localName.toLowerCase()===a&&n.push(o)}n.length>1&&(a+=":eq("+n.indexOf(e)+")"),t=a+(t?">"+t:""),e=r}return t}function Oa(e){return Object.prototype.toString.call(e)==="[object Object]"}function nl(e,t){if(t===0)return!0;for(var a=Object.keys(e),r=I(a),n;!(n=r()).done;){var i=n.value;if(Oa(e[i])&&nl(e[i],t-1))return!0}return!1}function qt(e,t){var a={numOfKeysLimit:50,depthOfLimit:4};Object.assign(a,t);var r=[],n=[];return JSON.stringify(e,function(s,c){if(r.length>0){var u=r.indexOf(this);~u?r.splice(u+1):r.push(this),~u?n.splice(u,1/0,s):n.push(s),~r.indexOf(c)&&(r[0]===c?c="[Circular ~]":c="[Circular ~."+n.slice(0,r.indexOf(c)).join(".")+"]")}else r.push(c);if(c===null)return c;if(c===void 0)return"undefined";if(i(c))return o(c);if((typeof c>"u"?"undefined":$(c))==="bigint")return c.toString()+"n";if(D(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(D(c,Node))return D(c,HTMLElement)?c?c.outerHTML:"":c.nodeName;if(D(c,Error))return c.stack?c.stack+`
|
|
62
|
-
End of stack for Error object`:c.name+": "+c.message}return c});function i(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(e,t,a){var r=a?Object.assign({},js,a):js,n=r.logger;if(!n)return function(){};var i;typeof n=="string"?i=t[n]:i=n;var o=0,s=!1,c=[];if(r.level.includes("error")){var u=function(v){var m=v.message,g=v.error,y=zn.parse(g).map(function(k){return k.toString()}),b=[qt(m,r.stringifyOptions)];e({level:"error",trace:y,payload:b})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(v){var m,g;D(v.reason,Error)?(m=v.reason,g=[qt("Uncaught (in promise) "+m.name+": "+m.message,r.stringifyOptions)]):(m=new Error,g=[qt("Uncaught (in promise)",r.stringifyOptions),qt(v.reason,r.stringifyOptions)]);var y=zn.parse(m).map(function(b){return b.toString()});e({level:"error",trace:y,payload:g})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var d=I(r.level),f;!(f=d()).done;){var p=f.value;c.push(_(i,p))}return function(){c.forEach(function(v){return v()})};function _(v,m){var g=this;return v[m]?xm(v,m,function(y){var b=g;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),!(m==="assert"&&w[0])&&!s){s=!0;try{var T=zn.parse(new Error).map(function(M){return M.toString()}).splice(1),R=m==="assert"?w.slice(1):w,E=R.map(function(M){return qt(M,r.stringifyOptions)});o++,o<r.lengthThreshold?e({level:m,trace:T,payload:E}):o===r.lengthThreshold&&e({level:"warn",trace:[],payload:[qt("The number of log records reached the threshold.")]})}catch(M){y.apply(void 0,[].concat(["rrweb logger error:",M],w))}finally{s=!1}}}}):function(){}}}var Nm="rrweb/console@1",Fm=function(e){return{name:Nm,observer:Lm,options:e}},Hs=A.setImmediate,ut,xa,Ma,al=Object.prototype.toString,$m=typeof Hs<"u"?function(t){return Hs(t)}:setTimeout;try{Object.defineProperty({},"x",{}),ut=function(t,a,r,n){return Object.defineProperty(t,a,{value:r,writable:!0,configurable:n!==!1})}}catch{ut=function(a,r,n){return a[r]=n,a}}Ma=(function(){var t,a,r;function n(i,o){this.fn=i,this.self=o,this.next=void 0}return{add:function(o,s){r=new n(o,s),a?a.next=r:t=r,a=r,r=void 0},drain:function(){var o=t;for(t=a=xa=void 0;o;)o.fn.call(o.self),o=o.next}}})();function Ji(e,t){Ma.add(e,t),xa||(xa=$m(Ma.drain))}function ol(e){var t,a=typeof e;return e!==null&&(a==="object"||a==="function")&&(t=e.then),typeof t=="function"?t:!1}function mo(){for(var e=0;e<this.chain.length;e++)Um(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function Um(e,t,a){var r,n;try{t===!1?a.reject(e.msg):(t===!0?r=e.msg:r=t.call(void 0,e.msg),r===a.promise?a.reject(TypeError("Promise-chain cycle")):(n=ol(r))?n.call(r,a.resolve,a.reject):a.resolve(r))}catch(i){a.reject(i)}}function sl(e){var t,a=this;if(!a.triggered){a.triggered=!0,a.def&&(a=a.def);try{(t=ol(e))?Ji(function(){var r=new Js(a);try{t.call(e,function(){sl.apply(r,arguments)},function(){Sr.apply(r,arguments)})}catch(n){Sr.call(r,n)}}):(a.msg=e,a.state=1,a.chain.length>0&&Ji(mo,a))}catch(r){Sr.call(new Js(a),r)}}}function Sr(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Ji(mo,t))}function cl(e,t,a,r){for(var n=0;n<t.length;n++)(function(o){e.resolve(t[o]).then(function(c){a(o,c)},r)})(n)}function Js(e){this.def=e,this.triggered=!1}function Vm(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function mt(e){if(typeof e!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var t=new Vm(this);this.then=function(r,n){var i={success:typeof r=="function"?r:!0,failure:typeof n=="function"?n:!1};return i.promise=new this.constructor(function(s,c){if(typeof s!="function"||typeof c!="function")throw TypeError("Not a function");i.resolve=s,i.reject=c}),t.chain.push(i),t.state!==0&&Ji(mo,t),i.promise},this.catch=function(r){return this.then(void 0,r)};try{e.call(void 0,function(r){sl.call(t,r)},function(r){Sr.call(t,r)})}catch(a){Sr.call(t,a)}}var ul=ut({},"constructor",mt,!1);mt.prototype=ul;ut(ul,"__NPO__",0,!1);ut(mt,"resolve",function(t){var a=this;return t&&typeof t=="object"&&t.__NPO__===1?t:new a(function(n,i){if(typeof n!="function"||typeof i!="function")throw TypeError("Not a function");n(t)})});ut(mt,"reject",function(t){return new this(function(r,n){if(typeof r!="function"||typeof n!="function")throw TypeError("Not a function");n(t)})});ut(mt,"all",function(t){var a=this;return al.call(t)!=="[object Array]"?a.reject(TypeError("Not an array")):t.length===0?a.resolve([]):new a(function(n,i){if(typeof n!="function"||typeof i!="function")throw TypeError("Not a function");var o=t.length,s=Array(o),c=0;cl(a,t,function(l,d){s[l]=d,++c===o&&n(s)},i)})});ut(mt,"race",function(t){var a=this;return al.call(t)!=="[object Array]"?a.reject(TypeError("Not an array")):new a(function(n,i){if(typeof n!="function"||typeof i!="function")throw TypeError("Not a function");cl(a,t,function(s,c){n(c)},i)})});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,L=A.document,br=A.opera,Zs=A.screen,ze=Ze.userAgent,Wn=zm.bind,Ys=vn.forEach,Ks=vn.indexOf,Xs=vn.map,qm=Array.isArray,Da={},h={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},V={log:function(){if(De.DEBUG&&!h.isUndefined(he)&&he)try{he.log.apply(he,arguments)}catch{h.each(arguments,function(t){he.log(t)})}},warn:function(){if(De.DEBUG&&!h.isUndefined(he)&&he){var e=["Mixpanel warning:"].concat(h.toArray(arguments));try{he.warn.apply(he,e)}catch{h.each(e,function(a){he.warn(a)})}}},error:function(){if(De.DEBUG&&!h.isUndefined(he)&&he){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{he.error.apply(he,e)}catch{h.each(e,function(a){he.error(a)})}}},critical:function(){if(!h.isUndefined(he)&&he){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{he.error.apply(he,e)}catch{h.each(e,function(a){he.error(a)})}}}},Gn=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(V,arguments)}},Lt=function(e){return{log:Gn(V.log,e),error:Gn(V.error,e),critical:Gn(V.critical,e)}},Vr=function(e){return function(){try{return e.apply(this,arguments)}catch(t){V.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),De.DEBUG&&V.critical(t)}}},dl=function(e){var t=e.prototype;for(var a in t)typeof t[a]=="function"&&(t[a]=Vr(t[a]))};h.bind=function(e,t){var a,r;if(Wn&&e.bind===Wn)return Wn.apply(e,at.call(arguments,1));if(!h.isFunction(e))throw new TypeError;return a=at.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,a.concat(at.call(arguments)));var n={};n.prototype=e.prototype;var i=new n;n.prototype=null;var o=e.apply(i,a.concat(at.call(arguments)));return Object(o)===o?o:i},r};h.each=function(e,t,a){if(e!=null){if(Ys&&e.forEach===Ys)e.forEach(t,a);else if(e.length===+e.length){for(var r=0,n=e.length;r<n;r++)if(r in e&&t.call(a,e[r],r,e)===Da)return}else for(var i in e)if(yn.call(e,i)&&t.call(a,e[i],i,e)===Da)return}};h.extend=function(e){return h.each(at.call(arguments,1),function(t){for(var a in t)t[a]!==void 0&&(e[a]=t[a])}),e};h.isArray=qm||function(e){return Zr.call(e)==="[object Array]"};h.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch{return!1}};h.isArguments=function(e){return!!(e&&yn.call(e,"callee"))};h.toArray=function(e){return e?e.toArray?e.toArray():h.isArray(e)||h.isArguments(e)?at.call(e):h.values(e):[]};h.map=function(e,t,a){if(Xs&&e.map===Xs)return e.map(t,a);var r=[];return h.each(e,function(n){r.push(t.call(a,n))}),r};h.keys=function(e){var t=[];return e===null||h.each(e,function(a,r){t[t.length]=r}),t};h.values=function(e){var t=[];return e===null||h.each(e,function(a){t[t.length]=a}),t};h.include=function(e,t){var a=!1;return e===null?a:Ks&&e.indexOf===Ks?e.indexOf(t)!=-1:(h.each(e,function(r){if(a||(a=r===t))return Da}),a)};h.includes=function(e,t){return e.indexOf(t)!==-1};h.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e};h.isObject=function(e){return e===Object(e)&&!h.isArray(e)};h.isEmptyObject=function(e){if(h.isObject(e)){for(var t in e)if(yn.call(e,t))return!1;return!0}return!1};h.isUndefined=function(e){return e===void 0};h.isString=function(e){return Zr.call(e)=="[object String]"};h.isDate=function(e){return Zr.call(e)=="[object Date]"};h.isNumber=function(e){return Zr.call(e)=="[object Number]"};h.isElement=function(e){return!!(e&&e.nodeType===1)};h.encodeDates=function(e){return h.each(e,function(t,a){h.isDate(t)?e[a]=h.formatDate(t):h.isObject(t)&&(e[a]=h.encodeDates(t))}),e};h.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};h.formatDate=function(e){function t(a){return a<10?"0"+a:a}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())};h.strip_empty_properties=function(e){var t={};return h.each(e,function(a,r){h.isString(a)&&a.length>0&&(t[r]=a)}),t};h.truncate=function(e,t){var a;return typeof e=="string"?a=e.slice(0,t):h.isArray(e)?(a=[],h.each(e,function(r){a.push(h.truncate(r,t))})):h.isObject(e)?(a={},h.each(e,function(r,n){a[n]=h.truncate(r,t)})):a=e,a};h.JSONEncode=(function(){return function(e){var t=e,a=function(n){var i=/[\\"\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 i.lastIndex=0,i.test(n)?'"'+n.replace(i,function(s){var c=o[s];return typeof c=="string"?c:"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'},r=function(n,i){var o="",s=" ",c=0,u="",l="",d=0,f=o,p=[],_=i[n];switch(_&&typeof _=="object"&&typeof _.toJSON=="function"&&(_=_.toJSON(n)),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,p=[],Zr.apply(_)==="[object Array]"){for(d=_.length,c=0;c<d;c+=1)p[c]=r(c,_)||"null";return l=p.length===0?"[]":o?`[
|
|
63
|
-
`+o+p.join(`,
|
|
64
|
-
`+o)+`
|
|
65
|
-
`+f+"]":"["+p.join(",")+"]",o=f,l}for(u in _)yn.call(_,u)&&(l=r(u,_),l&&p.push(a(u)+(o?": ":":")+l));return l=p.length===0?"{}":o?"{"+p.join(",")+f+"}":"{"+p.join(",")+"}",o=f,l}};return r("",{"":t})}})();h.JSONDecode=(function(){var e,t,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
66
|
-
`,r:"\r",t:" "},r,n=function(p){var _=new SyntaxError(p);throw _.at=e,_.text=r,_},i=function(p){return p&&p!==t&&n("Expected '"+p+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},o=function(){var p,_="";for(t==="-"&&(_="-",i("-"));t>="0"&&t<="9";)_+=t,i();if(t===".")for(_+=".";i()&&t>="0"&&t<="9";)_+=t;if(t==="e"||t==="E")for(_+=t,i(),(t==="-"||t==="+")&&(_+=t,i());t>="0"&&t<="9";)_+=t,i();if(p=+_,!isFinite(p))n("Bad number");else return p},s=function(){var p,_,v="",m;if(t==='"')for(;i();){if(t==='"')return i(),v;if(t==="\\")if(i(),t==="u"){for(m=0,_=0;_<4&&(p=parseInt(i(),16),!!isFinite(p));_+=1)m=m*16+p;v+=String.fromCharCode(m)}else if(typeof a[t]=="string")v+=a[t];else break;else v+=t}n("Bad string")},c=function(){for(;t&&t<=" ";)i()},u=function(){switch(t){case"t":return i("t"),i("r"),i("u"),i("e"),!0;case"f":return i("f"),i("a"),i("l"),i("s"),i("e"),!1;case"n":return i("n"),i("u"),i("l"),i("l"),null}n('Unexpected "'+t+'"')},l,d=function(){var p=[];if(t==="["){if(i("["),c(),t==="]")return i("]"),p;for(;t;){if(p.push(l()),c(),t==="]")return i("]"),p;i(","),c()}}n("Bad array")},f=function(){var p,_={};if(t==="{"){if(i("{"),c(),t==="}")return i("}"),_;for(;t;){if(p=s(),c(),i(":"),Object.hasOwnProperty.call(_,p)&&n('Duplicate key "'+p+'"'),_[p]=l(),c(),t==="}")return i("}"),_;i(","),c()}}n("Bad object")};return l=function(){switch(c(),t){case"{":return f();case"[":return d();case'"':return s();case"-":return o();default:return t>="0"&&t<="9"?o():u()}},function(p){var _;return r=p,e=0,t=" ",_=l(),c(),t&&n("Syntax error"),_}})();h.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a,r,n,i,o,s,c,u,l=0,d=0,f="",p=[];if(!e)return e;e=h.utf8Encode(e);do a=e.charCodeAt(l++),r=e.charCodeAt(l++),n=e.charCodeAt(l++),u=a<<16|r<<8|n,i=u>>18&63,o=u>>12&63,s=u>>6&63,c=u&63,p[d++]=t.charAt(i)+t.charAt(o)+t.charAt(s)+t.charAt(c);while(l<e.length);switch(f=p.join(""),e.length%3){case 1:f=f.slice(0,-2)+"==";break;case 2:f=f.slice(0,-1)+"=";break}return f};h.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,`
|
|
67
|
-
`).replace(/\r/g,`
|
|
68
|
-
`);var t="",a,r,n=0,i;for(a=r=0,n=e.length,i=0;i<n;i++){var o=e.charCodeAt(i),s=null;o<128?r++: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&&(r>a&&(t+=e.substring(a,r)),t+=s,a=r=i+1)}return r>a&&(t+=e.substring(a,e.length)),t};h.UUID=function(){try{return A.crypto.randomUUID()}catch{for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",h.map(e,function(r){return r.toString(16)}).join("")}};var Qs=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];h.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Qs.length;t++)if(e.indexOf(Qs[t])!==-1)return!0;return!1};h.HTTPBuildQuery=function(e,t){var a,r,n=[];return h.isUndefined(t)&&(t="&"),h.each(e,function(i,o){a=encodeURIComponent(i.toString()),r=encodeURIComponent(o),n[n.length]=r+"="+a}),n.join(t)};h.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var a="[\\?&]"+t+"=([^&#]*)",r=new RegExp(a),n=r.exec(e);if(n===null||n&&typeof n[1]!="string"&&n[1].length)return"";var i=n[1];try{i=decodeURIComponent(i)}catch{V.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")};h.cookie={get:function(e){for(var t=e+"=",a=L.cookie.split(";"),r=0;r<a.length;r++){for(var n=a[r];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(t)===0)return decodeURIComponent(n.substring(t.length,n.length))}return null},parse:function(e){var t;try{t=h.JSONDecode(h.cookie.get(e))||{}}catch{}return t},set_seconds:function(e,t,a,r,n,i,o){var s="",c="",u="";if(o)s="; domain="+o;else if(r){var l=ec(L.location.hostname);s=l?"; domain=."+l:""}if(a){var d=new Date;d.setTime(d.getTime()+a*1e3),c="; expires="+d.toGMTString()}i&&(n=!0,u="; SameSite=None"),n&&(u+="; secure"),L.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+s+u},set:function(e,t,a,r,n,i,o){var s="",c="",u="";if(o)s="; domain="+o;else if(r){var l=ec(L.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()}i&&(n=!0,u="; SameSite=None"),n&&(u+="; secure");var f=e+"="+encodeURIComponent(t)+c+"; path=/"+s+u;return L.cookie=f,f},remove:function(e,t,a){h.cookie.set(e,"",-1,t,!1,!1,a)}};var fl=function(e){var t=!0;try{var a="__mplss_"+go(8),r="xyz";e.setItem(a,r),e.getItem(a)!==r&&(t=!1),e.removeItem(a)}catch{t=!1}return t},jn=null,zr=function(e,t){return jn!==null&&!t?jn:jn=fl(e||A.localStorage)},Hn=null,Wm=function(e,t){return Hn!==null&&!t?Hn:Hn=fl(e||A.sessionStorage)};function hl(e,t,a){var r=function(n){V.error(t+" error: "+n)};return{is_supported:function(n){var i=a(e,n);return i||V.error(t+" unsupported"),i},error:r,get:function(n){try{return e.getItem(n)}catch(i){r(i)}return null},parse:function(n){try{return h.JSONDecode(e.getItem(n))||{}}catch{}return null},set:function(n,i){try{e.setItem(n,i)}catch(o){r(o)}},remove:function(n){try{e.removeItem(n)}catch(i){r(i)}}}}h.localStorage=hl(A.localStorage,"localStorage",zr);h.sessionStorage=hl(A.sessionStorage,"sessionStorage",Wm);h.register_event=(function(){var e=function(r,n,i,o,s){if(!r){V.error("No valid element provided to register_event");return}if(r.addEventListener&&!o)r.addEventListener(n,i,!!s);else{var c="on"+n,u=r[c];r[c]=t(r,i,u)}};function t(r,n,i){var o=function(s){if(s=s||a(A.event),!!s){var c=!0,u,l;return h.isFunction(i)&&(u=i(s)),l=n.call(r,s),(u===!1||l===!1)&&(c=!1),c}};return o}function a(r){return r&&(r.preventDefault=a.preventDefault,r.stopPropagation=a.stopPropagation),r}return a.preventDefault=function(){this.returnValue=!1},a.stopPropagation=function(){this.cancelBubble=!0},e})();var Gm=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');h.dom_query=(function(){function e(n){return n.all?n.all:n.getElementsByTagName("*")}var t=/[\t\r\n]/g;function a(n,i){var o=" "+i+" ";return(" "+n.className+" ").replace(t," ").indexOf(o)>=0}function r(n){if(!L.getElementsByTagName)return[];var i=n.split(" "),o,s,c,u,l,d,f,p,_,v,m=[L];for(d=0;d<i.length;d++){if(o=i[d].replace(/^\s+/,"").replace(/\s+$/,""),o.indexOf("#")>-1){s=o.split("#"),c=s[0];var g=s[1],y=L.getElementById(g);if(!y||c&&y.nodeName.toLowerCase()!=c)return[];m=[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<m.length;f++)for(c=="*"?_=e(m[f]):_=m[f].getElementsByTagName(c),p=0;p<_.length;p++)u[l++]=_[p];for(m=[],v=0,f=0;f<u.length;f++)u[f].className&&h.isString(u[f].className)&&a(u[f],b)&&(m[v++]=u[f]);continue}var k=o.match(Gm);if(k){c=k[1];var w=k[2],S=k[3],T=k[4];for(c||(c="*"),u=[],l=0,f=0;f<m.length;f++)for(c=="*"?_=e(m[f]):_=m[f].getElementsByTagName(c),p=0;p<_.length;p++)u[l++]=_[p];m=[],v=0;var R;switch(S){case"=":R=function(E){return E.getAttribute(w)==T};break;case"~":R=function(E){return E.getAttribute(w).match(new RegExp("\\b"+T+"\\b"))};break;case"|":R=function(E){return E.getAttribute(w).match(new RegExp("^"+T+"-?"))};break;case"^":R=function(E){return E.getAttribute(w).indexOf(T)===0};break;case"$":R=function(E){return E.getAttribute(w).lastIndexOf(T)==E.getAttribute(w).length-T.length};break;case"*":R=function(E){return E.getAttribute(w).indexOf(T)>-1};break;default:R=function(E){return E.getAttribute(w)}}for(m=[],v=0,f=0;f<u.length;f++)R(u[f])&&(m[v++]=u[f]);continue}for(c=o,u=[],l=0,f=0;f<m.length;f++)for(_=m[f].getElementsByTagName(c),p=0;p<_.length;p++)u[l++]=_[p];m=u}return m}return function(n){return h.isElement(n)?[n]:h.isObject(n)&&!h.isUndefined(n.length)?n:r.call(this,n)}})();var jm=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Hm=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];h.info={campaignParams:function(e){var t="",a={};return h.each(jm,function(r){t=h.getQueryParam(L.URL,r),t.length?a[r]=t:e!==void 0&&(a[r]=e)}),a},clickParams:function(){var e="",t={};return h.each(Hm,function(a){e=h.getQueryParam(L.URL,a),e.length&&(t[a]=e)}),t},marketingParams:function(){return h.extend(h.info.campaignParams(),h.info.clickParams())},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var t=h.info.searchEngine(e),a=t!="yahoo"?"q":"p",r={};if(t!==null){r.$search_engine=t;var n=h.getQueryParam(e,a);n.length&&(r.mp_keyword=n)}return r},browser:function(e,t,a){return t=t||"",a||h.includes(e," OPR/")?h.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":h.includes(e,"IEMobile")||h.includes(e,"WPDesktop")?"Internet Explorer Mobile":h.includes(e,"SamsungBrowser/")?"Samsung Internet":h.includes(e,"Edge")||h.includes(e,"Edg/")?"Microsoft Edge":h.includes(e,"FBIOS")?"Facebook Mobile":h.includes(e,"Whale/")?"Whale Browser":h.includes(e,"Chrome")?"Chrome":h.includes(e,"CriOS")?"Chrome iOS":h.includes(e,"UCWEB")||h.includes(e,"UCBrowser")?"UC Browser":h.includes(e,"FxiOS")?"Firefox iOS":h.includes(t,"Apple")?h.includes(e,"Mobile")?"Mobile Safari":"Safari":h.includes(e,"Android")?"Android Mobile":h.includes(e,"Konqueror")?"Konqueror":h.includes(e,"Firefox")?"Firefox":h.includes(e,"MSIE")||h.includes(e,"Trident/")?"Internet Explorer":h.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,a){var r=h.info.browser(e,t,a),n={"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+)?)/},i=n[r];if(i===void 0)return null;var o=e.match(i);return o?parseFloat(o[o.length-2]):null},os:function(){var e=ze;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return A.location.href},properties:function(e){return typeof e!="object"&&(e={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(ze,Ze.vendor,br),$referrer:L.referrer,$referring_domain:h.info.referringDomain(L.referrer),$device:h.info.device(ze)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(ze,Ze.vendor,br),$screen_height:Zs.height,$screen_width:Zs.width,mp_lib:"web",$lib_version:De.LIB_VERSION,$insert_id:go(),time:h.timestamp()/1e3},h.strip_empty_properties(e))},people_properties:function(){return h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(ze,Ze.vendor,br)}),{$browser_version:h.info.browserVersion(ze,Ze.vendor,br)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:L.title,current_domain:A.location.hostname,current_url_path:A.location.pathname,current_url_protocol:A.location.protocol,current_url_search:A.location.search})}};var Jm=function(e,t){var a=null,r=[];return function(n){var i=this;return r.push(n),a||(a=new G(function(o){setTimeout(function(){var s=e.apply(i,[r]);a=null,r=[],o(s)},t)})),a}},go=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Zm=function(){var e=h.UUID().replace(/-/g,""),t=h.UUID().replace(/-/g,"").substring(0,16),a="01";return"00-"+e+"-"+t+"-"+a},Ym=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Km=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ec=function(e){var t=Km,a=e.split("."),r=a[a.length-1];(r.length>4||r==="com"||r==="org")&&(t=Ym);var n=e.match(t);return n?n[0]:""},Xm=function(){var e=A.navigator.onLine;return h.isUndefined(e)||e},st=function(){},ar=null,Zi=null;typeof JSON<"u"&&(ar=JSON.stringify,Zi=JSON.parse);ar=ar||h.JSONEncode;Zi=Zi||h.JSONDecode;var Qm=function(e,t,a){if(!A.CompressionStream)return!1;var r=h.info.browser(e,t,a),n=h.info.browserVersion(e,t,a);return!((r==="Safari"||r==="Mobile Safari")&&n>=16.4&&n<16.6)};h.info=h.info;h.info.browser=h.info.browser;h.info.browserVersion=h.info.browserVersion;h.info.device=h.info.device;h.info.properties=h.info.properties;h.isBlockedUA=h.isBlockedUA;h.isEmptyObject=h.isEmptyObject;h.isObject=h.isObject;h.JSONDecode=h.JSONDecode;h.JSONEncode=h.JSONEncode;h.toArray=h.toArray;h.NPO=mt;var eg="mixpanelBrowserDb",pl="mixpanelRecordingEvents",vo="mixpanelRecordingRegistry",tg=1,rg=[pl,vo],Fe=function(e){this.dbPromise=null,this.storeName=e};Fe.prototype._openDb=function(){return new G(function(e,t){var a=A.indexedDB.open(eg,tg);a.onerror=function(){t(a.error)},a.onsuccess=function(){e(a.result)},a.onupgradeneeded=function(r){var n=r.target.result;rg.forEach(function(i){n.createObjectStore(i)})}})};Fe.prototype.init=function(){return A.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof A.IDBDatabase?G.resolve():G.reject(e)})):G.reject("indexedDB is not supported in this browser")};Fe.prototype.isInitialized=function(){return!!this.dbPromise};Fe.prototype.makeTransaction=function(e,t){var a=this.storeName,r=function(n){return new G(function(i,o){var s=n.transaction(a,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(a))})};return this.dbPromise.then(r).catch((function(n){return n&&n.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(r)):G.reject(n)}).bind(this))};Fe.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(a){a.put(t,e)})};Fe.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(a){t=a.get(e)}).then(function(){return t.result})};Fe.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})};Fe.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var ig="__mp_opt_in_out_";function ng(e,t){gl(!0,e,t)}function ag(e,t){gl(!1,e,t)}function og(e,t){return ml(e,t)==="1"}function _l(e,t){if(cg(t))return V.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var a=ml(e,t)==="0";return a&&V.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),a}function gt(e){return Co(e,function(t){return this.get_config(t)})}function vt(e){return Co(e,function(t){return this._get_config(t)})}function cr(e){return Co(e,function(t){return this._get_config(t)})}function sg(e,t){t=t||{},yo(t).remove(bo(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function yo(e){return e=e||{},e.persistenceType==="localStorage"?h.localStorage:h.cookie}function bo(e,t){return t=t||{},(t.persistencePrefix||ig)+e}function ml(e,t){return yo(t).get(bo(e,t))}function cg(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||A,a=t.navigator||{},r=!1;return h.each([a.doNotTrack,a.msDoNotTrack,t.doNotTrack],function(n){h.includes([!0,1,"1","yes"],n)&&(r=!0)}),r}function gl(e,t,a){if(!h.isString(t)||!t.length){V.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}a=a||{},yo(a).set(bo(t,a),e?1:0,h.isNumber(a.cookieExpiration)?a.cookieExpiration:null,!!a.crossSubdomainCookie,!!a.secureCookie,!!a.crossSiteCookie,a.cookieDomain),a.track&&e&&a.track(a.trackEventName||"$opt_in",a.trackProperties,{send_immediately:!0})}function Co(e,t){return function(){var a=!1;try{var r=t.call(this,"token"),n=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),o=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");r&&(a=_l(r,{ignoreDnt:n,persistenceType:i,persistencePrefix:o,window:s}))}catch(u){V.error("Unexpected error when checking tracking opt-out status: "+u)}if(!a)return e.apply(this,arguments);var c=arguments[arguments.length-1];typeof c=="function"&&c(0)}}var ug=Lt("lock"),vl=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||A.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||G};vl.prototype.withLock=function(e,t){var a=this.promiseImpl;return new a(h.bind(function(r,n){var i=t||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",p=s+":Z",_=function(b){if(new Date().getTime()-o>u){ug.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),l.removeItem(p),l.removeItem(f),g();return}setTimeout(function(){try{b()}catch(k){n(k)}},c*(Math.random()+.1))},v=function(b,k){b()?k():_(function(){v(b,k)})},m=function(){var b=l.getItem(f);return b&&b!==i?!1:(l.setItem(f,i),l.getItem(f)===i?!0:(zr(l,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){l.setItem(d,i),v(m,function(){if(l.getItem(d)===i){y();return}_(function(){if(l.getItem(f)!==i){g();return}v(function(){return!l.getItem(p)},y)})})},y=function(){l.setItem(p,"1");var b=function(){l.removeItem(p),l.getItem(f)===i&&l.removeItem(f),l.getItem(d)===i&&l.removeItem(d)};e().then(function(k){b(),r(k)}).catch(function(k){b(),n(k)})};try{if(zr(l,!0))g();else throw new Error("localStorage support check failed")}catch(b){n(b)}},this))};var ur=function(e){this.storage=e||A.localStorage};ur.prototype.init=function(){return G.resolve()};ur.prototype.isInitialized=function(){return!0};ur.prototype.setItem=function(e,t){return new G(h.bind(function(a,r){try{this.storage.setItem(e,ar(t))}catch(n){r(n)}a()},this))};ur.prototype.getItem=function(e){return new G(h.bind(function(t,a){var r;try{r=Zi(this.storage.getItem(e))}catch(n){a(n)}t(r)},this))};ur.prototype.removeItem=function(e){return new G(h.bind(function(t,a){try{this.storage.removeItem(e)}catch(r){a(r)}t()},this))};var tc=Lt("batch"),Ge=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new ur,this.lock=new vl(e,{storage:t.sharedLockStorage||A.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||h.bind(tc.error,tc),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=Jm(h.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=h.bind(function(a){return this._enqueuePersisted([a])},this)};Ge.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?G.resolve():this.queueStorage.init().then(h.bind(function(){this.initialized=!0},this)).catch(h.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))};Ge.prototype.enqueue=function(e,t){var a={id:go(),flushAfter:new Date().getTime()+t*2,payload:e};return this.usePersistence?this.enqueuePersisted(a):(this.memQueue.push(a),G.resolve(!0))};Ge.prototype._enqueuePersisted=function(e){var t=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(a){return this.saveToStorage(a.concat(e))},this)).then(h.bind(function(a){return a&&(this.memQueue=this.memQueue.concat(e)),a},this)).catch(h.bind(function(a){return this.reportError("Error enqueueing items",a,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(h.bind(function(a){return this.reportError("Error acquiring storage lock",a),!1},this))};Ge.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(a){if(a.length){var r={};h.each(t,function(o){r[o.id]=!0});for(var n=0;n<a.length;n++){var i=a[n];if(new Date().getTime()>i.flushAfter&&!r[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}return t},this)):G.resolve(t)};var rc=function(e,t){var a=[];return h.each(e,function(r){r.id&&!t[r.id]&&a.push(r)}),a};Ge.prototype.removeItemsByID=function(e){var t={};if(h.each(e,function(r){t[r]=!0}),this.memQueue=rc(this.memQueue,t),this.usePersistence){var a=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(r){return r=rc(r,t),this.saveToStorage(r)},this)).then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(r){for(var n=0;n<r.length;n++){var i=r[n];if(i.id&&t[i.id])throw new Error("Item not removed from storage")}return!0},this)).catch(h.bind(function(r){return this.reportError("Error removing items",r,e),!1},this))},this);return this.lock.withLock(a,this.pid).catch(h.bind(function(r){return this.reportError("Error acquiring storage lock",r),zr(this.lock.storage,!0)?!1:a().then(h.bind(function(n){return n||this.queueStorage.removeItem(this.storageKey).then(function(){return n})},this)).catch(h.bind(function(n){return this.reportError("Error clearing queue",n),!1},this))},this))}else return G.resolve(!0)};var ic=function(e,t){var a=[];return h.each(e,function(r){var n=r.id;if(n in t){var i=t[n];i!==null&&(r.payload=i,a.push(r))}else a.push(r)}),a};Ge.prototype.updatePayloads=function(e){return this.memQueue=ic(this.memQueue,e),this.usePersistence?this.lock.withLock(h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(a){return a=ic(a,e),this.saveToStorage(a)},this)).catch(h.bind(function(a){return this.reportError("Error updating items",e,a),!1},this))},this),this.pid).catch(h.bind(function(t){return this.reportError("Error acquiring storage lock",t),!1},this)):G.resolve(!0)};Ge.prototype.readFromStorage=function(){return this.ensureInit().then(h.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(h.bind(function(e){return e&&(h.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(h.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))};Ge.prototype.saveToStorage=function(e){return this.ensureInit().then(h.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(h.bind(function(t){return this.reportError("Error saving queue",t),!1},this))};Ge.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(h.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):G.resolve()};var lg=600*1e3,Tr=Lt("batch"),Be=function(e,t){this.errorReporter=t.errorReporter,this.queue=new Ge(e,{errorReporter:h.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};Be.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)};Be.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};Be.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};Be.prototype.clear=function(){return this.queue.clear()};Be.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};Be.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};Be.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))};Be.prototype.sendRequestPromise=function(e,t){return new G(h.bind(function(a){this.sendRequest(e,t,a)},this))};Be.prototype.flush=function(e){if(this.requestInProgress)return Tr.log("Flush: Request already in progress"),G.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,a=new Date().getTime(),r=this.batchSize;return this.queue.fillBatch(r).then(h.bind(function(n){var i=n.length===r,o=[],s={};if(h.each(n,function(d){var f=d.payload;if(this.beforeSendHook&&!d.orphaned&&(f=this.beforeSendHook(f)),f){f.event&&f.properties&&(f.properties=h.extend({},f.properties,{mp_sent_by_lib_version:De.LIB_VERSION}));var p=!0,_=d.id;_?(this.itemIdsSentSuccessfully[_]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:d,batchSize:n.length,timesSent:this.itemIdsSentSuccessfully[_]}),p=!1):this.reportError("[dupe] found item with no ID",{item:d}),p&&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(n,function(d){return d.id})).then(h.bind(function(d){return h.each(n,h.bind(function(f){var p=f.id;p?(this.itemIdsSentSuccessfully[p]=this.itemIdsSentSuccessfully[p]||0,this.itemIdsSentSuccessfully[p]++,this.itemIdsSentSuccessfully[p]>5&&this.reportError("[dupe] item ID sent too many times",{item:f,batchSize:n.length,timesSent:this.itemIdsSentSuccessfully[p]})):this.reportError("[dupe] found item with no ID while removing",{item:f})},this)),d?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?(this.resetFlush(),G.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),G.resolve())},this))},this),u=h.bind(function(d){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(s);if(h.isObject(d)&&d.error==="timeout"&&new Date().getTime()-a>=t)return this.reportError("Network timeout; retrying"),this.flush();if(h.isObject(d)&&(d.httpStatusCode>=500||d.httpStatusCode===429||d.httpStatusCode<=0&&!Xm()||d.error==="timeout")){var f=this.flushInterval*2;return d.retryAfter&&(f=parseInt(d.retryAfter,10)*1e3||f),f=Math.min(lg,f),this.reportError("Error; retry in "+f+" ms"),this.scheduleFlush(f),G.resolve()}else if(h.isObject(d)&&d.httpStatusCode===413)if(n.length>1){var p=Math.max(1,Math.floor(r/2));return this.batchSize=Math.min(this.batchSize,p,n.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",n),this.resetBatchSize(),c();else return c()}catch(_){this.reportError("Error handling API response",_),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),Tr.log("MIXPANEL REQUEST:",o),this.sendRequestPromise(o,l).then(u)},this)).catch(h.bind(function(n){this.reportError("Error flushing request queue",n),this.resetFlush()},this))};Be.prototype.reportError=function(e,t){if(Tr.error.apply(Tr.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(a){Tr.error(a)}};var ko=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},dg=250,Yt=Lt("recorder"),fg=A.CompressionStream,hg={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},pg=new Set([B.MouseMove,B.MouseInteraction,B.Scroll,B.ViewportResize,B.Input,B.TouchMove,B.MediaInteraction,B.Drag,B.Selection]);function _g(e){return e.type===W.IncrementalSnapshot&&pg.has(e.data.source)}var me=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||st,this._onMaxLengthReached=e.onMaxLengthReached||st,this._onBatchSent=e.onBatchSent||st,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Ar,this.recordMinMs=0;var t=zr(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Fe(pl),this.batcher=new Be(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:hg,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:dg,sharedLockTimeoutMS:10*1e3})};me.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var a=this._mixpanel.get_property("$user_id");return a&&(e.$user_id=a),e};me.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))};me.prototype.getConfig=function(e){return this._mixpanel.get_config(e)};me.prototype.get_config=function(e){return this.getConfig(e)};me.prototype.startRecording=function(e){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Yt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Ar&&(this.recordMaxMs=Ar,Yt.critical("record_max_ms cannot be greater than "+Ar+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=h.info.currentUrl(),this.replayStartUrl=h.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var n=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,n),this.idleExpires=new Date().getTime()+n}).bind(this);t();var a=this.getConfig("record_block_selector");(a===""||a===null)&&(a=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(n){if(this.idleExpires&&this.idleExpires<n.timestamp){this._onIdleTimeout();return}_g(n)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(n),(this.lastEventTimestamp===null||n.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=n.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(n){this.reportError("Unexpected error when starting rrweb recording.",n)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var r=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),r)};me.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(a){this.reportError("Error with rrweb stopRecording",a)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t};me.prototype.isRrwebStopped=function(){return this._stopRecording===null};me.prototype.flushEventsWithOptOut=function(e,t,a){var r=(function(n){n===0&&(this.stopRecording(),a({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,a,r)};me.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}};me.deserialize=function(e,t){var a=new me(h.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}));return a};me.prototype._sendRequest=function(e,t,a,r){var n=(function(o,s){o.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),r({status:0,httpStatusCode:o.status,responseBody:s,retryAfter:o.headers.get("Retry-After")})}).bind(this),i=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");A.fetch(i+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:a}).then(function(o){o.json().then(function(s){n(o,s)}).catch(function(s){r({error:s})})}).catch(function(o){r({error:o,httpStatusCode:0})})};me.prototype._flushEvents=gt(function(e,t,a){var r=e.length;if(r>0){for(var n=this.replayId,i=1/0,o=-1/0,s=!1,c=0;c<r;c++)i=Math.min(i,e[c].timestamp),o=Math.max(o,e[c].timestamp),e[c].type===W.FullSnapshot&&(s=!0);if(this.seqNo===0){if(!s){a({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=i}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=i);var u=o-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:De.LIB_VERSION,batch_start_time:i/1e3,mp_lib:"web",replay_id:n,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},d=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Qm(ze,Ze.vendor,br)){var f=new Blob([d],{type:"application/json"}).stream(),p=f.pipeThrough(new fg("gzip"));new Response(p).blob().then((function(_){l.format="gzip",this._sendRequest(n,l,_,a)}).bind(this))}else l.format="body",this._sendRequest(n,l,d,a)}});me.prototype.reportError=function(e,t){Yt.error.apply(Yt.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(a){Yt.error(a)}};me.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime};me.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>qn?(Yt.critical("record_min_ms cannot be greater than "+qn+"ms. Capping value."),qn):e};var et=function(e){this.idb=new Fe(vo),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};et.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")};et.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)};et.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return G.resolve();var t=e.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),G.resolve())};et.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return ko(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):G.resolve(null)};et.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()};et.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))};et.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):G.resolve()};et.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(a){return ko(a)}).map((function(a){var r=me.deserialize(a,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return r.unloadPersistedData().then((function(){return this.idb.removeItem(a.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return G.all(t)}).bind(this)).catch(this.handleError.bind(this)):G.resolve([])};var Rr=Lt("recorder"),tt=function(e,t,a){this.mixpanelInstance=e,this.rrwebRecord=t||_t,this.sharedLockStorage=a,this.recordingRegistry=new et({mixpanelInstance:this.mixpanelInstance,errorReporter:Rr.error,sharedLockStorage:a}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};tt.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Rr.log("Recording already in progress, skipping startRecording.");return}var t=(function(){Rr.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),a=(function(){Rr.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),r=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),n={mixpanelInstance:this.mixpanelInstance,onBatchSent:r,onIdleTimeout:t,onMaxLengthReached:a,replayId:h.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=me.deserialize(e.activeSerializedRecording,n):this.activeRecording=new me(n),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())};tt.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))};tt.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)};tt.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var a=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),a}return G.resolve()};tt.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),G.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Rr.log("No resumable recording found."),null)}).bind(this))};tt.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})};tt.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null};Object.defineProperty(tt.prototype,"replayId",{get:function(){return this.getActiveReplayId()}});A.__mp_recorder=tt;var qr="change",Qe="click",Ba="hashchange",mg="input",nc="load",ot="mp_locationchange",ac="popstate",bn="scrollend",wo="scroll",gg="select",Yi="submit",vg="toggle",oc="visibilitychange",yg=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],sc=["mp-include"],La=["mp-no-track"],cc=La.concat(["mp-sensitive"]),bg=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Cg={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},kg={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},wg={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},uc=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Sg=5,te=Lt("autocapture");function Na(e){for(var t={},a=yl(e).split(" "),r=0;r<a.length;r++){var n=a[r];n&&(t[n]=!0)}return t}function yl(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Ag(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!bl(e));return e}function lc(e,t,a,r,n,i){var o={$classes:yl(e).split(" "),$tag_name:e.tagName.toLowerCase()},s=e.id;s&&(o.$id=s),So(e,t,n,i)&&h.each(bg.concat(r),function(d){if(e.hasAttribute(d)&&!a[d]){var f=e.getAttribute(d);Ki(f)&&(o["$attr-"+d]=f)}});for(var c=1,u=1,l=e;l=Ag(l);)c++,l.tagName===e.tagName&&u++;return o.$nth_child=c,o.$nth_of_type=u,o}function Tg(e,t){var a=t.allowElementCallback,r=t.allowSelectors||[],n=t.blockAttrs||[],i=t.blockElementCallback,o=t.blockSelectors||[],s=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};h.each(n,function(w){l[w]=!0});var d=null,f=typeof e.target>"u"?e.srcElement:e.target;if(Cl(f)&&(f=f.parentNode),Eg(f,e)&&Fa(f,e,a,r)&&!Jn(f,e,i,o)){for(var p=[f],_=f;_.parentNode&&!qe(_,"body");)p.push(_.parentNode),_=_.parentNode;var v=[],m,g=!1;if(h.each(p,function(w){var S=So(w,e,a,r);!l.href&&w.tagName.toLowerCase()==="a"&&(m=w.getAttribute("href"),m=S&&Ki(m)&&m),Jn(w,e,i,o)&&(g=!0),v.push(lc(w,e,l,c,a,r))},this),!g){var y=L.documentElement;if(d={$event_type:e.type,$host:A.location.host,$pathname:A.location.pathname,$elements:v,$el_attr__href:m,$viewportHeight:Math.max(y.clientHeight,A.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,A.innerWidth||0),$pageHeight:L.body.offsetHeight||0,$pageWidth:L.body.offsetWidth||0},h.each(c,function(w){if(!l[w]&&f.hasAttribute(w)){var S=f.getAttribute(w);Ki(S)&&(d["$el_attr__"+w]=S)}}),s&&(b=dc(f,e,a,r),b&&b.length&&(d.$el_text=b)),e.type===Qe&&(h.each(yg,function(w){w in e&&(d["$"+w]=e[w])}),u&&(d.$captured_for_heatmap=!0),f=Rg(e)),s){var b=dc(f,e,a,r);b&&b.length&&(d.$el_text=b)}if(f){if(!Fa(f,e,a,r)||Jn(f,e,i,o))return null;var k=lc(f,e,l,c,a,r);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(e,t,a,r){var n="";return So(e,t,a,r)&&e.childNodes&&e.childNodes.length&&h.each(e.childNodes,function(i){Cl(i)&&i.textContent&&(n+=h.trim(i.textContent).split(/(\s+)/).filter(Ki).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(n)}function Rg(e){for(var t=e.target,a=e.composedPath(),r=0;r<a.length;r++){var n=a[r];if(qe(n,"a")||qe(n,"button")||qe(n,"input")||qe(n,"select")||n.getAttribute&&n.getAttribute("role")==="button"){t=n;break}if(n===t)break}return t}function Fa(e,t,a,r){if(a)try{if(!a(e,t))return!1}catch(o){return te.critical("Error while checking element in allowElementCallback",o),!1}if(!r.length)return!0;for(var n=0;n<r.length;n++){var i=r[n];try{if(e.matches(i))return!0}catch(o){te.critical("Error while checking selector: "+i,o)}}return!1}function Jn(e,t,a,r){var n;if(a)try{if(a(e,t))return!0}catch(s){return te.critical("Error while checking element in blockElementCallback",s),!0}if(r&&r.length)for(n=0;n<r.length;n++){var i=r[n];try{if(e.matches(i))return!0}catch(s){te.critical("Error while checking selector: "+i,s)}}var o=Na(e);for(n=0;n<La.length;n++)if(o[La[n]])return!0;return!1}function bl(e){return e&&e.nodeType===1}function qe(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Cl(e){return e&&e.nodeType===3}function Pg(){try{var e=L.createElement("div");return!!e.matches}catch{return!1}}function Ig(){return typeof WeakSet<"u"}function Eg(e,t){if(!e||qe(e,"html")||!bl(e))return!1;var a=e.tagName.toLowerCase();switch(a){case"form":return t.type===Yi;case"input":return["button","submit"].indexOf(e.getAttribute("type"))===-1?t.type===qr:t.type===Qe;case"select":case"textarea":return t.type===qr;default:return t.type===Qe}}function So(e,t,a,r){var n;if(!Fa(e,t,a,r))return!1;for(var i=e;i.parentNode&&!qe(i,"body");i=i.parentNode){var o=Na(i);for(n=0;n<cc.length;n++)if(o[cc[n]])return!1}var s=Na(e);for(n=0;n<sc.length;n++)if(s[sc[n]])return!0;if(qe(e,"input")||qe(e,"select")||qe(e,"textarea")||e.getAttribute("contenteditable")==="true")return!1;var c=e.type||"";if(typeof c=="string")switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}var u=e.name||e.id||"";if(typeof u=="string"){var l=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(l.test(u.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function Ki(e){if(e===null||h.isUndefined(e))return!1;if(typeof e=="string"){e=h.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var a=/(^\d{3}-?\d{2}-?\d{4}$)/;if(a.test(e))return!1}return!0}function kl(e){var t="onscrollend"in A,a=Vr(e),r=bn;if(!t){var n=null,i=100;a=Vr(function(){clearTimeout(n),n=setTimeout(e,i)}),r=wo}return{listener:a,eventType:r}}function Og(e){for(var t=0;t<uc.length;t++)if(e.hasAttribute(uc[t]))return!0;return!1}function xg(e){var t=e.getAttribute("role");if(!t)return!1;var a=t.trim().split(/\s+/)[0].toLowerCase();return Cg[a]}function Zn(e){var t=e.tagName.toLowerCase();return!!(t==="button"||t==="input"||t==="select"||t==="textarea"||t==="details"||t==="dialog"||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||Og(e)||xg(e)||t==="a"&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function wl(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(kg[t])return!0;if(Zn(e))return!1;for(var a=e.parentElement,r=0;a&&r<Sg;){if(Zn(a))return!1;if(a.getRootNode&&a.getRootNode()!==L){var n=a.getRootNode();if(n.host&&Zn(n.host))return!1}a=a.parentElement,r++}return!!wg[t]}function Sl(e){return"composedPath"in e?e.composedPath():[]}function Al(e){var t=Sl(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var Mg=30,Dg=1e3,Bg=4,Lg=!1;function Tl(){this.clicks=[]}Tl.prototype.isRageClick=function(e,t){t=t||{};var a=t.threshold_px||Mg,r=t.timeout_ms||Dg,n=t.click_count||Bg,i=t.interactive_elements_only||Lg;if(i){var o=Al(e);if(!o||wl(o))return!1}var s=Date.now(),c=e.pageX,u=e.pageY,l=this.clicks[this.clicks.length-1];if(l&&s-l.timestamp<r&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<a){if(this.clicks.push({x:c,y:u,timestamp:s}),this.clicks.length>=n)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:s}];return!1};function lr(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}lr.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Al(e)};lr.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=Sl(e),a=0;a<t.length;a++){var r=t[a];r&&r.shadowRoot&&this.observeShadowRoot(r.shadowRoot)}};lr.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var a=new window.MutationObserver(function(){t.changeCallback()});a.observe(e,this.observerConfig),this.shadowObservers.push(a)}catch(r){te.critical("Error while observing shadow root",r)}}};lr.prototype.start=function(){if(!this.observedShadowRoots){if(!Ig()){te.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}};lr.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(t){te.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var Ng=500,Fg=[qr,mg,Yi,gg,vg],$g=[bn],Ug=[Ba],fc={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function je(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}je.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!t||wl(t)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)};je.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var a=this.addClick(e);return a&&this.triggerProcessing(t),a};je.prototype.getDeadClicks=function(e){if(this.pendingClicks.length===0)return[];var t=e.timeout_ms,a=Date.now(),r=this.pendingClicks.slice();this.pendingClicks=[];for(var n=[],i=0;i<r.length;i++){var o=r[i];a-o.timestamp>=t?this.hasChangesAfter(o.timestamp)||n.push(o):this.pendingClicks.push(o)}return n};je.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100};je.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()};je.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))};je.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,a=this;this.processingTimeout=setTimeout(function(){if(a.processingActive){for(var r=a.getDeadClicks(e),n=0;n<r.length;n++)a.onDeadClickCallback(r[n].event);a.pendingClicks.length>0?a.processRecursively(e):a.processingActive=!1}},t)};je.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Fg.forEach(function(a){var r=function(){e.recordChangeEvent()};document.addEventListener(a,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:a,handler:r,options:{capture:!0,passive:!0}})}),Ug.forEach(function(a){var r=function(){e.recordChangeEvent()};window.addEventListener(a,r),e.eventListeners.push({target:window,event:a,handler:r})}),$g.forEach(function(a){var r=function(){e.recordChangeEvent()};window.addEventListener(a,r,{passive:!0}),e.eventListeners.push({target:window,event:a,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,fc)}catch(a){te.critical("Error while setting up mutation observer",a)}if(window.customElements)try{this.shadowDOMObserver=new lr(function(){e.recordChangeEvent()},fc),this.shadowDOMObserver.start()}catch(a){te.critical("Error while setting up shadow DOM observer",a),this.shadowDOMObserver=null}}};je.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(a){te.critical("Error while removing event listener",a)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(a){te.critical("Error while disconnecting mutation observer",a)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(a){te.critical("Error while stopping shadow DOM observer",a)}this.shadowDOMObserver=null}}};var Rl="autocapture",Vg="track_pageview",Pl="full-url",zg="url-with-path-and-query-string",qg="url-with-path",Wg="allow_element_callback",Il="allow_selectors",El="allow_url_regexes",Ol="block_attrs",xl="block_element_callback",Ml="block_selectors",Dl="block_url_regexes",Bl="capture_extra_attrs",Ll="capture_text_content",Nl="scroll_capture_all",Fl="scroll_depth_percent_checkpoints",Xi="click",Qi="dead_click",$a="input",$l="pageview",en="rage_click",Ua="scroll",Cn="page_leave",Va="submit",pe={};pe[Il]=[];pe[El]=[];pe[Ol]=[];pe[xl]=null;pe[Ml]=[];pe[Dl]=[];pe[Bl]=[];pe[Ll]=!1;pe[Nl]=!1;pe[Fl]=[25,50,75,100];pe[Xi]=!0;pe[Qi]=!0;pe[$a]=!0;pe[$l]=Pl;pe[en]=!0;pe[Ua]=!0;pe[Cn]=!1;pe[Va]=!0;var Wr={$mp_autocapture:!0},Ul="$mp_click",Vl="$mp_dead_click",Gg="$mp_input_change",zl="$mp_rage_click",jg="$mp_scroll",Hg="$mp_submit",Jg="$mp_page_leave",fe=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};fe.prototype.init=function(){if(!Pg()){te.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()};fe.prototype.getFullConfig=function(){var e=this.mp.get_config(Rl);return e?h.isObject(e)?h.extend({},pe,e):pe:{}};fe.prototype.getConfig=function(e){return this.getFullConfig()[e]};fe.prototype.currentUrlBlocked=function(){var e,t=h.info.currentUrl(),a=this.getConfig(El)||[];if(a.length){var r=!1;for(e=0;e<a.length;e++){var n=a[e];try{if(t.match(n)){r=!0;break}}catch(o){return te.critical("Error while checking block URL regex: "+n,o),!0}}if(!r)return!0}var i=this.getConfig(Dl)||[];if(!i||!i.length)return!1;for(e=0;e<i.length;e++)try{if(t.match(i[e]))return!0}catch(o){return te.critical("Error while checking block URL regex: "+i[e],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(e,t){if(!this.currentUrlBlocked()){var a=this.mp.is_recording_heatmap_data()&&(t===Ul&&!this.getConfig(Xi)||t===zl&&!this._getClickTrackingConfig(en)||t===Vl&&!this._getClickTrackingConfig(Qi)),r=Tg(e,{allowElementCallback:this.getConfig(Wg),allowSelectors:this.getConfig(Il),blockAttrs:this.getConfig(Ol),blockElementCallback:this.getConfig(xl),blockSelectors:this.getConfig(Ml),captureExtraAttrs:this.getConfig(Bl),captureTextContent:this.getConfig(Ll),capturedForHeatMap:a});r&&(h.extend(r,Wr),this.mp.track(t,r))}};fe.prototype.initPageListeners=function(){if(A.removeEventListener(ac,this.listenerPopstate),A.removeEventListener(Ba,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(Cn)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){A.dispatchEvent(new Event(ot))},this.listenerHashchange=function(){A.dispatchEvent(new Event(ot))},A.addEventListener(ac,this.listenerPopstate),A.addEventListener(Ba,this.listenerHashchange);var e=A.history.pushState;typeof e=="function"&&(A.history.pushState=function(a,r,n){e.call(A.history,a,r,n),A.dispatchEvent(new Event(ot))});var t=A.history.replaceState;typeof t=="function"&&(A.history.replaceState=function(a,r,n){t.call(A.history,a,r,n),A.dispatchEvent(new Event(ot))})}};fe.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?t===!0?{}:typeof t=="object"?t:{}:null};fe.prototype._trackPageLeave=function(e,t,a){if(!this.hasTrackedScrollSession&&!(!this.getConfig(Cn)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var r=Math.max(L.documentElement.clientHeight,A.innerHeight||0),n=Math.round(Math.max(this.maxScrollViewDepth-r,0)/(a-r)*100),i=Math.round(r/a*100);a<=r&&(n=100,i=100);var o=h.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:n,$fold_line_percentage:i,$scroll_height:a,$event_type:e.type,$current_url:t||h.info.currentUrl(),$viewportHeight:r,$viewportWidth:Math.max(L.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(L.documentElement.clientHeight,A.innerHeight||0);var e=(function(){if(!this.currentUrlBlocked()){var a=Math.max(L.documentElement.clientHeight,A.innerHeight||0)+A.scrollY;a>this.maxScrollViewDepth&&(this.maxScrollViewDepth=a),this.previousScrollHeight=L.body.scrollHeight}}).bind(this),t=kl(e);this.listenerScrollDepth=t.listener,A.addEventListener(t.eventType,this.listenerScrollDepth)}};fe.prototype.initClickTracking=function(){A.removeEventListener(Qe,this.listenerClick),!(!this.getConfig(Xi)&&!this.mp.get_config("record_heatmap_data"))&&(te.log("Initializing click tracking"),this.listenerClick=(function(e){!this.getConfig(Xi)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(e,Ul)}).bind(this),A.addEventListener(Qe,this.listenerClick))};fe.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(Qi);if(!e&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}te.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new je((function(t){this.trackDomEvent(t,Vl)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(t){var a=this._getClickTrackingConfig(Qi);if(!(!a&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=a||{};r.timeout_ms||(r.timeout_ms=Ng),this._deadClickTracker.trackClick(t,r)}}).bind(this),A.addEventListener(Qe,this.listenerDeadClick))};fe.prototype.initInputTracking=function(){A.removeEventListener(qr,this.listenerChange),this.getConfig($a)&&(te.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig($a)&&this.trackDomEvent(e,Gg)}).bind(this),A.addEventListener(qr,this.listenerChange))};fe.prototype.initPageviewTracking=function(){if(A.removeEventListener(ot,this.listenerLocationchange),!!this.pageviewTrackingConfig()){te.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(Wr)),t&&(e=h.info.currentUrl()),this.listenerLocationchange=Vr((function(){if(!this.currentUrlBlocked()){var a=h.info.currentUrl(),r=!1,n=a.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===Pl?r=a!==e:i===zg?r=a.split("#")[0]!==e.split("#")[0]:i===qg&&(r=n),r){var o=this.mp.track_pageview(Wr);o&&(e=a),n&&(this.lastScrollCheckpoint=0,te.log("Path change: re-initializing scroll depth checkpoints"))}}}).bind(this)),A.addEventListener(ot,this.listenerLocationchange)}};fe.prototype.initRageClickTracking=function(){A.removeEventListener(Qe,this.listenerRageClick);var e=this._getClickTrackingConfig(en);!e&&!this.mp.get_config("record_heatmap_data")||(te.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Tl),this.listenerRageClick=(function(t){var a=this._getClickTrackingConfig(en);!a&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(t,a)&&this.trackDomEvent(t,zl)}).bind(this),A.addEventListener(Qe,this.listenerRageClick))};fe.prototype.initScrollTracking=function(){if(A.removeEventListener(bn,this.listenerScroll),A.removeEventListener(wo,this.listenerScroll),!!this.getConfig(Ua)){te.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(Ua)&&!this.currentUrlBlocked()){var a=this.getConfig(Nl),r=(this.getConfig(Fl)||[]).slice().sort(function(l,d){return l-d}),n=A.scrollY,i=h.extend({$scroll_top:n},Wr);try{var o=L.body.scrollHeight,s=Math.round(n/(o-A.innerHeight)*100);if(i.$scroll_height=o,i.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var c=0;c<r.length;c++){var u=r[c];s>=u&&this.lastScrollCheckpoint<u&&(i.$scroll_checkpoint=u,this.lastScrollCheckpoint=u,a=!0)}}catch(l){te.critical("Error while calculating scroll percentage",l)}a&&this.mp.track(jg,i)}}).bind(this),t=kl(e);this.listenerScroll=t.listener,A.addEventListener(t.eventType,this.listenerScroll)}};fe.prototype.initSubmitTracking=function(){A.removeEventListener(Yi,this.listenerSubmit),this.getConfig(Va)&&(te.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(Va)&&this.trackDomEvent(e,Hg)}).bind(this),A.addEventListener(Yi,this.listenerSubmit))};fe.prototype.initPageLeaveTracking=function(){if(L.removeEventListener(oc,this.listenerPageLeaveVisibilitychange),A.removeEventListener(ot,this.listenerPageLeaveLocationchange),A.removeEventListener(nc,this.listenerPageLoad),!(!this.getConfig(Cn)&&!this.mp.get_config("record_heatmap_data"))){te.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=h.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=L.body.scrollHeight}).bind(this),A.addEventListener(nc,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Vr((function(t){if(!this.currentUrlBlocked()){var a=h.info.currentUrl(),r=a!==e;r&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=a,this.maxScrollViewDepth=Math.max(L.documentElement.clientHeight,A.innerHeight||0),this.previousScrollHeight=L.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),A.addEventListener(ot,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){L.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),L.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 Te=Lt("flags"),tn="flags",rn="context",za={};za[rn]={};var z=function(e){this.fetch=A.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};z.prototype.init=function(){if(!this.minApisSupported()){Te.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set};z.prototype.getFullConfig=function(){var e=this.getMpConfig(tn);return e?h.isObject(e)?h.extend({},za,e):za:{}};z.prototype.getConfig=function(e){return this.getFullConfig()[e]};z.prototype.isSystemEnabled=function(){return!!this.getMpConfig(tn)};z.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Te.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var a=this.getMpConfig(tn);h.isObject(a)||(a={});var r=t&&t.replace?{}:this.getConfig(rn);return a[rn]=h.extend({},r,e),this.setMpConfig(tn,a),this.fetchFlags()};z.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Te.error("Feature Flags not enabled"),!!this.flags};z.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),a=Zm();Te.log("Fetching flags for distinct ID: "+e);var r=h.extend({distinct_id:e,device_id:t},this.getConfig(rn)),n=new URLSearchParams;n.set("context",JSON.stringify(r)),n.set("token",this.getMpConfig("token")),n.set("mp_lib","web"),n.set("$lib_version",De.LIB_VERSION);var i=this.getFullApiRoute()+"?"+n.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(A,i,{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(),Te.error(s)}).bind(this))}).bind(this)).catch((function(o){this.markFetchComplete(),Te.error(o)}).bind(this)),this.fetchPromise};z.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){Te.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null};z.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(a){return Te.error(a),t}):new Promise(function(a){Te.critical("Feature Flags not initialized"),a(t)})};z.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return Te.log("Flags not loaded yet"),t;var a=this.flags.get(e);return a?(this.trackFeatureCheck(e,a),a):(Te.log('No flag found: "'+e+'"'),t)};z.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(a){return a.value}).catch(function(a){return Te.error(a),t})};z.prototype.getFeatureData=function(e,t){return Te.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)};z.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value};z.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(a){return Te.error(a),t})};z.prototype.isEnabledSync=function(e,t){t=t||!1;var a=this.getVariantValueSync(e,t);return a!==!0&&a!==!1&&(Te.error('Feature flag "'+e+'" value: '+a+" is not a boolean; returning fallback value: "+t),a=t),a};z.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var a={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};t.experiment_id!=="undefined"&&(a.$experiment_id=t.experiment_id),t.is_experiment_active!=="undefined"&&(a.$is_experiment_active=t.is_experiment_active),t.is_qa_tester!=="undefined"&&(a.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",a)}};z.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise<"u"&&typeof Map<"u"&&typeof Set<"u"};dl(z);z.prototype.are_flags_ready=z.prototype.areFlagsReady;z.prototype.get_variant=z.prototype.getVariant;z.prototype.get_variant_sync=z.prototype.getVariantSync;z.prototype.get_variant_value=z.prototype.getVariantValue;z.prototype.get_variant_value_sync=z.prototype.getVariantValueSync;z.prototype.is_enabled=z.prototype.isEnabled;z.prototype.is_enabled_sync=z.prototype.isEnabledSync;z.prototype.update_context=z.prototype.updateContext;z.prototype.get_feature_data=z.prototype.getFeatureData;var rt=function(){};rt.prototype.create_properties=function(){};rt.prototype.event_handler=function(){};rt.prototype.after_track_handler=function(){};rt.prototype.init=function(e){return this.mp=e,this};rt.prototype.track=function(e,t,a,r){var n=this,i=h.dom_query(e);if(i.length===0){V.error("The DOM query ("+e+") returned 0 elements");return}return h.each(i,function(o){h.register_event(o,this.override_event,function(s){var c={},u=n.create_properties(a,this),l=n.mp.get_config("track_links_timeout");n.event_handler(s,this,c),window.setTimeout(n.track_callback(r,u,c,!0),l),n.mp.track(t,u,n.track_callback(r,u,c))})},this),!0};rt.prototype.track_callback=function(e,t,a,r){r=r||!1;var n=this;return function(){a.callback_fired||(a.callback_fired=!0,!(e&&e(r,t)===!1)&&n.after_track_handler(t,a,r))}};rt.prototype.create_properties=function(e,t){var a;return typeof e=="function"?a=e(t):a=h.extend({},e),a};var or=function(){this.override_event="click"};h.inherit(or,rt);or.prototype.create_properties=function(e,t){var a=or.superclass.create_properties.apply(this,arguments);return t.href&&(a.url=t.href),a};or.prototype.event_handler=function(e,t,a){a.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",a.href=t.href,a.new_tab||e.preventDefault()};or.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var kn=function(){this.override_event="submit"};h.inherit(kn,rt);kn.prototype.event_handler=function(e,t,a){a.element=t,e.preventDefault()};kn.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var lt="$set",sr="$set_once",Ne="$unset",Ot="$add",We="$append",xt="$union",Ye="$remove",Zg="$delete",ql={set_action:function(e,t){var a={},r={};return h.isObject(e)?h.each(e,function(n,i){this._is_reserved_property(i)||(r[i]=n)},this):r[e]=t,a[lt]=r,a},unset_action:function(e){var t={},a=[];return h.isArray(e)||(e=[e]),h.each(e,function(r){this._is_reserved_property(r)||a.push(r)},this),t[Ne]=a,t},set_once_action:function(e,t){var a={},r={};return h.isObject(e)?h.each(e,function(n,i){this._is_reserved_property(i)||(r[i]=n)},this):r[e]=t,a[sr]=r,a},union_action:function(e,t){var a={},r={};return h.isObject(e)?h.each(e,function(n,i){this._is_reserved_property(i)||(r[i]=h.isArray(n)?n:[n])},this):r[e]=h.isArray(t)?t:[t],a[xt]=r,a},append_action:function(e,t){var a={},r={};return h.isObject(e)?h.each(e,function(n,i){this._is_reserved_property(i)||(r[i]=n)},this):r[e]=t,a[We]=r,a},remove_action:function(e,t){var a={},r={};return h.isObject(e)?h.each(e,function(n,i){this._is_reserved_property(i)||(r[i]=n)},this):r[e]=t,a[Ye]=r,a},delete_action:function(){var e={};return e[Zg]="",e}},ne=function(){};h.extend(ne.prototype,ql);ne.prototype._init=function(e,t,a){this._mixpanel=e,this._group_key=t,this._group_id=a};ne.prototype.set=cr(function(e,t,a){var r=this.set_action(e,t);return h.isObject(e)&&(a=t),this._send_request(r,a)});ne.prototype.set_once=cr(function(e,t,a){var r=this.set_once_action(e,t);return h.isObject(e)&&(a=t),this._send_request(r,a)});ne.prototype.unset=cr(function(e,t){var a=this.unset_action(e);return this._send_request(a,t)});ne.prototype.union=cr(function(e,t,a){h.isObject(e)&&(a=t);var r=this.union_action(e,t);return this._send_request(r,a)});ne.prototype.delete=cr(function(e){var t=this.delete_action();return this._send_request(t,e)});ne.prototype.remove=cr(function(e,t,a){var r=this.remove_action(e,t);return this._send_request(r,a)});ne.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var a=h.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:a,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)};ne.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};ne.prototype._get_config=function(e){return this._mixpanel.get_config(e)};ne.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};ne.prototype.remove=ne.prototype.remove;ne.prototype.set=ne.prototype.set;ne.prototype.set_once=ne.prototype.set_once;ne.prototype.union=ne.prototype.union;ne.prototype.unset=ne.prototype.unset;ne.prototype.toString=ne.prototype.toString;var N=function(){};h.extend(N.prototype,ql);N.prototype._init=function(e){this._mixpanel=e};N.prototype.set=vt(function(e,t,a){var r=this.set_action(e,t);return h.isObject(e)&&(a=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[lt]=h.extend({},h.info.people_properties(),r[lt]),this._send_request(r,a)});N.prototype.set_once=vt(function(e,t,a){var r=this.set_once_action(e,t);return h.isObject(e)&&(a=t),this._send_request(r,a)});N.prototype.unset=vt(function(e,t){var a=this.unset_action(e);return this._send_request(a,t)});N.prototype.increment=vt(function(e,t,a){var r={},n={};return h.isObject(e)?(h.each(e,function(i,o){if(!this._is_reserved_property(o))if(isNaN(parseFloat(i))){V.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else n[o]=i},this),a=t):(h.isUndefined(t)&&(t=1),n[e]=t),r[Ot]=n,this._send_request(r,a)});N.prototype.append=vt(function(e,t,a){h.isObject(e)&&(a=t);var r=this.append_action(e,t);return this._send_request(r,a)});N.prototype.remove=vt(function(e,t,a){h.isObject(e)&&(a=t);var r=this.remove_action(e,t);return this._send_request(r,a)});N.prototype.union=vt(function(e,t,a){h.isObject(e)&&(a=t);var r=this.union_action(e,t);return this._send_request(r,a)});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(e){return this.set("$transactions",[],e)};N.prototype.delete_user=function(){if(!this._identify_called()){V.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)};N.prototype.toString=function(){return this._mixpanel.toString()+".people"};N.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var a=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),n=this._mixpanel.get_property("$had_persisted_distinct_id");a&&(e.$device_id=a),r&&(e.$user_id=r),n&&(e.$had_persisted_distinct_id=n);var i=h.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),h.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),h.truncate(i,255))};N.prototype._get_config=function(e){return this._mixpanel.get_config(e)};N.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};N.prototype._enqueue=function(e){lt in e?this._mixpanel.persistence._add_to_people_queue(lt,e):sr in e?this._mixpanel.persistence._add_to_people_queue(sr,e):Ne in e?this._mixpanel.persistence._add_to_people_queue(Ne,e):Ot in e?this._mixpanel.persistence._add_to_people_queue(Ot,e):We in e?this._mixpanel.persistence._add_to_people_queue(We,e):Ye in e?this._mixpanel.persistence._add_to_people_queue(Ye,e):xt in e?this._mixpanel.persistence._add_to_people_queue(xt,e):V.error("Invalid call to _enqueue():",e)};N.prototype._flush_one_queue=function(e,t,a,r){var n=this,i=h.extend({},this._mixpanel.persistence.load_queue(e)),o=i;!h.isUndefined(i)&&h.isObject(i)&&!h.isEmptyObject(i)&&(n._mixpanel.persistence._pop_from_people_queue(e,i),n._mixpanel.persistence.save(),r&&(o=r(i)),t.call(n,o,function(s,c){s===0&&n._mixpanel.persistence._add_to_people_queue(e,i),h.isUndefined(a)||a(s,c)}))};N.prototype._flush=function(e,t,a,r,n,i,o){var s=this;this._flush_one_queue(lt,this.set,e),this._flush_one_queue(sr,this.set_once,r),this._flush_one_queue(Ne,this.unset,i,function(m){return h.keys(m)}),this._flush_one_queue(Ot,this.increment,t),this._flush_one_queue(xt,this.union,n);var c=this._mixpanel.persistence.load_queue(We);if(!h.isUndefined(c)&&h.isArray(c)&&c.length)for(var u,l=function(m,g){m===0&&s._mixpanel.persistence._add_to_people_queue(We,u),h.isUndefined(a)||a(m,g)},d=c.length-1;d>=0;d--)c=this._mixpanel.persistence.load_queue(We),u=c.pop(),s._mixpanel.persistence.save(),h.isEmptyObject(u)||s.append(u,l);var f=this._mixpanel.persistence.load_queue(Ye);if(!h.isUndefined(f)&&h.isArray(f)&&f.length)for(var p,_=function(m,g){m===0&&s._mixpanel.persistence._add_to_people_queue(Ye,p),h.isUndefined(o)||o(m,g)},v=f.length-1;v>=0;v--)f=this._mixpanel.persistence.load_queue(Ye),p=f.pop(),s._mixpanel.persistence.save(),h.isEmptyObject(p)||s.remove(p,_)};N.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$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(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&&t!=="localStorage"&&(V.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&&h.localStorage.is_supported()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};U.prototype.properties=function(){var e={};return this.load(),h.each(this.props,function(t,a){h.include(Yg,a)||(e[a]=t)}),e};U.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=h.extend({},e))}};U.prototype.upgrade=function(){var e,t;this.storage===h.localStorage?(e=h.cookie.parse(this.name),h.cookie.remove(this.name),h.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===h.cookie&&(t=h.localStorage.parse(this.name),h.localStorage.remove(this.name),t&&this.register_once(t))};U.prototype.save=function(){this.disabled||this.storage.set(this.name,ar(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};U.prototype.load_prop=function(e){return this.load(),this.props[e]};U.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};U.prototype.clear=function(){this.remove(),this.props={}};U.prototype.register_once=function(e,t,a){return h.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof a>"u"?this.default_expiry:a,this.load(),h.each(e,function(r,n){(!this.props.hasOwnProperty(n)||this.props[n]===t)&&(this.props[n]=r)},this),this.save(),!0):!1};U.prototype.register=function(e,t){return h.isObject(e)?(this.expire_days=typeof t>"u"?this.default_expiry:t,this.load(),h.extend(this.props,e),this.save(),!0):!1};U.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())};U.prototype.update_search_keyword=function(e){this.register(h.info.searchInfo(e))};U.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:h.info.referringDomain(e)||"$direct"},"")};U.prototype.get_referrer_info=function(){return h.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};U.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)};U.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()};U.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())};U.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())};U.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())};U.prototype.get_cross_subdomain=function(){return this.cross_subdomain};U.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())};U.prototype._add_to_people_queue=function(e,t){var a=this._get_queue_key(e),r=t[e],n=this._get_or_create_queue(lt),i=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(n,r),this._pop_from_people_queue(Ot,r),this._pop_from_people_queue(xt,r),this._pop_from_people_queue(Ne,r)):a===To?(h.each(r,function(d,f){f in i||(i[f]=d)}),this._pop_from_people_queue(Ne,r)):a===Ro?h.each(r,function(d){h.each([n,i,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(r,function(d,f){f in n?n[f]+=d:(f in s||(s[f]=0),s[f]+=d)},this),this._pop_from_people_queue(Ne,r)):a===Oo?(h.each(r,function(d,f){h.isArray(d)&&(f in c||(c[f]=[]),h.each(d,function(p){h.include(c[f],p)||c[f].push(p)}))}),this._pop_from_people_queue(Ne,r)):a===Eo?(u.push(r),this._pop_from_people_queue(We,r)):a===Io&&(l.push(r),this._pop_from_people_queue(Ne,r)),V.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),V.log(t),this.save()};U.prototype._pop_from_people_queue=function(e,t){var a=this.props[this._get_queue_key(e)];h.isUndefined(a)||h.each(t,function(r,n){e===We||e===Ye?h.each(a,function(i){i[n]===r&&delete i[n]}):delete a[n]},this)};U.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))};U.prototype._get_queue_key=function(e){if(e===lt)return Ao;if(e===sr)return To;if(e===Ne)return Ro;if(e===Ot)return Po;if(e===We)return Io;if(e===Ye)return Eo;if(e===xt)return Oo;V.error("Invalid queue:",e)};U.prototype._get_or_create_queue=function(e,t){var a=this._get_queue_key(e);return t=h.isUndefined(t)?{}:t,this.props[a]||(this.props[a]=t)};U.prototype.set_event_timer=function(e,t){var a=this.load_prop(Gr)||{};a[e]=t,this.props[Gr]=a,this.save()};U.prototype.remove_event_timer=function(e){var t=this.load_prop(Gr)||{},a=t[e];return h.isUndefined(a)||(delete this.props[Gr][e],this.save()),a};var an,Gl=function(e,t){throw new Error(e+" not available in this build.")},be,qa=0,Kg=1,Me="mixpanel",jl="base64",Xg="json",xo="$device:",Kt=A.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Hl=!Kt&&ze.indexOf("MSIE")===-1&&ze.indexOf("Mozilla")===-1,on=null;Ze.sendBeacon&&(on=function(){return Ze.sendBeacon.apply(Ze,arguments)});var Jl={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},hc={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Jl,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:jl,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:st,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:st,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:1800*1e3,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Ar,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Zl=!1,C=function(){},Wa=function(e,t,a){var r,n=a===Me?be:be[a];if(n&&an===qa)r=n;else{if(n&&!h.isArray(n)){V.error("You have already initialized "+a);return}r=new C}if(r._cached_groups={},r._init(e,t,a),r.people=new N,r.people._init(r),!r.get_config("skip_first_touch_marketing")){var i=h.info.campaignParams(null),o={},s=!1;h.each(i,function(u,l){o["initial_"+l]=u,u&&(s=!0)}),s&&r.people.set_once(o)}De.DEBUG=De.DEBUG||r.get_config("debug");var c=an===qa?"module":"snippet";return A.dispatchEvent(new A.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:r,source:c,token:e,name:a,info:h.info}})),!h.isUndefined(n)&&h.isArray(n)&&(r._execute_array.call(r.people,n.people),r._execute_array(n)),r};C.prototype.init=function(e,t,a){if(h.isUndefined(a)){this.report_error("You must name your new library: init(token, config, name)");return}if(a===Me){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var r=Wa(e,t,a);return be[a]=r,r._loaded(),r};C.prototype._init=function(e,t,a){t=t||{},this.__loaded=!0,this.config={};var r={};if(!("api_payload_format"in t)){var n=t.api_host||hc.api_host;n.match(/\.mixpanel\.com/)&&(r.api_payload_format=Xg)}if(this.hooks={},this.set_config(h.extend({},hc,r,t,{name:a,token:e,callback_fn:(a===Me?a:Me+"."+a)+"._jsc"})),this._jsc=st,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!h.localStorage.is_supported(!0)||!Kt)this._batch_requests=!1,V.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(s){V.log("Clearing batch queue "+s.queue_key),h.localStorage.remove(s.queue_key)});else if(this.init_batchers(),on&&A.addEventListener){var i=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);A.addEventListener("pagehide",function(s){s.persisted&&i()}),A.addEventListener("visibilitychange",function(){L.visibilityState==="hidden"&&i()})}}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 e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,a="mp_gen_new_tab_id_"+e;(h.sessionStorage.get(a)||!h.sessionStorage.get(t))&&h.sessionStorage.set(t,"$tab-"+h.UUID()),h.sessionStorage.set(a,"1"),this.tab_id=h.sessionStorage.get(t),A.addEventListener("beforeunload",function(){h.sessionStorage.remove(a)})}catch(r){this.report_error("Error initializing tab id",r)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")};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 e=new Fe(vo),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(a){for(var r=0;r<a.length;r++)if(ko(a[r])||a[r].tabId===t)return!0;return!1}).catch(h.bind(function(a){this.report_error("Error checking recording registry",a)},this))};C.prototype._check_and_start_session_recording=gt(function(e){if(!A.MutationObserver){V.critical("Browser does not support MutationObserver; skipping session recording");return}var t=h.bind(function(r){var n=h.bind(function(){this._recorder=this._recorder||new A.__mp_recorder(this),this._recorder.resumeRecording(r)},this);h.isUndefined(A.__mp_recorder)?Gl(this.get_config("recorder_src"),n):n()},this),a=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");e||a?t(!0):this._should_load_recorder().then(function(r){r&&t(!1)})});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 e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e};C.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();if(t){var a=h.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")});e="https://mixpanel.com/projects/replay-redirect?"+a}return e};C.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||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 e=h.info.campaignParams(null);h.each(e,(function(t,a){this.unregister(a)}).bind(this))}};C.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(L.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(L.referrer)};C.prototype._dom_loaded=function(){h.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||h.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue};C.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Zl)return this.__dom_loaded_queue.push([e,t]),!1;var a=new e().init(this);return a.track.apply(a,t)};C.prototype._prepare_callback=function(e,t){if(h.isUndefined(e))return null;if(Kt){var a=function(o){e(o,t)};return a}else{var r=this._jsc,n=""+Math.floor(Math.random()*1e8),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(o){delete r[n],e(o,t)},i}};C.prototype._send_request=function(e,t,a,r){var n=!0;if(Hl)return this.__request_queue.push(arguments),n;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},o=null;!r&&(h.isFunction(a)||typeof a=="string")&&(r=a,a=null),a=h.extend(i,a||{}),Kt||(a.method="GET");var s=a.method==="POST",c=on&&s&&a.transport.toLowerCase()==="sendbeacon",u=a.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),Kt||(r?t.callback=r:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),s&&(o="data="+encodeURIComponent(t.data),delete t.data),h.extend(t,this.get_config("api_extra_query_params")),e+="?"+h.HTTPBuildQuery(t);var l=this;if("img"in t){var d=L.createElement("img");d.src=e,L.body.appendChild(d)}else if(c){try{n=on(e,o)}catch(g){l.report_error(g),n=!1}try{r&&r(n?1:0)}catch(g){l.report_error(g)}}else if(Kt)try{var f=new XMLHttpRequest;f.open(a.method,e,!0);var p=this.get_config("xhr_headers");if(s&&(p["Content-Type"]="application/x-www-form-urlencoded"),h.each(p,function(g,y){f.setRequestHeader(y,g)}),a.timeout_ms&&typeof f.timeout<"u"){f.timeout=a.timeout_ms;var _=new Date().getTime()}f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState===4)if(f.status===200){if(r)if(u){var g;try{g=h.JSONDecode(f.responseText)}catch(k){if(l.report_error(k),a.ignore_json_errors)g=f.responseText;else return}r(g)}else r(Number(f.responseText))}else{var y;if(f.timeout&&!f.status&&new Date().getTime()-_>=f.timeout?y="timeout":y="Bad HTTP status: "+f.status+" "+f.statusText,l.report_error(y),r)if(u){var b=f.responseHeaders||{};r({status:0,httpStatusCode:f.status,error:y,retryAfter:b["Retry-After"]})}else r(0)}},f.send(o)}catch(g){l.report_error(g),n=!1}else{var v=L.createElement("script");v.type="text/javascript",v.async=!0,v.defer=!0,v.src=e;var m=L.getElementsByTagName("script")[0];m.parentNode.insertBefore(v,m)}return n};C.prototype._execute_array=function(e){var t,a=[],r=[],n=[];h.each(e,function(o){o&&(t=o[0],h.isArray(t)?n.push(o):typeof o=="function"?o.call(this):h.isArray(o)&&t==="alias"?a.push(o):h.isArray(o)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?n.push(o):r.push(o))},this);var i=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)};i(a,this),i(r,this),i(n,this)};C.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};C.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs};C.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=h.bind(function(a){return new Be(a.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(r,n,i){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(r),n,this._prepare_callback(i,r))},this),beforeSendHook:h.bind(function(r){var n=this._run_hook("before_send_"+a.type,r);return n?n[0]:null},this),stopAllBatchingFunc:h.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()};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(e){e.start()}))};C.prototype.stop_batch_senders=function(){this._batch_requests=!1,h.each(this.request_batchers,function(e){e.stop(),e.clear()})};C.prototype.push=function(e){this._execute_array([e])};C.prototype.disable=function(e){typeof e>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)};C.prototype._encode_data_for_request=function(e){var t=ar(e);return this.get_config("api_payload_format")===jl&&(t=h.base64Encode(t)),{data:t}};C.prototype._track_or_batch=function(e,t){var a=h.truncate(e.data,255),r=e.endpoint,n=e.batcher,i=e.should_send_immediately,o=e.send_request_options||{};t=t||st;var s=!0,c=h.bind(function(){return o.skip_hooks||(a=this._run_hook("before_send_"+e.type,a),a&&(a=a[0])),a?(V.log("MIXPANEL REQUEST:"),V.log(a),this._send_request(r,this._encode_data_for_request(a),o,this._prepare_callback(t,a))):null},this);return this._batch_requests&&!i?n.enqueue(a).then(function(u){u?t(1,a):c()}):s=c(),s&&a};C.prototype.track=gt(function(e,t,a,r){var n;if(!(a&&a.skip_hooks)){if(n=this._run_hook("before_track",e,t),n===null)return;e=n[0],t=n[1]}!r&&typeof a=="function"&&(r=a,a=null),a=a||{};var i=a.transport;i&&(a.transport=i);var o=a.send_immediately;if(typeof r!="function"&&(r=st),h.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){r(0);return}t=h.extend({},t),t.token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!h.isUndefined(s)){var c=new Date().getTime()-s;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?h.info.marketingParams():{};t=h.extend({},h.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");h.isArray(l)?h.each(l,function(f){delete t[f]}):this.report_error("Invalid value for property_blacklist config: "+l);var d={event:e,properties:t};return n=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},r),n});C.prototype.set_group=gt(function(e,t,a){h.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,a)});C.prototype.add_group=gt(function(e,t,a){var r=this.get_property(e),n={};return r===void 0?(n[e]=[t],this.register(n)):r.indexOf(t)===-1&&(r.push(t),n[e]=r,this.register(n)),this.people.union(e,t,a)});C.prototype.remove_group=gt(function(e,t,a){var r=this.get_property(e);if(r!==void 0){var n=r.indexOf(t);n>-1&&(r.splice(n,1),this.register({group_key:r})),r.length===0&&this.unregister(e)}return this.people.remove(e,t,a)});C.prototype.track_with_groups=gt(function(e,t,a,r){var n=h.extend({},t||{});return h.each(a,function(i,o){i!=null&&(n[o]=i)}),this.track(e,n,r)});C.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)};C.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]};C.prototype.get_group=function(e,t){var a=this._create_map_key(e,t),r=this._cached_groups[a];return(r===void 0||r._group_key!==e||r._group_id!==t)&&(r=new ne,r._init(this,e,t),this._cached_groups[a]=r),r};C.prototype.track_pageview=gt(function(e,t){typeof e!="object"&&(e={}),t=t||{};var a=t.event_name||"$mp_web_page_view",r=h.extend(h.info.mpPageViewProperties(),h.info.campaignParams(),h.info.clickParams()),n=h.extend({},r,e);return this.track(a,n)});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(e){if(h.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var Qg={persistent:!0},Mo=function(e){var t;return h.isObject(e)?t=e:h.isUndefined(e)?t={}:t={days:e},h.extend({},Qg,t)};C.prototype.register=function(e,t){var a=this._run_hook("before_register",e,t);if(a!==null){e=a[0],t=a[1];var r=Mo(t);r.persistent?this.persistence.register(e,r.days):h.extend(this.unpersisted_superprops,e)}};C.prototype.register_once=function(e,t,a){var r=this._run_hook("before_register_once",e,t,a);if(r!==null){e=r[0],t=r[1],a=r[2];var n=Mo(a);n.persistent?this.persistence.register_once(e,t,n.days):(typeof t>"u"&&(t="None"),h.each(e,function(i,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===t)&&(this.unpersisted_superprops[o]=i)},this))}};C.prototype.unregister=function(e,t){var a=this._run_hook("before_unregister",e,t);a!==null&&(e=a[0],t=a[1],t=Mo(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])};C.prototype._register_single=function(e,t){var a={};a[e]=t,this.register(a)};C.prototype.identify=function(e,t,a,r,n,i,o,s){var c=this._run_hook("before_identify",e);if(c===null)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if(typeof e=="string"&&e.indexOf(xo)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(nn)&&(this.unregister(nn),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,a,r,n,i,o,s),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()};C.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=h.UUID();this.register_once({distinct_id:xo+e,$device_id:e},""),this._check_and_start_session_recording()};C.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};C.prototype.alias=function(e,t){if(e===this.get_property(Wl))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var a=this;return h.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(nn,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){a.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)};C.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)};C.prototype.set_config=function(e){if(h.isObject(e)){h.extend(this.config,e);var t=e.batch_size;t&&h.each(this.request_batchers,function(a){a.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),De.DEBUG=De.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),h.isObject(e.hooks)&&(this.hooks={},h.each(e.hooks,function(a,r){if(h.isFunction(a))this.hooks[r]=[a];else if(h.isArray(a)){this.hooks[r]=[];for(var n=0;n<a.length;n++)h.isFunction(a[n])||V.critical("Invalid hook added. Hook is not a function"),this.hooks[r].push(a[n])}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(e){return this.config[e]};C.prototype._run_hook=function(e){var t=at.call(arguments,1);return h.each(this.hooks[e],function(a){if(t===null)return null;var r=a.apply(this,t);typeof r>"u"?(this.report_error(e+" hook did not return a valid value"),t=null):(h.isArray(r)||(r=[r]),t.splice.apply(t,[0,r.length].concat(r)))},this),t};C.prototype.get_property=function(e){return this.persistence.load_prop([e])};C.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")};C.prototype.toString=function(){var e=this.get_config("name");return e!==Me&&(e=Me+"."+e),e};C.prototype._event_is_disabled=function(e){return h.isBlockedUA(ze)||this._flags.disable_all_events||h.include(this.__disabled_events,e)};C.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&h.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||h.cookie.get("mp_optout"))&&(h.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};C.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()};C.prototype._gdpr_call_func=function(e,t){return t=h.extend({track:h.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),h.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};C.prototype.opt_in_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(ng,e),this._gdpr_update_persistence(e)};C.prototype.opt_out_tracking=function(e){e=h.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(ag,e),this._gdpr_update_persistence(e)};C.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(og,e)};C.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(_l,e)};C.prototype.clear_opt_in_out_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(sg,e),this._gdpr_update_persistence(e)};C.prototype.report_error=function(e,t){V.error.apply(V.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(a){V.error(a)}};C.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)};C.prototype.remove_hook=function(e,t){var a;this.hooks[e]&&(a=this.hooks[e].indexOf(t),a!==-1?this.hooks[e].splice(a,1):V.log("remove_hook failed. Matching hook was not found"))};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(e,t){t!==Me&&(be[t]=e)}),be._=h},tv=function(){be.init=function(e,t,a){if(a)return be[a]||(be[a]=Zt[a]=Wa(e,t,a),be[a]._loaded()),be[a];var r=be;Zt[Me]?r=Zt[Me]:e&&(r=Wa(e,t,Me),r._loaded(),Zt[Me]=r),be=r,an===Kg&&(A[Me]=be),ev()}},rv=function(){function e(){e.done||(e.done=!0,Zl=!0,Hl=!1,h.each(Zt,function(r){r._dom_loaded()}))}function t(){try{L.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(L.addEventListener)L.readyState==="complete"?e():L.addEventListener("DOMContentLoaded",e,!1);else if(L.attachEvent){L.attachEvent("onreadystatechange",e);var a=!1;try{a=A.frameElement===null}catch{}L.documentElement.doScroll&&a&&t()}h.register_event(A,"load",e,!0)};function iv(e){return Gl=e,an=qa,be=new C,tv(),be.init(),rv(),be}function nv(e,t){t()}var cv=iv(nv);export{cv as m,sv as r};
|