@zeniai/web-components 4.4.70 → 4.4.71-beta0AN
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/Editor-CbBxvSmp.js +919 -0
- package/dist/{SessionTimeoutPopup-BKNhya21.js → SessionTimeoutPopup-BMerO3g4.js} +112074 -113753
- package/dist/TaskDescriptionEditor-DyTyMxvk.js +700 -0
- package/dist/apple-wallet-DMr790ZM.js +19 -0
- package/dist/bank-verification-HpVi21UA.js +5 -0
- package/dist/cockpit.esm.js +1198 -1199
- package/dist/components/common/lazyLottie.d.ts +8 -0
- package/dist/components/common/lazyReactPdf.d.ts +13 -0
- package/dist/components/common/lazySvg.d.ts +17 -0
- package/dist/components/formElements/autoCompleteSingleSelectField/AutoCompleteSingleSelectField.d.ts +3 -1
- package/dist/components/formElements/singleSelectPickerField/SingleSelectPickerField.d.ts +2 -0
- package/dist/components/invoicing/createInvoice/InvoicingCreateInvoicePage.d.ts +3 -1
- package/dist/components/invoicing/subscriptionForm/InvoicingSubscriptionFormPage.d.ts +3 -1
- package/dist/components/invoicing/subscriptionForm/subscriptionForm.shared.d.ts +4 -0
- package/dist/components/settingsPage/Integrations/components/integrationLogos.d.ts +2874 -12
- package/dist/index.esm.js +139 -139
- package/dist/mcdonalds-logo-BTFuGR4i.js +5 -0
- package/dist/mercury-logo-Xd1WsXHh.js +5 -0
- package/dist/mercury-logo-dark-WebeUx9w.js +5 -0
- package/dist/more-providers-avatars-Dt7HPmCt.js +5 -0
- package/dist/netsuite-logo-Dp53a_wk.js +5 -0
- package/dist/netsuite-logo-dark-C53BYo7C.js +5 -0
- package/dist/paypal-logo-RhbjaD58.js +5 -0
- package/dist/paypal-logo-dark-_jTZA_FH.js +5 -0
- package/dist/phone-otp-DI7iHM2C.js +7 -0
- package/dist/subway-logo-B-Kc0fke.js +5 -0
- package/dist/underline-BNKkE4Fr.js +223 -0
- package/dist/vendor-@stripe-stripe-js-BmvP0myE.js +108 -0
- package/dist/vendor-react-lottie-player-Qhg4gMF8.js +174 -0
- package/dist/zeni-card-trust-BpxZYDve.js +5 -0
- package/dist/zeni-thanksgiving-logo-full-BLmLHEXd.js +5 -0
- package/package.json +6 -8
- package/dist/SessionTimeoutPopup-D12fxo7a.cjs +0 -92815
- package/dist/assets/illustrative/ai-cfo.svg +0 -13
- package/dist/assets/illustrative/rewardsEmailTemplate/business-banking-icon.svg +0 -21
- package/dist/assets/illustrative/rewardsEmailTemplate/cards-icon.svg +0 -11
- package/dist/assets/interface/ai-icon-color-selected-filled-small.svg +0 -27
- package/dist/assets/interface/ai-icon-color-selected-small.svg +0 -20
- package/dist/assets/interface/ai-icon-selected-filled-plain.svg +0 -5
- package/dist/assets/interface/arrow-2-left.svg +0 -4
- package/dist/assets/interface/autofill-3.svg +0 -3
- package/dist/assets/interface/graph-trend.svg +0 -11
- package/dist/assets/interface/growth-round.svg +0 -5
- package/dist/assets/interface/saving-money-egg.svg +0 -15
- package/dist/assets/interface/treasury-thumbnail.png +0 -0
- package/dist/assets/logos/gmail-logo.svg +0 -20
- package/dist/assets/logos/microsoft365-logo.svg +0 -25
- package/dist/assets/oldicons/promoPages/usp-line.svg +0 -3
- package/dist/cockpit.cjs.js +0 -5805
- package/dist/index.cjs.js +0 -1
- package/dist/vendor-@babel-runtime-_D8QudKm.cjs +0 -4
- package/dist/vendor-@floating-ui-core-Dyvby5gX.cjs +0 -1
- package/dist/vendor-@floating-ui-dom-CexqkosJ.cjs +0 -1
- package/dist/vendor-@floating-ui-utils-sUr78tUz.cjs +0 -1
- package/dist/vendor-@popperjs-core-Da5z8R8_.cjs +0 -1
- package/dist/vendor-@react-oauth-google-RY6l5Pdi.cjs +0 -1
- package/dist/vendor-@statsig-client-core-CcuuGlfw.cjs +0 -1
- package/dist/vendor-@statsig-js-client-C6n1oYZG.cjs +0 -1
- package/dist/vendor-@statsig-react-bindings-DVuaLZfm.cjs +0 -1
- package/dist/vendor-@ungap-structured-clone-BSqP9FP7.cjs +0 -1
- package/dist/vendor-@zeniai-client-epic-state-DWdyw6ma.cjs +0 -1
- package/dist/vendor-autosuggest-highlight-BrLUL75m.cjs +0 -1
- package/dist/vendor-bail-CPU4onRe.cjs +0 -1
- package/dist/vendor-big.js-BfsYTtpv.cjs +0 -1
- package/dist/vendor-browser-image-compression-BZPRtRQ2.cjs +0 -20
- package/dist/vendor-ccount-B3JMtXU-.cjs +0 -1
- package/dist/vendor-clsx-CAED27AB.cjs +0 -1
- package/dist/vendor-color-BlJDv7Qx.cjs +0 -1
- package/dist/vendor-color-convert-DNxf_t0v.cjs +0 -1
- package/dist/vendor-color-name-DMfyNIC_.cjs +0 -1
- package/dist/vendor-color-string-DlngRZWO.cjs +0 -1
- package/dist/vendor-comma-separated-tokens-CM2uar_0.cjs +0 -1
- package/dist/vendor-countries-list-DdDJCIea.cjs +0 -1
- package/dist/vendor-country-flag-icons-CaT9dyG0.cjs +0 -1
- package/dist/vendor-cross-fetch-BcrCP3uC.cjs +0 -2
- package/dist/vendor-decode-named-character-reference-CpsLJx05.cjs +0 -1
- package/dist/vendor-devlop-IYc_KfOj.cjs +0 -1
- package/dist/vendor-escape-string-regexp-CXe2COqk.cjs +0 -1
- package/dist/vendor-estree-util-is-identifier-name-DqXb06tQ.cjs +0 -1
- package/dist/vendor-extend-Xv02IcfV.cjs +0 -1
- package/dist/vendor-fast-deep-equal-xp5wgv1k.cjs +0 -1
- package/dist/vendor-hast-util-to-jsx-runtime-Cn0tASh-.cjs +0 -1
- package/dist/vendor-hast-util-whitespace-B7YrIln0.cjs +0 -1
- package/dist/vendor-html-url-attributes-B55Ir3vo.cjs +0 -1
- package/dist/vendor-inline-style-parser-BwLpyraz.cjs +0 -2
- package/dist/vendor-input-format-B4RKCxE4.cjs +0 -3
- package/dist/vendor-is-arrayish-DfXUb1DJ.cjs +0 -1
- package/dist/vendor-is-plain-obj-DH-Kh8FX.cjs +0 -1
- package/dist/vendor-js-file-download-Cbb6agEb.cjs +0 -1
- package/dist/vendor-libphonenumber-js-DkZ7WT-u.cjs +0 -13
- package/dist/vendor-lodash-CNz95YDD.cjs +0 -1
- package/dist/vendor-lodash.debounce-C9YP0rOk.cjs +0 -1
- package/dist/vendor-longest-streak-CpfJ7Pkv.cjs +0 -1
- package/dist/vendor-lottie-web-Cnpvoe-Q.cjs +0 -2
- package/dist/vendor-markdown-table-BIbVC1pY.cjs +0 -2
- package/dist/vendor-mdast-util-find-and-replace-BqOMYvvg.cjs +0 -1
- package/dist/vendor-mdast-util-from-markdown-DmcqmoHq.cjs +0 -1
- package/dist/vendor-mdast-util-gfm-DYVYZtQo.cjs +0 -1
- package/dist/vendor-mdast-util-gfm-autolink-literal-B7Jk_6Zc.cjs +0 -1
- package/dist/vendor-mdast-util-gfm-footnote-BqZr5GmF.cjs +0 -2
- package/dist/vendor-mdast-util-gfm-strikethrough-DkmBmVZz.cjs +0 -1
- package/dist/vendor-mdast-util-gfm-table-GRkZEL2K.cjs +0 -3
- package/dist/vendor-mdast-util-gfm-task-list-item-COkL7umh.cjs +0 -1
- package/dist/vendor-mdast-util-phrasing-B3pE6Gyd.cjs +0 -1
- package/dist/vendor-mdast-util-to-hast-DZGTy4jY.cjs +0 -11
- package/dist/vendor-mdast-util-to-markdown-CFDJSkr8.cjs +0 -12
- package/dist/vendor-mdast-util-to-string-epeputJu.cjs +0 -1
- package/dist/vendor-memoize-one-DetCWhre.cjs +0 -1
- package/dist/vendor-micromark-QT1lJ_9G.cjs +0 -3
- package/dist/vendor-micromark-core-commonmark-CHMYvCou.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-DOHEv_Ow.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-autolink-literal-BIi53Rt2.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-footnote-CuTbB2_e.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-strikethrough-CcuQ-v4I.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-table-CoYdjDBk.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-tagfilter-Dyvby5gX.cjs +0 -1
- package/dist/vendor-micromark-extension-gfm-task-list-item-eGtf7dwN.cjs +0 -1
- package/dist/vendor-micromark-factory-destination-DODxvNwQ.cjs +0 -1
- package/dist/vendor-micromark-factory-label-DRCYHbTp.cjs +0 -1
- package/dist/vendor-micromark-factory-space-BxE8R4nI.cjs +0 -1
- package/dist/vendor-micromark-factory-title-HTScd-95.cjs +0 -1
- package/dist/vendor-micromark-factory-whitespace-Cfovfawt.cjs +0 -1
- package/dist/vendor-micromark-util-character-ThpXZ0p5.cjs +0 -1
- package/dist/vendor-micromark-util-chunked-CCaF1jRh.cjs +0 -1
- package/dist/vendor-micromark-util-classify-character-BXzv_u9-.cjs +0 -1
- package/dist/vendor-micromark-util-combine-extensions-ymdtWEAr.cjs +0 -1
- package/dist/vendor-micromark-util-decode-numeric-character-reference-sKQehvtv.cjs +0 -1
- package/dist/vendor-micromark-util-decode-string-Coo2FPbM.cjs +0 -1
- package/dist/vendor-micromark-util-encode-Dyvby5gX.cjs +0 -1
- package/dist/vendor-micromark-util-html-tag-name-BqwwRvi2.cjs +0 -1
- package/dist/vendor-micromark-util-normalize-identifier-CZzRW9lF.cjs +0 -1
- package/dist/vendor-micromark-util-resolve-all-B1vkj8Lj.cjs +0 -1
- package/dist/vendor-micromark-util-sanitize-uri-fWsohj9C.cjs +0 -1
- package/dist/vendor-micromark-util-subtokenize-B5hanNMp.cjs +0 -1
- package/dist/vendor-object-assign-5rXDT7QN.cjs +0 -1
- package/dist/vendor-prop-types-D7ILSZ36.cjs +0 -2
- package/dist/vendor-property-information-B58jd_xz.cjs +0 -1
- package/dist/vendor-react-CzqSQR9J.cjs +0 -14
- package/dist/vendor-react-circular-progressbar-BnDuoTgW.cjs +0 -6
- package/dist/vendor-react-datepicker-GIiaQhgI.cjs +0 -2
- package/dist/vendor-react-draggable-rHHMjzs1.cjs +0 -3
- package/dist/vendor-react-error-boundary-DUjnAjoQ.cjs +0 -1
- package/dist/vendor-react-fast-compare-DjJCSAPj.cjs +0 -1
- package/dist/vendor-react-google-autocomplete-Du5iErAd.cjs +0 -2
- package/dist/vendor-react-hook-form-DowHtP8_.cjs +0 -1
- package/dist/vendor-react-is-DK4cIQ7j.cjs +0 -1
- package/dist/vendor-react-lottie-player-Cwb-Xhoz.cjs +0 -1
- package/dist/vendor-react-lottie-player-DcNoEdGF.js +0 -155
- package/dist/vendor-react-markdown-sVAdj9xV.cjs +0 -1
- package/dist/vendor-react-merge-refs-Daoz85kW.cjs +0 -1
- package/dist/vendor-react-number-format-QGmN0d2v.cjs +0 -7
- package/dist/vendor-react-onclickoutside-CjoT6SX4.cjs +0 -1
- package/dist/vendor-react-phone-number-input-BBnFN-wD.cjs +0 -4
- package/dist/vendor-react-popper-DEi6sOBD.cjs +0 -1
- package/dist/vendor-react-select-DufBhudz.cjs +0 -4
- package/dist/vendor-react-virtualized-auto-sizer-DS8s5Nqf.cjs +0 -1
- package/dist/vendor-react-vtree-CtDSz2Mv.cjs +0 -1
- package/dist/vendor-react-webcam-CPpkXthK.cjs +0 -1
- package/dist/vendor-react-window-CuU_qzaW.cjs +0 -1
- package/dist/vendor-react-window-infinite-loader-CdyCIjx6.cjs +0 -1
- package/dist/vendor-remark-gfm-Bou12kJi.cjs +0 -1
- package/dist/vendor-remark-parse-BYKtvo5n.cjs +0 -1
- package/dist/vendor-remark-rehype-CuqXXG-2.cjs +0 -1
- package/dist/vendor-rfdc-sZ2eP5eF.cjs +0 -1
- package/dist/vendor-simple-swizzle-BNELyqz6.cjs +0 -1
- package/dist/vendor-space-separated-tokens-0etuzMC1.cjs +0 -1
- package/dist/vendor-style-to-js-CUjGi3ge.cjs +0 -1
- package/dist/vendor-style-to-object--fzklQoy.cjs +0 -1
- package/dist/vendor-trim-lines-BO73c4j-.cjs +0 -1
- package/dist/vendor-trough-CZIkZM5d.cjs +0 -1
- package/dist/vendor-unified-hdBFtaBE.cjs +0 -1
- package/dist/vendor-unist-util-is-C5fG5pIe.cjs +0 -1
- package/dist/vendor-unist-util-position-DsgljCtl.cjs +0 -1
- package/dist/vendor-unist-util-stringify-position-DfmUoPWR.cjs +0 -1
- package/dist/vendor-unist-util-visit-Cyg51Aas.cjs +0 -1
- package/dist/vendor-unist-util-visit-parents-BFfGpcYZ.cjs +0 -1
- package/dist/vendor-us-bank-account-validator-DOz5Vc9n.cjs +0 -1
- package/dist/vendor-use-isomorphic-layout-effect-CkGv31zs.cjs +0 -1
- package/dist/vendor-use-resize-observer-FgrE0mfc.cjs +0 -1
- package/dist/vendor-utils-CN5UYrS0.cjs +0 -1
- package/dist/vendor-vfile-DagMcMZP.cjs +0 -1
- package/dist/vendor-vfile-message-DB4fwBOw.cjs +0 -1
- package/dist/vendor-warning-FOT2NNRo.cjs +0 -1
- package/dist/vendor-zwitch-Dyvby5gX.cjs +0 -1
package/dist/index.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./SessionTimeoutPopup-D12fxo7a.cjs"),a=require("@zeniai/client-epic-state"),i=require("@mui/material/styles"),t=require("@emotion/styled");exports.AIAgentsActivatingPage=e.AIAgentsActivatingPage;exports.AIIconButton=e.AIIconButton;exports.AIPerformancePage=e.AIPerformancePage;exports.ALL_AI_CFO_MENU_OPTIONS=e.ALL_AI_CFO_MENU_OPTIONS;exports.ALL_INVOICING_MENU_GROUPS=e.ALL_INVOICING_MENU_GROUPS;exports.ALL_INVOICING_MENU_OPTIONS=e.ALL_INVOICING_MENU_OPTIONS;exports.ALL_SETTINGS_MENU_OPTIONS=e.ALL_SETTINGS_MENU_OPTIONS;exports.APP_DRAWER_CONTENT_WIDTH_PX=e.APP_DRAWER_CONTENT_WIDTH_PX;exports.AccountInfoPage=e.AccountInfoPage;exports.AccountLockedInfoModal=e.AccountLockedInfoModal;exports.AccountReconDetailsDrawerPage=e.AccountReconDetailsDrawerPage;exports.AccountReconDetailsDrawerPageV2=e.AccountReconDetailsDrawerPage$1;exports.ActivityIndicator=e.ActivityIndicator;exports.ActualMatchingMatchDetailPage=e.ActualMatchingMatchDetailPage;exports.AddAddressForCardDrawer=e.AddAddressForCardDrawer;exports.AddToWalletPage=e.AddToWalletPage;exports.AddressFormPage=e.AddressFormPage;exports.AgingReportsPage=e.AgingReportsPage;exports.AiCfoChatHeader=e.AiCfoChatHeader;exports.AiCfoMenuContent=e.AiCfoMenuContent;exports.AiCfoOnboardingPage=e.AiCfoOnboardingPage;exports.AiCfoPage=e.AiCfoPage;exports.AiCfoScopeModal=e.AiCfoScopeModal;exports.AiCfoScopeModalScrollBody=e.AiCfoScopeModalScrollBody;exports.AiCfoSidePanel=e.AiCfoSidePanel;exports.AiCfoSkillsBrowser=e.AiCfoSkillsBrowser;exports.AiFinanceTeamReadyPage=e.AiFinanceTeamReadyPage;exports.AllowBlockChipPicker=e.AllowBlockChipPicker;exports.AnalyticsOnLoad=e.AnalyticsOnLoad;exports.ApAgingDetailPage=e.ApAgingDetailPage;exports.AppBasePage=e.AppBasePage;exports.AppDrawerContent=e.AppDrawerContent;exports.AppDrawerHeightMobile=e.AppDrawerHeightMobile;exports.ApprovalRulesSettingsPage=e.ApprovalRulesSettingsPage;exports.ArAgingDetailPage=e.ArAgingDetailPage;exports.AskAiCfoNavButton=e.AskAiCfoNavButton;exports.AskAiCfoNavButtonWhenEnabled=e.AskAiCfoNavButtonWhenEnabled;exports.AttachmentView=e.AttachmentView;exports.AutoTransferRulePage=e.AutoTransferRulePage;exports.BackNavigationProvider=e.BackNavigationProvider;exports.BankConnectionsSettingsPage=e.BankConnectionsSettingsPage;exports.BillDetailPage=e.BillDetailPage;exports.BillDetailPageSkeleton=e.BillDetailPageSkeleton;exports.BillPayApprovalRuleDetailPage=e.BillPayApprovalRuleDetailPage;exports.BillPayApprovalRuleDetailPageV1=e.BillPayApprovalRuleDetailPage$1;exports.BillPayApprovalRulesPage=e.BillPayApprovalRulesPage;exports.BillPayApprovalRulesPageV1=e.BillPayApprovalRulesPage$1;exports.BillPayPromoPage=e.BillPayPromoPage;exports.BillPaySetUpLoading=e.SpendManagementSetUpLoading;exports.BillPaySetUpPage=e.BillPaySetUpPage;exports.BillingSettingsPage=e.BillingSettingsPage;exports.BillsBulkReviewDrawerPage=e.BillsBulkReviewDrawerPage;exports.BusinessVerificationPage=e.BusinessVerificationPage;exports.ButtonWithDropDown=e.ButtonWithDropDown;exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT=e.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT;exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION=e.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION;exports.COMMAND_CENTER_SUBMENU_TYPES=e.COMMAND_CENTER_SUBMENU_TYPES;exports.COMMENT_NOTIFICATION_KINDS=e.COMMENT_NOTIFICATION_KINDS;exports.CapitalizationOnboardingPopup=e.CapitalizationOnboardingPopup;exports.CapitalizationSettingsSection=e.CapitalizationSettingsSection;exports.CardPolicyCreatePage=e.CardPolicyCreatePage;exports.CardPolicyEditPage=e.CardPolicyEditPage;exports.CardPolicyFormPageSkeleton=e.CardPolicyFormPageSkeleton;exports.CardPolicyFormSections=e.CardPolicyFormSections;exports.CardPolicyListPage=e.CardPolicyListPage;exports.CardPolicyListPageSkeleton=e.CardPolicyListPageSkeleton;exports.CardPolicyListRow=e.CardPolicyListRow;exports.CardPolicyListSkeletonRow=e.CardPolicyListSkeletonRow;exports.CardPolicyManualEmptyState=e.CardPolicyManualEmptyState;exports.CardsAiCfoHero=e.CardsAiCfoHero;exports.CardsShutdownBanner=e.CardsShutdownBanner;exports.CashbackDetailLoading=e.CashbackDetailLoading;exports.CashbackDetailPage=e.CashbackDetailPage;exports.ChargeCardCVVActivate=e.ChargeCardCVVActivate;exports.ChargeCardDetailLoading=e.ChargeCardDetailLoading;exports.ChargeCardDetailPage=e.ChargeCardDetailPage;exports.ChargeCardListLoading=e.ChargeCardListLoading;exports.ChargeCardListPage=e.ChargeCardListPage;exports.ChargeCardListSkeletonRow=e.ChargeCardListSkeletonRow;exports.ChargeCardPaymentHistoryPage=e.ChargeCardPaymentHistoryPage;exports.ChargeCardPromoPage=e.ChargeCardPromoPage;exports.ChargeCardPromoPageSkeleton=e.ChargeCardPromoPageSkeleton;exports.ChargeCardSetUpPage=e.ChargeCardSetUpPage;exports.ChargeCardSetupLoading=e.SpendManagementSetUpLoading;exports.ChargeCardStatementsLoading=e.ChargeCardStatementsLoading;exports.ChargeCardStatementsPage=e.ChargeCardStatementsPage;exports.ChargeCardUserOnboardingPromoPage=e.ChargeCardUserOnboardingPromoPage;exports.ChargeCardUserOnboardingPromoPageSkeleton=e.ChargeCardUserOnboardingPromoPageSkeleton;exports.CheckDepositDrawerPage=e.CheckDepositDrawerPage;exports.ClickableRow=e.ClickableRow;exports.CollaborationGlobalStyles=e.CollaborationGlobalStyles;exports.CollaborationProvider=e.CollaborationProvider;exports.CollaborationRoomProvider=e.CollaborationRoomProvider;exports.Colors=e.Colors;exports.CommentsAndNotesCount=e.CommentsAndNotesCount;exports.CommentsDrawerProvider=e.CommentsDrawerProvider;exports.CompanyOfficerOnboardingDetailsSection=e.CompanyOfficerOnboardingDetailsSection;exports.CompanyOnboardingDetailsSection=e.CompanyOnboardingDetailsSection;exports.CompanyPassportCard=e.CompanyPassportCard;exports.CompanyPassportPage=e.CompanyPassportPage;exports.CompleteProfile=e.CompleteProfile;exports.ConfettiBurst=e.ConfettiBurst;exports.ConfirmationPopup=e.ConfirmationPopup;exports.ConnectDataSourcesPage=e.ConnectDataSourcesPage;exports.CreateOrEditVendorPage=e.CreateOrEditVendorPage;exports.CreateOrEditVendorPageSkeleton=e.CreateOrEditVendorPageSkeleton;exports.CreateTransactionButton=e.CreateTransactionButton;exports.CreateTransactionPage=e.CreateTransactionPage;exports.CreatedEntitiesAnswer=e.CreatedEntitiesAnswer;exports.CreatingEntitiesAnswerLoading=e.CreatingEntitiesAnswerLoading;exports.CreditCardPaymentDrawerPage=e.CreditCardPaymentDrawerPage;exports.CustomerDetailPage=e.CustomerDetailPage;exports.CustomerListPage=e.CustomerListPage;exports.CustomerOnboardingContainerPage=e.CustomerOnboardingContainerPage;exports.CustomerOnboardingNoStepsPage=e.CustomerOnboardingNoStepsPage;exports.CustomerOnboardingPage=e.CustomerOnboardingPage;exports.CustomerOnboardingProductSuitePage=e.CustomerOnboardingProductSuitePage;exports.Dashboard=e.Dashboard;exports.DashboardHalloweenBatsAnimation=e.DashboardHalloweenBatsAnimation;exports.DashboardReportPage=e.DashboardReportPage;exports.DashboardSidebarLogoAnimation=e.DashboardSidebarLogoAnimation;exports.DataListTable=e.DataListTable;exports.DataListTableHeader=e.DataListTableHeader;exports.DataListTableRow=e.DataListTableRow;exports.DataListTableSortIndicator=e.DataListTableSortIndicator;exports.DebitCardSetPin=e.DebitCardSetPin;exports.DropdownPortalContext=e.DropdownPortalContext;exports.EditPeoplePage=e.EditPeoplePage;exports.EditReimbursementDetailPage=e.EditReimbursementDetailPage;exports.EditableBillDetailPage=e.EditableBillDetailPage;exports.EntityDetailPage=e.EntityDetailPage;exports.ErrorBoundaryWrapper=e.ErrorBoundaryWrapper;exports.ExcludedAccountReconDetailsDrawerPage=e.ExcludedAccountReconDetailsDrawerPage;exports.ExpenseAutomationOverviewPage=e.ExpenseAutomationOverviewPage;exports.ExpenseAutomationOverviewPageSkeleton=e.ExpenseAutomationOverviewPageSkeleton;exports.ExpenseAutomationPage=e.ExpenseAutomationPage;exports.ExpressPayPage=e.ExpressPayPage;exports.FeatureDynamicConfigNames=e.DynamicConfigNames;exports.FeatureGatesNames=e.FeatureGatesNames;exports.FeaturePreviewPage=e.FeaturePreviewPage;exports.FeatureProvider=e.FeatureProvider;exports.FieldHelpIcon=e.FieldHelpIcon;exports.FieldHelpProvider=e.FieldHelpProvider;exports.FirstReviewVendorDetailPage=e.FirstReviewVendorDetailPage;exports.FontWeight=e.FontWeight;exports.GlobalInfoProvider=e.GlobalInfoProvider;exports.GlobalReviewListPage=e.GlobalReviewListPage;exports.INVOICING_SETTINGS_NAV_SECTIONS=e.INVOICING_SETTINGS_NAV_SECTIONS;exports.INVOICING_SETTINGS_TABS=e.INVOICING_SETTINGS_TABS;exports.InformationCardStack=e.InformationCardStack;exports.InitialCollaborationProvider=e.InitialCollaborationProvider;exports.InsightsCardStack=e.InsightCardStack;exports.IntegrationCardView=e.IntegrationCardView;exports.IntegrationsCardGrid=e.IntegrationsCardGrid;exports.IntegrationsSection=e.IntegrationsSection;exports.IntegrationsSettingsPage=e.IntegrationsSettingsPage;exports.InternationalWireVerificationPage=e.InternationalWireVerificationPage;exports.InviteFormPage=e.InviteFormPage;exports.InvitePageListView=e.InvitePageListView;exports.InvitePeoplePage=e.InvitePeoplePage;exports.InvoiceUploadSection=e.InvoiceUploadSection;exports.InvoiceUploadSectionSkeleton=e.InvoiceUploadSectionSkeleton;exports.InvoicingAddPaymentMethodDialog=e.InvoicingAddPaymentMethodDialog;exports.InvoicingAuditLogPage=e.InvoicingAuditLogPage;exports.InvoicingBrandingSettingsPage=e.InvoicingBrandingSettingsPage;exports.InvoicingCatalogItemDetailPage=e.InvoicingCatalogItemDetailPage;exports.InvoicingCatalogItemFormPage=e.InvoicingCatalogItemFormPage;exports.InvoicingCatalogPage=e.InvoicingCatalogPage;exports.InvoicingCouponFormPage=e.InvoicingCouponFormPage;exports.InvoicingCreateInvoicePage=e.InvoicingCreateInvoicePage;exports.InvoicingCreateInvoiceSkeleton=e.InvoicingCreateInvoiceSkeleton;exports.InvoicingCreatePromotionalCreditsDialog=e.InvoicingCreatePromotionalCreditsDialog;exports.InvoicingCreditDetailPage=e.InvoicingCreditDetailPage;exports.InvoicingCreditListPage=e.InvoicingCreditListPage;exports.InvoicingCustomerDetailPage=e.InvoicingCustomerDetailPage;exports.InvoicingCustomerFormPage=e.InvoicingCustomerFormPage;exports.InvoicingCustomerListPage=e.InvoicingCustomerListPage;exports.InvoicingDashboardSkeleton=e.InvoicingDashboardSkeleton;exports.InvoicingDataImportDetailPage=e.InvoicingDataImportDetailPage;exports.InvoicingDataImportHubPage=e.InvoicingDataImportHubPage;exports.InvoicingDataImportMigratePage=e.InvoicingDataImportMigratePage;exports.InvoicingDetailScaffold=e.InvoicingDetailScaffold;exports.InvoicingDiscountDetailPage=e.InvoicingDiscountDetailPage;exports.InvoicingDiscountListPage=e.InvoicingDiscountListPage;exports.InvoicingDunningDetailPage=e.InvoicingDunningDetailPage;exports.InvoicingDunningEmailComposerDialog=e.InvoicingDunningEmailComposerDialog;exports.InvoicingDunningListPage=e.InvoicingDunningListPage;exports.InvoicingDunningSettingsPage=e.InvoicingDunningSettingsPage;exports.InvoicingEmptyState=e.InvoicingEmptyState;exports.InvoicingIntegrationsSettingsPage=e.InvoicingIntegrationsSettingsPage;exports.InvoicingInvoiceDetailPage=e.InvoicingInvoiceDetailPage;exports.InvoicingInvoiceListPage=e.InvoicingInvoiceListPage;exports.InvoicingIssueCreditNotePage=e.InvoicingIssueCreditNotePage;exports.InvoicingOverviewPage=e.InvoicingOverviewPage;exports.InvoicingPaymentDestinationSettingsPage=e.InvoicingPaymentDestinationSettingsPage;exports.InvoicingPaymentLinkEmailComposerDialog=e.InvoicingPaymentLinkEmailComposerDialog;exports.InvoicingPaymentLinkPage=e.InvoicingPaymentLinkPage;exports.InvoicingPaymentListPage=e.InvoicingPaymentListPage;exports.InvoicingPromoPage=e.InvoicingPromoPage;exports.InvoicingQBOSettingsPage=e.InvoicingQBOSettingsPage;exports.InvoicingRecordPaymentPage=e.InvoicingRecordPaymentPage;exports.InvoicingSettingsHubPage=e.InvoicingSettingsHubPage;exports.InvoicingSettingsPage=e.InvoicingSettingsHubPage;exports.InvoicingSubscriptionDetailPage=e.InvoicingSubscriptionDetailPage;exports.InvoicingSubscriptionFormPage=e.InvoicingSubscriptionFormPage;exports.InvoicingSubscriptionListPage=e.InvoicingSubscriptionListPage;exports.InvoicingTransactionDetailPage=e.InvoicingTransactionDetailPage;exports.InvoicingVoidInvoiceDialog=e.InvoicingVoidInvoiceDialog;exports.IssueChargeCardPage=e.IssueChargeCardPage;exports.IssueChargeCardPageSkeleton=e.IssueChargeCardPageSkeleton;exports.JEOneTimeAccrualDetailPage=e.JEOneTimeAccrualDetailPage;exports.JEOneTimeAccrualLinkedEntriesButton=e.JEOneTimeAccrualLinkedEntriesButton;exports.LinkBillExpensePage=e.LinkBillExpensePage;exports.LinkJETransactionPage=e.LinkJETransactionPage;exports.Loader=e.Loader;exports.LogoutButton=e.LogoutButton;exports.MCC_CHIP_ID_PREFIX=e.MCC_CHIP_ID_PREFIX;exports.MEETING_LINK_DEFAULTS=e.MEETING_LINK_DEFAULTS;exports.MagicLinkDomesticWireDetailsPage=e.MagicLinkDomesticWireDetailsPage;exports.MagicLinkInternationalWireDetailsPage=e.MagicLinkInternationalWireDetailsPage;exports.MagicLinkSuccessPage=e.MagicLinkSuccessPage;exports.MagicLinkVendorACHDetailsPage=e.MagicLinkVendorACHDetailsPage;exports.Modal=e.Modal;exports.MonthEndEmailDrawerCustomerRequestPage=e.MonthEndEmailDrawerCustomerRequestPage;exports.MyBankConnectionsSettingsPage=e.MyBankConnectionsSettingsPage;exports.MyPendingActivationChargeCardListPage=e.MyPendingActivationChargeCardListPage;exports.MyProfileSettingsPage=e.MyProfileSettingsPage;exports.NavBar=e.NavBar;exports.NavBarRightRowStyled=e.NavBarRightRowStyled;exports.NewGlobalMerchantPage=e.NewGlobalMerchantPage;exports.NewUpdateAvailablePage=e.NewUpdateAvailablePage;exports.NotFoundPage=e.NotFoundPage;exports.NotificationIcon=e.SvgNotification;exports.NotificationSettingsPage=e.NotificationSettingsPage;exports.NotificationsPage=e.NotificationsPage;exports.OAuthConsentPage=e.OAuthConsentPage;exports.OnboardingInitialLoader=e.OnboardingInitialLoader;exports.OnboardingSidebar=e.OnboardingSidebar;exports.OnboardingStepFrame=e.OnboardingStepFrame;exports.OpExByVendorPage=e.OpExByVendorPage;exports.OverlayContainerPage=e.OverlayContainerPage;exports.PandLWithForecastPage=e.PandLWithForecastPage;exports.PanelDirtyGuardContext=e.PanelDirtyGuardContext;exports.PanelInternalContext=e.PanelInternalContext;exports.PaymentAccountSetupBillingAddressSection=e.PaymentAccountSetupBillingAddressSection;exports.PeoplePage=e.PeoplePage;exports.Picker=e.Picker;exports.PolicyLimitsRowList=e.PolicyLimitsRowList;exports.PolicyModeSelector=e.PolicyModeSelector;exports.PortfolioAllocationFormPage=e.PortfolioAllocationFormPage;exports.QBOConnectionDialog=e.QBOConnectionDialog;exports.QBOSetupSectionWithForm=e.QBOSetupSectionWithForm;exports.QuickResponsesPage=e.QuickResponsesPage;exports.QuickViewModeContext=e.QuickViewModeContext;exports.RIGHT_SIDE_PANEL_WIDTH_PX=e.RIGHT_SIDE_PANEL_WIDTH_PX;exports.RecommendationFeedbackPopup=e.RecommendationFeedbackPopup;exports.ReconciliationReportPage=e.ReconciliationReportPage;exports.ReferralDrawerPage=e.DrawerPage;exports.ReimbursementApprovalRuleDetailPage=e.ReimbursementApprovalRuleDetailPage;exports.ReimbursementApprovalRuleDetailPageV1=e.ReimbursementApprovalRuleDetailPage$1;exports.ReimbursementApprovalRulesPage=e.ReimbursementApprovalRulesPage;exports.ReimbursementApprovalRulesPageV1=e.ReimbursementApprovalRulesPage$1;exports.ReimbursementDetailPage=e.ReimbursementDetailPage;exports.ReimbursementDetailPageSkeleton=e.ReimbursementDetailPageSkeleton;exports.ReimbursementPromoPage=e.ReimbursementPromoPage;exports.ReimbursementSetUpLoading=e.SpendManagementSetUpLoading;exports.ReimbursementSetUpPage=e.RemiSetupPage;exports.RemisBulkReviewDrawerPage=e.ReimbursementsBulkReviewDrawerPage;exports.ReportsPage=e.ReportsPage;exports.ResponsiveSized=e.ResponsiveSized;exports.ReviewBillDetailsPage=e.ReviewBillDetailsPage;exports.ReviewConfirmTransferPanel=e.ReviewConfirmTransferPanel;exports.ReviewDetailsPageSkeleton=e.ReviewDetailsPageSkeleton;exports.SUPPORTED_CREATE_TRANSACTION_TYPES=e.SUPPORTED_CREATE_TRANSACTION_TYPES;exports.ScheduleDetailSkeleton=e.ScheduleDetailSkeleton;exports.ScheduleDetailsAccruedExpensesPage=e.ScheduleDetailsAccruedExpensesPage;exports.ScheduleDetailsFixedAssetsPage=e.ScheduleDetailsFixedAssetsPage;exports.ScheduleDetailsPage=e.ScheduleDetailsPage;exports.SearchableCheckboxCardList=e.SearchableCheckboxCardList;exports.SessionTimeoutPopup=e.SessionTimeoutPopup;exports.SidePanelContext=e.SidePanelContext;exports.SidePanelLayout=e.SidePanelLayout;exports.SidePanelProvider=e.SidePanelProvider;exports.SignIn=e.SignIn;exports.SomethingWrongPage=e.SomethingWrongPage;exports.Space=e.Space;exports.SpendManagementListLoading=e.SpendManagementListLoading;exports.SpendManagementListViewPage=e.SpendManagementListViewPage;exports.StatementParseInfo=e.StatementParseInfoEntry;exports.StatementProcessingPage=e.StatementProcessingPage;exports.StatementsPage=e.StatementsPage;exports.StyledCapsule=e.StyledCapsule;exports.SubscriptionDetailPage=e.SubscriptionDetailPage;exports.SubscriptionSummaryPage=e.SubscriptionSummaryPage;exports.SyntheticAiCfoAnswerView=e.SyntheticAiCfoAnswerView;exports.THREAD_RESOLVED_NOTIFICATION_KIND=e.THREAD_RESOLVED_NOTIFICATION_KIND;exports.THREAD_UNRESOLVED_NOTIFICATION_KIND=e.THREAD_UNRESOLVED_NOTIFICATION_KIND;exports.TaskDetailPage=e.TaskDetailPage;exports.TaskManagementPage=e.TaskManagementPage;exports.TenantsDropDown=e.TenantsDropDown;exports.TextStyle=e.TextStyle;exports.ToolkitProvider=e.ToolkitProvider;exports.TopExDetailPage=e.TopExDetailPage;exports.TransactionActivityLogPage=e.TransactionActivityLogPage;exports.TransactionActivityLogPanel=e.TransactionActivityLogPanel;exports.TransactionDetailPage=e.TransactionDetailPage;exports.TransactionDetailSkeleton=e.TransactionDetailSkeleton;exports.TransactionListBig=e.TransactionListBig;exports.TransactionListComments=e.TransactionListComments;exports.TransactionListPage=e.TransactionListPage;exports.TransactionVendorDetailPage=e.TransactionVendorDetailPage;exports.TransferDrawerPage=e.TransferDrawerPage;exports.TreasuryOverviewPage=e.TreasuryOverviewPage;exports.TreasuryPromoPage=e.TreasuryPromoPage;exports.TreasurySetUpPage=e.TreasurySetUpPage;exports.TreasuryStatementsPage=e.TreasuryStatementsPage;exports.TreasuryTaxLetterPage=e.TreasuryTaxLetterPage;exports.TreasuryTransferOrReviewPage=e.TreasuryTransferOrReviewPage;exports.TrendChart=e.TrendChart;exports.UncategorizedAccountsMappingPage=e.UncategorizedAccountsMappingPage;exports.UnitIntegrationPage=e.UnitIntegrationPage;exports.VENDOR_CHIP_ID_PREFIX=e.VENDOR_CHIP_ID_PREFIX;exports.Vendor2FAPopup=e.Vendor2FAPopup;exports.VendorACHDetailsPage=e.VendorACHDetailsPage;exports.VendorAccruedSchedulesPage=e.VendorAccruedSchedulesPage;exports.VendorDetailPage=e.VendorDetailPage;exports.VendorDomesticWireDetailsPage=e.VendorDomesticWireDetailsPage;exports.VendorFiling1099DetailsEditablePage=e.VendorFiling1099DetailsEditablePage;exports.VendorFiling1099EditableFormSkeleton=e.VendorFiling1099EditableFormSkeleton;exports.VendorFiling1099ListPage=e.VendorFiling1099ListPage;exports.VendorFirstReviewPage=e.VendorFirstReviewPage;exports.VendorInternationalSwiftBasedDetailsPage=e.VendorInternationalSwiftBasedDetailsPage;exports.VendorInternationalWireDetailsPage=e.VendorInternationalWireDetailsPage;exports.VendorListPage=e.VendorListPage;exports.VendorSchedulesPage=e.VendorSchedulesPage;exports.VerificationFrame=e.VerificationFrame;exports.VerifyDevice=e.VerifyDevice;exports.VerifyUnlockFinancialStackPage=e.VerifyUnlockFinancialStackPage;exports.WebV2MicroService=e.WebV2MicroService;exports.WebV2MicroServiceProvider=e.WebV2MicroServiceProvider;exports.WelcomeAnimation=e.WelcomeAnimation;exports.WindowSizeProvider=e.WindowSizeProvider;exports.ZeniAccountDetailLoading=e.ZeniAccountDetailLoading;exports.ZeniAccountDetailNavBarTitleShimmer=e.ZeniAccountDetailNavBarTitleShimmer;exports.ZeniAccountDetailPage=e.ZeniAccountDetailPage;exports.ZeniAccountListLoading=e.ZeniAccountListLoading;exports.ZeniAccountListViewPage=e.ZeniAccountListViewPage;exports.ZeniAccountPromoPage=e.ZeniAccountPromoPage;exports.ZeniAccountSetUpPage=e.ZeniAccountSetUpPage;exports.ZeniText=e.ZeniText;exports.ZeniThemeProvider=e.ZeniThemeProvider;exports.alignToJustify=e.alignToJustify;exports.amountToString=e.amountToString;exports.amountValueToString=e.amountValueToString;exports.appLocale=e.appLocale;exports.applyExtractedPolicyRulesToFormValues=e.applyExtractedPolicyRulesToFormValues;exports.buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm=e.buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm;exports.buildCardPolicyFormValuesFromRequest=e.buildCardPolicyFormValuesFromRequest;exports.buildCreateCardPolicyTemplateRequest=e.buildCreateCardPolicyTemplateRequest;exports.buildCreateCardPolicyTemplateRequestFromInteractiveForm=e.buildCreateCardPolicyTemplateRequestFromInteractiveForm;exports.buildMccCategoryChipId=e.buildMccCategoryChipId;exports.buildStickyKeySet=e.buildStickyKeySet;exports.buildVendorChipId=e.buildVendorChipId;exports.cellVerticalAlignToFlexAlign=e.cellVerticalAlignToFlexAlign;exports.clearAutoLogoutContext=e.clearAutoLogoutContext;exports.clickableRowStyles=e.clickableRowStyles;exports.computeRecommendationSelectionFeedback=e.computeRecommendationSelectionFeedback;exports.computeStatementProcessingStepsFromElapsedTime=e.computeStatementProcessingStepsFromElapsedTime;exports.computeStickyLeftOffsets=e.computeStickyLeftOffsets;exports.darkColors=e.darkColors;exports.darkTheme=e.darkTheme;exports.dashboardCardDimension=e.designDimension;exports.defaultCardPolicyFormValues=e.defaultCardPolicyFormValues;exports.describeSchedule=e.describeSchedule;exports.formatReconAccountDisplayName=e.formatReconAccountDisplayName;exports.getAlpha2=e.getAlpha2;exports.getAlpha3=e.getAlpha3;exports.getColorForALabel=e.getColorForALabel;exports.getCountries=e.getCountries;exports.getCreateTransactionFieldConfig=e.getCreateTransactionFieldConfig;exports.getCustomerDataFromAutoComplete=e.getCustomerDataFromAutoComplete;exports.getCustomerRevenueLabel=e.getCustomerRevenueLabel;exports.getFullName=e.getFullName;exports.getInitialOpenThreadRequestFromSearch=e.getInitialOpenThreadRequestFromSearch;exports.getRecipientTotalAmount=e.getRecipientTotalAmount;exports.getReconAccountDisplayName=e.getReconAccountDisplayName;exports.getShowNegativeAmountInParenthesisDefaultValue=e.getShowNegativeAmountInParenthesisDefaultValue;exports.getShowNegativeAmountInParenthesisForPercentDefaultValue=e.getShowNegativeAmountInParenthesisForPercentDefaultValue;exports.getStableTransactionId=e.getStableTransactionId;exports.getStatementParseTransactionCount=e.getStatementParseTransactionCount;exports.getTransactionAppliedFiltersCount=e.getTransactionAppliedFiltersCount;exports.invoicingMenuList=e.invoicingMenuList;exports.isCloseManagementMenu=e.isCloseManagementMenu;exports.isClosedCardStatus=e.isClosedCardStatus;exports.isCollaborationEntityType=e.isCollaborationEntityType;exports.isCommentNotificationKind=e.isCommentNotificationKind;exports.isMobileOrTabletView=e.isMobileOrTabletView;exports.isMobilePhoneScreen=e.isMobilePhoneScreen;exports.isRecommendationFeedbackDimension=e.isRecommendationFeedbackDimension;exports.lightColors=e.lightColors;exports.lightTheme=e.lightTheme;exports.menuList=e.menuList;exports.mergeColumnDeclarativeWithRenderers=e.mergeColumnDeclarativeWithRenderers;exports.mergeLayoutDefaults=e.mergeLayoutDefaults;exports.percentValueToString=e.percentValueToString;exports.resolveBackgroundStatementProcessingCompletedSteps=e.resolveBackgroundStatementProcessingCompletedSteps;exports.resolveColumnWidth=e.resolveColumnWidth;exports.roundAmountIfNeeded=e.roundAmountIfNeeded;exports.roundOffNumberToTwoDecimal=e.roundOffNumberToTwoDecimal;exports.routineIdFromSession=e.routineIdFromSession;exports.setAutoLogoutContext=e.setAutoLogoutContext;exports.setShowNegativeAmountInParenthesisDefaultValue=e.setShowNegativeAmountInParenthesisDefaultValue;exports.setShowNegativeAmountInParenthesisForPercentDefaultValue=e.setShowNegativeAmountInParenthesisForPercentDefaultValue;exports.settingMenuList=e.settingMenuList;exports.shortCadence=e.shortCadence;exports.sp=e.sp;exports.textAlignForCell=e.textAlignForCell;exports.textStyles=e.textStyles;exports.toGroupedAccountingClassOptions=e.toGroupedAccountingClassOptions;exports.toGroupedQboAccountOptions=e.toGroupedQboAccountOptions;exports.toInstitutionLogoDataUri=e.toInstitutionLogoDataUri;exports.toInvoicingMenuOptionType=e.toInvoicingMenuOptionType;exports.toInvoicingMenuOptionTypeStrict=e.toInvoicingMenuOptionTypeStrict;exports.toMccCategoryChipFieldValue=e.toMccCategoryChipFieldValue;exports.toMenuOptionType=e.toMenuOptionType;exports.toSettingsMenuOptionTypeStrict=e.toSettingsMenuOptionTypeStrict;exports.toSupportedLocaleStrict=e.toSupportedLocaleStrict;exports.toVendorChipFieldValue=e.toVendorChipFieldValue;exports.trackTreasuryTransferAnalytics=e.trackTreasuryTransferAnalytics;exports.uploadAttachmentReceipts=e.uploadAttachmentReceipts;exports.useApprovalRulesV3Config=e.useApprovalRulesV3Config;exports.useBackNavigation=e.useBackNavigation;exports.useCollaborationInfoContext=e.useCollaborationInfoContext;exports.useCommentsDrawer=e.useCommentsDrawer;exports.useDropdownPortal=e.useDropdownPortal;exports.useExpenseAutomationEnabledForUser=e.useExpenseAutomationEnabledForUser;exports.useFieldHelp=e.useFieldHelp;exports.useGlobalInfoContext=e.useGlobalInfoContext;exports.useIsCreateTransactionTypeAllowed=e.useIsCreateTransactionTypeAllowed;exports.useIsFeatureGateLoading=e.useIsFeatureGateLoading;exports.useLockBodyScroll=e.useLockBodyScroll;exports.useMeetingLinks=e.useMeetingLinks;exports.usePanelDirtyGuardRegistry=e.usePanelDirtyGuardRegistry;exports.usePanelInternal=e.usePanelInternal;exports.usePrevious=e.usePrevious;exports.useQuickViewMode=e.useQuickViewMode;exports.useRegisterBackHandler=e.useRegisterBackHandler;exports.useRegisterPanelDirtyGuard=e.useRegisterPanelDirtyGuard;exports.useRequestCloseAllCommentDrawers=e.useRequestCloseAllCommentDrawers;exports.useSessionAutoLogoutConfig=e.useSessionAutoLogoutConfig;exports.useSidePanelContext=e.useSidePanelContext;exports.useToolkitContext=e.useToolkitContext;exports.useWindowSizeContext=e.useWindowSizeContext;exports.useZeniCardsVisibilityConfig=e.useZeniCardsVisibilityConfig;exports.useZeniFeatureContext=e.useZeniFeatureContext;exports.useZeniThemeContext=e.useZeniThemeContext;exports.waitFor=e.waitFor;Object.defineProperty(exports,"buildInvoicingEntityPath",{enumerable:!0,get:()=>a.buildInvoicingEntityPath});Object.defineProperty(exports,"isInvoicingEntityLinkable",{enumerable:!0,get:()=>a.isInvoicingEntityLinkable});Object.defineProperty(exports,"useZeniTheme",{enumerable:!0,get:()=>i.useTheme});Object.defineProperty(exports,"zeniStyled",{enumerable:!0,get:()=>i.styled});exports.zeniEmotionStyled=t;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";function c(e){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(e)}function p(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){if(e){if(typeof e=="string")return p(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function P(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=m(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(a){throw a},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u,l=!0,f=!1;return{s:function(){r=r.call(e)},n:function(){var a=r.next();return l=a.done,a},e:function(a){f=!0,u=a},f:function(){try{l||r.return==null||r.return()}finally{if(f)throw u}}}}function O(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},s(e,t)}function S(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(e)}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v=function(){return!!e})()}function A(e,t){if(t&&(c(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function T(e){var t=v();return function(){var r,n=y(e);if(t){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return A(this,r)}}function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){if(c(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(c(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _(e){var t=C(e,"string");return c(t)=="symbol"?t:t+""}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_(n.key),n)}}function E(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function j(e,t,r){return(t=_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(n){j(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x(e){if(Array.isArray(e))return e}function R(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,u,l,f=[],i=!0,a=!1;try{if(u=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=u.call(r)).done)&&(f.push(n.value),f.length!==t);i=!0);}catch(w){a=!0,o=w}finally{try{if(!i&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(a)throw o}}return f}}function W(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(e,t){return x(e)||R(e,t)||m(e,t)||W()}function g(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function D(e,t){if(e==null)return{};var r,n,o=g(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(null,arguments)}function z(e){if(Array.isArray(e))return p(e)}function H(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B(e){return z(e)||H(e)||m(e)||N()}function F(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function K(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}exports._assertThisInitialized=O;exports._classCallCheck=I;exports._createClass=E;exports._createForOfIteratorHelper=P;exports._createSuper=T;exports._defineProperty=j;exports._extends=b;exports._inherits=S;exports._inheritsLoose=K;exports._objectSpread2=L;exports._objectWithoutProperties=D;exports._objectWithoutPropertiesLoose=g;exports._slicedToArray=k;exports._taggedTemplateLiteral=F;exports._toConsumableArray=B;exports._typeof=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./vendor-@floating-ui-utils-sUr78tUz.cjs");function T(e){const t=n.getComputedStyle(e);let i=parseFloat(t.width)||0,c=parseFloat(t.height)||0;const s=n.isHTMLElement(e),l=s?e.offsetWidth:i,o=s?e.offsetHeight:c,r=n.round(i)!==l||n.round(c)!==o;return r&&(i=l,c=o),{width:i,height:c,$:r}}function E(e){return n.isElement(e)?e:e.contextElement}function C(e){const t=E(e);if(!n.isHTMLElement(t))return n.createCoords(1);const i=t.getBoundingClientRect(),{width:c,height:s,$:l}=T(t);let o=(l?n.round(i.width):i.width)/c,r=(l?n.round(i.height):i.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!r||!Number.isFinite(r))&&(r=1),{x:o,y:r}}const W=n.createCoords(0);function A(e){const t=n.getWindow(e);return!n.isWebKit()||!t.visualViewport?W:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function B(e,t,i){return!1}function L(e,t,i,c){t===void 0&&(t=!1);const s=e.getBoundingClientRect(),l=E(e);let o=n.createCoords(1);t&&(o=C(e));const r=B()?A(l):n.createCoords(0);let d=(s.left+r.x)/o.x,u=(s.top+r.y)/o.y,w=s.width/o.x,p=s.height/o.y;if(l){const R=n.getWindow(l),h=c;let v=R,a=n.getFrameElement(v);for(;a&&c&&h!==v;){const g=C(a),f=a.getBoundingClientRect(),m=n.getComputedStyle(a),x=f.left+(a.clientLeft+parseFloat(m.paddingLeft))*g.x,F=f.top+(a.clientTop+parseFloat(m.paddingTop))*g.y;d*=g.x,u*=g.y,w*=g.x,p*=g.y,d+=x,u+=F,v=n.getWindow(a),a=n.getFrameElement(v)}}return n.rectToClientRect({width:w,height:p,x:d,y:u})}function z(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function I(e,t){let i=null,c;const s=n.getDocumentElement(e);function l(){var r;clearTimeout(c),(r=i)==null||r.disconnect(),i=null}function o(r,d){r===void 0&&(r=!1),d===void 0&&(d=1),l();const u=e.getBoundingClientRect(),{left:w,top:p,width:R,height:h}=u;if(r||t(),!R||!h)return;const v=n.floor(p),a=n.floor(s.clientWidth-(w+R)),g=n.floor(s.clientHeight-(p+h)),f=n.floor(w),x={rootMargin:-v+"px "+-a+"px "+-g+"px "+-f+"px",threshold:n.max(0,n.min(1,d))||1};let F=!0;function b(O){const y=O[0].intersectionRatio;if(y!==d){if(!F)return o();y?o(!1,y):c=setTimeout(()=>{o(!1,1e-7)},1e3)}y===1&&!z(u,e.getBoundingClientRect())&&o(),F=!1}try{i=new IntersectionObserver(b,{...x,root:s.ownerDocument})}catch{i=new IntersectionObserver(b,x)}i.observe(e)}return o(!0),l}function M(e,t,i,c){c===void 0&&(c={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:d=!1}=c,u=E(e),w=s||l?[...u?n.getOverflowAncestors(u):[],...t?n.getOverflowAncestors(t):[]]:[];w.forEach(f=>{s&&f.addEventListener("scroll",i,{passive:!0}),l&&f.addEventListener("resize",i)});const p=u&&r?I(u,i):null;let R=-1,h=null;o&&(h=new ResizeObserver(f=>{let[m]=f;m&&m.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(R),R=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),i()}),u&&!d&&h.observe(u),t&&h.observe(t));let v,a=d?L(e):null;d&&g();function g(){const f=L(e);a&&!z(a,f)&&i(),a=f,v=requestAnimationFrame(g)}return i(),()=>{var f;w.forEach(m=>{s&&m.removeEventListener("scroll",i),l&&m.removeEventListener("resize",i)}),p?.(),(f=h)==null||f.disconnect(),h=null,d&&cancelAnimationFrame(v)}}exports.autoUpdate=M;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const b=Math.min,C=Math.max,N=Math.round,D=Math.floor,M=t=>({x:t,y:t});function T(t){const{x:e,y:o,width:r,height:n}=t;return{width:r,height:n,top:o,left:e,right:e+r,bottom:o+n,x:e,y:o}}function c(){return typeof window<"u"}function d(t){return w(t)?(t.nodeName||"").toLowerCase():"#document"}function i(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function a(t){var e;return(e=(w(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function w(t){return c()?t instanceof Node||t instanceof i(t).Node:!1}function v(t){return c()?t instanceof Element||t instanceof i(t).Element:!1}function p(t){return c()?t instanceof HTMLElement||t instanceof i(t).HTMLElement:!1}function m(t){return!c()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof i(t).ShadowRoot}function g(t){const{overflow:e,overflowX:o,overflowY:r,display:n}=h(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&n!=="inline"&&n!=="contents"}let f;function L(){return f==null&&(f=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),f}function O(t){return/^(html|body|#document)$/.test(d(t))}function h(t){return i(t).getComputedStyle(t)}function R(t){if(d(t)==="html")return t;const e=t.assignedSlot||t.parentNode||m(t)&&t.host||a(t);return m(e)?e.host:e}function y(t){const e=R(t);return O(e)?t.ownerDocument?t.ownerDocument.body:t.body:p(e)&&g(e)?e:y(e)}function s(t,e,o){var r;e===void 0&&(e=[]),o===void 0&&(o=!0);const n=y(t),S=n===((r=t.ownerDocument)==null?void 0:r.body),u=i(n);if(S){const l=E(u);return e.concat(u,u.visualViewport||[],g(n)?n:[],l&&o?s(l):[])}else return e.concat(n,s(n,[],o))}function E(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}exports.createCoords=M;exports.floor=D;exports.getComputedStyle=h;exports.getDocumentElement=a;exports.getFrameElement=E;exports.getOverflowAncestors=s;exports.getWindow=i;exports.isElement=v;exports.isHTMLElement=p;exports.isWebKit=L;exports.max=C;exports.min=b;exports.rectToClientRect=T;exports.round=N;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var B="top",S="bottom",L="right",$="left",Pt="auto",ft=[B,S,L,$],Q="start",ot="end",ue="clippingParents",Kt="viewport",nt="popper",le="reference",Ft=ft.reduce(function(t,e){return t.concat([e+"-"+Q,e+"-"+ot])},[]),Qt=[].concat(ft,[Pt]).reduce(function(t,e){return t.concat([e,e+"-"+Q,e+"-"+ot])},[]),ve="beforeRead",de="read",he="afterRead",me="beforeMain",ge="main",ye="afterMain",be="beforeWrite",we="write",xe="afterWrite",Oe=[ve,de,he,me,ge,ye,be,we,xe];function V(t){return t?(t.nodeName||"").toLowerCase():null}function k(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function J(t){var e=k(t).Element;return t instanceof e||t instanceof Element}function T(t){var e=k(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Dt(t){if(typeof ShadowRoot>"u")return!1;var e=k(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ae(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},a=e.attributes[r]||{},i=e.elements[r];!T(i)||!V(i)||(Object.assign(i.style,n),Object.keys(a).forEach(function(p){var s=a[p];s===!1?i.removeAttribute(p):i.setAttribute(p,s===!0?"":s)}))})}function Ee(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var a=e.elements[n],i=e.attributes[n]||{},p=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),s=p.reduce(function(o,c){return o[c]="",o},{});!T(a)||!V(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(o){a.removeAttribute(o)}))})}}const Pe={name:"applyStyles",enabled:!0,phase:"write",fn:Ae,effect:Ee,requires:["computeStyles"]};function H(t){return t.split("-")[0]}var G=Math.max,gt=Math.min,Z=Math.round;function At(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Zt(){return!/^((?!chrome|android).)*safari/i.test(At())}function _(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),a=1,i=1;e&&T(t)&&(a=t.offsetWidth>0&&Z(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Z(n.height)/t.offsetHeight||1);var p=J(t)?k(t):window,s=p.visualViewport,o=!Zt()&&r,c=(n.left+(o&&s?s.offsetLeft:0))/a,f=(n.top+(o&&s?s.offsetTop:0))/i,h=n.width/a,y=n.height/i;return{width:h,height:y,top:f,right:c+h,bottom:f+y,left:c,x:c,y:f}}function jt(t){var e=_(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function _t(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Dt(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function N(t){return k(t).getComputedStyle(t)}function De(t){return["table","td","th"].indexOf(V(t))>=0}function q(t){return((J(t)?t.ownerDocument:t.document)||window.document).documentElement}function yt(t){return V(t)==="html"?t:t.assignedSlot||t.parentNode||(Dt(t)?t.host:null)||q(t)}function qt(t){return!T(t)||N(t).position==="fixed"?null:t.offsetParent}function je(t){var e=/firefox/i.test(At()),r=/Trident/i.test(At());if(r&&T(t)){var n=N(t);if(n.position==="fixed")return null}var a=yt(t);for(Dt(a)&&(a=a.host);T(a)&&["html","body"].indexOf(V(a))<0;){var i=N(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function pt(t){for(var e=k(t),r=qt(t);r&&De(r)&&N(r).position==="static";)r=qt(r);return r&&(V(r)==="html"||V(r)==="body"&&N(r).position==="static")?e:r||je(t)||e}function Rt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function at(t,e,r){return G(t,gt(e,r))}function Re(t,e,r){var n=at(t,e,r);return n>r?r:n}function te(){return{top:0,right:0,bottom:0,left:0}}function ee(t){return Object.assign({},te(),t)}function re(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var Be=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,ee(typeof e!="number"?e:re(e,ft))};function $e(t){var e,r=t.state,n=t.name,a=t.options,i=r.elements.arrow,p=r.modifiersData.popperOffsets,s=H(r.placement),o=Rt(s),c=[$,L].indexOf(s)>=0,f=c?"height":"width";if(!(!i||!p)){var h=Be(a.padding,r),y=jt(i),u=o==="y"?B:$,w=o==="y"?S:L,d=r.rects.reference[f]+r.rects.reference[o]-p[o]-r.rects.popper[f],v=p[o]-r.rects.reference[o],b=pt(i),O=b?o==="y"?b.clientHeight||0:b.clientWidth||0:0,A=d/2-v/2,l=h[u],m=O-y[f]-h[w],g=O/2-y[f]/2+A,x=at(l,g,m),D=o;r.modifiersData[n]=(e={},e[D]=x,e.centerOffset=x-g,e)}}function Ce(t){var e=t.state,r=t.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||_t(e.elements.popper,a)&&(e.elements.arrow=a))}const ke={name:"arrow",enabled:!0,phase:"main",fn:$e,effect:Ce,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tt(t){return t.split("-")[1]}var Te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Se(t,e){var r=t.x,n=t.y,a=e.devicePixelRatio||1;return{x:Z(r*a)/a||0,y:Z(n*a)/a||0}}function Xt(t){var e,r=t.popper,n=t.popperRect,a=t.placement,i=t.variation,p=t.offsets,s=t.position,o=t.gpuAcceleration,c=t.adaptive,f=t.roundOffsets,h=t.isFixed,y=p.x,u=y===void 0?0:y,w=p.y,d=w===void 0?0:w,v=typeof f=="function"?f({x:u,y:d}):{x:u,y:d};u=v.x,d=v.y;var b=p.hasOwnProperty("x"),O=p.hasOwnProperty("y"),A=$,l=B,m=window;if(c){var g=pt(r),x="clientHeight",D="clientWidth";if(g===k(r)&&(g=q(r),N(g).position!=="static"&&s==="absolute"&&(x="scrollHeight",D="scrollWidth")),g=g,a===B||(a===$||a===L)&&i===ot){l=S;var P=h&&g===m&&m.visualViewport?m.visualViewport.height:g[x];d-=P-n.height,d*=o?1:-1}if(a===$||(a===B||a===S)&&i===ot){A=L;var E=h&&g===m&&m.visualViewport?m.visualViewport.width:g[D];u-=E-n.width,u*=o?1:-1}}var j=Object.assign({position:s},c&&Te),M=f===!0?Se({x:u,y:d},k(r)):{x:u,y:d};if(u=M.x,d=M.y,o){var R;return Object.assign({},j,(R={},R[l]=O?"0":"",R[A]=b?"0":"",R.transform=(m.devicePixelRatio||1)<=1?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",R))}return Object.assign({},j,(e={},e[l]=O?d+"px":"",e[A]=b?u+"px":"",e.transform="",e))}function Le(t){var e=t.state,r=t.options,n=r.gpuAcceleration,a=n===void 0?!0:n,i=r.adaptive,p=i===void 0?!0:i,s=r.roundOffsets,o=s===void 0?!0:s,c={placement:H(e.placement),variation:tt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Xt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:p,roundOffsets:o})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Xt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Le,data:{}};var ht={passive:!0};function We(t){var e=t.state,r=t.instance,n=t.options,a=n.scroll,i=a===void 0?!0:a,p=n.resize,s=p===void 0?!0:p,o=k(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(f){f.addEventListener("scroll",r.update,ht)}),s&&o.addEventListener("resize",r.update,ht),function(){i&&c.forEach(function(f){f.removeEventListener("scroll",r.update,ht)}),s&&o.removeEventListener("resize",r.update,ht)}}const He={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:We,data:{}};var Ve={left:"right",right:"left",bottom:"top",top:"bottom"};function mt(t){return t.replace(/left|right|bottom|top/g,function(e){return Ve[e]})}var Ne={start:"end",end:"start"};function It(t){return t.replace(/start|end/g,function(e){return Ne[e]})}function Bt(t){var e=k(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function $t(t){return _(q(t)).left+Bt(t).scrollLeft}function Fe(t,e){var r=k(t),n=q(t),a=r.visualViewport,i=n.clientWidth,p=n.clientHeight,s=0,o=0;if(a){i=a.width,p=a.height;var c=Zt();(c||!c&&e==="fixed")&&(s=a.offsetLeft,o=a.offsetTop)}return{width:i,height:p,x:s+$t(t),y:o}}function qe(t){var e,r=q(t),n=Bt(t),a=(e=t.ownerDocument)==null?void 0:e.body,i=G(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),p=G(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+$t(t),o=-n.scrollTop;return N(a||r).direction==="rtl"&&(s+=G(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:p,x:s,y:o}}function Ct(t){var e=N(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function ne(t){return["html","body","#document"].indexOf(V(t))>=0?t.ownerDocument.body:T(t)&&Ct(t)?t:ne(yt(t))}function it(t,e){var r;e===void 0&&(e=[]);var n=ne(t),a=n===((r=t.ownerDocument)==null?void 0:r.body),i=k(n),p=a?[i].concat(i.visualViewport||[],Ct(n)?n:[]):n,s=e.concat(p);return a?s:s.concat(it(yt(p)))}function Et(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xe(t,e){var r=_(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Yt(t,e,r){return e===Kt?Et(Fe(t,r)):J(e)?Xe(e,r):Et(qe(q(t)))}function Ie(t){var e=it(yt(t)),r=["absolute","fixed"].indexOf(N(t).position)>=0,n=r&&T(t)?pt(t):t;return J(n)?e.filter(function(a){return J(a)&&_t(a,n)&&V(a)!=="body"}):[]}function Ye(t,e,r,n){var a=e==="clippingParents"?Ie(t):[].concat(e),i=[].concat(a,[r]),p=i[0],s=i.reduce(function(o,c){var f=Yt(t,c,n);return o.top=G(f.top,o.top),o.right=gt(f.right,o.right),o.bottom=gt(f.bottom,o.bottom),o.left=G(f.left,o.left),o},Yt(t,p,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ae(t){var e=t.reference,r=t.element,n=t.placement,a=n?H(n):null,i=n?tt(n):null,p=e.x+e.width/2-r.width/2,s=e.y+e.height/2-r.height/2,o;switch(a){case B:o={x:p,y:e.y-r.height};break;case S:o={x:p,y:e.y+e.height};break;case L:o={x:e.x+e.width,y:s};break;case $:o={x:e.x-r.width,y:s};break;default:o={x:e.x,y:e.y}}var c=a?Rt(a):null;if(c!=null){var f=c==="y"?"height":"width";switch(i){case Q:o[c]=o[c]-(e[f]/2-r[f]/2);break;case ot:o[c]=o[c]+(e[f]/2-r[f]/2);break}}return o}function st(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=n===void 0?t.placement:n,i=r.strategy,p=i===void 0?t.strategy:i,s=r.boundary,o=s===void 0?ue:s,c=r.rootBoundary,f=c===void 0?Kt:c,h=r.elementContext,y=h===void 0?nt:h,u=r.altBoundary,w=u===void 0?!1:u,d=r.padding,v=d===void 0?0:d,b=ee(typeof v!="number"?v:re(v,ft)),O=y===nt?le:nt,A=t.rects.popper,l=t.elements[w?O:y],m=Ye(J(l)?l:l.contextElement||q(t.elements.popper),o,f,p),g=_(t.elements.reference),x=ae({reference:g,element:A,placement:a}),D=Et(Object.assign({},A,x)),P=y===nt?D:g,E={top:m.top-P.top+b.top,bottom:P.bottom-m.bottom+b.bottom,left:m.left-P.left+b.left,right:P.right-m.right+b.right},j=t.modifiersData.offset;if(y===nt&&j){var M=j[a];Object.keys(E).forEach(function(R){var X=[L,S].indexOf(R)>=0?1:-1,I=[B,S].indexOf(R)>=0?"y":"x";E[R]+=M[I]*X})}return E}function ze(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=r.boundary,i=r.rootBoundary,p=r.padding,s=r.flipVariations,o=r.allowedAutoPlacements,c=o===void 0?Qt:o,f=tt(n),h=f?s?Ft:Ft.filter(function(w){return tt(w)===f}):ft,y=h.filter(function(w){return c.indexOf(w)>=0});y.length===0&&(y=h);var u=y.reduce(function(w,d){return w[d]=st(t,{placement:d,boundary:a,rootBoundary:i,padding:p})[H(d)],w},{});return Object.keys(u).sort(function(w,d){return u[w]-u[d]})}function Ue(t){if(H(t)===Pt)return[];var e=mt(t);return[It(t),e,It(e)]}function Ge(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,p=r.altAxis,s=p===void 0?!0:p,o=r.fallbackPlacements,c=r.padding,f=r.boundary,h=r.rootBoundary,y=r.altBoundary,u=r.flipVariations,w=u===void 0?!0:u,d=r.allowedAutoPlacements,v=e.options.placement,b=H(v),O=b===v,A=o||(O||!w?[mt(v)]:Ue(v)),l=[v].concat(A).reduce(function(K,F){return K.concat(H(F)===Pt?ze(e,{placement:F,boundary:f,rootBoundary:h,padding:c,flipVariations:w,allowedAutoPlacements:d}):F)},[]),m=e.rects.reference,g=e.rects.popper,x=new Map,D=!0,P=l[0],E=0;E<l.length;E++){var j=l[E],M=H(j),R=tt(j)===Q,X=[B,S].indexOf(M)>=0,I=X?"width":"height",C=st(e,{placement:j,boundary:f,rootBoundary:h,altBoundary:y,padding:c}),W=X?R?L:$:R?S:B;m[I]>g[I]&&(W=mt(W));var ct=mt(W),Y=[];if(i&&Y.push(C[M]<=0),s&&Y.push(C[W]<=0,C[ct]<=0),Y.every(function(K){return K})){P=j,D=!1;break}x.set(j,Y)}if(D)for(var ut=w?3:1,bt=function(F){var rt=l.find(function(vt){var z=x.get(vt);if(z)return z.slice(0,F).every(function(wt){return wt})});if(rt)return P=rt,"break"},et=ut;et>0;et--){var lt=bt(et);if(lt==="break")break}e.placement!==P&&(e.modifiersData[n]._skip=!0,e.placement=P,e.reset=!0)}}const Je={name:"flip",enabled:!0,phase:"main",fn:Ge,requiresIfExists:["offset"],data:{_skip:!1}};function zt(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Ut(t){return[B,L,S,$].some(function(e){return t[e]>=0})}function Ke(t){var e=t.state,r=t.name,n=e.rects.reference,a=e.rects.popper,i=e.modifiersData.preventOverflow,p=st(e,{elementContext:"reference"}),s=st(e,{altBoundary:!0}),o=zt(p,n),c=zt(s,a,i),f=Ut(o),h=Ut(c);e.modifiersData[r]={referenceClippingOffsets:o,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Qe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ke};function Ze(t,e,r){var n=H(t),a=[$,B].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,p=i[0],s=i[1];return p=p||0,s=(s||0)*a,[$,L].indexOf(n)>=0?{x:s,y:p}:{x:p,y:s}}function _e(t){var e=t.state,r=t.options,n=t.name,a=r.offset,i=a===void 0?[0,0]:a,p=Qt.reduce(function(f,h){return f[h]=Ze(h,e.rects,i),f},{}),s=p[e.placement],o=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=p}const tr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_e};function er(t){var e=t.state,r=t.name;e.modifiersData[r]=ae({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const rr={name:"popperOffsets",enabled:!0,phase:"read",fn:er,data:{}};function nr(t){return t==="x"?"y":"x"}function ar(t){var e=t.state,r=t.options,n=t.name,a=r.mainAxis,i=a===void 0?!0:a,p=r.altAxis,s=p===void 0?!1:p,o=r.boundary,c=r.rootBoundary,f=r.altBoundary,h=r.padding,y=r.tether,u=y===void 0?!0:y,w=r.tetherOffset,d=w===void 0?0:w,v=st(e,{boundary:o,rootBoundary:c,padding:h,altBoundary:f}),b=H(e.placement),O=tt(e.placement),A=!O,l=Rt(b),m=nr(l),g=e.modifiersData.popperOffsets,x=e.rects.reference,D=e.rects.popper,P=typeof d=="function"?d(Object.assign({},e.rects,{placement:e.placement})):d,E=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),j=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(g){if(i){var R,X=l==="y"?B:$,I=l==="y"?S:L,C=l==="y"?"height":"width",W=g[l],ct=W+v[X],Y=W-v[I],ut=u?-D[C]/2:0,bt=O===Q?x[C]:D[C],et=O===Q?-D[C]:-x[C],lt=e.elements.arrow,K=u&<?jt(lt):{width:0,height:0},F=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:te(),rt=F[X],vt=F[I],z=at(0,x[C],K[C]),wt=A?x[C]/2-ut-z-rt-E.mainAxis:bt-z-rt-E.mainAxis,ie=A?-x[C]/2+ut+z+vt+E.mainAxis:et+z+vt+E.mainAxis,xt=e.elements.arrow&&pt(e.elements.arrow),oe=xt?l==="y"?xt.clientTop||0:xt.clientLeft||0:0,kt=(R=j?.[l])!=null?R:0,se=W+wt-kt-oe,fe=W+ie-kt,Tt=at(u?gt(ct,se):ct,W,u?G(Y,fe):Y);g[l]=Tt,M[l]=Tt-W}if(s){var St,pe=l==="x"?B:$,ce=l==="x"?S:L,U=g[m],dt=m==="y"?"height":"width",Lt=U+v[pe],Mt=U-v[ce],Ot=[B,$].indexOf(b)!==-1,Wt=(St=j?.[m])!=null?St:0,Ht=Ot?Lt:U-x[dt]-D[dt]-Wt+E.altAxis,Vt=Ot?U+x[dt]+D[dt]-Wt-E.altAxis:Mt,Nt=u&&Ot?Re(Ht,U,Vt):at(u?Ht:Lt,U,u?Vt:Mt);g[m]=Nt,M[m]=Nt-U}e.modifiersData[n]=M}}const ir={name:"preventOverflow",enabled:!0,phase:"main",fn:ar,requiresIfExists:["offset"]};function or(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function sr(t){return t===k(t)||!T(t)?Bt(t):or(t)}function fr(t){var e=t.getBoundingClientRect(),r=Z(e.width)/t.offsetWidth||1,n=Z(e.height)/t.offsetHeight||1;return r!==1||n!==1}function pr(t,e,r){r===void 0&&(r=!1);var n=T(e),a=T(e)&&fr(e),i=q(e),p=_(t,a,r),s={scrollLeft:0,scrollTop:0},o={x:0,y:0};return(n||!n&&!r)&&((V(e)!=="body"||Ct(i))&&(s=sr(e)),T(e)?(o=_(e,!0),o.x+=e.clientLeft,o.y+=e.clientTop):i&&(o.x=$t(i))),{x:p.left+s.scrollLeft-o.x,y:p.top+s.scrollTop-o.y,width:p.width,height:p.height}}function cr(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function a(i){r.add(i.name);var p=[].concat(i.requires||[],i.requiresIfExists||[]);p.forEach(function(s){if(!r.has(s)){var o=e.get(s);o&&a(o)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||a(i)}),n}function ur(t){var e=cr(t);return Oe.reduce(function(r,n){return r.concat(e.filter(function(a){return a.phase===n}))},[])}function lr(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function vr(t){var e=t.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Gt={placement:"bottom",modifiers:[],strategy:"absolute"};function Jt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function dr(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,a=e.defaultOptions,i=a===void 0?Gt:a;return function(s,o,c){c===void 0&&(c=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gt,i),modifiersData:{},elements:{reference:s,popper:o},attributes:{},styles:{}},h=[],y=!1,u={state:f,setOptions:function(b){var O=typeof b=="function"?b(f.options):b;d(),f.options=Object.assign({},i,f.options,O),f.scrollParents={reference:J(s)?it(s):s.contextElement?it(s.contextElement):[],popper:it(o)};var A=ur(vr([].concat(n,f.options.modifiers)));return f.orderedModifiers=A.filter(function(l){return l.enabled}),w(),u.update()},forceUpdate:function(){if(!y){var b=f.elements,O=b.reference,A=b.popper;if(Jt(O,A)){f.rects={reference:pr(O,pt(A),f.options.strategy==="fixed"),popper:jt(A)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(E){return f.modifiersData[E.name]=Object.assign({},E.data)});for(var l=0;l<f.orderedModifiers.length;l++){if(f.reset===!0){f.reset=!1,l=-1;continue}var m=f.orderedModifiers[l],g=m.fn,x=m.options,D=x===void 0?{}:x,P=m.name;typeof g=="function"&&(f=g({state:f,options:D,name:P,instance:u})||f)}}}},update:lr(function(){return new Promise(function(v){u.forceUpdate(),v(f)})}),destroy:function(){d(),y=!0}};if(!Jt(s,o))return u;u.setOptions(c).then(function(v){!y&&c.onFirstUpdate&&c.onFirstUpdate(v)});function w(){f.orderedModifiers.forEach(function(v){var b=v.name,O=v.options,A=O===void 0?{}:O,l=v.effect;if(typeof l=="function"){var m=l({state:f,name:b,instance:u,options:A}),g=function(){};h.push(m||g)}})}function d(){h.forEach(function(v){return v()}),h=[]}return u}}var hr=[He,rr,Me,Pe,tr,Je,ir,ke,Qe],mr=dr({defaultModifiers:hr});exports.createPopper=mr;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react");function G(o={}){const{nonce:r,onScriptLoadSuccess:i,onScriptLoadError:l}=o,[v,s]=e.useState(!1),u=e.useRef(i);u.current=i;const f=e.useRef(l);return f.current=l,e.useEffect(()=>{const t=document.createElement("script");return t.src="https://accounts.google.com/gsi/client",t.async=!0,t.defer=!0,t.nonce=r,t.onload=()=>{var n;s(!0),(n=u.current)===null||n===void 0||n.call(u)},t.onerror=()=>{var n;s(!1),(n=f.current)===null||n===void 0||n.call(f)},document.body.appendChild(t),()=>{document.body.removeChild(t)}},[r]),v}const C=e.createContext(null);function A({clientId:o,nonce:r,onScriptLoadSuccess:i,onScriptLoadError:l,children:v}){const s=G({nonce:r,onScriptLoadSuccess:i,onScriptLoadError:l}),u=e.useMemo(()=>({clientId:o,scriptLoadedSuccessfully:s}),[o,s]);return e.createElement(C.Provider,{value:u},v)}function y(){const o=e.useContext(C);if(!o)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return o}function E({flow:o="implicit",scope:r="",onSuccess:i,onError:l,onNonOAuthError:v,overrideScope:s,state:u,...f}){const{clientId:t,scriptLoadedSuccessfully:n}=y(),p=e.useRef(),m=e.useRef(i);m.current=i;const h=e.useRef(l);h.current=l;const R=e.useRef(v);R.current=v,e.useEffect(()=>{var c,d;if(!n)return;const b=o==="implicit"?"initTokenClient":"initCodeClient",w=(d=(c=window?.google)===null||c===void 0?void 0:c.accounts)===null||d===void 0?void 0:d.oauth2[b]({client_id:t,scope:s?r:`openid profile email ${r}`,callback:g=>{var a,S;if(g.error)return(a=h.current)===null||a===void 0?void 0:a.call(h,g);(S=m.current)===null||S===void 0||S.call(m,g)},error_callback:g=>{var a;(a=R.current)===null||a===void 0||a.call(R,g)},state:u,...f});p.current=w},[t,n,o,r,u]);const L=e.useCallback(c=>{var d;return(d=p.current)===null||d===void 0?void 0:d.requestAccessToken(c)},[]),_=e.useCallback(()=>{var c;return(c=p.current)===null||c===void 0?void 0:c.requestCode()},[]);return o==="implicit"?L:_}exports.GoogleOAuthProvider=A;exports.useGoogleLogin=E;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const Et=require("./vendor-react-CzqSQR9J.cjs");var ie={},Xe={},Ye={},pt;function P(){return pt||(pt=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Log=t.LogLevel=void 0;const v=" DEBUG ",_=" INFO ",E=" WARN ",m=" ERROR ";function g(p){return p.unshift("[Statsig]"),p}t.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class h{static info(...S){h.level>=t.LogLevel.Info&&console.info(_,...g(S))}static debug(...S){h.level>=t.LogLevel.Debug&&console.debug(v,...g(S))}static warn(...S){h.level>=t.LogLevel.Warn&&console.warn(E,...g(S))}static error(...S){h.level>=t.LogLevel.Error&&console.error(m,...g(S))}}t.Log=h,h.level=t.LogLevel.Warn})(Ye)),Ye}var bt;function ve(){return bt||(bt=1,(function(t){var v,_,E;Object.defineProperty(t,"__esModule",{value:!0}),t._getInstance=t._getStatsigGlobalFlag=t._getStatsigGlobal=void 0;const m=P(),g=()=>{try{return typeof __STATSIG__<"u"?__STATSIG__:o}catch{return o}};t._getStatsigGlobal=g;const h=s=>(0,t._getStatsigGlobal)()[s];t._getStatsigGlobalFlag=h;const p=s=>{const r=(0,t._getStatsigGlobal)();return s?r.instances&&r.instances[s]:(r.instances&&Object.keys(r.instances).length>1&&m.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),r.firstInstance)};t._getInstance=p;const S="__STATSIG__",a=typeof window<"u"?window:{},l=typeof Et.commonjsGlobal<"u"?Et.commonjsGlobal:{},n=typeof globalThis<"u"?globalThis:{},o=(E=(_=(v=a[S])!==null&&v!==void 0?v:l[S])!==null&&_!==void 0?_:n[S])!==null&&E!==void 0?E:{instance:t._getInstance};a[S]=o,l[S]=o,n[S]=o})(Xe)),Xe}var Ze={},wt;function vt(){return wt||(wt=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=void 0;const v=new Map,_="start",E="end",m="statsig::diagnostics";t.Diagnostics={_getMarkers:a=>v.get(a),_markInitOverallStart:a=>{p(a,g({},_,"overall"))},_markInitOverallEnd:(a,l,n)=>{p(a,g({success:l,error:l?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:n},E,"overall"))},_markInitNetworkReqStart:(a,l)=>{p(a,g(l,_,"initialize","network_request"))},_markInitNetworkReqEnd:(a,l)=>{p(a,g(l,E,"initialize","network_request"))},_markInitProcessStart:a=>{p(a,g({},_,"initialize","process"))},_markInitProcessEnd:(a,l)=>{p(a,g(l,E,"initialize","process"))},_clearMarkers:a=>{v.delete(a)},_formatError(a){if(a&&typeof a=="object")return{code:S(a,"code"),name:S(a,"name"),message:S(a,"message")}},_getDiagnosticsData(a,l,n,o){var s;return{success:a?.ok===!0,statusCode:a?.status,sdkRegion:(s=a?.headers)===null||s===void 0?void 0:s.get("x-statsig-region"),isDelta:n.includes('"is_delta":true')===!0?!0:void 0,attempt:l,error:t.Diagnostics._formatError(o)}},_enqueueDiagnosticsEvent(a,l,n,o){const s=t.Diagnostics._getMarkers(n);if(s==null||s.length<=0)return-1;const r=s[s.length-1].timestamp-s[0].timestamp;t.Diagnostics._clearMarkers(n);const e=h(a,{context:"initialize",markers:s.slice(),statsigOptions:o});return l.enqueue(e),r}};function g(a,l,n,o){return Object.assign({key:n,action:l,step:o,timestamp:Date.now()},a)}function h(a,l){return{eventName:m,user:a,value:null,metadata:l,time:Date.now()}}function p(a,l){var n;const o=(n=v.get(a))!==null&&n!==void 0?n:[];o.push(l),v.set(a,o)}function S(a,l){if(l in a)return a[l]}})(Ze)),Ze}var se={},pe={},be={},Ct;function Rn(){if(Ct)return be;Ct=1,Object.defineProperty(be,"__esModule",{value:!0}),be.EventBatch=void 0;let t=class{constructor(_){this.attempts=0,this.createdAt=Date.now(),this.events=_}incrementAttempts(){this.attempts++}};return be.EventBatch=t,be}var we={},kt;function mt(){return kt||(kt=1,Object.defineProperty(we,"__esModule",{value:!0}),we.EventRetryConstants=void 0,we.EventRetryConstants={MAX_RETRY_ATTEMPTS:8,DEFAULT_BATCH_SIZE:100,MAX_PENDING_BATCHES:40,TICK_INTERVAL_MS:1e3,QUICK_FLUSH_WINDOW_MS:200,MAX_LOCAL_STORAGE:500,get MAX_QUEUED_EVENTS(){return this.DEFAULT_BATCH_SIZE*this.MAX_PENDING_BATCHES}}),we}var Dt;function Ln(){if(Dt)return pe;Dt=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.BatchQueue=void 0;const t=Rn(),v=mt();class _{constructor(m=v.EventRetryConstants.DEFAULT_BATCH_SIZE){this._batches=[],this._batchSize=m}batchSize(){return this._batchSize}requeueBatch(m){return this._enqueueBatch(m)}hasFullBatch(){return this._batches.some(m=>m.events.length>=this._batchSize)}takeNextBatch(){return this._batches.shift()}takeAllBatches(){const m=this._batches;return this._batches=[],m}createBatches(m){let g=0,h=0;for(;g<m.length;){const p=m.slice(g,g+this._batchSize);h+=this._enqueueBatch(new t.EventBatch(p)),g+=this._batchSize}return h}_enqueueBatch(m){this._batches.push(m);let g=0;for(;this._batches.length>v.EventRetryConstants.MAX_PENDING_BATCHES;){const h=this._batches.shift();h&&(g+=h.events.length)}return g}}return pe.BatchQueue=_,pe}var oe={},et={},ae={},Ot;function St(){if(Ot)return ae;Ot=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae._isTypeMatch=ae._typeOf=void 0;function t(_){return Array.isArray(_)?"array":typeof _}ae._typeOf=t;function v(_,E){const m=g=>Array.isArray(g)?"array":g===null?"null":typeof g;return m(_)===m(E)}return ae._isTypeMatch=v,ae}var It;function me(){return It||(It=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._getSortedObject=t._DJB2Object=t._DJB2=void 0;const v=St(),_=g=>{let h=0;for(let p=0;p<g.length;p++){const S=g.charCodeAt(p);h=(h<<5)-h+S,h=h&h}return String(h>>>0)};t._DJB2=_;const E=(g,h)=>(0,t._DJB2)(JSON.stringify((0,t._getSortedObject)(g,h)));t._DJB2Object=E;const m=(g,h)=>{if(g==null)return null;const p=Object.keys(g).sort(),S={};return p.forEach(a=>{const l=g[a];if(h===0||(0,v._typeOf)(l)!=="object"){S[a]=l;return}S[a]=(0,t._getSortedObject)(l,h!=null?h-1:h)}),S};t._getSortedObject=m})(et)),et}var Tt;function Ve(){if(Tt)return oe;Tt=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe._getStorageKey=oe._getUserStorageKey=void 0;const t=me();function v(E,m,g){var h;if(g)return g(E,m);const p=m&&m.customIDs?m.customIDs:{},S=[`uid:${(h=m?.userID)!==null&&h!==void 0?h:""}`,`cids:${Object.keys(p).sort((a,l)=>a.localeCompare(l)).map(a=>`${a}-${p[a]}`).join(",")}`,`k:${E}`];return(0,t._DJB2)(S.join("|"))}oe._getUserStorageKey=v;function _(E,m,g){return m?v(E,m,g):(0,t._DJB2)(`k:${E}`)}return oe._getStorageKey=_,oe}var le={},ue={},tt={},Mt;function je(){return Mt||(Mt=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkParam=t.NetworkDefault=t.Endpoint=void 0,t.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},t.NetworkDefault={[t.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[t.Endpoint._initialize]:"https://featureassets.org/v1",[t.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},t.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}})(tt)),tt}var Ce={},Ft;function Qe(){if(Ft)return Ce;Ft=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.SDKType=void 0;const t={};let v;return Ce.SDKType={_get:_=>{var E;return((E=t[_])!==null&&E!==void 0?E:"js-mono")+(v??"")},_setClientType(_,E){t[_]=E},_setBindingType(_){(!v||v==="-react")&&(v="-"+_)}},Ce}var nt={},Rt;function Ne(){return Rt||(Rt=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigMetadataProvider=t.SDK_VERSION=void 0,t.SDK_VERSION="3.33.0";let v={sdkVersion:t.SDK_VERSION,sdkType:"js-mono"};t.StatsigMetadataProvider={get:()=>v,add:_=>{v=Object.assign(Object.assign({},v),_)}}})(nt)),nt}var rt={},it={},Lt;function V(){return Lt||(Lt=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._cloneObject=t._getUnloadEvent=t._getCurrentPageUrlSafe=t._addDocumentEventListenerSafe=t._addWindowEventListenerSafe=t._isServerEnv=t._getDocumentSafe=t._getWindowSafe=void 0;const v=P(),_=()=>typeof window<"u"?window:null;t._getWindowSafe=_;const E=()=>{var l;const n=(0,t._getWindowSafe)();return(l=n?.document)!==null&&l!==void 0?l:null};t._getDocumentSafe=E;const m=()=>{if((0,t._getDocumentSafe)()!==null)return!1;const l=typeof process<"u"&&process.versions!=null&&process.versions.node!=null;return typeof EdgeRuntime=="string"||l};t._isServerEnv=m;const g=(l,n)=>{const o=(0,t._getWindowSafe)();typeof o?.addEventListener=="function"&&o.addEventListener(l,n)};t._addWindowEventListenerSafe=g;const h=(l,n)=>{const o=(0,t._getDocumentSafe)();typeof o?.addEventListener=="function"&&o.addEventListener(l,n)};t._addDocumentEventListenerSafe=h;const p=()=>{var l;try{return(l=(0,t._getWindowSafe)())===null||l===void 0?void 0:l.location.href.split(/[?#]/)[0]}catch{return}};t._getCurrentPageUrlSafe=p;const S=()=>{const l=(0,t._getWindowSafe)();return l&&"onpagehide"in l?"pagehide":"beforeunload"};t._getUnloadEvent=S;const a=(l,n)=>{try{return JSON.parse(JSON.stringify(n))}catch{return v.Log.error(`Failed to clone object ${l}`),null}};t._cloneObject=a})(it)),it}var At;function Be(){return At||(At=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._notifyVisibilityChanged=t._subscribeToVisiblityChanged=t._isUnloading=t._isCurrentlyVisible=void 0;const v=V(),_="foreground",E="background",m=[];let g=_,h=!1;const p=()=>g===_;t._isCurrentlyVisible=p;const S=()=>h;t._isUnloading=S;const a=n=>{m.unshift(n)};t._subscribeToVisiblityChanged=a;const l=n=>{n!==g&&(g=n,m.forEach(o=>o(n)))};t._notifyVisibilityChanged=l,(0,v._addWindowEventListenerSafe)("focus",()=>{h=!1,(0,t._notifyVisibilityChanged)(_)}),(0,v._addWindowEventListenerSafe)("blur",()=>(0,t._notifyVisibilityChanged)(E)),(0,v._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,t._notifyVisibilityChanged)(document.visibilityState==="visible"?_:E)}),(0,v._addWindowEventListenerSafe)((0,v._getUnloadEvent)(),()=>{h=!0,(0,t._notifyVisibilityChanged)(E)})})(rt)),rt}var Pt;function An(){if(Pt)return ue;Pt=1;var t=ue&&ue.__awaiter||function(p,S,a,l){function n(o){return o instanceof a?o:new a(function(s){s(o)})}return new(a||(a=Promise))(function(o,s){function r(u){try{i(l.next(u))}catch(d){s(d)}}function e(u){try{i(l.throw(u))}catch(d){s(d)}}function i(u){u.done?o(u.value):n(u.value).then(r,e)}i((l=l.apply(p,S||[])).next())})};Object.defineProperty(ue,"__esModule",{value:!0}),ue.EventSender=void 0;const v=P(),_=je(),E=Qe(),m=Ne(),g=Be();let h=class{constructor(S,a,l,n,o){this._sdkKey=S,this._network=a,this._emitter=l,this._options=o,this._logEventUrlConfig=n}setLogEventCompressionMode(S){this._network.setLogEventCompressionMode(S)}sendBatch(S){return t(this,void 0,void 0,function*(){var a,l,n;let o="event_sender_unexpected_exception";const s={};try{const e=(0,g._isUnloading)()&&this._network.isBeaconSupported()&&((l=(a=this._options)===null||a===void 0?void 0:a.networkConfig)===null||l===void 0?void 0:l.networkOverrideFunc)==null;o="event_sender_pre_logs_flushed_emitter_exception",this._emitter({name:"pre_logs_flushed",events:S.events}),o=e?"event_sender_unexpected_exception":"event_sender_post_exception";const i=e?this._sendEventsViaBeacon(S,s):yield this._sendEventsViaPost(S,s);return i.success?(o="event_sender_logs_flushed_emitter_exception",this._emitter({name:"logs_flushed",events:S.events}),i):Object.assign(Object.assign(Object.assign({success:!1,statusCode:i.statusCode,failurePath:i.failurePath},i.failureErrorMessage?{failureErrorMessage:i.failureErrorMessage}:{}),i.failureDiagnosticBucket?{failureDiagnosticBucket:i.failureDiagnosticBucket}:{}),i.failureDiagnosticMetadata?{failureDiagnosticMetadata:i.failureDiagnosticMetadata}:{})}catch(r){return v.Log.warn("Failed to send batch:",r),Object.assign(Object.assign(Object.assign({success:!1,statusCode:-1,failurePath:(n=s.path)!==null&&n!==void 0?n:o},s.errorMessage?{failureErrorMessage:s.errorMessage}:{}),s.diagnosticBucket?{failureDiagnosticBucket:s.diagnosticBucket}:{}),s.diagnosticMetadata?{failureDiagnosticMetadata:s.diagnosticMetadata}:{})}})}_sendEventsViaPost(S,a){return t(this,void 0,void 0,function*(){var l,n;const o=yield this._network.post(this._getRequestData(S),a),s=(l=o?.code)!==null&&l!==void 0?l:-1;return s===-1?Object.assign(Object.assign(Object.assign({success:!1,statusCode:-1,failurePath:(n=a.path)!==null&&n!==void 0?n:o===void 0?"event_sender_post_returned_undefined":"event_sender_post_returned_null"},a.errorMessage?{failureErrorMessage:a.errorMessage}:{}),a.diagnosticBucket?{failureDiagnosticBucket:a.diagnosticBucket}:{}),a.diagnosticMetadata?{failureDiagnosticMetadata:a.diagnosticMetadata}:{}):{success:s>=200&&s<300,statusCode:s}})}_sendEventsViaBeacon(S,a){var l;const n=this._network.beacon(this._getRequestData(S),a);return Object.assign(Object.assign(Object.assign({success:n,statusCode:n?200:-1,failurePath:n?void 0:(l=a.path)!==null&&l!==void 0?l:"beacon_send_false"},!n&&a.errorMessage?{failureErrorMessage:a.errorMessage}:{}),!n&&a.diagnosticBucket?{failureDiagnosticBucket:a.diagnosticBucket}:{}),!n&&a.diagnosticMetadata?{failureDiagnosticMetadata:a.diagnosticMetadata}:{})}_getRequestData(S){return{sdkKey:this._sdkKey,data:{events:S.events},urlConfig:this._logEventUrlConfig,retries:3,preserveFailedStatusCode:!0,isCompressable:!0,params:{[_.NetworkParam.EventCount]:String(S.events.length)},headers:{"statsig-event-count":String(S.events.length),"statsig-retry-count":String(S.attempts),"statsig-sdk-type":E.SDKType._get(this._sdkKey),"statsig-sdk-version":m.SDK_VERSION},credentials:"same-origin"}}};return ue.EventSender=h,ue}var ke={},Ut;function Pn(){if(Ut)return ke;Ut=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.FlushInterval=void 0;const t=1e3,v=6e4;let _=class{constructor(){this._currentIntervalMs=t,this._lastFlushAttemptTime=Date.now()}getCurrentIntervalMs(){return this._currentIntervalMs}markFlushAttempt(){this._lastFlushAttemptTime=Date.now()}getTimeSinceLastAttempt(){return Date.now()-this._lastFlushAttemptTime}hasReachedMaxInterval(){return this.getTimeSinceLastAttempt()>=v}getTimeTillMaxInterval(){return v-this.getTimeSinceLastAttempt()}hasCompletelyRecoveredFromBackoff(){return this._currentIntervalMs<=t}adjustForSuccess(){const m=this._currentIntervalMs;m!==t&&(this._currentIntervalMs=Math.max(t,Math.floor(m/2)))}adjustForFailure(){const m=this._currentIntervalMs;this._currentIntervalMs=Math.min(v,m*2)}getTimeUntilNextFlush(){return this.getCurrentIntervalMs()-this.getTimeSinceLastAttempt()}};return ke.FlushInterval=_,ke}var De={},Nt;function Un(){if(Nt)return De;Nt=1,Object.defineProperty(De,"__esModule",{value:!0}),De.FlushType=void 0;var t;return(function(v){v.ScheduledMaxTime="scheduled:max_time",v.ScheduledFullBatch="scheduled:full_batch",v.Limit="limit",v.Manual="manual",v.Shutdown="shutdown"})(t||(De.FlushType=t={})),De}var Oe={},W={},ce={},jt;function Nn(){if(jt)return ce;jt=1;var t=ce&&ce.__awaiter||function(p,S,a,l){function n(o){return o instanceof a?o:new a(function(s){s(o)})}return new(a||(a=Promise))(function(o,s){function r(u){try{i(l.next(u))}catch(d){s(d)}}function e(u){try{i(l.throw(u))}catch(d){s(d)}}function i(u){u.done?o(u.value):n(u.value).then(r,e)}i((l=l.apply(p,S||[])).next())})};Object.defineProperty(ce,"__esModule",{value:!0}),ce._fetchTxtRecords=void 0;const v=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),_="https://cloudflare-dns.com/dns-query",E=["i","e","d"],m=200;function g(p){return t(this,void 0,void 0,function*(){const S=yield p(_,{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:v});if(!S.ok){const n=new Error("Failed to fetch TXT records from DNS");throw n.name="DnsTxtFetchError",n}const a=yield S.arrayBuffer(),l=new Uint8Array(a);return h(l)})}ce._fetchTxtRecords=g;function h(p){const S=p.findIndex((l,n)=>n<m&&String.fromCharCode(l)==="="&&E.includes(String.fromCharCode(p[n-1])));if(S===-1){const l=new Error("Failed to parse TXT records from DNS");throw l.name="DnsTxtParseError",l}let a="";for(let l=S-1;l<p.length;l++)a+=String.fromCharCode(p[l]);return a.split(",")}return ce}var st={},Bt;function Y(){return Bt||(Bt=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._setObjectInStorage=t._getObjectFromStorage=t.Storage=void 0;const v=P(),_=V(),E={},m={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:n=>E[n]?E[n]:null,setItem:(n,o)=>{E[n]=o},removeItem:n=>{delete E[n]},getAllKeys:()=>Object.keys(E)};let g=null;try{const n=(0,_._getWindowSafe)();n&&n.localStorage&&typeof n.localStorage.getItem=="function"&&(g={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:o=>n.localStorage.getItem(o),setItem:(o,s)=>n.localStorage.setItem(o,s),removeItem:o=>n.localStorage.removeItem(o),getAllKeys:()=>Object.keys(n.localStorage)})}catch{v.Log.warn("Failed to setup localStorageProvider.")}let h=g??m,p=h;function S(n){try{return n()}catch(o){if(o instanceof Error&&o.name==="SecurityError")return t.Storage._setProvider(m),null;throw o}}t.Storage={isReady:()=>p.isReady(),isReadyResolver:()=>p.isReadyResolver(),getProviderName:()=>p.getProviderName(),getItem:n=>S(()=>p.getItem(n)),setItem:(n,o)=>S(()=>p.setItem(n,o)),removeItem:n=>p.removeItem(n),getAllKeys:()=>p.getAllKeys(),_setProvider:n=>{h=n,p=n},_setDisabled:n=>{n?p=m:p=h}};function a(n){const o=t.Storage.getItem(n);try{return JSON.parse(o??"null")}catch{return v.Log.error(`Failed to parse value for key "${n}"`),null}}t._getObjectFromStorage=a;function l(n,o){t.Storage.setItem(n,JSON.stringify(o))}t._setObjectInStorage=l})(st)),st}var qt;function jn(){if(qt)return W;qt=1;var t=W&&W.__awaiter||function(s,r,e,i){function u(d){return d instanceof e?d:new e(function(C){C(d)})}return new(e||(e=Promise))(function(d,C){function c(w){try{y(i.next(w))}catch(D){C(D)}}function f(w){try{y(i.throw(w))}catch(D){C(D)}}function y(w){w.done?d(w.value):u(w.value).then(c,f)}y((i=i.apply(s,r||[])).next())})};Object.defineProperty(W,"__esModule",{value:!0}),W._isDomainFailure=W.NetworkFallbackResolver=void 0;const v=Nn(),_=me(),E=P(),m=Y(),g=10080*60*1e3,h=14400*1e3;let p=class{constructor(r){var e;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=(e=r.networkConfig)===null||e===void 0?void 0:e.networkOverrideFunc}setErrorBoundary(r){this._errorBoundary=r}tryBumpExpiryTime(r,e){var i;const u=(i=this._fallbackInfo)===null||i===void 0?void 0:i[e.endpoint];u&&(u.expiryTime=Date.now()+g,l(r,Object.assign(Object.assign({},this._fallbackInfo),{[e.endpoint]:u})))}getActiveFallbackUrl(r,e){var i,u;if(e.customUrl!=null&&e.fallbackUrls!=null)return null;let d=this._fallbackInfo;d==null&&(d=(i=n(r))!==null&&i!==void 0?i:{},this._fallbackInfo=d);const C=d[e.endpoint];return!C||Date.now()>((u=C.expiryTime)!==null&&u!==void 0?u:0)||e.getChecksum()!==C.urlConfigChecksum?(delete d[e.endpoint],this._fallbackInfo=d,l(r,this._fallbackInfo),null):C.url?C.url:null}tryFetchUpdatedFallbackInfo(r,e,i,u){return t(this,void 0,void 0,function*(){var d,C;try{if(!S(i,u))return!1;const f=e.customUrl==null&&e.fallbackUrls==null?yield this._tryFetchFallbackUrlsFromNetwork(e):e.fallbackUrls,y=this._pickNewFallbackUrl((d=this._fallbackInfo)===null||d===void 0?void 0:d[e.endpoint],f);return y?(this._updateFallbackInfoWithNewUrl(r,e,y),!0):!1}catch(c){return(C=this._errorBoundary)===null||C===void 0||C.logError("tryFetchUpdatedFallbackInfo",c),!1}})}_updateFallbackInfoWithNewUrl(r,e,i){var u,d,C;const c={urlConfigChecksum:e.getChecksum(),url:i,expiryTime:Date.now()+g,previous:[]},f=e.endpoint,y=(u=this._fallbackInfo)===null||u===void 0?void 0:u[f];y&&c.previous.push(...y.previous),c.previous.length>10&&(c.previous=[]);const w=(C=(d=this._fallbackInfo)===null||d===void 0?void 0:d[f])===null||C===void 0?void 0:C.url;w!=null&&c.previous.push(w),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[f]:c}),l(r,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(r){return t(this,void 0,void 0,function*(){var e;const i=this._dnsQueryCooldowns[r.endpoint];if(i&&Date.now()<i)return null;this._dnsQueryCooldowns[r.endpoint]=Date.now()+h;const u=[],d=yield(0,v._fetchTxtRecords)((e=this._networkOverrideFunc)!==null&&e!==void 0?e:fetch),C=o(r.defaultUrl);for(const c of d){if(!c.startsWith(r.endpointDnsKey+"="))continue;const f=c.split("=");if(f.length>1){let y=f[1];y.endsWith("/")&&(y=y.slice(0,-1)),u.push(`https://${y}${C}`)}}return u})}_pickNewFallbackUrl(r,e){var i;if(e==null)return null;const u=new Set((i=r?.previous)!==null&&i!==void 0?i:[]),d=r?.url;let C=null;for(const c of e){const f=c.endsWith("/")?c.slice(0,-1):c;if(!u.has(c)&&f!==d){C=f;break}}return C}};W.NetworkFallbackResolver=p;function S(s,r){var e;const i=(e=s?.toLowerCase())!==null&&e!==void 0?e:"";return r||i.includes("uncaught exception")||i.includes("failed to fetch")||i.includes("networkerror when attempting to fetch resource")}W._isDomainFailure=S;function a(s){return`statsig.network_fallback.${(0,_._DJB2)(s)}`}function l(s,r){const e=a(s);if(!r||Object.keys(r).length===0){m.Storage.removeItem(e);return}m.Storage.setItem(e,JSON.stringify(r))}function n(s){const r=a(s),e=m.Storage.getItem(r);if(!e)return null;try{return JSON.parse(e)}catch{return E.Log.error("Failed to parse FallbackInfo"),null}}function o(s){try{return new URL(s).pathname}catch{return null}}return W}var Ie={},Kt;function En(){if(Kt)return Ie;Kt=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.SDKFlags=void 0;const t={};return Ie.SDKFlags={setFlags:(v,_)=>{t[v]=_},get:(v,_)=>{var E,m;return(m=(E=t[v])===null||E===void 0?void 0:E[_])!==null&&m!==void 0?m:!1}},Ie}var ot={},Te={},$t;function yt(){if($t)return Te;$t=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.getUUID=void 0;function t(){if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();let v=new Date().getTime(),_=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return`xxxxxxxx-xxxx-4xxx-${"89ab"[Math.floor(Math.random()*4)]}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,m=>{let g=Math.random()*16;return v>0?(g=(v+g)%16|0,v=Math.floor(v/16)):(g=(_+g)%16|0,_=Math.floor(_/16)),(m==="x"?g:g&7|8).toString(16)})}return Te.getUUID=t,Te}var xt;function qe(){return xt||(xt=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSession=t.SessionID=void 0;const v=Ve(),_=P(),E=Y(),m=yt(),g=Be(),h=1800*1e3,p=14400*1e3,S=15e3,a={};(0,g._subscribeToVisiblityChanged)(c=>{c==="background"&&Object.values(a).forEach(f=>e(f))}),t.SessionID={get:c=>t.StatsigSession.get(c).data.sessionID},t.StatsigSession={get:(c,f=!0)=>{a[c]==null&&(a[c]=d(c));const y=a[c];return l(y,f)},overrideInitialSessionID:(c,f)=>{const y=Date.now(),w={data:{sessionID:c,startTime:y,lastUpdate:y},sdkKey:f,lastPersistedAt:Date.now(),storageKey:r(f)};e(w),a[f]=w},checkForIdleSession:c=>{const f=a[c];if(!f)return;n(f)&&e(f)}};function l(c,f){const y=Date.now();return n(c)?e(c):f&&(c.data.lastUpdate=y,i(c)),c}function n(c){var f;const y=c.data,w=o(y)||s(y);return w&&(c.data=C(),(f=__STATSIG__==null?void 0:__STATSIG__.instance(c.sdkKey))===null||f===void 0||f.$emt({name:"session_expired"})),w}function o({lastUpdate:c}){return Date.now()-c>h}function s({startTime:c}){return Date.now()-c>p}function r(c){return`statsig.session_id.${(0,v._getStorageKey)(c)}`}function e(c){try{(0,E._setObjectInStorage)(c.storageKey,c.data),c.lastPersistedAt=Date.now()}catch{_.Log.warn("Failed to save SessionID")}}function i(c){Date.now()-c.lastPersistedAt>S&&e(c)}function u(c){return(0,E._getObjectFromStorage)(c)}function d(c){const f=r(c),y=u(f);return y&&y.sessionID&&y.startTime&&y.lastUpdate?{data:y,sdkKey:c,lastPersistedAt:0,storageKey:f}:{data:C(),sdkKey:c,lastPersistedAt:0,storageKey:f}}function C(){return{sessionID:(0,m.getUUID)(),startTime:Date.now(),lastUpdate:Date.now()}}})(ot)),ot}var de={},Gt;function Ke(){if(Gt)return de;Gt=1,Object.defineProperty(de,"__esModule",{value:!0}),de.getCookieName=de.StableID=void 0;const t=Ve(),v=P(),_=V(),E=Y(),m=yt(),g={},h={},p={};de.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:r=>{if(p[r])return null;if(g[r]!=null)return g[r];let e=null;return e=n(r),e!=null?(g[r]=e,a(e,r),e):(e=l(r),e==null&&(e=(0,m.getUUID)()),a(e,r),o(e,r),g[r]=e,e)},setOverride:(r,e)=>{g[e]=r,a(r,e),o(r,e)},_setCookiesEnabled:(r,e)=>{h[r]=e},_setDisabled:(r,e)=>{p[r]=e}};function S(r){return`statsig.stable_id.${(0,t._getStorageKey)(r)}`}function a(r,e){const i=S(e);try{(0,E._setObjectInStorage)(i,r)}catch{v.Log.warn("Failed to save StableID to storage")}}function l(r){const e=S(r);return(0,E._getObjectFromStorage)(e)}function n(r){if(!h[r]||(0,_._getDocumentSafe)()==null)return null;const e=document.cookie.split(";");for(const i of e){const[u,d]=i.trim().split("=");if(u===s(r))return decodeURIComponent(d)}return null}function o(r,e){if(!h[e]||(0,_._getDocumentSafe)()==null)return;const i=new Date;i.setFullYear(i.getFullYear()+1),document.cookie=`${s(e)}=${encodeURIComponent(r)}; expires=${i.toUTCString()}; path=/`}function s(r){return`statsig.stable_id.${(0,t._getStorageKey)(r)}`}return de.getCookieName=s,de}var Me={},zt;function pn(){return zt||(zt=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.ErrorTag=void 0,Me.ErrorTag={NetworkError:"NetworkError"}),Me}var _e={},Vt;function $e(){return Vt||(Vt=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.LoggingEnabledOption=_e.LogEventCompressionMode=void 0,_e.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},_e.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}),_e}var Qt;function bn(){return Qt||(Qt=1,(function(t){var v=Oe&&Oe.__awaiter||function(O,b,k,I){function T(F){return F instanceof k?F:new k(function(R){R(F)})}return new(k||(k=Promise))(function(F,R){function K(U){try{B(I.next(U))}catch(q){R(q)}}function z(U){try{B(I.throw(U))}catch(q){R(q)}}function B(U){U.done?F(U.value):T(U.value).then(K,z)}B((I=I.apply(O,b||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkCore=t.RETRYABLE_CODES=void 0,ve();const _=ve(),E=vt(),m=P(),g=je(),h=jn(),p=En(),S=Qe(),a=V(),l=qe(),n=Ke(),o=pn(),s=Ne(),r=$e(),e=Be(),i=1e4,u=500,d=3e4,C=1e3,c=50,f=c/C;t.RETRYABLE_CODES=new Set([408,500,502,503,504,522,524,599]);let y=class{constructor(b,k){this._emitter=k,this._errorBoundary=null,this._timeout=i,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,b&&(this._options=b),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new h.NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(b))}setLogEventCompressionMode(b){this._options.logEventCompressionMode=b}setErrorBoundary(b){this._errorBoundary=b,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(b)}isBeaconSupported(){return typeof navigator<"u"&&typeof navigator.sendBeacon=="function"}getLastUsedInitUrlAndReset(){const b=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,b}beacon(b,k){if(!w(b))return k&&(k.path="beacon_invalid_sdk_key"),!1;const I=this._getInternalRequestArgs("POST",b),T=this._getPopulatedURL(I),F=navigator;try{const R=F.sendBeacon.bind(F)(T,I.body);return R||k&&(k.path="beacon_send_false"),R}catch(R){throw k&&(k.path="beacon_send_exception"),R}}post(b,k){return v(this,void 0,void 0,function*(){const I=this._getInternalRequestArgs("POST",b);return this._tryEncodeBody(I),yield this._tryToCompressBody(I),this._sendRequest(I,k)})}get(b){const k=this._getInternalRequestArgs("GET",b);return this._sendRequest(k)}_sendRequest(b,k){return v(this,void 0,void 0,function*(){var I,T,F,R;if(!w(b))return k&&(k.path="network_invalid_sdk_key"),null;if(this._netConfig.preventAllNetworkTraffic)return k&&(k.path="network_prevent_all_network_traffic"),null;const{method:K,body:z,retries:B,attempt:U}=b,q=b.urlConfig.endpoint;if(this._isRateLimited(q))return m.Log.warn(`Request to ${q} was blocked because you are making requests too frequently.`),k&&(k.path="network_rate_limited"),null;const G=U??1;let Q=!1;const J=this._getPopulatedURL(b),Ge=Date.now();let N=null;const We=(0,e._isUnloading)();try{const ne={method:K,body:z,headers:Object.assign({},b.headers),priority:b.priority,keepalive:We};te(b,G);const A=this._leakyBucket[q];A&&(A.lastRequestTime=Date.now(),this._leakyBucket[q]=A);const ye=(I=this._netConfig.networkOverrideFunc)!==null&&I!==void 0?I:fetch;let He;if(N=yield Promise.race([ye(J,ne).finally(()=>clearTimeout(He)),new Promise((Se,ze)=>{He=setTimeout(()=>{Q=!0,ze(new Error(`Timeout of ${this._timeout}ms expired.`))},this._timeout)})]),!N.ok){const Se=yield N.text().catch(()=>"No Text"),ze=new Error(`NetworkError: ${J} ${Se}`);throw ze.name="NetworkError",ze}const Ee=yield N.text();return Je(b,N,G,Ee),this._fallbackResolver.tryBumpExpiryTime(b.sdkKey,b.urlConfig),{body:Ee,code:N.status}}catch(ne){const A=L(ne),ye=Z(A??"",Q);if(Je(b,N,G,"",ne),(yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(b.sdkKey,b.urlConfig,A,ye))&&(b.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(b.sdkKey,b.urlConfig)),!B||G>B||!t.RETRYABLE_CODES.has((T=N?.status)!==null&&T!==void 0?T:500)){(F=this._emitter)===null||F===void 0||F.call(this,{name:"error",error:ne,tag:o.ErrorTag.NetworkError,requestArgs:b});const Ee=`A networking error occurred during ${K} request to ${J}.`;if(m.Log.error(Ee,A,ne),(R=this._errorBoundary)===null||R===void 0||R.attachErrorIfNoneExists(Ee),b.preserveFailedStatusCode&&N!=null)return{body:null,code:N.status};if(N==null&&k){k.path=ye?"network_request_timed_out_no_response":"network_request_exception_no_response",A&&(k.errorMessage=A);try{const Se=ee(b,J,ye,Date.now()-Ge);k.diagnosticBucket=Se.bucket,k.diagnosticMetadata=Se.metadata}catch{}}return null}return yield Fn(G),this._sendRequest(Object.assign(Object.assign({},b),{retries:B,attempt:G+1}),k)}})}_getLogEventCompressionMode(b){let k=b?.logEventCompressionMode;return!k&&b?.disableCompression===!0&&(k=r.LogEventCompressionMode.Disabled),k||(k=r.LogEventCompressionMode.Enabled),k}_isRateLimited(b){var k;const I=Date.now(),T=(k=this._leakyBucket[b])!==null&&k!==void 0?k:{count:0,lastRequestTime:I},F=I-T.lastRequestTime,R=Math.floor(F*f);return T.count=Math.max(0,T.count-R),T.count>=c?!0:(T.count+=1,T.lastRequestTime=I,this._leakyBucket[b]=T,!1)}_getPopulatedURL(b){var k;const I=(k=b.fallbackUrl)!==null&&k!==void 0?k:b.urlConfig.getUrl();(b.urlConfig.endpoint===g.Endpoint._initialize||b.urlConfig.endpoint===g.Endpoint._download_config_specs)&&(this._lastUsedInitUrl=I);const T=Object.assign({[g.NetworkParam.SdkKey]:b.sdkKey,[g.NetworkParam.SdkType]:S.SDKType._get(b.sdkKey),[g.NetworkParam.SdkVersion]:s.SDK_VERSION,[g.NetworkParam.Time]:String(Date.now()),[g.NetworkParam.SessionID]:l.SessionID.get(b.sdkKey)},b.params),F=Object.keys(T).map(R=>`${encodeURIComponent(R)}=${encodeURIComponent(T[R])}`).join("&");return`${I}${F?`?${F}`:""}`}_tryEncodeBody(b){var k;const I=(0,a._getWindowSafe)(),T=b.body;if(!(!b.isStatsigEncodable||this._options.disableStatsigEncoding||typeof T!="string"||(0,_._getStatsigGlobalFlag)("no-encode")!=null||!I?.btoa))try{b.body=I.btoa(T).split("").reverse().join(""),b.params=Object.assign(Object.assign({},(k=b.params)!==null&&k!==void 0?k:{}),{[g.NetworkParam.StatsigEncoded]:"1"})}catch(F){m.Log.warn(`Request encoding failed for ${b.urlConfig.getUrl()}`,F)}}_tryToCompressBody(b){return v(this,void 0,void 0,function*(){var k;const I=b.body;if(!(typeof I!="string"||!M(b,this._options)))try{const T=new TextEncoder().encode(I),F=new CompressionStream("gzip"),R=F.writable.getWriter();R.write(T).catch(m.Log.error),R.close().catch(m.Log.error);const K=F.readable.getReader(),z=[];let B;for(;!(B=yield K.read()).done;)z.push(B.value);const U=z.reduce((Q,J)=>Q+J.length,0),q=new Uint8Array(U);let G=0;for(const Q of z)q.set(Q,G),G+=Q.length;b.body=q,b.params=Object.assign(Object.assign({},(k=b.params)!==null&&k!==void 0?k:{}),{[g.NetworkParam.IsGzipped]:"1"})}catch(T){m.Log.warn(`Request compression failed for ${b.urlConfig.getUrl()}`,T)}})}_getInternalRequestArgs(b,k){const I=this._fallbackResolver.getActiveFallbackUrl(k.sdkKey,k.urlConfig),T=Object.assign(Object.assign({},k),{method:b,fallbackUrl:I});return"data"in k&&D(T,k.data),T}};t.NetworkCore=y;const w=O=>O.sdkKey?!0:(m.Log.warn("Unable to make request without an SDK key"),!1),D=(O,b)=>{const{sdkKey:k,fallbackUrl:I}=O,T=n.StableID.get(k),F=l.SessionID.get(k),R=S.SDKType._get(k);O.body=JSON.stringify(Object.assign(Object.assign({},b),{statsigMetadata:Object.assign(Object.assign({},s.StatsigMetadataProvider.get()),{stableID:T,sessionID:F,sdkType:R,fallbackUrl:I})}))};function M(O,b){if(!O.isCompressable||(0,_._getStatsigGlobalFlag)("no-compress")!=null||typeof CompressionStream>"u"||typeof TextEncoder>"u")return!1;const k=O.urlConfig.customUrl!=null||O.urlConfig.fallbackUrls!=null,I=p.SDKFlags.get(O.sdkKey,"enable_log_event_compression")===!0;switch(b.logEventCompressionMode){case r.LogEventCompressionMode.Disabled:return!1;case r.LogEventCompressionMode.Enabled:return!(k&&!I);case r.LogEventCompressionMode.Forced:return!0;default:return!1}}function L(O){return typeof O=="string"?O:O instanceof Error?`${O.name}: ${O.message}`:"Unknown Error"}function Z(O,b){return O.includes("Timeout")||b}function ee(O,b,k,I){var T,F,R;const K=(0,a._getWindowSafe)(),z=K?.document,B=typeof navigator<"u"?navigator:null,U=(0,e._isUnloading)(),q=B&&typeof B.onLine=="boolean"?String(B.onLine):"unknown",G=(T=z?.visibilityState)!==null&&T!==void 0?T:"unknown",Q=Object.keys((F=O.headers)!==null&&F!==void 0?F:{}).length>0,J=x(b,(R=K?.location)===null||R===void 0?void 0:R.origin),Ge=O.urlConfig.customUrl!=null,N=O.fallbackUrl!=null,We=xe(I,[250,1e3,5e3,1e4]),ne=xe(re(O.body),[16384,65536,262144,1048576]);let A="unknown_no_response";return k?A="timeout":q==="false"?A="browser_offline":U?A="page_unloading":G==="hidden"?A="page_hidden":J&&Q?A="cross_origin_custom_headers_preflight_risk":Ge||N?A="custom_url_no_response":I<250&&(A="immediate_network_rejection"),{bucket:A,metadata:{elapsedMsBucket:We,bodySizeBucket:ne,online:q,visibilityState:G,isUnloading:String(U),crossOrigin:String(J),hasCustomUrl:String(Ge)}}}function x(O,b){return b?!O.startsWith(`${b}/`)&&!O.startsWith(`${b}?`)&&O!==b:!0}function re(O){return O==null?0:typeof O=="string"?O.length:O instanceof Uint8Array?O.byteLength:typeof Blob<"u"&&O instanceof Blob?O.size:-1}function xe(O,b){if(O<0)return"unknown";for(const k of b)if(O<k)return`<${k}`;return`>=${b[b.length-1]}`}function te(O,b){O.urlConfig.endpoint===g.Endpoint._initialize&&E.Diagnostics._markInitNetworkReqStart(O.sdkKey,{attempt:b})}function Je(O,b,k,I,T){O.urlConfig.endpoint===g.Endpoint._initialize&&E.Diagnostics._markInitNetworkReqEnd(O.sdkKey,E.Diagnostics._getDiagnosticsData(b,k,I,T))}function Fn(O){return v(this,void 0,void 0,function*(){yield new Promise(b=>setTimeout(b,Math.min(u*(O*O),d)))})}})(Oe)),Oe}var Jt;function Bn(){if(Jt)return le;Jt=1;var t=le&&le.__awaiter||function(r,e,i,u){function d(C){return C instanceof i?C:new i(function(c){c(C)})}return new(i||(i=Promise))(function(C,c){function f(D){try{w(u.next(D))}catch(M){c(M)}}function y(D){try{w(u.throw(D))}catch(M){c(M)}}function w(D){D.done?C(D.value):d(D.value).then(f,y)}w((u=u.apply(r,e||[])).next())})};Object.defineProperty(le,"__esModule",{value:!0}),le.FlushCoordinator=void 0;const v=mt(),_=An(),E=Pn(),m=Un(),g=me(),h=P(),p=bn(),S=V(),a=qe(),l=$e(),n=Y(),o=new Set(["network_request_timed_out_no_response","network_request_exception_no_response","event_sender_post_returned_null","event_sender_post_returned_undefined","event_sender_post_exception"]);let s=class{constructor(e,i,u,d,C,c,f,y,w,D){this._cooldownTimer=null,this._maxIntervalTimer=null,this._hasRunQuickFlush=!1,this._currentFlushPromise=null,this._creationTime=Date.now(),this._isShuttingDown=!1,this._storageKey=null,this._flushInterval=new E.FlushInterval,this._batchQueue=e,this._pendingEvents=i,this._onPrepareFlush=u,this._errorBoundary=D,this._sdkKey=d,this._loggingEnabled=w,this._eventSender=new _.EventSender(d,C,c,f,y)}setLoggingEnabled(e){this._loggingEnabled=e}setLogEventCompressionMode(e){this._eventSender.setLogEventCompressionMode(e)}startScheduledFlushCycle(){this._scheduleNextFlush()}stopScheduledFlushCycle(){this._clearAllTimers()}addEvent(e){this._pendingEvents.addToPendingEventsQueue(e),!this._currentFlushPromise&&this._pendingEvents.hasEventsForFullBatch()&&this.processLimitFlush()}processManualFlush(){return t(this,void 0,void 0,function*(){return this._currentFlushPromise&&(yield this._currentFlushPromise),this._currentFlushPromise=this._executeFlush(m.FlushType.Manual).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()}),this._currentFlushPromise})}processShutdown(){return t(this,void 0,void 0,function*(){return this._isShuttingDown=!0,this._clearAllTimers(),this._currentFlushPromise&&(yield this._currentFlushPromise),this._currentFlushPromise=this._executeFlush(m.FlushType.Shutdown).catch(e=>{h.Log.error(`Error during shutdown flush: ${e}`)}).finally(()=>{this._currentFlushPromise=null}),this._currentFlushPromise})}_executeFlush(e){return t(this,void 0,void 0,function*(){this._clearAllTimers();try{this._prepareQueueForFlush(e);const i=this._batchQueue.takeAllBatches();if(i.length===0)return;yield Promise.all(i.map(u=>this._processOneBatch(u,e)))}finally{this._isShuttingDown||this._scheduleNextFlush()}})}checkQuickFlush(){this._hasRunQuickFlush||Date.now()-this._creationTime>v.EventRetryConstants.QUICK_FLUSH_WINDOW_MS||(this._hasRunQuickFlush=!0,setTimeout(()=>{this.processManualFlush().catch(e=>{h.Log.warn("Quick flush failed:",e)})},v.EventRetryConstants.QUICK_FLUSH_WINDOW_MS))}_attemptScheduledFlush(){if(this._currentFlushPromise){this._scheduleNextFlush();return}const e=this.containsAtLeastOneFullBatch(),i=this._flushInterval.hasReachedMaxInterval();if(!e&&!i){this._scheduleNoopPollTick();return}this._flushInterval.markFlushAttempt();let u;e?u=m.FlushType.ScheduledFullBatch:u=m.FlushType.ScheduledMaxTime,this._currentFlushPromise=this._processNextBatch(u).then(()=>{}).catch(d=>{h.Log.error("Error during scheduled flush:",d)}).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()})}processLimitFlush(){this._flushInterval.hasCompletelyRecoveredFromBackoff()&&(this._currentFlushPromise||(this._currentFlushPromise=this._processLimitFlushInternal().catch(e=>{h.Log.error("Error during limit flush",e)}).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()})))}_processLimitFlushInternal(){return t(this,void 0,void 0,function*(){if(yield this._processNextBatch(m.FlushType.Limit))for(;this._flushInterval.hasCompletelyRecoveredFromBackoff()&&this.containsAtLeastOneFullBatch()&&(yield this._processNextBatch(m.FlushType.Limit)););})}_scheduleNextFlush(){if(this._clearAllTimers(),this._isShuttingDown)return;const e=Math.max(0,this._flushInterval.getTimeUntilNextFlush());this._cooldownTimer=setTimeout(()=>{this._cooldownTimer=null,a.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},e);const i=Math.max(0,this._flushInterval.getTimeTillMaxInterval());this._maxIntervalTimer=setTimeout(()=>{this._maxIntervalTimer=null,a.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},i)}_clearAllTimers(){this._cooldownTimer!==null&&(clearTimeout(this._cooldownTimer),this._cooldownTimer=null),this._maxIntervalTimer!==null&&(clearTimeout(this._maxIntervalTimer),this._maxIntervalTimer=null)}_scheduleNoopPollTick(){if(this._clearAllTimers(),this._isShuttingDown)return;this._cooldownTimer=setTimeout(()=>{this._cooldownTimer=null,a.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},v.EventRetryConstants.TICK_INTERVAL_MS);const e=Math.max(0,this._flushInterval.getTimeTillMaxInterval());this._maxIntervalTimer=setTimeout(()=>{this._maxIntervalTimer=null,a.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},e)}_processNextBatch(e){return t(this,void 0,void 0,function*(){this._prepareQueueForFlush(e);const i=this._batchQueue.takeNextBatch();return i?this._processOneBatch(i,e):!1})}_processOneBatch(e,i){return t(this,void 0,void 0,function*(){if(this._loggingEnabled!==l.LoggingEnabledOption.always&&(0,S._isServerEnv)())return this._flushInterval.adjustForSuccess(),!0;const u=yield this._eventSender.sendBatch(e);return u.success?(this._flushInterval.adjustForSuccess(),!0):(this._flushInterval.adjustForFailure(),this._handleFailure(e,i,u.statusCode,u.failurePath,u.failureErrorMessage,u.failureDiagnosticBucket,u.failureDiagnosticMetadata),!1)})}_prepareQueueForFlush(e){this._onPrepareFlush();const i=this.convertPendingEventsToBatches();i>0&&(h.Log.warn(`Dropped ${i} events`),this._errorBoundary.logDroppedEvents(i,"Batch queue limit reached during batching",{loggingInterval:this._flushInterval.getCurrentIntervalMs(),batchSize:this._batchQueue.batchSize(),maxPendingBatches:v.EventRetryConstants.MAX_PENDING_BATCHES,flushType:e,retries:"dropped before batching"}))}containsAtLeastOneFullBatch(){return this._pendingEvents.hasEventsForFullBatch()||this._batchQueue.hasFullBatch()}convertPendingEventsToBatches(){if(this._pendingEvents.isEmpty())return 0;const e=this._pendingEvents.takeAll();return this._batchQueue.createBatches(e)}_isRetryableBatch(e,i){return!!(p.RETRYABLE_CODES.has(e)||e===-1&&i&&o.has(i))}_handleFailure(e,i,u,d,C,c,f){if(i===m.FlushType.Shutdown){h.Log.warn(`${i} flush failed during shutdown. ${e.events.length} event(s) will be saved to storage for retry in next session.`),this._saveShutdownFailedEventsToStorage(e.events);return}if(!this._isRetryableBatch(u,d)){const w="non-retryable error";h.Log.warn(`${i} flush failed after ${e.attempts} attempt(s). ${e.events.length} event(s) will be dropped. Non-retryable error: ${u}`),this._errorBoundary.logEventRequestFailure(e.events.length,w,i,u,e.attempts,d,C,c,f);return}if(e.attempts>=v.EventRetryConstants.MAX_RETRY_ATTEMPTS){const w="max retry attempts exceeded";h.Log.warn(`${i} flush failed after ${e.attempts} attempt(s). ${e.events.length} event(s) will be dropped.`),this._errorBoundary.logEventRequestFailure(e.events.length,w,i,u,e.attempts,d,C,c,f);return}e.incrementAttempts();const y=this._batchQueue.requeueBatch(e);y>0&&(h.Log.warn(`Failed to requeue batch : dropped ${y} events due to full queue`),this._errorBoundary.logDroppedEvents(y,"Batch queue limit reached during requeue",{loggingInterval:this._flushInterval.getCurrentIntervalMs(),batchSize:this._batchQueue.batchSize(),maxPendingBatches:v.EventRetryConstants.MAX_PENDING_BATCHES,flushType:i,retries:e.attempts}))}loadAndRetryShutdownFailedEvents(){return t(this,void 0,void 0,function*(){const e=this._getStorageKey();try{n.Storage.isReady()||(yield n.Storage.isReadyResolver());const i=this._getShutdownFailedEventsFromStorage(e);if(i.length===0)return;h.Log.debug(`Loading ${i.length} failed shutdown event(s) from storage for retry`),n.Storage.removeItem(e),i.forEach(u=>{this.addEvent(u)}),yield this.processManualFlush()}catch(i){h.Log.warn("Failed to load and retry failed shutdown events:",i)}})}_getStorageKey(){return this._storageKey||(this._storageKey=`statsig.failed_shutdown_events.${(0,g._DJB2)(this._sdkKey)}`),this._storageKey}_saveShutdownFailedEventsToStorage(e){const i=this._getStorageKey();try{let d=[...this._getShutdownFailedEventsFromStorage(i),...e];d.length>v.EventRetryConstants.MAX_LOCAL_STORAGE&&(d=d.slice(-v.EventRetryConstants.MAX_LOCAL_STORAGE)),(0,n._setObjectInStorage)(i,d),h.Log.debug(`Saved ${e.length} failed shutdown event(s) to storage (total stored: ${d.length})`)}catch(u){h.Log.warn("Unable to save failed shutdown events to storage:",u)}}_getShutdownFailedEventsFromStorage(e){try{const i=(0,n._getObjectFromStorage)(e);return Array.isArray(i)?i:[]}catch{return[]}}};return le.FlushCoordinator=s,le}var Fe={},Wt;function qn(){if(Wt)return Fe;Wt=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.PendingEvents=void 0;const t=P();let v=class{constructor(E){this._pendingEvents=[],this._batchSize=E}addToPendingEventsQueue(E){this._pendingEvents.push(E),t.Log.debug("Enqueued Event:",E)}hasEventsForFullBatch(){return this._pendingEvents.length>=this._batchSize}takeAll(){const E=this._pendingEvents;return this._pendingEvents=[],E}isEmpty(){return this._pendingEvents.length===0}};return Fe.PendingEvents=v,Fe}var $={},Ht;function wn(){if(Ht)return $;Ht=1,Object.defineProperty($,"__esModule",{value:!0}),$._createLayerParameterExposure=$._createConfigExposure=$._mapExposures=$._createGateExposure=$._isExposureEvent=void 0;const t="statsig::config_exposure",v="statsig::gate_exposure",_="statsig::layer_exposure",E=(l,n,o,s,r)=>(o.bootstrapMetadata&&(s.bootstrapMetadata=o.bootstrapMetadata),{eventName:l,user:n,value:null,metadata:a(o,s),secondaryExposures:r,time:Date.now()}),m=({eventName:l})=>l===v||l===t||l===_;$._isExposureEvent=m;const g=(l,n,o)=>{var s,r,e;const i={gate:n.name,gateValue:String(n.value),ruleID:n.ruleID};return((s=n.__evaluation)===null||s===void 0?void 0:s.version)!=null&&(i.configVersion=n.__evaluation.version),E(v,l,n.details,i,h((e=(r=n.__evaluation)===null||r===void 0?void 0:r.secondary_exposures)!==null&&e!==void 0?e:[],o))};$._createGateExposure=g;function h(l,n){return l.map(o=>typeof o=="string"?(n??{})[o]:o).filter(o=>o!=null)}$._mapExposures=h;const p=(l,n,o)=>{var s,r,e,i;const u={config:n.name,ruleID:n.ruleID};return((s=n.__evaluation)===null||s===void 0?void 0:s.version)!=null&&(u.configVersion=n.__evaluation.version),((r=n.__evaluation)===null||r===void 0?void 0:r.passed)!=null&&(u.rulePassed=String(n.__evaluation.passed)),E(t,l,n.details,u,h((i=(e=n.__evaluation)===null||e===void 0?void 0:e.secondary_exposures)!==null&&i!==void 0?i:[],o))};$._createConfigExposure=p;const S=(l,n,o,s)=>{var r,e,i,u,d,C,c;const f=n.__evaluation,y=((r=f?.explicit_parameters)===null||r===void 0?void 0:r.includes(o))===!0;let w="",D=(e=f?.undelegated_secondary_exposures)!==null&&e!==void 0?e:[];y&&(w=(i=f.allocated_experiment_name)!==null&&i!==void 0?i:"",D=(u=f.secondary_exposures)!==null&&u!==void 0?u:[]);const M=(d=n.__evaluation)===null||d===void 0?void 0:d.parameter_rule_ids,L={config:n.name,parameterName:o,ruleID:(C=M?.[o])!==null&&C!==void 0?C:n.ruleID,allocatedExperiment:w,isExplicitParameter:String(y)};return((c=n.__evaluation)===null||c===void 0?void 0:c.version)!=null&&(L.configVersion=n.__evaluation.version),E(_,l,n.details,L,h(D,s))};$._createLayerParameterExposure=S;const a=(l,n)=>(n.reason=l.reason,l.lcut&&(n.lcut=String(l.lcut)),l.receivedAt&&(n.receivedAt=String(l.receivedAt)),n);return $}var Re={},Xt;function Cn(){if(Xt)return Re;Xt=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.UrlConfiguration=void 0;const t=me(),v=je(),_={[v.Endpoint._initialize]:"i",[v.Endpoint._rgstr]:"e",[v.Endpoint._download_config_specs]:"d"};let E=class{constructor(g,h,p,S){this.customUrl=null,this.fallbackUrls=null,this.endpoint=g,this.endpointDnsKey=_[g],h&&(this.customUrl=h),!h&&p&&(this.customUrl=p.endsWith("/")?`${p}${g}`:`${p}/${g}`),S&&(this.fallbackUrls=S);const a=v.NetworkDefault[g];this.defaultUrl=`${a}/${g}`}getUrl(){var g;return(g=this.customUrl)!==null&&g!==void 0?g:this.defaultUrl}getChecksum(){var g;const h=((g=this.fallbackUrls)!==null&&g!==void 0?g:[]).sort().join(",");return(0,t._DJB2)(this.customUrl+h)}};return Re.UrlConfiguration=E,Re}var Yt;function Dn(){if(Yt)return se;Yt=1;var t=se&&se.__awaiter||function(C,c,f,y){function w(D){return D instanceof f?D:new f(function(M){M(D)})}return new(f||(f=Promise))(function(D,M){function L(x){try{ee(y.next(x))}catch(re){M(re)}}function Z(x){try{ee(y.throw(x))}catch(re){M(re)}}function ee(x){x.done?D(x.value):w(x.value).then(L,Z)}ee((y=y.apply(C,c||[])).next())})};Object.defineProperty(se,"__esModule",{value:!0}),se.EventLogger=void 0;const v=Ln(),_=Ve(),E=mt(),m=Bn(),g=me(),h=P(),p=je(),S=qn(),a=V(),l=wn(),n=$e(),o=Y(),s=Cn(),r=Be(),e=1e3,i=6e5,u={};let d=class kn{static _safeFlushAndForget(c){var f;(f=u[c])===null||f===void 0||f.flush().catch(()=>{})}constructor(c,f,y,w,D){var M;this._sdkKey=c,this._emitter=f,this._network=y,this._options=w,this._errorBoundary=D,this._pendingEvents=null,this._batchQueue=null,this._flushCoordinator=null,this._lastExposureTimeMap={},this._nonExposedChecks={},this._isShuttingDown=!1,this._storageKey=null,this._pendingCompressionMode=null,this._loggingEnabled=(M=w?.loggingEnabled)!==null&&M!==void 0?M:w?.disableLogging===!0?n.LoggingEnabledOption.disabled:n.LoggingEnabledOption.browserOnly,w?.loggingEnabled&&w.disableLogging!==void 0&&h.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging.");const L=w?.networkConfig;this._logEventUrlConfig=new s.UrlConfiguration(p.Endpoint._rgstr,L?.logEventUrl,L?.api,L?.logEventFallbackUrls)}setLogEventCompressionMode(c){this._flushCoordinator?this._flushCoordinator.setLogEventCompressionMode(c):this._pendingCompressionMode=c}setLoggingEnabled(c){const f=this._loggingEnabled==="disabled",y=c!=="disabled";if(this._loggingEnabled=c,this._flushCoordinator&&this._flushCoordinator.setLoggingEnabled(c),f&&y){const w=this._loadStoredEvents();h.Log.debug(`Loaded ${w.length} stored event(s) from storage`),w.length>0&&(w.forEach(D=>{this._initFlushCoordinator().addEvent(D)}),this.flush().catch(D=>{h.Log.warn("Failed to flush events after enabling logging:",D)}))}}enqueue(c){var f;if(!this._shouldLogEvent(c))return;const y=this._normalizeEvent(c);if(this._loggingEnabled==="disabled"){this._storeEventToStorage(y);return}this._initFlushCoordinator().addEvent(y),(f=this._flushCoordinator)===null||f===void 0||f.checkQuickFlush()}incrementNonExposureCount(c){var f;const y=(f=this._nonExposedChecks[c])!==null&&f!==void 0?f:0;this._nonExposedChecks[c]=y+1}reset(){this.flush().catch(()=>{}),this._lastExposureTimeMap={}}start(){var c;const f=(0,a._isServerEnv)();if(f&&((c=this._options)===null||c===void 0?void 0:c.loggingEnabled)!=="always")return;const y=this._initFlushCoordinator();u[this._sdkKey]=this,f||(0,r._subscribeToVisiblityChanged)(w=>{w==="background"?kn._safeFlushAndForget(this._sdkKey):w==="foreground"&&y.startScheduledFlushCycle()}),y.loadAndRetryShutdownFailedEvents().catch(w=>{h.Log.warn("Failed to load failed shutdown events:",w)}),y.startScheduledFlushCycle()}stop(){return t(this,void 0,void 0,function*(){this._isShuttingDown=!0,this._flushCoordinator&&(yield this._flushCoordinator.processShutdown()),delete u[this._sdkKey],this._flushCoordinator=null,this._pendingEvents=null,this._batchQueue=null})}flush(){return t(this,void 0,void 0,function*(){if(this._flushCoordinator)return this._flushCoordinator.processManualFlush()})}appendAndResetNonExposedChecks(){if(Object.keys(this._nonExposedChecks).length===0)return;const c=Object.assign({},this._nonExposedChecks);this._nonExposedChecks={};const f=this._normalizeEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:c}});this._flushCoordinator&&this._flushCoordinator.addEvent(f)}_shouldLogEvent(c){var f;if(((f=this._options)===null||f===void 0?void 0:f.loggingEnabled)!=="always"&&(0,a._isServerEnv)())return!1;if(!(0,l._isExposureEvent)(c))return!0;const y=c.user?c.user:{statsigEnvironment:void 0},w=(0,_._getUserStorageKey)(this._sdkKey,y),D=c.metadata?c.metadata:{},M=[c.eventName,w,D.gate,D.config,D.ruleID,D.allocatedExperiment,D.parameterName,String(D.isExplicitParameter),D.reason].join("|"),L=this._lastExposureTimeMap[M],Z=Date.now();return L&&Z-L<i?!1:(Object.keys(this._lastExposureTimeMap).length>e&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[M]=Z,!0)}_getCurrentPageUrl(){var c;if(((c=this._options)===null||c===void 0?void 0:c.includeCurrentPageUrlWithEvents)!==!1)return(0,a._getCurrentPageUrlSafe)()}_getStorageKey(){return this._storageKey||(this._storageKey=`statsig.pending_events.${(0,g._DJB2)(this._sdkKey)}`),this._storageKey}_initFlushCoordinator(){var c,f;if(this._flushCoordinator)return this._flushCoordinator;const y=(f=(c=this._options)===null||c===void 0?void 0:c.loggingBufferMaxSize)!==null&&f!==void 0?f:E.EventRetryConstants.DEFAULT_BATCH_SIZE;return this._pendingEvents=new S.PendingEvents(y),this._batchQueue=new v.BatchQueue(y),this._flushCoordinator=new m.FlushCoordinator(this._batchQueue,this._pendingEvents,()=>this.appendAndResetNonExposedChecks(),this._sdkKey,this._network,this._emitter,this._logEventUrlConfig,this._options,this._loggingEnabled,this._errorBoundary),this._pendingCompressionMode&&(this._flushCoordinator.setLogEventCompressionMode(this._pendingCompressionMode),this._pendingCompressionMode=null),this._flushCoordinator}_storeEventToStorage(c){const f=this._getStorageKey();try{let y=this._getEventsFromStorage(f);y.push(c),y.length>E.EventRetryConstants.MAX_LOCAL_STORAGE&&(y=y.slice(-E.EventRetryConstants.MAX_LOCAL_STORAGE)),(0,o._setObjectInStorage)(f,y)}catch{h.Log.warn("Unable to save events to storage")}}_getEventsFromStorage(c){try{const f=(0,o._getObjectFromStorage)(c);return Array.isArray(f)?f:[]}catch{return[]}}_loadStoredEvents(){const c=this._getStorageKey(),f=this._getEventsFromStorage(c);return f.length>0&&o.Storage.removeItem(c),f}_normalizeEvent(c){c.user&&(c.user=Object.assign({},c.user),delete c.user.privateAttributes);const f={},y=this._getCurrentPageUrl();return y&&(f.statsigMetadata={currentPage:y}),Object.assign(Object.assign({},c),f)}};return se.EventLogger=d,se}var Le={},Zt;function Kn(){if(Zt)return Le;Zt=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.PrecomputedEvaluationsContextHandle=void 0;const t=P(),v=V(),_=qe(),E=Ke();class m{constructor(h,p,S,a,l,n){this._sdkKey=h,this._getOptions=p,this._getErrorBoundary=S,this._getValues=a,this._getUser=l,this._getSdkInstanceID=n}get sdkKey(){return this._sdkKey}get options(){return this._getOptions()}get errorBoundary(){return this._getErrorBoundary()}get values(){return this._getValues()}get user(){let h=(0,v._cloneObject)("StatsigUser",this._getUser());return h==null&&(t.Log.error("Failed to clone user"),h={}),h}getSession(h=!0){return _.StatsigSession.get(this._sdkKey,h)}get stableID(){return E.StableID.get(this._sdkKey)}get sdkInstanceID(){return this._getSdkInstanceID()}toContext(h=!0){return{sdkKey:this.sdkKey,options:this.options,values:this.values,user:this.user,errorBoundary:this.errorBoundary,session:this.getSession(h),stableID:this.stableID,sdkInstanceID:this.sdkInstanceID}}}return Le.PrecomputedEvaluationsContextHandle=m,Le}var H={},X={},en;function On(){if(en)return X;en=1,Object.defineProperty(X,"__esModule",{value:!0}),X._getUnitIDFromUser=X._getFullUserHash=X._normalizeUser=void 0;const t=me(),v=P(),_=V();function E(h,p,S){const a=(0,_._cloneObject)("StatsigUser",h);return a==null?(v.Log.error("Failed to clone user"),{statsigEnvironment:void 0}):(p!=null&&p.environment!=null?a.statsigEnvironment=p.environment:S!=null&&(a.statsigEnvironment={tier:S}),a)}X._normalizeUser=E;function m(h){return h?(0,t._DJB2Object)(h):null}X._getFullUserHash=m;function g(h,p){var S,a,l;if(typeof p!="string")return h.userID;const n=p.toLowerCase();return n!=="userid"?(a=(S=h.customIDs)===null||S===void 0?void 0:S[p])!==null&&a!==void 0?a:(l=h.customIDs)===null||l===void 0?void 0:l[n]:h.userID}return X._getUnitIDFromUser=g,X}var Ae={},tn;function In(){if(tn)return Ae;tn=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae._typedJsonParse=void 0;const t=P();function v(_,E,m){try{const g=JSON.parse(_);if(g&&typeof g=="object"&&E in g)return g}catch{}return t.Log.error(`Failed to parse ${m}`),null}return Ae._typedJsonParse=v,Ae}var nn;function $n(){if(nn)return H;nn=1;var t=H&&H.__awaiter||function(o,s,r,e){function i(u){return u instanceof r?u:new r(function(d){d(u)})}return new(r||(r=Promise))(function(u,d){function C(y){try{f(e.next(y))}catch(w){d(w)}}function c(y){try{f(e.throw(y))}catch(w){d(w)}}function f(y){y.done?u(y.value):i(y.value).then(C,c)}f((e=e.apply(o,s||[])).next())})};Object.defineProperty(H,"__esModule",{value:!0}),H._makeDataAdapterResult=H.DataAdapterCore=void 0;const v=P(),_=Ke(),E=On(),m=Y(),g=In(),h=10,p=8;let S=class{constructor(s,r){this._adapterName=s,this._cacheSuffix=r,this._options=null,this._sdkKey=null,this._cacheLimit=h,this._lastModifiedStoreKey=`statsig.last_modified_time.${r}`,this._inMemoryCache=new l}attach(s,r,e){this._sdkKey=s,this._options=r}getDataSync(s){const r=s&&(0,E._normalizeUser)(s,this._options),e=this._getCacheKey(r),i=this._inMemoryCache.get(e,r);if(i&&this._getIsCacheValueValid(i))return i;const u=this._loadFromCache(e);return u&&this._getIsCacheValueValid(u)?(this._inMemoryCache.add(e,u,this._cacheLimit),this._inMemoryCache.get(e,r)):null}setData(s,r){const e=r&&(0,E._normalizeUser)(r,this._options),i=this._getCacheKey(e);this._inMemoryCache.add(i,a("Bootstrap",s,null,e),this._cacheLimit)}_getIsCacheValueValid(s){return s.stableID==null||s.stableID===_.StableID.get(this._getSdkKey())}_getDataAsyncImpl(s,r,e){return t(this,void 0,void 0,function*(){m.Storage.isReady()||(yield m.Storage.isReadyResolver());const i=s??this.getDataSync(r),u=[this._fetchAndPrepFromNetwork(i,r,e)];return e?.timeoutMs&&u.push(new Promise(d=>setTimeout(d,e.timeoutMs)).then(()=>(v.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(u)})}_prefetchDataImpl(s,r){return t(this,void 0,void 0,function*(){const e=s&&(0,E._normalizeUser)(s,this._options),i=this._getCacheKey(e),u=yield this._getDataAsyncImpl(null,e,r);u&&this._inMemoryCache.add(i,Object.assign(Object.assign({},u),{source:"Prefetch"}),this._cacheLimit)})}_fetchAndPrepFromNetwork(s,r,e){return t(this,void 0,void 0,function*(){var i;const u=(i=s?.data)!==null&&i!==void 0?i:null,d=s!=null&&this._isCachedResultValidFor204(s,r),C=yield this._fetchFromNetwork(u,r,e,d);if(!C)return v.Log.debug("No response returned for latest value"),null;const c=(0,g._typedJsonParse)(C,"has_updates","Response"),f=this._getSdkKey(),y=_.StableID.get(f);let w=null;if(c?.has_updates===!0)w=a("Network",C,y,r);else if(u&&c?.has_updates===!1)w=a("NetworkNotModified",u,y,r);else return null;const D=this._getCacheKey(r);return this._inMemoryCache.add(D,w,this._cacheLimit),this._writeToCache(D,w),w})}_getSdkKey(){return this._sdkKey!=null?this._sdkKey:(v.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(s){var r;const e=(r=m.Storage.getItem)===null||r===void 0?void 0:r.call(m.Storage,s);if(e==null)return null;const i=(0,g._typedJsonParse)(e,"source","Cached Result");return i?Object.assign(Object.assign({},i),{source:"Cache"}):null}_writeToCache(s,r){const e=JSON.stringify(r);for(let i=0;i<p;i++)try{m.Storage.setItem(s,e);break}catch(u){if(!(u instanceof Error)||!(u.toString().includes("QuotaExceededError")||u.toString().includes("QUOTA_EXCEEDED_ERR"))||this._cacheLimit<=1)throw u;this._cacheLimit=Math.ceil(this._cacheLimit/2),this._runLocalStorageCacheEviction(s,this._cacheLimit-1)}this._runLocalStorageCacheEviction(s)}_runLocalStorageCacheEviction(s,r=this._cacheLimit){var e;const i=(e=(0,m._getObjectFromStorage)(this._lastModifiedStoreKey))!==null&&e!==void 0?e:{};i[s]=Date.now();const u=n(i,r);for(const d of u)delete i[d],m.Storage.removeItem(d);(0,m._setObjectInStorage)(this._lastModifiedStoreKey,i)}};H.DataAdapterCore=S;function a(o,s,r,e){return{source:o,data:s,receivedAt:Date.now(),stableID:r,fullUserHash:(0,E._getFullUserHash)(e)}}H._makeDataAdapterResult=a;class l{constructor(){this._data={}}get(s,r){var e;const i=this._data[s],u=i?.stableID,d=(e=r?.customIDs)===null||e===void 0?void 0:e.stableID;return d&&u&&d!==u?(v.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):i}add(s,r,e){const i=n(this._data,e-1);for(const u of i)delete this._data[u];this._data[s]=r}merge(s){this._data=Object.assign(Object.assign({},this._data),s)}}function n(o,s){const r=Object.keys(o);return r.length<=s?[]:s===0?r:r.sort((e,i)=>{const u=o[e],d=o[i];return typeof u=="object"&&typeof d=="object"?u.receivedAt-d.receivedAt:u-d}).slice(0,r.length-s)}return H}var at={},rn;function xn(){return rn||(rn=1,Object.defineProperty(at,"__esModule",{value:!0})),at}var Pe={},sn;function Tn(){return sn||(sn=1,(function(t){var v=Pe&&Pe.__awaiter||function(n,o,s,r){function e(i){return i instanceof s?i:new s(function(u){u(i)})}return new(s||(s=Promise))(function(i,u){function d(f){try{c(r.next(f))}catch(y){u(y)}}function C(f){try{c(r.throw(f))}catch(y){u(y)}}function c(f){f.done?i(f.value):e(f.value).then(d,C)}c((r=r.apply(n,o||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=t.EXCEPTION_ENDPOINT=void 0;const _=P(),E=Qe(),m=Ne();t.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";const g="[Statsig] UnknownError";let h=class{constructor(o,s,r,e){this._sdkKey=o,this._options=s,this._emitter=r,this._lastSeenError=e,this._seen=new Set}wrap(o,s){try{const r=o;a(r).forEach(e=>{const i=r[e];"$EB"in i||(r[e]=(...u)=>this._capture(s?`${s}:${e}`:e,()=>i.apply(o,u)),r[e].$EB=!0)})}catch(r){this._onError("eb:wrap",r)}}logError(o,s){this._onError(o,s)}logDroppedEvents(o,s,r){const e={eventCount:String(o),reason:s};r&&Object.keys(r).forEach(i=>{e[i]=String(r[i])}),this._onError("statsig::log_event_dropped_event_count",new Error(s),!0,e)}logEventRequestFailure(o,s,r,e,i,u,d,C,c){const f={eventCount:String(o),flushType:r,statusCode:String(e),reason:s,retries:String(i)};u&&(f.failurePath=u),typeof d=="string"&&d.length>0&&(f.failureErrorMessage=d),typeof C=="string"&&C.length>0&&(f.failureDiagnosticBucket=C),c&&Object.keys(c).forEach(y=>{const w=c[y];w.length>0&&(f[`failureDiagnostic_${y}`]=w)}),this._onError("statsig::log_event_failed",new Error(s),!0,f)}getLastSeenErrorAndReset(){const o=this._lastSeenError;return this._lastSeenError=void 0,o??null}attachErrorIfNoneExists(o){this._lastSeenError||(this._lastSeenError=p(o))}_capture(o,s){try{const r=s();return r&&r instanceof Promise?r.catch(e=>this._onError(o,e)):r}catch(r){return this._onError(o,r),null}}_onError(o,s,r=!1,e){try{_.Log.warn(`Caught error in ${o}`,{error:s}),v(this,void 0,void 0,function*(){var u,d,C,c,f,y,w;const D=s||Error(g),M=D instanceof Error,L=M?D.name:"No Name",Z=p(D);if(this._lastSeenError=Z,!r&&this._seen.has(L))return;if(this._seen.add(L),!((d=(u=this._options)===null||u===void 0?void 0:u.networkConfig)===null||d===void 0)&&d.preventAllNetworkTraffic){(C=this._emitter)===null||C===void 0||C.call(this,{name:"error",error:s,tag:o});return}const ee=E.SDKType._get(this._sdkKey),x=m.StatsigMetadataProvider.get(),re=M?D.stack:S(D),xe=Object.assign(Object.assign({tag:o,exception:L,info:re,statsigOptions:l(this._options)},Object.assign(Object.assign({},x),{sdkType:ee})),e??{}),te=(c=this._options)===null||c===void 0?void 0:c.networkConfig;yield((f=te?.networkOverrideFunc)!==null&&f!==void 0?f:fetch)((y=te?.sdkExceptionUrl)!==null&&y!==void 0?y:t.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(ee),"STATSIG-SDK-VERSION":String(x.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(xe)}),(w=this._emitter)===null||w===void 0||w.call(this,{name:"error",error:s,tag:o})}).then(()=>{}).catch(()=>{})}catch{}}};t.ErrorBoundary=h;function p(n){return n instanceof Error?n:typeof n=="string"?new Error(n):new Error("An unknown error occurred.")}function S(n){try{return JSON.stringify(n)}catch{return g}}function a(n){const o=new Set;let s=Object.getPrototypeOf(n);for(;s&&s!==Object.prototype;)Object.getOwnPropertyNames(s).filter(r=>typeof s?.[r]=="function").forEach(r=>o.add(r)),s=Object.getPrototypeOf(s);return Array.from(o)}function l(n){if(!n)return{};const o={};return Object.keys(n).forEach(s=>{const r=s,e=n[r];switch(typeof e){case"number":case"bigint":case"boolean":o[String(r)]=e;break;case"string":e.length<50?o[String(r)]=e:o[String(r)]="set";break;case"object":r==="environment"?o.environment=e:r==="networkConfig"?o.networkConfig=e:o[String(r)]=e!=null?"set":"unset";break}}),o}})(Pe)),Pe}var lt={},on;function Gn(){return on||(on=1,Object.defineProperty(lt,"__esModule",{value:!0})),lt}var ut={},an;function zn(){return an||(an=1,Object.defineProperty(ut,"__esModule",{value:!0})),ut}var ct={},ln;function Vn(){return ln||(ln=1,Object.defineProperty(ct,"__esModule",{value:!0})),ct}var he={},un;function Mn(){if(un)return he;un=1,Object.defineProperty(he,"__esModule",{value:!0}),he.createMemoKey=he.MemoPrefix=void 0,he.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_layer:"l",_paramStore:"p"};const t=new Set([]),v=new Set(["userPersistedValues"]);function _(E,m,g){let h=`${E}|${m}`;if(!g)return h;for(const p of Object.keys(g)){if(v.has(p))return;t.has(p)?h+=`|${p}=true`:h+=`|${p}=${g[p]}`}return h}return he.createMemoKey=_,he}var dt={},cn;function Qn(){return cn||(cn=1,Object.defineProperty(dt,"__esModule",{value:!0})),dt}var _t={},dn;function Jn(){return dn||(dn=1,Object.defineProperty(_t,"__esModule",{value:!0})),_t}var ht={},_n;function Wn(){return _n||(_n=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._fastApproxSizeOf=void 0;const v=2,_=1,E=(m,g)=>{let h=0;const p=Object.keys(m);for(let S=0;S<p.length;S++){const a=p[S],l=m[a];if(h+=a.length,typeof l=="object"&&l!==null?h+=(0,t._fastApproxSizeOf)(l,g)+v:h+=String(l).length+_,h>=g)return h}return h};t._fastApproxSizeOf=E})(ht)),ht}var ge={},hn;function Hn(){if(hn)return ge;hn=1;var t=ge&&ge.__awaiter||function(r,e,i,u){function d(C){return C instanceof i?C:new i(function(c){c(C)})}return new(i||(i=Promise))(function(C,c){function f(D){try{w(u.next(D))}catch(M){c(M)}}function y(D){try{w(u.throw(D))}catch(M){c(M)}}function w(D){D.done?C(D.value):d(D.value).then(f,y)}w((u=u.apply(r,e||[])).next())})};Object.defineProperty(ge,"__esModule",{value:!0}),ge.StatsigClientBase=void 0,ve();const v=ve(),_=Tn(),E=Dn(),m=P(),g=Mn(),h=V(),p=qe(),S=Ke(),a=$e(),l=Y(),n=3e3;let o=class{constructor(e,i,u,d){var C,c,f,y;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};const w=this.$emt.bind(this);d?.logLevel!=null&&(m.Log.level=d.logLevel),d?.disableStorage&&l.Storage._setDisabled(!0),d?.initialSessionID&&p.StatsigSession.overrideInitialSessionID(d.initialSessionID,e),d?.storageProvider&&l.Storage._setProvider(d.storageProvider),d?.enableCookies&&S.StableID._setCookiesEnabled(e,d.enableCookies),d?.disableStableID&&S.StableID._setDisabled(e,!0),this._sdkKey=e,this._options=d??{},this._memoCache={},this.overrideAdapter=(C=d?.overrideAdapter)!==null&&C!==void 0?C:null,this._errorBoundary=new _.ErrorBoundary(e,d,w),this._logger=new E.EventLogger(e,w,u,d,this._errorBoundary),this._errorBoundary.wrap(this),this._errorBoundary.wrap(i),this._errorBoundary.wrap(this._logger),u.setErrorBoundary(this._errorBoundary),this.dataAdapter=i,this.dataAdapter.attach(e,d,u),this.storageProvider=l.Storage,(y=(f=(c=this.overrideAdapter)===null||c===void 0?void 0:c.loadFromStorage)===null||f===void 0?void 0:f.call(c))===null||y===void 0||y.catch(D=>this._errorBoundary.logError("OA::loadFromStorage",D)),this._primeReadyRipcord(),s(e,this)}updateRuntimeOptions(e){e.loggingEnabled?(this._options.loggingEnabled=e.loggingEnabled,this._logger.setLoggingEnabled(e.loggingEnabled)):e.disableLogging!=null&&(this._options.disableLogging=e.disableLogging,this._logger.setLoggingEnabled(e.disableLogging?"disabled":"browser-only")),e.disableStorage!=null&&(this._options.disableStorage=e.disableStorage,l.Storage._setDisabled(e.disableStorage)),e.enableCookies!=null&&(this._options.enableCookies=e.enableCookies,S.StableID._setCookiesEnabled(this._sdkKey,e.enableCookies)),e.logEventCompressionMode?this._logger.setLogEventCompressionMode(e.logEventCompressionMode):e.disableCompression&&this._logger.setLogEventCompressionMode(a.LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return t(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(e,i){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(i)}off(e,i){if(this._listeners[e]){const u=this._listeners[e].indexOf(i);u!==-1&&this._listeners[e].splice(u,1)}}$on(e,i){i.__isInternal=!0,this.on(e,i)}$emt(e){var i;const u=d=>{try{d(e)}catch(C){if(d.__isInternal===!0){this._errorBoundary.logError(`__emit:${e.name}`,C);return}m.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",e)}};this._listeners[e.name]&&this._listeners[e.name].forEach(d=>u(d)),(i=this._listeners["*"])===null||i===void 0||i.forEach(u)}_setStatus(e,i){this.loadingStatus=e,this._memoCache={},this.$emt({name:"values_updated",status:e,values:i})}_enqueueExposure(e,i,u){if(u?.disableExposureLog===!0){this._logger.incrementNonExposureCount(e);return}this._logger.enqueue(i)}_memoize(e,i){return(u,d)=>{if(this._options.disableEvaluationMemoization)return i(u,d);const C=(0,g.createMemoKey)(e,u,d);return C?(C in this._memoCache||(Object.keys(this._memoCache).length>=n&&(this._memoCache={}),this._memoCache[C]=i(u,d)),this._memoCache[C]):i(u,d)}}};ge.StatsigClientBase=o;function s(r,e){var i;if((0,h._isServerEnv)())return;const u=(0,v._getStatsigGlobal)(),d=(i=u.instances)!==null&&i!==void 0?i:{},C=e;d[r]!=null&&m.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys."),d[r]=C,u.firstInstance||(u.firstInstance=C),u.instances=d,__STATSIG__=u}return ge}var Ue={},gn;function Xn(){return gn||(gn=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.DataAdapterCachePrefix=void 0,Ue.DataAdapterCachePrefix="statsig.cached"),Ue}var gt={},fn;function Yn(){return fn||(fn=1,Object.defineProperty(gt,"__esModule",{value:!0})),gt}var j={},vn;function Zn(){if(vn)return j;vn=1,Object.defineProperty(j,"__esModule",{value:!0}),j._makeTypedGet=j._mergeOverride=j._makeLayer=j._makeExperiment=j._makeDynamicConfig=j._makeFeatureGate=void 0;const t=P(),v=St();function _(a,l,n,o){var s;return{name:a,details:l,ruleID:(s=n?.rule_id)!==null&&s!==void 0?s:"",__evaluation:n,value:o}}function E(a,l,n){var o;return Object.assign(Object.assign({},_(a,l,n,n?.value===!0)),{idType:(o=n?.id_type)!==null&&o!==void 0?o:null})}j._makeFeatureGate=E;function m(a,l,n){var o,s;const r=(o=n?.value)!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},_(a,l,n,r)),{idType:(s=n?.id_type)!==null&&s!==void 0?s:null,get:S(a,n?.value)})}j._makeDynamicConfig=m;function g(a,l,n){var o;const s=m(a,l,n);return Object.assign(Object.assign({},s),{groupName:(o=n?.group_name)!==null&&o!==void 0?o:null})}j._makeExperiment=g;function h(a,l,n,o){var s,r;return Object.assign(Object.assign({},_(a,l,n,void 0)),{get:S(a,n?.value,o),groupName:(s=n?.group_name)!==null&&s!==void 0?s:null,__value:(r=n?.value)!==null&&r!==void 0?r:{}})}j._makeLayer=h;function p(a,l,n,o){return Object.assign(Object.assign(Object.assign({},a),l),{get:S(a.name,n,o)})}j._mergeOverride=p;function S(a,l,n){return(o,s)=>{var r;const e=(r=l?.[o])!==null&&r!==void 0?r:null;return e==null?s??null:s!=null&&!(0,v._isTypeMatch)(e,s)?(t.Log.warn(`Parameter type mismatch. '${a}.${o}' was found to be type '${typeof e}' but fallback/return type is '${typeof s}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),s??null):(n?.(o),e)}}return j._makeTypedGet=S,j}var ft={},mn;function er(){return mn||(mn=1,Object.defineProperty(ft,"__esModule",{value:!0})),ft}var fe={},Sn;function tr(){if(Sn)return fe;Sn=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.UPDATE_DETAIL_ERROR_MESSAGES=fe.createUpdateDetails=void 0;const t=(v,_,E,m,g,h)=>({duration:E,source:_,success:v,error:m,sourceUrl:g,warnings:h});return fe.createUpdateDetails=t,fe.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."},fe}var yn;function nr(){return yn||(yn=1,(function(t){var v=ie&&ie.__createBinding||(Object.create?(function(a,l,n,o){o===void 0&&(o=n);var s=Object.getOwnPropertyDescriptor(l,n);(!s||("get"in s?!l.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return l[n]}}),Object.defineProperty(a,o,s)}):(function(a,l,n,o){o===void 0&&(o=n),a[o]=l[n]})),_=ie&&ie.__exportStar||function(a,l){for(var n in a)n!=="default"&&!Object.prototype.hasOwnProperty.call(l,n)&&v(l,a,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Storage=t.Log=t.EventLogger=t.Diagnostics=void 0,ve();const E=ve(),m=vt();Object.defineProperty(t,"Diagnostics",{enumerable:!0,get:function(){return m.Diagnostics}});const g=Dn();Object.defineProperty(t,"EventLogger",{enumerable:!0,get:function(){return g.EventLogger}});const h=P();Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return h.Log}});const p=Ne(),S=Y();Object.defineProperty(t,"Storage",{enumerable:!0,get:function(){return S.Storage}}),_(ve(),t),_(Ve(),t),_(Kn(),t),_($n(),t),_(vt(),t),_(xn(),t),_(Tn(),t),_(Gn(),t),_(zn(),t),_(me(),t),_(Vn(),t),_(P(),t),_(Mn(),t),_(je(),t),_(bn(),t),_(Qn(),t),_(Jn(),t),_(V(),t),_(Qe(),t),_(qe(),t),_(Wn(),t),_(Ke(),t),_(Hn(),t),_(pn(),t),_(Xn(),t),_(wn(),t),_(Ne(),t),_($e(),t),_(Yn(),t),_(Zn(),t),_(er(),t),_(On(),t),_(Y(),t),_(In(),t),_(St(),t),_(Cn(),t),_(yt(),t),_(Be(),t),_(tr(),t),_(En(),t),Object.assign((0,E._getStatsigGlobal)(),{Log:h.Log,SDK_VERSION:p.SDK_VERSION})})(ie)),ie}exports.requireSrc=nr;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const y=require("./vendor-@statsig-client-core-CcuuGlfw.cjs");var S={},D={},O={},I={},R;function V(){if(R)return I;R=1,Object.defineProperty(I,"__esModule",{value:!0}),I.V1InitializeContainer=void 0;const v=y.requireSrc();let u=class{constructor(c){this._values=c}getGate(c){return this._getResultFromLookup(this._values.feature_gates,c)}getConfig(c){return this._getResultFromLookup(this._values.dynamic_configs,c)}getLayer(c){return this._getResultFromLookup(this._values.layer_configs,c)}getParamStore(c){return this._getResultFromLookup(this._values.param_stores,c)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(c,g){var a,r;return c&&(r=(a=c[g])!==null&&a!==void 0?a:c[(0,v._DJB2)(g)])!==null&&r!==void 0?r:null}};return I.V1InitializeContainer=u,I}var C={},z;function G(){if(z)return C;z=1,Object.defineProperty(C,"__esModule",{value:!0}),C.V2InitializeContainer=void 0;const v=y.requireSrc();let u=class{constructor(c){this._values=c}getGate(c){var g,a,r;const n=this._getResultFromLookup(this._values.feature_gates,c);return n?{name:c,value:n.v===!0,rule_id:(g=n.r)!==null&&g!==void 0?g:"default",secondary_exposures:(a=n.s)!==null&&a!==void 0?a:[],id_type:(r=n.i)!==null&&r!==void 0?r:""}:null}getConfig(c){var g,a,r,n;const t=this._getResultFromLookup(this._values.dynamic_configs,c);return t?{name:c,value:(g=this._values.values[t.v])!==null&&g!==void 0?g:{},rule_id:t.r,secondary_exposures:(a=t.s)!==null&&a!==void 0?a:[],id_type:(r=t.i)!==null&&r!==void 0?r:"",is_user_in_experiment:t.ue===!0,passed:t.p===!0,group_name:(n=t.gn)!==null&&n!==void 0?n:void 0,is_experiment_active:t.ea===!0,group:t.r,is_device_based:t.i==="stableID"}:null}getLayer(c){var g,a,r,n,t,i;const e=this._getResultFromLookup(this._values.layer_configs,c);return e?{name:c,value:(g=this._values.values[e.v])!==null&&g!==void 0?g:{},rule_id:e.r,secondary_exposures:(a=e.s)!==null&&a!==void 0?a:[],is_user_in_experiment:e.ue===!0,group_name:(r=e.gn)!==null&&r!==void 0?r:void 0,is_experiment_active:e.ea===!0,group:e.r,is_device_based:e.i==="stableID",allocated_experiment_name:(n=e.ae)!==null&&n!==void 0?n:"",explicit_parameters:(t=e.ep)!==null&&t!==void 0?t:[],undelegated_secondary_exposures:(i=e.us)!==null&&i!==void 0?i:[],parameter_rule_ids:e.pr}:null}getParamStore(c){return this._getResultFromLookup(this._values.param_stores,c)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(c,g){var a,r;return c&&(r=(a=c[g])!==null&&a!==void 0?a:c[(0,v._DJB2)(g)])!==null&&r!==void 0?r:null}};return C.V2InitializeContainer=u,C}var A;function B(){if(A)return O;A=1,Object.defineProperty(O,"__esModule",{value:!0});const v=y.requireSrc(),u=V(),f=G();let c=class{constructor(a,r){this._sdkKey=a,this._options=r,this._valuesForExternalUse=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=new Set}reset(){this._values=null,this._valuesForExternalUse=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings.clear()}finalize(){this._values||(this._source="NoValues")}getValues(){return this._valuesForExternalUse}setValues(a,r){var n,t;if(!a)return!1;const i=(0,v._typedJsonParse)(a.data,"has_updates","EvaluationResponse");return i==null?!1:(this._source=a.source,i?.has_updates!==!0||((n=i.time)!==null&&n!==void 0?n:0)<this._lcut||(this._valuesForExternalUse=(0,v._typedJsonParse)(a.data,"has_updates","EvaluationResponse"),this._lcut=i.time,this._receivedAt=a.receivedAt,i.response_format==="init-v2"?this._values=new f.V2InitializeContainer(i):this._values=new u.V1InitializeContainer(i),this._bootstrapMetadata=this._extractBootstrapMetadata(a.source,i),a.source&&i.user&&this._setWarningState(r,i),v.SDKFlags.setFlags(this._sdkKey,(t=i.sdk_flags)!==null&&t!==void 0?t:{})),!0)}getWarnings(){if(this._warnings.size!==0)return Array.from(this._warnings)}getGate(a){const r=this._values?this._values.getGate(a):null;return this._getDetailedStoreResult(r)}getConfig(a){const r=this._values?this._values.getConfig(a):null;return this._getDetailedStoreResult(r)}getConfigList(){return this._values?this._values.getConfigList():[]}getLayer(a){const r=this._values?this._values.getLayer(a):null;return this._getDetailedStoreResult(r)}getParamStore(a){const r=this._values?this._values.getParamStore(a):null;return this._getDetailedStoreResult(r)}getSource(){return this._source}getExposureMapping(){var a;return(a=this._values)===null||a===void 0?void 0:a.getExposureMapping()}_extractBootstrapMetadata(a,r){if(a!=="Bootstrap")return null;const n={};return r.user&&(n.user=r.user),r.sdkInfo&&(n.generatorSDKInfo=r.sdkInfo),n.lcut=r.time,n}_getDetailedStoreResult(a){return{result:a,details:this._getDetails(a==null)}}_setWarningState(a,r){var n,t,i;const e=v.StableID.get(this._sdkKey);if(((n=a.customIDs)===null||n===void 0?void 0:n.stableID)!==e&&(!((t=a.customIDs)===null||t===void 0)&&t.stableID||e)){this._warnings.add("StableIDMismatch");return}if("user"in r){let s=r.user,o=Object.assign(Object.assign({},a),{analyticsOnlyMetadata:void 0,privateAttributes:void 0});!((i=this._options)===null||i===void 0)&&i.disableStableID&&(o=Object.assign(Object.assign({},o),{customIDs:Object.assign(Object.assign({},o.customIDs),{stableID:void 0})}),s=Object.assign(Object.assign({},s),{customIDs:Object.assign(Object.assign({},s.customIDs),{stableID:void 0})})),(0,v._getFullUserHash)(o)!==(0,v._getFullUserHash)(s)&&this._warnings.add("PartialUserMatch")}}getCurrentSourceDetails(){if(this._source==="Uninitialized"||this._source==="NoValues")return{reason:this._source};const a={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(a.warnings=Array.from(this._warnings)),a}_getDetails(a){var r,n;const t=this.getCurrentSourceDetails();let i=t.reason;const e=(r=t.warnings)!==null&&r!==void 0?r:[];this._source==="Bootstrap"&&e.length>0&&(i=i+e[0]),i!=="Uninitialized"&&i!=="NoValues"&&(i=`${i}:${a?"Unrecognized":"Recognized"}`);const s=this._source==="Bootstrap"&&(n=this._bootstrapMetadata)!==null&&n!==void 0?n:void 0;return s&&(t.bootstrapMetadata=s),Object.assign(Object.assign({},t),{reason:i})}};return O.default=c,O}var E={},x={},k;function $(){if(k)return x;k=1,Object.defineProperty(x,"__esModule",{value:!0}),x._resolveDeltasResponse=void 0;const v=y.requireSrc(),u=2;function f(r,n){const t=(0,v._typedJsonParse)(n,"checksum","DeltasEvaluationResponse");if(!t)return{hadBadDeltaChecksum:!0};const i=c(r,t),e=g(i),s=(0,v._DJB2Object)({feature_gates:e.feature_gates,dynamic_configs:e.dynamic_configs,layer_configs:e.layer_configs},u);return s===t.checksumV2?JSON.stringify(e):{hadBadDeltaChecksum:!0,badChecksum:s,badMergedConfigs:e,badFullResponse:t.deltas_full_response}}x._resolveDeltasResponse=f;function c(r,n){return Object.assign(Object.assign(Object.assign({},r),n),{feature_gates:Object.assign(Object.assign({},r.feature_gates),n.feature_gates),layer_configs:Object.assign(Object.assign({},r.layer_configs),n.layer_configs),dynamic_configs:Object.assign(Object.assign({},r.dynamic_configs),n.dynamic_configs)})}function g(r){const n=r;return a(r.deleted_gates,n.feature_gates),delete n.deleted_gates,a(r.deleted_configs,n.dynamic_configs),delete n.deleted_configs,a(r.deleted_layers,n.layer_configs),delete n.deleted_layers,n}function a(r,n){r?.forEach(t=>{delete n[t]})}return x}var L;function q(){if(L)return E;L=1;var v=E&&E.__awaiter||function(g,a,r,n){function t(i){return i instanceof r?i:new r(function(e){e(i)})}return new(r||(r=Promise))(function(i,e){function s(l){try{_(n.next(l))}catch(d){e(d)}}function o(l){try{_(n.throw(l))}catch(d){e(d)}}function _(l){l.done?i(l.value):t(l.value).then(s,o)}_((n=n.apply(g,a||[])).next())})};Object.defineProperty(E,"__esModule",{value:!0});const u=y.requireSrc(),f=$();class c extends u.NetworkCore{constructor(a,r){super(a,r);const n=a?.networkConfig;this._option=a,this._initializeUrlConfig=new u.UrlConfiguration(u.Endpoint._initialize,n?.initializeUrl,n?.api,n?.initializeFallbackUrls)}fetchEvaluations(a,r,n,t,i){return v(this,void 0,void 0,function*(){var e,s,o,_,l,d;const h=r?(0,u._typedJsonParse)(r,"has_updates","InitializeResponse"):null;let p={user:t,hash:(o=(s=(e=this._option)===null||e===void 0?void 0:e.networkConfig)===null||s===void 0?void 0:s.initializeHashAlgorithm)!==null&&o!==void 0?o:"djb2",deltasResponseRequested:!1,full_checksum:null};if(h?.has_updates){const m=h?.hash_used!==((d=(l=(_=this._option)===null||_===void 0?void 0:_.networkConfig)===null||l===void 0?void 0:l.initializeHashAlgorithm)!==null&&d!==void 0?d:"djb2");p=Object.assign(Object.assign({},p),{sinceTime:i&&!m?h.time:0,previousDerivedFields:"derived_fields"in h&&i?h.derived_fields:{},deltasResponseRequested:!0,full_checksum:h.full_checksum,partialUserMatchSinceTime:m?0:h.time})}return this._fetchEvaluations(a,h,p,n)})}_fetchEvaluations(a,r,n,t){return v(this,void 0,void 0,function*(){var i,e;const s=yield this.post({sdkKey:a,urlConfig:this._initializeUrlConfig,data:n,retries:2,isStatsigEncodable:!0,priority:t});if(s?.code===204)return'{"has_updates": false}';if(s?.code!==200)return(i=s?.body)!==null&&i!==void 0?i:null;if(r?.has_updates!==!0||((e=s.body)===null||e===void 0?void 0:e.includes('"is_delta":true'))!==!0||n.deltasResponseRequested!==!0)return s.body;const o=(0,f._resolveDeltasResponse)(r,s.body);return typeof o=="string"?o:this._fetchEvaluations(a,r,Object.assign(Object.assign(Object.assign({},n),o),{deltasResponseRequested:!1}),t)})}}return E.default=c,E}var U={},M;function K(){if(M)return U;M=1,Object.defineProperty(U,"__esModule",{value:!0}),U._makeParamStoreGetter=void 0;const v=y.requireSrc(),u={disableExposureLog:!0};function f(e){return e==null||e.disableExposureLog===!1}function c(e,s){return s!=null&&!(0,v._isTypeMatch)(e,s)}function g(e,s){return e.value}function a(e,s,o){return e.getFeatureGate(s.gate_name,f(o)?void 0:u).value?s.pass_value:s.fail_value}function r(e,s,o,_){const d=e.getDynamicConfig(s.config_name,f(_)?void 0:u).get(s.param_name);return c(d,o)?o:d}function n(e,s,o,_){const d=e.getExperiment(s.experiment_name,f(_)?void 0:u).get(s.param_name);return c(d,o)?o:d}function t(e,s,o,_){const d=e.getLayer(s.layer_name,f(_)?void 0:u).get(s.param_name);return c(d,o)?o:d}function i(e,s,o){return(_,l)=>{if(s==null)return l;const d=s[_];if(d==null||l!=null&&(0,v._typeOf)(l)!==d.param_type)return l;switch(d.ref_type){case"static":return g(d);case"gate":return a(e,d,o);case"dynamic_config":return r(e,d,l,o);case"experiment":return n(e,d,l,o);case"layer":return t(e,d,l,o);default:return l}}}return U._makeParamStoreGetter=i,U}var b={},j;function N(){if(j)return b;j=1;var v=b&&b.__awaiter||function(g,a,r,n){function t(i){return i instanceof r?i:new r(function(e){e(i)})}return new(r||(r=Promise))(function(i,e){function s(l){try{_(n.next(l))}catch(d){e(d)}}function o(l){try{_(n.throw(l))}catch(d){e(d)}}function _(l){l.done?i(l.value):t(l.value).then(s,o)}_((n=n.apply(g,a||[])).next())})};Object.defineProperty(b,"__esModule",{value:!0}),b.StatsigEvaluationsDataAdapter=void 0;const u=y.requireSrc(),f=q();let c=class extends u.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(a,r,n){super.attach(a,r,n),n!==null&&n instanceof f.default?this._network=n:this._network=new f.default(r??{})}getDataAsync(a,r,n){return this._getDataAsyncImpl(a,(0,u._normalizeUser)(r,this._options),n)}prefetchData(a,r){return this._prefetchDataImpl(a,r)}setData(a){const r=(0,u._typedJsonParse)(a,"has_updates","data");r&&"user"in r?super.setData(a,r.user):u.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(a,r){super.setData(a,r)}_fetchFromNetwork(a,r,n,t){return v(this,void 0,void 0,function*(){var i;const e=yield(i=this._network)===null||i===void 0?void 0:i.fetchEvaluations(this._getSdkKey(),a,n?.priority,r,t);return e??null})}_getCacheKey(a){var r;const n=(0,u._getStorageKey)(this._getSdkKey(),a,(r=this._options)===null||r===void 0?void 0:r.customUserCacheKeyFunc);return`${u.DataAdapterCachePrefix}.${this._cacheSuffix}.${n}`}_isCachedResultValidFor204(a,r){return a.fullUserHash!=null&&a.fullUserHash===(0,u._getFullUserHash)(r)}};return b.StatsigEvaluationsDataAdapter=c,b}var P;function T(){if(P)return D;P=1;var v=D&&D.__awaiter||function(n,t,i,e){function s(o){return o instanceof i?o:new i(function(_){_(o)})}return new(i||(i=Promise))(function(o,_){function l(p){try{h(e.next(p))}catch(m){_(m)}}function d(p){try{h(e.throw(p))}catch(m){_(m)}}function h(p){p.done?o(p.value):s(p.value).then(l,d)}h((e=e.apply(n,t||[])).next())})};Object.defineProperty(D,"__esModule",{value:!0});const u=y.requireSrc(),f=B(),c=q(),g=K(),a=N();let r=class w extends u.StatsigClientBase{static instance(t){const i=(0,u._getStatsigGlobal)().instance(t);return i instanceof w?i:(u.Log.warn((0,u._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new w(t??"",{}))}constructor(t,i,e=null){var s,o;u.SDKType._setClientType(t,"javascript-client");const _=new c.default(e,d=>{this.$emt(d)});super(t,(s=e?.dataAdapter)!==null&&s!==void 0?s:new a.StatsigEvaluationsDataAdapter,_,e),this._possibleFirstTouchMetadata={},this.getFeatureGate=this._memoize(u.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(u.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(u.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getConfigList=this._memoize(u.MemoPrefix._configList,this._getConfigListImpl.bind(this)),this.getLayer=this._memoize(u.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(u.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new f.default(t,e??null),this._network=_,this._user=this._configureUser(i,e),this._sdkInstanceID=(0,u.getUUID)(),this._contextHandle=new u.PrecomputedEvaluationsContextHandle(t,()=>this._options,()=>this._errorBoundary,()=>this._store.getValues(),()=>this._user,()=>this._sdkInstanceID);const l=(o=e?.plugins)!==null&&o!==void 0?o:[];for(const d of l)d.bind(this)}initializeSync(t){var i;return this.loadingStatus!=="Uninitialized"?(0,u.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...(i=this._store.getWarnings())!==null&&i!==void 0?i:[]]):(this._logger.start(),this.updateUserSync(this._user,t))}initializeAsync(t){return v(this,void 0,void 0,function*(){return this._initializePromise?this._initializePromise:(this._initializePromise=this._initializeAsyncImpl(t),this._initializePromise)})}updateUserSync(t,i){const e=performance.now();try{return this._updateUserSyncImpl(t,i,e)}catch(s){const o=s instanceof Error?s:new Error(String(s));return this._createErrorUpdateDetails(o,e)}}_updateUserSyncImpl(t,i,e){var s;const o=[...(s=this._store.getWarnings())!==null&&s!==void 0?s:[]];this._resetForUser(t);const _=this.dataAdapter.getDataSync(this._user);_==null&&o.push("NoCachedValues"),this._store.setValues(_,this._user),this._finalizeUpdate(_);const l=i?.disableBackgroundCacheRefresh;return l===!0||l==null&&_?.source==="Bootstrap"?(0,u.createUpdateDetails)(!0,this._store.getSource(),performance.now()-e,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),o):(this._runPostUpdate(_??null,this._user),(0,u.createUpdateDetails)(!0,this._store.getSource(),performance.now()-e,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),o))}updateUserAsync(t,i){return v(this,void 0,void 0,function*(){const e=performance.now();try{return yield this._updateUserAsyncImpl(t,i)}catch(s){const o=s instanceof Error?s:new Error(String(s));return this._createErrorUpdateDetails(o,e)}})}_updateUserAsyncImpl(t,i){return v(this,void 0,void 0,function*(){this._resetForUser(t);const e=this._user;u.Diagnostics._markInitOverallStart(this._sdkKey);let s=this.dataAdapter.getDataSync(e);if(this._store.setValues(s,this._user),this._setStatus("Loading",s),s=yield this.dataAdapter.getDataAsync(s,e,i),e!==this._user)return(0,u.createUpdateDetails)(!1,this._store.getSource(),-1,new Error("User changed during update"),this._network.getLastUsedInitUrlAndReset());let o=!1;s!=null&&(u.Diagnostics._markInitProcessStart(this._sdkKey),o=this._store.setValues(s,this._user),u.Diagnostics._markInitProcessEnd(this._sdkKey,{success:o})),this._finalizeUpdate(s),o||(this._errorBoundary.attachErrorIfNoneExists(u.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),u.Diagnostics._markInitOverallEnd(this._sdkKey,o,this._store.getCurrentSourceDetails());const _=u.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,u.createUpdateDetails)(o,this._store.getSource(),_,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){let t=(0,u._cloneObject)("StatsigUser",this._user);return t==null&&(u.Log.error("Failed to clone user"),t={}),{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:t,errorBoundary:this._errorBoundary,session:u.StatsigSession.get(this._sdkKey),stableID:u.StableID.get(this._sdkKey),sdkInstanceID:this._sdkInstanceID}}getContextHandle(){return this._contextHandle}checkGate(t,i){return this.getFeatureGate(t,i).value}logEvent(t,i,e){const s=typeof t=="string"?{eventName:t,value:i,metadata:e}:t;this.$emt({name:"log_event_called",event:s}),this._logger.enqueue(Object.assign(Object.assign({},s),{user:this._user,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(t){this._user=this._configureUser(Object.assign(Object.assign({},this._user),{analyticsOnlyMetadata:t}),this._options)}_primeReadyRipcord(){this.$on("error",()=>{this.loadingStatus==="Loading"&&this._finalizeUpdate(null)})}_initializeAsyncImpl(t){return v(this,void 0,void 0,function*(){return u.Storage.isReady()||(yield u.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,t)})}_createErrorUpdateDetails(t,i){var e;return(0,u.createUpdateDetails)(!1,this._store.getSource(),performance.now()-i,t,null,[...(e=this._store.getWarnings())!==null&&e!==void 0?e:[]])}_finalizeUpdate(t){this._store.finalize(),this._setStatus("Ready",t)}_runPostUpdate(t,i){this.dataAdapter.getDataAsync(t,i,{priority:"low"}).catch(e=>{u.Log.error("An error occurred after update.",e)})}_resetForUser(t){this._logger.reset(),this._store.reset(),this._user=this._configureUser(t,this._options)}_configureUser(t,i){var e,s,o;const _=(0,u._normalizeUser)(t,i),l=(e=_.customIDs)===null||e===void 0?void 0:e.stableID;if(l){const d=(o=(s=this.storageProvider).isReadyResolver)===null||o===void 0?void 0:o.call(s);d?d.then(()=>u.StableID.setOverride(l,this._sdkKey),()=>u.StableID.setOverride(l,this._sdkKey)):u.StableID.setOverride(l,this._sdkKey)}return Object.keys(this._possibleFirstTouchMetadata).length>0&&(_.analyticsOnlyMetadata=Object.assign(Object.assign({},_.analyticsOnlyMetadata),this._possibleFirstTouchMetadata)),_}_getFeatureGateImpl(t,i){var e,s;const{result:o,details:_}=this._store.getGate(t);this._checkUserHasIdForEvaluation(o?.id_type,t,"Gate"),this._checkInitializationStatus(_.reason);const l=(0,u._makeFeatureGate)(t,_,o),d=(s=(e=this.overrideAdapter)===null||e===void 0?void 0:e.getGateOverride)===null||s===void 0?void 0:s.call(e,l,this._user,i),h=d??l;return this._enqueueExposure(t,(0,u._createGateExposure)(this._user,h,this._store.getExposureMapping()),i),this.$emt({name:"gate_evaluation",gate:h}),h}_getDynamicConfigImpl(t,i){var e,s;const{result:o,details:_}=this._store.getConfig(t);this._checkUserHasIdForEvaluation(o?.id_type,t,"Dynamic config"),this._checkInitializationStatus(_.reason);const l=(0,u._makeDynamicConfig)(t,_,o),d=(s=(e=this.overrideAdapter)===null||e===void 0?void 0:e.getDynamicConfigOverride)===null||s===void 0?void 0:s.call(e,l,this._user,i),h=d??l;return this._enqueueExposure(t,(0,u._createConfigExposure)(this._user,h,this._store.getExposureMapping()),i),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:h}),h}_getExperimentImpl(t,i){var e,s,o,_;const{result:l,details:d}=this._store.getConfig(t);this._checkUserHasIdForEvaluation(l?.id_type,t,"Experiment"),this._checkInitializationStatus(d.reason);const h=(0,u._makeExperiment)(t,d,l);h.__evaluation!=null&&(h.__evaluation.secondary_exposures=(0,u._mapExposures)((s=(e=h.__evaluation)===null||e===void 0?void 0:e.secondary_exposures)!==null&&s!==void 0?s:[],this._store.getExposureMapping()));const p=(_=(o=this.overrideAdapter)===null||o===void 0?void 0:o.getExperimentOverride)===null||_===void 0?void 0:_.call(o,h,this._user,i),m=p??h;return this._enqueueExposure(t,(0,u._createConfigExposure)(this._user,m,this._store.getExposureMapping()),i),this.$emt({name:"experiment_evaluation",experiment:m}),m}_getConfigListImpl(){return this._store.getConfigList()}_getLayerImpl(t,i){var e,s,o;const{result:_,details:l}=this._store.getLayer(t),d=(0,u._makeLayer)(t,l,_),h=(s=(e=this.overrideAdapter)===null||e===void 0?void 0:e.getLayerOverride)===null||s===void 0?void 0:s.call(e,d,this._user,i);i?.disableExposureLog&&this._logger.incrementNonExposureCount(t);const p=(0,u._mergeOverride)(d,h,(o=h?.__value)!==null&&o!==void 0?o:d.__value,m=>{i?.disableExposureLog||this._enqueueExposure(t,(0,u._createLayerParameterExposure)(this._user,p,m,this._store.getExposureMapping()),i)});return this.$emt({name:"layer_evaluation",layer:p}),p}_getParameterStoreImpl(t,i){var e,s;const{result:o,details:_}=this._store.getParamStore(t);this._logger.incrementNonExposureCount(t);const l={name:t,details:_,__configuration:o,get:(0,g._makeParamStoreGetter)(this,o,i)},d=(s=(e=this.overrideAdapter)===null||e===void 0?void 0:e.getParamStoreOverride)===null||s===void 0?void 0:s.call(e,l,i);return d!=null&&(l.__configuration=d.config,l.details=d.details,l.get=(0,g._makeParamStoreGetter)(this,d.config,i)),l}_checkUserHasIdForEvaluation(t,i,e){t&&((0,u._getUnitIDFromUser)(this._user,t)||u.Log.warn(`The user does not have the required id_type "${t}" for ${e} "${i}"`))}_checkInitializationStatus(t){(t==="Uninitialized"||t.startsWith("Loading"))&&u.Log.warn(`SDK initialization has not completed. Reason: ${t}`)}};return D.default=r,D}var F;function H(){return F||(F=1,(function(v){var u=S&&S.__createBinding||(Object.create?(function(r,n,t,i){i===void 0&&(i=t);var e=Object.getOwnPropertyDescriptor(n,t);(!e||("get"in e?!n.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(r,i,e)}):(function(r,n,t,i){i===void 0&&(i=t),r[i]=n[t]})),f=S&&S.__exportStar||function(r,n){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(n,t)&&u(n,r,t)};Object.defineProperty(v,"__esModule",{value:!0}),v.StatsigClient=void 0;const c=y.requireSrc(),g=T();v.StatsigClient=g.default,f(y.requireSrc(),v);const a=Object.assign((0,c._getStatsigGlobal)(),{StatsigClient:g.default});v.default=a})(S)),S}exports.requireSrc=H;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const v=require("./vendor-@statsig-client-core-CcuuGlfw.cjs"),p=require("react"),le=require("./vendor-react-CzqSQR9J.cjs"),$=require("./vendor-@statsig-js-client-C6n1oYZG.cjs");var h={},G={},E={},K;function U(){if(K)return E;K=1,Object.defineProperty(E,"__esModule",{value:!0}),E.isNoopClient=E.NoopEvaluationsClient=void 0;const e=v.requireSrc(),s={success:!1,error:Error("NoClient"),duration:0,source:"Uninitialized",sourceUrl:null},i=()=>{},c=()=>s,o=()=>Promise.resolve(),t=()=>Promise.resolve(s),n={reason:"Error:NoClient"},a=l=>(...g)=>{const _=typeof g[0]=="string"?g[0]:g[1];switch(l){case"gate":return(0,e._makeFeatureGate)(_,n,null);case"config":return(0,e._makeDynamicConfig)(_,n,null);case"layer":return(0,e._makeLayer)(_,n,null);case"param_store":return{name:_}}},r={attach:i,getDataSync:()=>null,getDataAsync:()=>Promise.resolve(null),setData:i,setDataLegacy:i,prefetchData:o},d={sdkKey:"",options:{},values:null,user:{userID:""},errorBoundary:{},session:{data:{sessionID:"",startTime:0,lastUpdate:0},sdkKey:"",lastPersistedAt:0,storageKey:""},stableID:"",storageProvider:e.Storage,sdkInstanceID:""},u=new e.PrecomputedEvaluationsContextHandle("",()=>({}),()=>({}),()=>null,()=>({userID:""}),()=>""),y={isNoop:!0,loadingStatus:"Uninitialized",initializeSync:c,initializeAsync:t,shutdown:o,flush:o,updateRuntimeOptions:i,updateUserSync:c,updateUserAsync:t,getContext:()=>Object.assign({},d),getContextHandle:()=>u,checkGate:()=>!1,getFeatureGate:a("gate"),getDynamicConfig:a("config"),getExperiment:a("config"),getLayer:a("layer"),getParameterStore:a("param_store"),logEvent:i,on:i,off:i,$on:i,$emt:i,dataAdapter:r};E.NoopEvaluationsClient=y;function S(l){return"isNoop"in l}return E.isNoopClient=S,E}var z;function b(){if(z)return G;z=1,Object.defineProperty(G,"__esModule",{value:!0});const e=p,s=U();return G.default=(0,e.createContext)({renderVersion:0,client:s.NoopEvaluationsClient,isLoading:!0}),G}var A={},O={},F={},T;function se(){if(T)return F;T=1,Object.defineProperty(F,"__esModule",{value:!0}),F.useStatsigInternalClientFactoryAsync=void 0;const e=p,s=v.requireSrc();function i(c,o){const t=(0,e.useMemo)(()=>{var r;return(r=(0,s._getInstance)(o.sdkKey))!==null&&r!==void 0?r:c(o)},[]),[n,a]=(0,e.useState)(t.loadingStatus!=="Ready");return(0,e.useMemo)(()=>{t.loadingStatus!=="Ready"&&t.initializeAsync().catch(s.Log.error).finally(()=>a(!1))},[]),{client:t,isLoading:n}}return F.useStatsigInternalClientFactoryAsync=i,F}var H;function oe(){if(H)return O;H=1,Object.defineProperty(O,"__esModule",{value:!0}),O.useClientAsyncInit=void 0;const e=$.requireSrc(),s=se();function i(c,o,t=null){return(0,s.useStatsigInternalClientFactoryAsync)(n=>new e.StatsigClient(n.sdkKey,n.initialUser,n.statsigOptions),{sdkKey:c,initialUser:o,statsigOptions:t})}return O.useClientAsyncInit=i,O}var J;function de(){if(J)return A;J=1,Object.defineProperty(A,"__esModule",{value:!0}),A.StatsigProvider=void 0;const e=le.requireJsxRuntime(),s=p,i=v.requireSrc(),c=b(),o=oe();function t(u){return"client"in u?(("sdkKey"in u||"user"in u)&&i.Log.warn("Both client and configuration props (sdkKey, user) were provided to StatsigProvider. The client prop will be used and the configuration props will be ignored."),(0,e.jsx)(a,Object.assign({},u))):(0,e.jsx)(n,Object.assign({},u))}A.StatsigProvider=t;function n(u){const[y,S]=(0,s.useState)(0),l=(0,o.useClientAsyncInit)(u.sdkKey,u.user,u.options).client,[g,_]=(0,s.useState)(!d(l));r(l,S,_);const I=(0,s.useMemo)(()=>({renderVersion:y,client:l,isLoading:g}),[y,l,g]);return(0,e.jsx)(c.default.Provider,{value:I,children:u.loadingComponent==null||!I.isLoading?u.children:u.loadingComponent})}function a(u){const[y,S]=(0,s.useState)(0),l=u.client,[g,_]=(0,s.useState)(!d(l));r(l,S,_);const I=(0,s.useMemo)(()=>({renderVersion:y,client:l,isLoading:g}),[y,l,g]);return(0,e.jsx)(c.default.Provider,{value:I,children:u.loadingComponent==null||!I.isLoading?u.children:u.loadingComponent})}function r(u,y,S){(0,s.useEffect)(()=>{const l=()=>{y(g=>g+1),S(!d(u))};return i.SDKType._setBindingType("react"),u.$on("values_updated",l),()=>{u.flush().catch(g=>i.Log.error("An error occurred during flush",g)),u.off("values_updated",l)}},[u,y])}function d(u){return"isNoop"in u||u.loadingStatus==="Ready"}return A}var L={},B={},W;function ue(){if(W)return B;W=1,Object.defineProperty(B,"__esModule",{value:!0}),B.useStatsigInternalClientFactoryBootstrap=void 0;const e=p,s=v.requireSrc();function i(c,o){const t=(0,e.useRef)((0,s._getInstance)(o.sdkKey));return(0,e.useMemo)(()=>{if(t.current)return t.current;const n=c(o);return t.current=n,o.useLegacyFormat?n.dataAdapter.setDataLegacy(o.initialValues,o.initialUser):n.dataAdapter.setData(o.initialValues),n.initializeSync(),n},[])}return B.useStatsigInternalClientFactoryBootstrap=i,B}var Q;function fe(){if(Q)return L;Q=1,Object.defineProperty(L,"__esModule",{value:!0}),L.useClientBootstrapInit=void 0;const e=$.requireSrc(),s=ue();function i(c,o,t,n=null,a){return(0,s.useStatsigInternalClientFactoryBootstrap)(r=>new e.StatsigClient(r.sdkKey,r.initialUser,r.statsigOptions),{sdkKey:c,initialUser:o,initialValues:t,statsigOptions:n,useLegacyFormat:a})}return L.useClientBootstrapInit=i,L}var R={},X;function ge(){if(X)return R;X=1,Object.defineProperty(R,"__esModule",{value:!0});const e=p,s=v.requireSrc(),i=U(),c=b();function o(t,n){const{client:a,renderVersion:r}=(0,e.useContext)(c.default);return(0,e.useMemo)(()=>(0,i.isNoopClient)(a)?(s.Log.warn(`useDynamicConfig hook failed to find a valid StatsigClient for dynamic config '${t}'.`),i.NoopEvaluationsClient.getDynamicConfig(t,n)):a.getDynamicConfig(t,n),[t,a,r,...n?Object.values(n):[]])}return R.default=o,R}var k={},Y;function Ce(){if(Y)return k;Y=1,Object.defineProperty(k,"__esModule",{value:!0});const e=p,s=v.requireSrc(),i=U(),c=b();function o(t,n){const{client:a,renderVersion:r}=(0,e.useContext)(c.default);return(0,e.useMemo)(()=>(0,i.isNoopClient)(a)?(s.Log.warn(`useExperiment hook failed to find a valid Statsig client for experiment '${t}'.`),i.NoopEvaluationsClient.getExperiment(t,n)):a.getExperiment(t,n),[t,a,r,...n?Object.values(n):[]])}return k.default=o,k}var x={},Z;function ye(){if(Z)return x;Z=1,Object.defineProperty(x,"__esModule",{value:!0});const e=p,s=v.requireSrc(),i=U(),c=b();function o(t,n){const{client:a,renderVersion:r}=(0,e.useContext)(c.default);return(0,e.useMemo)(()=>(0,i.isNoopClient)(a)?(s.Log.warn(`useFeatureGate hook failed to find a valid StatsigClient for gate '${t}'.`),i.NoopEvaluationsClient.getFeatureGate(t,n)):a.getFeatureGate(t,n),[t,a,r,...n?Object.values(n):[]])}return x.default=o,x}var V={},ee;function _e(){if(ee)return V;ee=1,Object.defineProperty(V,"__esModule",{value:!0});const e=p,s=v.requireSrc(),i=U(),c=b();function o(t,n){const{client:a,renderVersion:r}=(0,e.useContext)(c.default);return(0,e.useMemo)(()=>(0,i.isNoopClient)(a)?(s.Log.warn(`useGateValue hook failed to find a valid StatsigClient for gate '${t}'.`),i.NoopEvaluationsClient.checkGate(t,n)):a.checkGate(t,n),[t,a,r,...n?Object.values(n):[]])}return V.default=o,V}var w={},te;function Se(){if(te)return w;te=1,Object.defineProperty(w,"__esModule",{value:!0});const e=p,s=v.requireSrc(),i=U(),c=b();function o(t,n){const{client:a,renderVersion:r}=(0,e.useContext)(c.default);return(0,e.useMemo)(()=>(0,i.isNoopClient)(a)?(s.Log.warn(`useLayer hook failed to find a valid Statsig client for layer '${t}'.`),i.NoopEvaluationsClient.getLayer(t,n)):a.getLayer(t,n),[t,a,r,...n?Object.values(n):[]])}return w.default=o,w}var N={},ne;function ve(){if(ne)return N;ne=1,Object.defineProperty(N,"__esModule",{value:!0});const e=p,s=v.requireSrc(),i=U(),c=b();function o(t,n){const{client:a,renderVersion:r}=(0,e.useContext)(c.default);return(0,e.useMemo)(()=>(0,i.isNoopClient)(a)?(s.Log.warn(`useParameterStore hook failed to find a valid StatsigClient for parameter store '${t}'.`),i.NoopEvaluationsClient.getParameterStore(t,n)):a.getParameterStore(t,n),[t,a,r,...n?Object.values(n):[]])}return N.default=o,N}var D={},re;function ce(){if(re)return D;re=1,Object.defineProperty(D,"__esModule",{value:!0}),D.useStatsigClient=void 0;const e=p,s=v.requireSrc(),i=U(),c=b();function o(){const{client:t,renderVersion:n,isLoading:a}=(0,e.useContext)(c.default),r=(0,e.useMemo)(()=>(0,i.isNoopClient)(t)?(s.Log.warn("Attempting to retrieve a StatsigClient but none was set."),i.NoopEvaluationsClient):t,[t,n]),d=[r,n],u=(0,e.useCallback)((C,f)=>r.checkGate(C,f),d),y=(0,e.useCallback)((C,f)=>r.getFeatureGate(C,f),d),S=(0,e.useCallback)((C,f)=>r.getDynamicConfig(C,f),d),l=(0,e.useCallback)((C,f)=>r.getExperiment(C,f),d),g=(0,e.useCallback)((C,f)=>r.getLayer(C,f),d),_=(0,e.useCallback)((C,f)=>r.getParameterStore(C,f),d),I=(0,e.useCallback)((C,f,m)=>typeof C=="string"?r.logEvent(C,f,m):r.logEvent(C),d);return(0,e.useMemo)(()=>({client:r,checkGate:u,getFeatureGate:y,getDynamicConfig:S,getExperiment:l,getLayer:g,getParameterStore:_,logEvent:I,isLoading:a}),[r,u,y,S,l,g,_,I,a])}return D.useStatsigClient=o,D}var M={},ie;function pe(){if(ie)return M;ie=1,Object.defineProperty(M,"__esModule",{value:!0}),M.useStatsigUser=void 0;const e=p,s=b(),i=ce();function c(t){return t.getContextHandle().user}function o(){const{client:t}=(0,i.useStatsigClient)(),{renderVersion:n}=(0,e.useContext)(s.default);return{user:(0,e.useMemo)(()=>c(t),[t,n]),updateUserSync:(0,e.useCallback)(r=>(typeof r=="function"&&(r=r(c(t))),t.updateUserSync(r)),[t]),updateUserAsync:(0,e.useCallback)(r=>(typeof r=="function"&&(r=r(c(t))),t.updateUserAsync(r)),[t])}}return M.useStatsigUser=o,M}var ae;function Ie(){return ae||(ae=1,(function(e){var s=h&&h.__createBinding||(Object.create?(function(f,m,P,q){q===void 0&&(q=P);var j=Object.getOwnPropertyDescriptor(m,P);(!j||("get"in j?!m.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return m[P]}}),Object.defineProperty(f,q,j)}):(function(f,m,P,q){q===void 0&&(q=P),f[q]=m[P]})),i=h&&h.__exportStar||function(f,m){for(var P in f)P!=="default"&&!Object.prototype.hasOwnProperty.call(m,P)&&s(m,f,P)};Object.defineProperty(e,"__esModule",{value:!0}),e.useStatsigUser=e.useStatsigInternalClientFactoryBootstrap=e.useStatsigInternalClientFactoryAsync=e.useStatsigClient=e.useParameterStore=e.useLayer=e.useGateValue=e.useFeatureGate=e.useExperiment=e.useDynamicConfig=e.useClientBootstrapInit=e.useClientAsyncInit=e.StatsigProvider=e.StatsigContext=void 0;const c=v.requireSrc(),o=b();e.StatsigContext=o.default;const t=de();Object.defineProperty(e,"StatsigProvider",{enumerable:!0,get:function(){return t.StatsigProvider}});const n=oe();Object.defineProperty(e,"useClientAsyncInit",{enumerable:!0,get:function(){return n.useClientAsyncInit}});const a=fe();Object.defineProperty(e,"useClientBootstrapInit",{enumerable:!0,get:function(){return a.useClientBootstrapInit}});const r=ge();e.useDynamicConfig=r.default;const d=Ce();e.useExperiment=d.default;const u=ye();e.useFeatureGate=u.default;const y=_e();e.useGateValue=y.default;const S=Se();e.useLayer=S.default;const l=ve();e.useParameterStore=l.default;const g=ce();Object.defineProperty(e,"useStatsigClient",{enumerable:!0,get:function(){return g.useStatsigClient}});const _=se();Object.defineProperty(e,"useStatsigInternalClientFactoryAsync",{enumerable:!0,get:function(){return _.useStatsigInternalClientFactoryAsync}});const I=ue();Object.defineProperty(e,"useStatsigInternalClientFactoryBootstrap",{enumerable:!0,get:function(){return I.useStatsigInternalClientFactoryBootstrap}});const C=pe();Object.defineProperty(e,"useStatsigUser",{enumerable:!0,get:function(){return C.useStatsigUser}}),i($.requireSrc(),e),Object.assign((0,c._getStatsigGlobal)(),{StatsigContext:o.default,StatsigProvider:t.StatsigProvider,useClientAsyncInit:n.useClientAsyncInit,useClientBootstrapInit:a.useClientBootstrapInit,useDynamicConfig:r.default,useExperiment:d.default,useFeatureGate:u.default,useGateValue:y.default,useLayer:S.default,useParameterStore:l.default,useStatsigClient:g.useStatsigClient,useStatsigInternalClientFactoryAsync:_.useStatsigInternalClientFactoryAsync,useStatsigInternalClientFactoryBootstrap:I.useStatsigInternalClientFactoryBootstrap,useStatsigUser:C.useStatsigUser})})(h)),h}var me=Ie();exports.srcExports=me;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const h=typeof self=="object"?self:globalThis,w=(n,o)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new h[n](o)},O=(n,o)=>{const s=(t,f)=>(n.set(f,t),t),u=t=>{if(n.has(t))return n.get(t);const[f,r]=o[t];switch(f){case 0:case-1:return s(r,t);case 1:{const e=s([],t);for(const c of r)e.push(u(c));return e}case 2:{const e=s({},t);for(const[c,I]of r)e[u(c)]=u(I);return e}case 3:return s(new Date(r),t);case 4:{const{source:e,flags:c}=r;return s(new RegExp(e,c),t)}case 5:{const e=s(new Map,t);for(const[c,I]of r)e.set(u(c),u(I));return e}case 6:{const e=s(new Set,t);for(const c of r)e.add(u(c));return e}case 7:{const{name:e,message:c}=r;return s(w(e,c),t)}case 8:return s(BigInt(r),t);case"BigInt":return s(Object(BigInt(r)),t);case"ArrayBuffer":return s(new Uint8Array(r).buffer,r);case"DataView":{const{buffer:e}=new Uint8Array(r);return s(new DataView(e),r)}}return s(w(f,r),t)};return u},p=n=>O(new Map,n)(0),R="",{toString:b}={},{keys:S}=Object,A=n=>{const o=typeof n;if(o!=="object"||!n)return[0,o];const s=b.call(n).slice(8,-1);switch(s){case"Array":return[1,R];case"Object":return[2,R];case"Date":return[3,R];case"RegExp":return[4,R];case"Map":return[5,R];case"Set":return[6,R];case"DataView":return[1,s]}return s.includes("Array")?[1,s]:s.includes("Error")?[7,s]:[2,s]},y=([n,o])=>n===0&&(o==="function"||o==="symbol"),B=(n,o,s,u)=>{const t=(r,e)=>{const c=u.push(r)-1;return s.set(e,c),c},f=r=>{if(s.has(r))return s.get(r);let[e,c]=A(r);switch(e){case 0:{let a=r;switch(c){case"bigint":e=8,a=r.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+c);a=null;break;case"undefined":return t([-1],r)}return t([e,a],r)}case 1:{if(c){let i=r;return c==="DataView"?i=new Uint8Array(r.buffer):c==="ArrayBuffer"&&(i=new Uint8Array(r)),t([c,[...i]],r)}const a=[],E=t([e,a],r);for(const i of r)a.push(f(i));return E}case 2:{if(c)switch(c){case"BigInt":return t([c,r.toString()],r);case"Boolean":case"Number":case"String":return t([c,r.valueOf()],r)}if(o&&"toJSON"in r)return f(r.toJSON());const a=[],E=t([e,a],r);for(const i of S(r))(n||!y(A(r[i])))&&a.push([f(i),f(r[i])]);return E}case 3:return t([e,r.toISOString()],r);case 4:{const{source:a,flags:E}=r;return t([e,{source:a,flags:E}],r)}case 5:{const a=[],E=t([e,a],r);for(const[i,T]of r)(n||!(y(A(i))||y(A(T))))&&a.push([f(i),f(T)]);return E}case 6:{const a=[],E=t([e,a],r);for(const i of r)(n||!y(A(i)))&&a.push(f(i));return E}}const{message:I}=r;return t([e,{name:c,message:I}],r)};return f},g=(n,{json:o,lossy:s}={})=>{const u=[];return B(!(o||s),!!o,new Map,u)(n),u},P=typeof structuredClone=="function"?(n,o)=>o&&("json"in o||"lossy"in o)?p(g(n,o)):structuredClone(n):(n,o)=>p(g(n,o));exports.structuredClone=P;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./vendor-big.js-BfsYTtpv.cjs"),l=require("./vendor-lodash-CNz95YDD.cjs"),y={sortKey:"description",sortOrder:"ascending"},u=r=>{if(r.length===0)return;const n=r[0].amount;if(n?.currencyCode==null||n?.currencySymbol==null)return;let t=0;for(const e of r)t+=e.amount?.amount??0;return{amount:t,currencyCode:n.currencyCode,currencySymbol:n.currencySymbol}},f=r=>{const n=[],t=[];for(const e of r)e.postingType==="debit"?n.push(e):e.postingType==="credit"&&t.push(e);return{debitTotal:u(n),creditTotal:u(t)}},a=.005,m=(r,n)=>{let t=new s.Big(0),e=new s.Big(0);for(const i of r){const c=new s.Big(i.amount?.amount??0);i.postingType==="debit"?t=t.plus(c):i.postingType==="credit"&&(e=e.plus(c))}const o=t.minus(e).abs().lt(a),d=t.minus(n).abs().lt(a);return{debitTotal:t.toNumber(),creditTotal:e.toNumber(),isBalanced:o&&d}},p=r=>r==="descending"?"desc":"asc",b=(r,n,t)=>{const e=o=>{switch(n.sortKey){case"description":return t.description(o).toLowerCase();case"name":return t.name(o).toLowerCase();case"category":return t.category(o).toLowerCase();case"class":return t.class(o).toLowerCase();case"debit":return t.debit(o);case"credit":return t.credit(o);default:return t.description(o).toLowerCase()}};return l.orderBy([...r],[e],[p(n.sortOrder)])};exports.journalEntryDefaultSortConfig=y;exports.journalEntrySplitReconciliation=m;exports.journalEntryTotalsByPostingSide=f;exports.sortJournalEntryLines=b;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const M=require("./vendor-react-CzqSQR9J.cjs");var O={exports:{}},X=O.exports,q;function Y(){return q||(q=1,(function(U,w){(function(c,s){U.exports=s()})(X,(()=>{return c={772:(n,e,t)=>{const r=t(826).remove,h=/[.*+?^${}()|[\]\\]/g,u=/[a-z0-9_]/i,l=/\s+/;n.exports=function(i,R,x){var g,m;m={insideWords:!1,findAllOccurrences:!1,requireMatchAll:!1},g=(g=x)||{},Object.keys(g).forEach((o=>{m[o]=!!g[o]})),x=m;const I=Array.from(i).map((o=>r(o)));let p=I.join("");return(R=r(R)).trim().split(l).filter((o=>o.length>0)).reduce(((o,f)=>{const A=f.length,b=!x.insideWords&&u.test(f[0])?"\\b":"",j=new RegExp(b+f.replace(h,"\\$&"),"i");let E,a;if(E=j.exec(p),x.requireMatchAll&&E===null)return p="",[];for(;E;){a=E.index;const k=A-I.slice(a,a+A).join("").length,y=a-I.slice(0,a).join("").length,d=[a+y,a+A+y+k];if(d[0]!==d[1]&&o.push(d),p=p.slice(0,a)+new Array(A+1).join(" ")+p.slice(a+A),!x.findAllOccurrences)break;E=j.exec(p)}return o}),[]).sort(((o,f)=>o[0]-f[0]))}},826:n=>{var e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},t=Object.keys(e).join("|"),r=new RegExp(t,"g"),h=new RegExp(t,""),u=function(l){return l.replace(r,(function(i){return e[i]}))};n.exports=u,n.exports.has=function(l){return!!l.match(h)},n.exports.remove=u}},s={},(function n(e){var t=s[e];if(t!==void 0)return t.exports;var r=s[e]={exports:{}};return c[e](r,r.exports,n),r.exports})(772);var c,s}))})(O)),O.exports}var N=Y();const P=M.getDefaultExportFromCjs(N);var v={exports:{}},S=v.exports,C;function T(){return C||(C=1,(function(U,w){(function(c,s){U.exports=s()})(S,(()=>{return c={705:n=>{n.exports=function(e,t){const r=[];return t.length===0?r.push({text:e,highlight:!1}):t[0][0]>0&&r.push({text:e.slice(0,t[0][0]),highlight:!1}),t.forEach(((h,u)=>{const l=h[0],i=h[1];r.push({text:e.slice(l,i),highlight:!0}),u===t.length-1?i<e.length&&r.push({text:e.slice(i,e.length),highlight:!1}):i<t[u+1][0]&&r.push({text:e.slice(i,t[u+1][0]),highlight:!1})})),r}}},s={},(function n(e){var t=s[e];if(t!==void 0)return t.exports;var r=s[e]={exports:{}};return c[e](r,r.exports,n),r.exports})(705);var c,s}))})(v)),v.exports}var W=T();const z=M.getDefaultExportFromCjs(W);exports.match=P;exports.parse=z;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function t(i){if(i)throw i}exports.bail=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var O=20,S=1,p=1e6,j=1e6,_=-7,U=21,V=!1,M="[big.js] ",b=M+"Invalid ",B=b+"decimal places",L=b+"rounding mode",m=M+"Division by zero",h={},w=void 0,T=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function q(){function r(e){var t=this;if(!(t instanceof r))return e===w&&arguments.length===0?q():new r(e);if(e instanceof r)t.s=e.s,t.e=e.e,t.c=e.c.slice();else{if(typeof e!="string"){if(r.strict===!0&&typeof e!="bigint")throw TypeError(b+"value");e=e===0&&1/e<0?"-0":String(e)}z(t,e)}t.constructor=r}return r.prototype=h,r.DP=O,r.RM=S,r.NE=_,r.PE=U,r.strict=V,r.roundDown=0,r.roundHalfUp=1,r.roundHalfEven=2,r.roundUp=3,r}function z(r,e){var t,n,i;if(!T.test(e))throw Error(b+"number");for(r.s=e.charAt(0)=="-"?(e=e.slice(1),-1):1,(t=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(t<0&&(t=n),t+=+e.slice(n+1),e=e.substring(0,n)):t<0&&(t=e.length),i=e.length,n=0;n<i&&e.charAt(n)=="0";)++n;if(n==i)r.c=[r.e=0];else{for(;i>0&&e.charAt(--i)=="0";);for(r.e=t-n-1,r.c=[],t=0;n<=i;)r.c[t++]=+e.charAt(n++)}return r}function D(r,e,t,n){var i=r.c;if(t===w&&(t=r.constructor.RM),t!==0&&t!==1&&t!==2&&t!==3)throw Error(L);if(e<1)n=t===3&&(n||!!i[0])||e===0&&(t===1&&i[0]>=5||t===2&&(i[0]>5||i[0]===5&&(n||i[1]!==w))),i.length=1,n?(r.e=r.e-e+1,i[0]=1):i[0]=r.e=0;else if(e<i.length){if(n=t===1&&i[e]>=5||t===2&&(i[e]>5||i[e]===5&&(n||i[e+1]!==w||i[e-1]&1))||t===3&&(n||!!i[0]),i.length=e,n){for(;++i[--e]>9;)if(i[e]=0,e===0){++r.e,i.unshift(1);break}}for(e=i.length;!i[--e];)i.pop()}return r}function P(r,e,t){var n=r.e,i=r.c.join(""),s=i.length;if(e)i=i.charAt(0)+(s>1?"."+i.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)i="0"+i;i="0."+i}else if(n>0)if(++n>s)for(n-=s;n--;)i+="0";else n<s&&(i=i.slice(0,n)+"."+i.slice(n));else s>1&&(i=i.charAt(0)+"."+i.slice(1));return r.s<0&&t?"-"+i:i}h.abs=function(){var r=new this.constructor(this);return r.s=1,r};h.cmp=function(r){var e,t=this,n=t.c,i=(r=new t.constructor(r)).c,s=t.s,u=r.s,o=t.e,f=r.e;if(!n[0]||!i[0])return n[0]?s:i[0]?-u:0;if(s!=u)return s;if(e=s<0,o!=f)return o>f^e?1:-1;for(u=(o=n.length)<(f=i.length)?o:f,s=-1;++s<u;)if(n[s]!=i[s])return n[s]>i[s]^e?1:-1;return o==f?0:o>f^e?1:-1};h.div=function(r){var e=this,t=e.constructor,n=e.c,i=(r=new t(r)).c,s=e.s==r.s?1:-1,u=t.DP;if(u!==~~u||u<0||u>p)throw Error(B);if(!i[0])throw Error(m);if(!n[0])return r.s=s,r.c=[r.e=0],r;var o,f,c,v,l,E=i.slice(),A=o=i.length,k=n.length,a=n.slice(0,o),g=a.length,x=r,R=x.c=[],I=0,N=u+(x.e=e.e-r.e)+1;for(x.s=s,s=N<0?0:N,E.unshift(0);g++<o;)a.push(0);do{for(c=0;c<10;c++){if(o!=(g=a.length))v=o>g?1:-1;else for(l=-1,v=0;++l<o;)if(i[l]!=a[l]){v=i[l]>a[l]?1:-1;break}if(v<0){for(f=g==o?i:E;g;){if(a[--g]<f[g]){for(l=g;l&&!a[--l];)a[l]=9;--a[l],a[g]+=10}a[g]-=f[g]}for(;!a[0];)a.shift()}else break}R[I++]=v?c:++c,a[0]&&v?a[g]=n[A]||0:a=[n[A]]}while((A++<k||a[0]!==w)&&s--);return!R[0]&&I!=1&&(R.shift(),x.e--,N--),I>N&&D(x,N,t.RM,a[0]!==w),x};h.eq=function(r){return this.cmp(r)===0};h.gt=function(r){return this.cmp(r)>0};h.gte=function(r){return this.cmp(r)>-1};h.lt=function(r){return this.cmp(r)<0};h.lte=function(r){return this.cmp(r)<1};h.minus=h.sub=function(r){var e,t,n,i,s=this,u=s.constructor,o=s.s,f=(r=new u(r)).s;if(o!=f)return r.s=-f,s.plus(r);var c=s.c.slice(),v=s.e,l=r.c,E=r.e;if(!c[0]||!l[0])return l[0]?r.s=-f:c[0]?r=new u(s):r.s=1,r;if(o=v-E){for((i=o<0)?(o=-o,n=c):(E=v,n=l),n.reverse(),f=o;f--;)n.push(0);n.reverse()}else for(t=((i=c.length<l.length)?c:l).length,o=f=0;f<t;f++)if(c[f]!=l[f]){i=c[f]<l[f];break}if(i&&(n=c,c=l,l=n,r.s=-r.s),(f=(t=l.length)-(e=c.length))>0)for(;f--;)c[e++]=0;for(f=e;t>o;){if(c[--t]<l[t]){for(e=t;e&&!c[--e];)c[e]=9;--c[e],c[t]+=10}c[t]-=l[t]}for(;c[--f]===0;)c.pop();for(;c[0]===0;)c.shift(),--E;return c[0]||(r.s=1,c=[E=0]),r.c=c,r.e=E,r};h.mod=function(r){var e,t=this,n=t.constructor,i=t.s,s=(r=new n(r)).s;if(!r.c[0])throw Error(m);return t.s=r.s=1,e=r.cmp(t)==1,t.s=i,r.s=s,e?new n(t):(i=n.DP,s=n.RM,n.DP=n.RM=0,t=t.div(r),n.DP=i,n.RM=s,this.minus(t.times(r)))};h.neg=function(){var r=new this.constructor(this);return r.s=-r.s,r};h.plus=h.add=function(r){var e,t,n,i=this,s=i.constructor;if(r=new s(r),i.s!=r.s)return r.s=-r.s,i.minus(r);var u=i.e,o=i.c,f=r.e,c=r.c;if(!o[0]||!c[0])return c[0]||(o[0]?r=new s(i):r.s=i.s),r;if(o=o.slice(),e=u-f){for(e>0?(f=u,n=c):(e=-e,n=o),n.reverse();e--;)n.push(0);n.reverse()}for(o.length-c.length<0&&(n=c,c=o,o=n),e=c.length,t=0;e;o[e]%=10)t=(o[--e]=o[e]+c[e]+t)/10|0;for(t&&(o.unshift(t),++f),e=o.length;o[--e]===0;)o.pop();return r.c=o,r.e=f,r};h.pow=function(r){var e=this,t=new e.constructor("1"),n=t,i=r<0;if(r!==~~r||r<-j||r>j)throw Error(b+"exponent");for(i&&(r=-r);r&1&&(n=n.times(e)),r>>=1,!!r;)e=e.times(e);return i?t.div(n):n};h.prec=function(r,e){if(r!==~~r||r<1||r>p)throw Error(b+"precision");return D(new this.constructor(this),r,e)};h.round=function(r,e){if(r===w)r=0;else if(r!==~~r||r<-p||r>p)throw Error(B);return D(new this.constructor(this),r+this.e+1,e)};h.sqrt=function(){var r,e,t,n=this,i=n.constructor,s=n.s,u=n.e,o=new i("0.5");if(!n.c[0])return new i(n);if(s<0)throw Error(M+"No square root");s=Math.sqrt(+P(n,!0,!0)),s===0||s===1/0?(e=n.c.join(""),e.length+u&1||(e+="0"),s=Math.sqrt(e),u=((u+1)/2|0)-(u<0||u&1),r=new i((s==1/0?"5e":(s=s.toExponential()).slice(0,s.indexOf("e")+1))+u)):r=new i(s+""),u=r.e+(i.DP+=4);do t=r,r=o.times(t.plus(n.div(t)));while(t.c.slice(0,u).join("")!==r.c.slice(0,u).join(""));return D(r,(i.DP-=4)+r.e+1,i.RM)};h.times=h.mul=function(r){var e,t=this,n=t.constructor,i=t.c,s=(r=new n(r)).c,u=i.length,o=s.length,f=t.e,c=r.e;if(r.s=t.s==r.s?1:-1,!i[0]||!s[0])return r.c=[r.e=0],r;for(r.e=f+c,u<o&&(e=i,i=s,s=e,c=u,u=o,o=c),e=new Array(c=u+o);c--;)e[c]=0;for(f=o;f--;){for(o=0,c=u+f;c>f;)o=e[c]+s[f]*i[c-f-1]+o,e[c--]=o%10,o=o/10|0;e[c]=o}for(o?++r.e:e.shift(),f=e.length;!e[--f];)e.pop();return r.c=e,r};h.toExponential=function(r,e){var t=this,n=t.c[0];if(r!==w){if(r!==~~r||r<0||r>p)throw Error(B);for(t=D(new t.constructor(t),++r,e);t.c.length<r;)t.c.push(0)}return P(t,!0,!!n)};h.toFixed=function(r,e){var t=this,n=t.c[0];if(r!==w){if(r!==~~r||r<0||r>p)throw Error(B);for(t=D(new t.constructor(t),r+t.e+1,e),r=r+t.e+1;t.c.length<r;)t.c.push(0)}return P(t,!1,!!n)};h.toJSON=h.toString=function(){var r=this,e=r.constructor;return P(r,r.e<=e.NE||r.e>=e.PE,!!r.c[0])};typeof Symbol<"u"&&(h[Symbol.for("nodejs.util.inspect.custom")]=h.toJSON);h.toNumber=function(){var r=+P(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(r.toString()))throw Error(M+"Imprecise conversion");return r};h.toPrecision=function(r,e){var t=this,n=t.constructor,i=t.c[0];if(r!==w){if(r!==~~r||r<1||r>p)throw Error(b+"precision");for(t=D(new n(t),r,e);t.c.length<r;)t.c.push(0)}return P(t,r<=t.e||t.e<=n.NE||t.e>=n.PE,!!i)};h.valueOf=function(){var r=this,e=r.constructor;if(e.strict===!0)throw Error(M+"valueOf disallowed");return P(r,r.e<=e.NE||r.e>=e.PE,!0)};var C=q();exports.Big=C;
|